-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinterface.js
executable file
·58 lines (46 loc) · 2.21 KB
/
interface.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// if(data === 'allow') { window.location = "index.php?code="+data+"&pass=64v50" }
// if(data === 'dont') {$('#show').html("Invalid code. Please try again or email [email protected].");}
function getTodo(user_id,order_id,page_num) {
$.get('interface.php?user_id='+user_id+'&order_id='+order_id+'&task=todo', function(data) {
$('.the-text').html(data);
$(".the-text").accordion('destroy').accordion( { autoHeight: false, active: page_num } );
var tbHigh = $('.the-text').height();
$('.the-box-to-do').height(tbHigh + 375);
//tb_init('a.thickbox');
});
}
function loadPreview(pub_id,page_num,user_id,order_id) {
/* $('#load').fadeIn('normal');
$('.the-box-template').fadeOut('normal'); */
var data = '<img src=\"interface.php?pub_id='+pub_id+'&page_num='+page_num+'&user_id='+user_id+'&order_id='+order_id+'&task=loadPreview\" usemap="#map" border="0" class="map"/>';
$.get('interface.php?pub_id='+pub_id+'&page_num='+page_num+'&user_id='+user_id+'&order_id='+order_id+'&task=getMap', function(map) {
data = data + map;
$('.the-box-template').html(data);
$('a.tips').tooltip({
track: true,
delay: 0,
showURL: false,
extraClass: "right"
});
});
/* $('.the-box-template').fadeIn('normal');
$('#load').fadeOut('normal'); */
}
function panel(id,user_id,order_id,pub_id,page_num,asset_des,asset_type,asset_num,img,type,data) {
$.get('upload.php?id='+id+'&user_id='+user_id+'&order_id='+order_id+'&pub_id='+pub_id+'&page_num='+page_num+'&asset_des='+asset_des+'&asset_type='+asset_type+'&asset_num='+asset_num+'&img='+img+'&type='+type+'&data='+data+'', function(data) {
$('#panel').html(data);
$('#content-overlay').show();
$('#panel').slideDown('slow');
});
}
function closePanel() {
$('#content-overlay').fadeOut('slow');
setTimeout("$('#panel').slideUp('slow')",1000);
}
function completion(pub_id,user_id,order_id) {
$.get('interface.php?pub_id='+pub_id+'&user_id='+user_id+'&order_id='+order_id+'&task=completion', function(percent) {
var perc;
perc = parseInt(percent);
$("#progressbar").progressbar({ value: perc });
});
}