www/js/inv_yeasts.js

changeset 563
acdd54144838
parent 528
202272a28052
child 583
5d152961762b
equal deleted inserted replaced
562:ee28b3303da2 563:acdd54144838
238 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); 238 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
239 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + 239 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
240 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); 240 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>');
241 impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + 241 impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
242 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>'); 242 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>');
243 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
244 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>');
243 container.append(addButton); 245 container.append(addButton);
244 container.append(impButton); 246 container.append(impButton);
247 container.append(expButton);
245 statusbar.append(container); 248 statusbar.append(container);
246 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); 249 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
247 impButton.jqxButton({ theme: theme, width: 90, height: 20 }); 250 impButton.jqxButton({ theme: theme, width: 90, height: 20 });
251 expButton.jqxButton({ theme: theme, width: 90, height: 20 });
248 // add new row. 252 // add new row.
249 addButton.click(function(event) { 253 addButton.click(function(event) {
250 editrow = -1; 254 editrow = -1;
251 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); 255 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
252 $('#name').val(''); 256 $('#name').val('');
276 $('#zymocide').val(0); 280 $('#zymocide').val(0);
277 $('#popupWindow').jqxWindow('open'); 281 $('#popupWindow').jqxWindow('open');
278 }); 282 });
279 impButton.click(function(event) { 283 impButton.click(function(event) {
280 window.location.href = 'import_ingredients.php?select=yeasts'; 284 window.location.href = 'import_ingredients.php?select=yeasts';
285 });
286 expButton.click(function(event) {
287 window.open('export_yeasts.php');
281 }); 288 });
282 }, 289 },
283 filterable: true, 290 filterable: true,
284 filtermode: 'excel', 291 filtermode: 'excel',
285 columns: [ 292 columns: [

mercurial