www/js/inv_fermentables.js

changeset 563
acdd54144838
parent 528
202272a28052
child 701
3ce3df681be0
equal deleted inserted replaced
562:ee28b3303da2 563:acdd54144838
200 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); 200 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
201 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + 201 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
202 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); 202 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>');
203 impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + 203 impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
204 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>'); 204 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>');
205 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
206 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>');
205 container.append(addButton); 207 container.append(addButton);
206 container.append(impButton); 208 container.append(impButton);
209 container.append(expButton);
207 statusbar.append(container); 210 statusbar.append(container);
208 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); 211 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
209 impButton.jqxButton({ theme: theme, width: 90, height: 20 }); 212 impButton.jqxButton({ theme: theme, width: 90, height: 20 });
213 expButton.jqxButton({ theme: theme, width: 90, height: 20 });
210 // add new row. 214 // add new row.
211 addButton.click(function(event) { 215 addButton.click(function(event) {
212 editrow = -1; 216 editrow = -1;
213 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); 217 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
214 $('#name').val('Nieuw product'); 218 $('#name').val('Nieuw product');
237 $('#tht_date').val(''); 241 $('#tht_date').val('');
238 $('#popupWindow').jqxWindow('open'); 242 $('#popupWindow').jqxWindow('open');
239 }); 243 });
240 impButton.click(function(event) { 244 impButton.click(function(event) {
241 window.location.href = 'import_ingredients.php?select=fermentables'; 245 window.location.href = 'import_ingredients.php?select=fermentables';
246 });
247 expButton.click(function(event) {
248 window.open('export_fermentables.php');
242 }); 249 });
243 }, 250 },
244 filterable: true, 251 filterable: true,
245 filtermode: 'excel', 252 filtermode: 'excel',
246 columns: [ 253 columns: [

mercurial