summaryrefslogtreecommitdiffstats
path: root/apps/admin/templates/_navigation.php
diff options
context:
space:
mode:
authorGravatar mszulecki2007-06-14 17:09:01 +0000
committerGravatar mszulecki2007-06-14 17:09:01 +0000
commit9f108dd1a969473375341d92a7b1252fa2cedc9a (patch)
treed5f2e35ec0bd2d52dab0ee3282fc6751e0fa8dba /apps/admin/templates/_navigation.php
parente35884d11b81e4e4bbd73e1882e2b8011e85d118 (diff)
downloadmailadmin-9f108dd1a969473375341d92a7b1252fa2cedc9a.tar.gz
mailadmin-9f108dd1a969473375341d92a7b1252fa2cedc9a.tar.bz2
Initial import.
git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
Diffstat (limited to 'apps/admin/templates/_navigation.php')
-rw-r--r--apps/admin/templates/_navigation.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/apps/admin/templates/_navigation.php b/apps/admin/templates/_navigation.php
new file mode 100644
index 0000000..b991247
--- /dev/null
+++ b/apps/admin/templates/_navigation.php
@@ -0,0 +1,53 @@
+ <?php use_helper("Asset","Javascript") ?>
+ <div class="navigation">
+ <ul><? if($sf_user->hasCredential(array('superadmin','domainmaster', 'mailboxmaster'), false)): ?><li<?php echo ($module=="domain"?" class=\"active\"":"") ?>><?php echo link_to("Domains","domain/list") ?></li><li<?php echo ($module=="mailbox"?" class=\"active\"":"") ?>><?php echo link_to("Mailboxes","mailbox/list") ?></li><?php endif; ?><li<?php echo ($module=="address"?" class=\"active\"":"") ?>><?php echo link_to("Addresses","address/list") ?></li><? if($sf_user->hasCredential('superadmin')): ?><li<?php echo ($module=="user"?" class=\"active\"":"") ?>><?php echo link_to("Administrators","user/list") ?></li><li<?php echo ($module=="log"?" class=\"active\"":"") ?>><?php echo link_to("Logs","log/list") ?></li><li<?php echo ($module=="server"?" class=\"active\"":"") ?>><?php echo link_to("Server","server/index") ?></li><?php endif; ?></ul>
+ </div>
+ <?php if($module=="domain"): ?>
+ <div class="subnavigation">
+ <ul>
+ <li <?php echo ($action=="list"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("list.gif","alt=[...] border=0") . " Browse Domains", $module."/list")?></li>
+ <? if($sf_user->hasCredential(array('superadmin','domainmaster'), false)): ?><li <?php echo ($action=="create"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("add.gif","alt=[+] border=0") . " Add New Domain", $module."/create")?></li><?php endif; ?>
+ </ul>
+ </div>
+ <?php endif; ?>
+ <?php if($module=="mailbox"): ?>
+ <div class="subnavigation">
+ <ul>
+ <li <?php echo ($action=="list"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("list.gif","alt=[...] border=0") . " Browse Mailboxes", $module."/list")?></li>
+ <li <?php echo ($action=="create"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("add.gif","alt=[+] border=0") . " Add New Mailbox", $module."/create")?></li>
+ </ul>
+ </div>
+ <?php endif; ?>
+ <?php if($module=="address"): ?>
+ <div class="subnavigation">
+ <ul>
+ <li <?php echo ($action=="list"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("list.gif","alt=[...] border=0") . " Browse Addresses", $module."/list")?></li>
+ <li <?php echo ($action=="create"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("add.gif","alt=[+] border=0") . " Add New Address", $module."/create")?></li>
+ </ul>
+ </div>
+ <?php endif; ?>
+ <? if($sf_user->hasCredential('superadmin')): ?>
+ <?php if($module=="user"): ?>
+ <div class="subnavigation">
+ <ul>
+ <li <?php echo ($action=="list"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("list.gif","alt=[...] border=0") . " Browse Administrators", $module."/list")?></li>
+ <li <?php echo ($action=="create"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("add.gif","alt=[+] border=0") . " Add New Administrator", $module."/create")?></li>
+ </ul>
+ </div>
+ <?php endif; ?>
+ <?php if($module=="log"): ?>
+ <div class="subnavigation">
+ <ul>
+ <li <?php echo ($action=="list"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("list.gif","alt=[...] border=0") . " Browse Logs", $module."/list")?></li>
+ <li <?php echo ($action=="clear"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("shred.gif","alt=[-] border=0") . " Clear Logs", $module."/clear")?></li>
+ </ul>
+ </div>
+ <?php endif; ?>
+ <?php if($module=="server"): ?>
+ <div class="subnavigation">
+ <ul>
+ <li <?php echo ($action=="imap"?"class=\"active\"":"") ?>><?php echo link_to(image_tag("network-server.gif","alt=[...] border=0") . " IMAP Summary", $module."/imap")?></li>
+ </ul>
+ </div>
+ <?php endif; ?>
+ <?php endif; ?>