248 showstatusbar: true, |
248 showstatusbar: true, |
249 renderstatusbar: function(statusbar) { |
249 renderstatusbar: function(statusbar) { |
250 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); |
250 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); |
251 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + |
251 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + |
252 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Add</span></div>'); |
252 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Add</span></div>'); |
|
253 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + |
|
254 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>'); |
253 container.append(addButton); |
255 container.append(addButton); |
|
256 container.append(expButton); |
254 statusbar.append(container); |
257 statusbar.append(container); |
255 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
258 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
|
259 expButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
256 // add new row. |
260 // add new row. |
257 addButton.click(function(event) { |
261 addButton.click(function(event) { |
258 editrow = -1; |
262 editrow = -1; |
259 $('#name').val('Nieuw maisch schema'); |
263 $('#name').val('Nieuw maisch schema'); |
260 $('#notes').val(''); |
264 $('#notes').val(''); |
261 editsteps(''); |
265 editsteps(''); |
262 $('#popupWindow').jqxWindow('open'); |
266 $('#popupWindow').jqxWindow('open'); |
|
267 }); |
|
268 expButton.click(function(event) { |
|
269 window.open('export_mashs.php'); |
263 }); |
270 }); |
264 }, |
271 }, |
265 filterable: true, |
272 filterable: true, |
266 filtermode: 'excel', |
273 filtermode: 'excel', |
267 columns: [ |
274 columns: [ |