omain+laquo;raquo;,laquo;raquo;+subdomain+laquo;raquo;,raquo;+tableno+laquo;); end; ,: json ,: function (data, textStatus) {var m=0;
$. each (data, function (i, res) {
$ ( # sol_tab ). append ( lt; tr id= sol_tab_ + m + gt; lt;/tr gt; ); (var key in res) {(key == 0)
$ ( #sol_tab tr: last ). append (' lt; td gt;
' lt; td gt;
} ++;}); (var m=0; m lt; data.length/2; m ++)
$ ( # sol_tab_ + m + td: first ). addClass ( first ); (var m=data.length/2; m lt; data.length ; m ++) {
$ ( # sol_tab_ + m + td: not (: first) ). addClass ( first );
}}
});
$ ( # rabbit ). tooltip ({
tip: # rab ,
effect: fade ,
fadeOutSpeed: 100,
predelay: 400,
position: bottom right ,
offset: [- 50, - 80]});
$ ( # test_ok ). click (function () {div=$ ( # test ). children (); m=1; answer= yes raquo ;;
$.each(div,function(i,res){($(res).find(laquo;.test_inpraquo;).prop(laquo;checkedraquo;)) answer= yes raquo ;; answer= no raquo ;;
$. ajax ({: GET ,: index2.php ,: col=insert into data (sysname, domain, subdomain, tableno, client_id, condition_id, condition_name, answer) values ??('
+sysname+laquo;laquo;,raquo;raquo;+domain+laquo;laquo;,raquo;raquo;+subdomain+laquo;',raquo;
+tableno+laquo;,raquo;+cli_id+laquo;,raquo;+m+laquo;,laquo;raquo;+$(res).text()+laquo;raquo;,laquo;raquo;+answer+laquo;raquo;) ,: false ,: function (data, textStatus) {
//alert (textStatus);
}
}); ++;});
$. ajax ({: GET ,: index5.php ,: col=select current_progress from data_clients where client_id= + cli_id + amp; num= + tableno + amp; col1=begin go ( + sysname + , '
+domain+laquo;laquo;,raquo;raquo;+subdomain+laquo;',raquo;+tableno+laquo;,raquo;+cli_id+laquo;); end; ,: json ,: false ,: function (data, textStatus) {. location.href= progress.htm? Sysname= + sysname
+laquo;amp;Domain=raquo;+domain+laquo;amp;Subdomain=raquo;+subdomain+laquo;amp;Tableno=raquo;+data
+ amp; Client_id= + cli_id;
}
});
});
$ ( # rabbit ). click (function () {. location.href= result.htm? Sysname= + sysname
+laquo;amp;Domain=raquo;+domain+laquo;amp;Subdomain=raquo;+subdomain+laquo;amp;Client_id=raquo;+cli_id;
});
}); template (row, data) {(var key in data) {(key + : + data [key])
}. text (data [0]); row;} template_inp (row, data) {. append ( lt; input type= + data [1] + name= row gt; + data [0] + lt;/input gt; ); row;} param (Name)
{var Params=location.search.substring (1) .split ( amp; ); variable= raquo ;; (var i=0; i lt; Params.length ; i ++)
{(Params [i] .split (=) [0] == Name)
{(Params [i] .split (=). length gt; 1)=Params [i] .split (=) [1];=replaceAll ( variable, % 20 , ); variable;
}} raquo ;;} replaceAll (str, what, to) {str.split (what) .join (to);
}