35 { name: 'fg', type: 'float' }, |
35 { name: 'fg', type: 'float' }, |
36 { name: 'batch_size', type: 'float' }, |
36 { name: 'batch_size', type: 'float' }, |
37 ], |
37 ], |
38 id: 'record', |
38 id: 'record', |
39 url: "includes/db_product.php?select=archname" |
39 url: "includes/db_product.php?select=archname" |
40 }; |
40 }, |
41 var dataAdapter = new $.jqx.dataAdapter(source); |
41 dataAdapter = new $.jqx.dataAdapter(source); |
|
42 |
42 // initialize jqxGrid |
43 // initialize jqxGrid |
43 $("#jqxgrid").jqxGrid({ |
44 $("#jqxgrid").jqxGrid({ |
44 width: 1280, |
45 width: 1280, |
45 height: 630, |
46 height: 630, |
46 source: dataAdapter, |
47 source: dataAdapter, |
55 { text: 'Liters', datafield: 'batch_size', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
56 { text: 'Liters', datafield: 'batch_size', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
56 { text: '', datafield: 'Edit', width: 80, align: 'center', columntype: 'button', cellsrenderer: function () { |
57 { text: '', datafield: 'Edit', width: 80, align: 'center', columntype: 'button', cellsrenderer: function () { |
57 return "Bekijk"; |
58 return "Bekijk"; |
58 }, buttonclick: function (row) { |
59 }, buttonclick: function (row) { |
59 var datarecord = dataAdapter.records[row]; |
60 var datarecord = dataAdapter.records[row]; |
60 var url= "prod_edit.php?record=" + datarecord.record + "&select=archname&return=prod_archive_name.php"; |
61 window.location.href = "prod_edit.php?record=" + datarecord.record + "&select=archname&return=prod_archive_name.php"; |
61 window.location.href = url; |
|
62 } |
62 } |
63 } |
63 } |
64 ], |
64 ], |
65 }); |
65 }); |
66 }); |
66 }); |