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.
This commit is contained in:
Bharat Mediratta
2009-01-12 07:39:53 +00:00
parent ef303bde3e
commit b19729435c
11 changed files with 220 additions and 81 deletions
@@ -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(); ?>