commit | author | age
|
19351a
|
1 |
function show(o,sid){ |
B |
2 |
var o = document.getElementById(o); |
|
3 |
var pid = document.getElementById('point'+sid).value; |
|
4 |
Ajax.call('flow.php?step=select_pickinfo', 'sid=' + sid + '&pid='+pid, pickinfo, 'POST', 'JSON'); |
|
5 |
o.style.display = ""; |
|
6 |
$('#bg').show(); |
|
7 |
} |
|
8 |
function hide(o){ |
|
9 |
var o = document.getElementById(o); |
|
10 |
o.style.display = "none"; |
|
11 |
$('#bg').hide(); |
|
12 |
} |
|
13 |
function pickinfo(result){ |
|
14 |
document.getElementById('pickcontent').innerHTML = result.content; |
|
15 |
} |
|
16 |
function showztd(did){ |
|
17 |
var num = $("table[class='ztd']").length; |
|
18 |
if(num>0){ |
|
19 |
$("table[class='ztd']").each(function(){ |
|
20 |
$(this).hide(); |
|
21 |
}) |
|
22 |
} |
|
23 |
$('#txt'+did).show(); |
|
24 |
} |
|
25 |
function select_point(obj,value){ |
|
26 |
$("span[class*='site-in-short']").removeClass("site-in-short"); |
|
27 |
$(obj).addClass("site-in-short"); |
|
28 |
$('#s_pid').val(value); |
|
29 |
} |
|
30 |
function save_point(suppid){ |
|
31 |
var value = $('#s_pid').val(); |
|
32 |
Ajax.call('flow.php?step=save_point', 'sid=' + suppid + '&pid='+value, selectpickinfo, 'GET', 'JSON'); |
|
33 |
hide('pop'); |
|
34 |
} |
|
35 |
function selectpickinfo(result){ |
|
36 |
if(document.getElementById('picktxt'+result.suppid)){ |
|
37 |
document.getElementById('picktxt'+result.suppid).innerHTML = result.picktxt; |
|
38 |
} |
|
39 |
} |