www-thermferm/js/maintenance_panel.js

changeset 131
528dc0bb81ab
parent 130
25158b08843f
child 132
8bd209d1c020
equal deleted inserted replaced
130:25158b08843f 131:528dc0bb81ab
52 * Profiles 52 * Profiles
53 */ 53 */
54 var source_profiles = { 54 var source_profiles = {
55 datatype: "json", 55 datatype: "json",
56 datafields: [ 56 datafields: [
57 { name: 'Id', type: 'int' },
58 { name: 'UUID', type: 'string' }, 57 { name: 'UUID', type: 'string' },
59 { name: 'Name', type: 'string' }, 58 { name: 'Name', type: 'string' },
60 { name: 'Steps', type: 'int' } 59 { name: 'Steps', type: 'int' }
61 ], 60 ],
62 url: 'getprofiles.php' 61 url: 'getprofiles.php'
65 $("#jqxgrid_profiles").jqxGrid( { 64 $("#jqxgrid_profiles").jqxGrid( {
66 width: 770, height: 280, 65 width: 770, height: 280,
67 source: dataAdapter_profiles, 66 source: dataAdapter_profiles,
68 theme: 'ui-redmond', 67 theme: 'ui-redmond',
69 columnsresize: true, 68 columnsresize: true,
69 editable: true,
70 columns: [ 70 columns: [
71 { text: 'Id', datafield: 'Id', width: 40 }, 71 { text: 'UUID', editable: false, datafield: 'UUID', width: 280 },
72 { text: 'UUID', datafield: 'UUID', width: 280 },
73 { text: 'Name', datafield: 'Name', minwidth: 120 }, 72 { text: 'Name', datafield: 'Name', minwidth: 120 },
74 { text: 'Steps', datafield: 'Steps', width: 50 } 73 { text: 'Steps', datafield: 'Steps', width: 50 }
75 ] 74 ]
76 }); 75 });
77 76
79 * Units 78 * Units
80 */ 79 */
81 var source_units = { 80 var source_units = {
82 datatype: "json", 81 datatype: "json",
83 datafields: [ 82 datafields: [
84 { name: 'Id', type: 'int' },
85 { name: 'UUID', type: 'string' }, 83 { name: 'UUID', type: 'string' },
86 { name: 'Name', type: 'string' }, 84 { name: 'Name', type: 'string' },
87 { name: 'Mode', type: 'string' } 85 { name: 'Mode', type: 'string' }
88 ], 86 ],
89 url: 'getunits.php' 87 url: 'getunits.php'
92 $("#jqxgrid_units").jqxGrid( { 90 $("#jqxgrid_units").jqxGrid( {
93 width: 770, height: 280, 91 width: 770, height: 280,
94 source: dataAdapter_units, 92 source: dataAdapter_units,
95 theme: 'ui-redmond', 93 theme: 'ui-redmond',
96 columnsresize: true, 94 columnsresize: true,
95 editable: true,
97 columns: [ 96 columns: [
98 { text: 'Id', datafield: 'Id', width: 40 }, 97 { text: 'UUID', editable: false, datafield: 'UUID', width: 280 },
99 { text: 'UUID', datafield: 'UUID', width: 280 },
100 { text: 'Name', datafield: 'Name', minwidth: 120 }, 98 { text: 'Name', datafield: 'Name', minwidth: 120 },
101 { text: 'Mode', datafield: 'Mode', width: 70 } 99 { text: 'Mode', datafield: 'Mode', width: 70 }
102 ] 100 ]
103 }); 101 });
104 }); 102 });

mercurial