diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-17 00:53:35 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-17 00:53:35 +0000 |
commit | 4928e46d6b93ccd1256117e08283341bdc224791 (patch) | |
tree | 913d615840d0901832f0b926ff31c01ab61b49e0 /views/default/admin | |
parent | 0afd1a3ce8392863a89932b7525d58be8c7f5135 (diff) | |
download | elgg-4928e46d6b93ccd1256117e08283341bdc224791.tar.gz elgg-4928e46d6b93ccd1256117e08283341bdc224791.tar.bz2 |
tabbed interface for admin now
Diffstat (limited to 'views/default/admin')
-rw-r--r-- | views/default/admin/tidypics.php | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/views/default/admin/tidypics.php b/views/default/admin/tidypics.php index cecf5409f..7bc2c2921 100644 --- a/views/default/admin/tidypics.php +++ b/views/default/admin/tidypics.php @@ -2,19 +2,35 @@ global $CONFIG; + $tab = $vars['tab']; - echo '<div class="contentWrapper">'; + $settingsselect = ''; + $statsselect = ''; + switch($tab) { + case 'settings': + $settingsselect = 'class="selected"'; + break; + case 'stats': + $statsselect = 'class="selected"'; + break; + } - echo elgg_view('output/longtext', array('value' => elgg_echo("tidypics:admin:instructions"))); - - global $CONFIG; - $system_url = $CONFIG->wwwroot . 'mod/tidypics/system.php'; ?> -<p> -<a href="<?php echo $system_url; ?>">Run Server Analysis</a> -</p> +<div class="contentWrapper"> + <div id="elgg_horizontal_tabbed_nav"> + <ul> + <li <?php echo $settingsselect; ?>'><a href="<?php echo $CONFIG->wwwroot . 'mod/tidypics/admin.php?tab=settings'; ?>"><?php echo elgg_echo('tidypics:settings'); ?></a></li> + <li <?php echo $statsselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'mod/tidypics/admin.php?tab=stats'; ?>"><?php echo elgg_echo('tidypics:stats'); ?></a></li> + </ul> + </div> <?php - echo elgg_view("tidypics/forms/admin"); - - echo "</div>"; -?>
\ No newline at end of file + switch($tab) { + case 'settings': + echo elgg_view("tidypics/settings"); + break; + case 'stats': + echo elgg_view("tidypics/stats"); + break; + } +?> +</div>
\ No newline at end of file |