diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 07:39:53 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-12 07:39:53 +0000 |
| commit | b19729435cd918e03e1bd6fbb91f7281bf3e5873 (patch) | |
| tree | 2e1e1723bfcb8358ac4060927c396777acff2af7 /core/views | |
| parent | ef303bde3e853a01e45b7734698210a40a7be812 (diff) | |
Dashboard blocks are now data driven, and you can add new blocks to
both the sidebar and the center content area from a dropdown at the
top of the dashboard sidebar.
Diffstat (limited to 'core/views')
| -rw-r--r-- | core/views/admin_dashboard_blocks.html.php | 25 | ||||
| -rw-r--r-- | core/views/admin_dashboard_main.html.php | 2 | ||||
| -rw-r--r-- | core/views/admin_dashboard_sidebar.html.php | 14 |
3 files changed, 25 insertions, 16 deletions
diff --git a/core/views/admin_dashboard_blocks.html.php b/core/views/admin_dashboard_blocks.html.php new file mode 100644 index 00000000..56a6ab07 --- /dev/null +++ b/core/views/admin_dashboard_blocks.html.php @@ -0,0 +1,25 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="gAdminDashboardBlocks"> + <table border="1"> + <tr> + <th> <?= t("Main") ?> </th> + <th> <?= t("Sidebar") ?> </th> + </tr> + + <? foreach ($available as $module_name => $block_list): ?> + <? foreach ($block_list as $id => $title): ?> + <tr> + <td> + <?= $title ?> + </td> + <td> + <option> + </option> + </td> + </tr> + <? endforeach ?> + <? endforeach ?> + </table> +</div> +<? printf("<pre>%s</pre>",print_r($available,1));flush(); ?> +<? printf("<pre>%s</pre>",print_r($displayed,1));flush(); ?> diff --git a/core/views/admin_dashboard_main.html.php b/core/views/admin_dashboard_main.html.php deleted file mode 100644 index cfe7bac2..00000000 --- a/core/views/admin_dashboard_main.html.php +++ /dev/null @@ -1,2 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> -<?= $theme->admin_dashboard_blocks() ?> diff --git a/core/views/admin_dashboard_sidebar.html.php b/core/views/admin_dashboard_sidebar.html.php deleted file mode 100644 index b9bce0ef..00000000 --- a/core/views/admin_dashboard_sidebar.html.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> -<div id="gAvailableBlocks" class="gBlock"> - <form class="gBlockContent"> - <fieldset> - <legend>Add Dashboard Blocks</legend> - <label for="">Available blocks</label> - <select name="" id=""> - <option>Somthing</option> - <option>Somthing else</option> - </select> - </fieldset> - </form> -</div> -<?= $theme->admin_sidebar_blocks() ?> |
