@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux www.thesweb.ru 4.19.0-22-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64
Current Path :
/
var
/
www
/
www-root
/
data
/
www
/
new.labinform.ru
/
free_thes
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/free_thes/reports.js
var ThesReport = { rep_user_change: function () { u = $('#rep_user'); s1 = $('#rep_session1'); s2 = $('#rep_session2'); s1.combogrid('clear'); s2.combogrid('clear'); s1.combogrid('grid').datagrid('loadData', []) s2.combogrid('grid').datagrid('loadData', []) if (u.combobox('getValue') == '') { } else { s1.combogrid("grid").datagrid('load', 'json/getjson.php?type=sessionlist&user=' + u.combobox('getValue') + ''); s2.combogrid("grid").datagrid('load', 'json/getjson.php?type=sessionlist&user=' + u.combobox('getValue') + ''); } }, report_build: function () { //cols = $.get(url, dataType: 'json'); //$('#report_data').datagrid('options').column = [{field:'itemid',title:'Item ID', sortable:true}]; url = 'json/getjson.php?type=report' + '&user=' + $("#rep_user").combobox("getValue") + '&ss1=' + $("#rep_session1").combobox("getValue") + '&ss2=' + $("#rep_session2").combobox("getValue") + '&change=' + $("#rep_type_change").combobox("getValue") + '&t=' + $("#rep_type").combobox("getValue"); $('#report_data').datagrid('loadData', []); $.get({ url: url + '&page=1&rows=1', dataType: 'json', success: function( data ) { if (data.total > 0) { var a = Array(); for (var f in data.rows[0]) { if (f !== 'rn') a.push({ field: f, title: f, sortable: true }); } $('#report_data').datagrid({columns: Array(a), sortName: null}); } $('#report_data').datagrid({pagination: true, pageSize: 50, url: url}); }}); }, report_data_isload: function (data) { } }