41 width: 1280, |
41 width: 1280, |
42 height: 630, |
42 height: 630, |
43 source: dataAdapter, |
43 source: dataAdapter, |
44 theme: theme, |
44 theme: theme, |
45 showstatusbar: true, |
45 showstatusbar: true, |
46 localization: getLocalization(), |
|
47 renderstatusbar: function (statusbar) { |
46 renderstatusbar: function (statusbar) { |
48 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
47 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
49 var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Add</span></div>"); |
48 var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Add</span></div>"); |
50 container.append(addButton); |
49 container.append(addButton); |
51 statusbar.append(container); |
50 statusbar.append(container); |
60 { text: 'Datum', datafield: 'birth', width: 120 }, |
59 { text: 'Datum', datafield: 'birth', width: 120 }, |
61 { text: 'Code', datafield: 'code', width: 120 }, |
60 { text: 'Code', datafield: 'code', width: 120 }, |
62 { text: 'Naam', datafield: 'name' }, |
61 { text: 'Naam', datafield: 'name' }, |
63 { text: 'Fase', datafield: 'stage', width: 130, |
62 { text: 'Fase', datafield: 'stage', width: 130, |
64 cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { |
63 cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { |
65 return "<div style='margin: 4px;'>" + StageData[value].nl + "</div>"; |
64 return "<span style='margin: 3px; margin-top: 6px; float: left;'>" + StageData[value].nl + "</span>"; |
66 } |
65 } |
67 }, |
66 }, |
68 { text: 'Wijzig', datafield: 'Edit', width: 100, align: 'center', columntype: 'button', cellsrenderer: function () { |
67 { text: '', datafield: 'Edit', width: 100, align: 'center', columntype: 'button', cellsrenderer: function () { |
69 return "Wijzig"; |
68 return "Wijzig"; |
70 }, buttonclick: function (row) { |
69 }, buttonclick: function (row) { |
71 var datarecord = dataAdapter.records[row]; |
70 var datarecord = dataAdapter.records[row]; |
72 var url= "prod_edit.php?record=" + datarecord.record + "&select=inprod&return=prod_inprod.php"; |
71 var url= "prod_edit.php?record=" + datarecord.record + "&select=inprod&return=prod_inprod.php"; |
73 window.location.href = url; |
72 window.location.href = url; |