diff options
Diffstat (limited to 'inc/functions.php')
-rw-r--r-- | inc/functions.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 10005dfe..abf70a93 100644 --- a/inc/functions.php +++ b/inc/functions.php | |||
@@ -232,6 +232,12 @@ function display_view($view, $id = 0, $full_head = 'yes') | |||
232 | 232 | ||
233 | switch ($view) | 233 | switch ($view) |
234 | { | 234 | { |
235 | case 'export': | ||
236 | $entries = $store->retrieveAll(); | ||
237 | $tpl->assign('export', json_encode($entries)); | ||
238 | $tpl->draw('export'); | ||
239 | logm('export view'); | ||
240 | break; | ||
235 | case 'config': | 241 | case 'config': |
236 | $tpl->assign('load_all_js', 0); | 242 | $tpl->assign('load_all_js', 0); |
237 | $tpl->draw('head'); | 243 | $tpl->draw('head'); |
@@ -240,7 +246,7 @@ function display_view($view, $id = 0, $full_head = 'yes') | |||
240 | $tpl->draw('js'); | 246 | $tpl->draw('js'); |
241 | $tpl->draw('footer'); | 247 | $tpl->draw('footer'); |
242 | logm('config view'); | 248 | logm('config view'); |
243 | break; | 249 | break; |
244 | case 'view': | 250 | case 'view': |
245 | $entry = $store->retrieveOneById($id); | 251 | $entry = $store->retrieveOneById($id); |
246 | 252 | ||