181 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); |
181 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); |
182 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + |
182 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + |
183 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); |
183 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); |
184 impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + |
184 impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + |
185 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>'); |
185 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>'); |
|
186 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + |
|
187 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>'); |
186 container.append(addButton); |
188 container.append(addButton); |
187 container.append(impButton); |
189 container.append(impButton); |
|
190 container.append(expButton); |
188 statusbar.append(container); |
191 statusbar.append(container); |
189 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
192 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
190 impButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
193 impButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
|
194 expButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
191 // add new row. |
195 // add new row. |
192 addButton.click(function(event) { |
196 addButton.click(function(event) { |
193 editrow = -1; |
197 editrow = -1; |
194 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); |
198 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); |
195 $('#name').val(''); |
199 $('#name').val(''); |
206 $('#tht_date').val(''); |
210 $('#tht_date').val(''); |
207 $('#popupWindow').jqxWindow('open'); |
211 $('#popupWindow').jqxWindow('open'); |
208 }); |
212 }); |
209 impButton.click(function(event) { |
213 impButton.click(function(event) { |
210 window.location.href = 'import_ingredients.php?select=miscs'; |
214 window.location.href = 'import_ingredients.php?select=miscs'; |
|
215 }); |
|
216 expButton.click(function(event) { |
|
217 window.open('export_miscs.php'); |
211 }); |
218 }); |
212 }, |
219 }, |
213 filterable: true, |
220 filterable: true, |
214 filtermode: 'excel', |
221 filtermode: 'excel', |
215 columns: [ |
222 columns: [ |