180 theme: theme, |
180 theme: theme, |
181 showstatusbar: true, |
181 showstatusbar: true, |
182 renderstatusbar: function (statusbar) { |
182 renderstatusbar: function (statusbar) { |
183 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
183 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
184 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;'>Nieuw</span></div>"); |
184 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;'>Nieuw</span></div>"); |
|
185 var impButton = $("<div style='float: right; margin-right: 50px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Import</span></div>"); |
185 container.append(addButton); |
186 container.append(addButton); |
|
187 container.append(impButton); |
186 statusbar.append(container); |
188 statusbar.append(container); |
187 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
189 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
|
190 impButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
188 // add new row. |
191 // add new row. |
189 addButton.click(function (event) { |
192 addButton.click(function (event) { |
190 editrow = -1; |
193 editrow = -1; |
191 $("#name").val('Nieuwe stijl'); |
194 $("#name").val('Nieuwe stijl'); |
192 $("#category").val(''); |
195 $("#category").val(''); |
209 $("#notes").val(''); |
212 $("#notes").val(''); |
210 $("#profile").val(''); |
213 $("#profile").val(''); |
211 $("#ingredients").val(''); |
214 $("#ingredients").val(''); |
212 $("#examples").val(''); |
215 $("#examples").val(''); |
213 $("#popupWindow").jqxWindow('open'); |
216 $("#popupWindow").jqxWindow('open'); |
|
217 }); |
|
218 impButton.click(function (event) { |
|
219 var url="import_ingredients.php?select=styles"; |
|
220 window.location.href = url; |
214 }); |
221 }); |
215 }, |
222 }, |
216 filterable: true, |
223 filterable: true, |
217 filtermode: 'excel', |
224 filtermode: 'excel', |
218 columns: [ |
225 columns: [ |