From 4928e46d6b93ccd1256117e08283341bdc224791 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 17 Jun 2009 00:53:35 +0000 Subject: tabbed interface for admin now --- views/default/admin/tidypics.php | 40 ++++++++++++++++++++++++++----------- views/default/tidypics/settings.php | 13 ++++++++++++ views/default/tidypics/stats.php | 3 +++ 3 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 views/default/tidypics/settings.php create mode 100644 views/default/tidypics/stats.php (limited to 'views') 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 '
'; + $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'; ?> -

-Run Server Analysis -

+
+
+
    +
  • '>
  • +
  • >
  • +
+
"; -?> \ No newline at end of file + switch($tab) { + case 'settings': + echo elgg_view("tidypics/settings"); + break; + case 'stats': + echo elgg_view("tidypics/stats"); + break; + } +?> +
\ No newline at end of file diff --git a/views/default/tidypics/settings.php b/views/default/tidypics/settings.php new file mode 100644 index 000000000..e69d6d306 --- /dev/null +++ b/views/default/tidypics/settings.php @@ -0,0 +1,13 @@ + elgg_echo("tidypics:admin:instructions"))); + + global $CONFIG; + $system_url = $CONFIG->wwwroot . 'mod/tidypics/system.php'; +?> +

+Run Server Analysis +

+ \ No newline at end of file diff --git a/views/default/tidypics/stats.php b/views/default/tidypics/stats.php new file mode 100644 index 000000000..8680ab052 --- /dev/null +++ b/views/default/tidypics/stats.php @@ -0,0 +1,3 @@ + \ No newline at end of file -- cgit v1.2.3