From 5df6059f4153845f2d7db0bff426c4ad70c299cd Mon Sep 17 00:00:00 2001
From: cfoe <cfoe@ispconfig3>
Date: Tue, 04 Sep 2012 08:47:19 -0400
Subject: [PATCH] a lot of minor template fixes

---
 interface/web/client/lib/module.conf.php |  101 +++++++++++++++++++++++++++-----------------------
 1 files changed, 54 insertions(+), 47 deletions(-)

diff --git a/interface/web/client/lib/module.conf.php b/interface/web/client/lib/module.conf.php
index 2575ba2..233d4f6 100644
--- a/interface/web/client/lib/module.conf.php
+++ b/interface/web/client/lib/module.conf.php
@@ -1,74 +1,68 @@
 <?php
 
-$module["name"] 		= "client";
-$module["title"] 		= "top_menu_client";
+$module["name"] 	= "client";
+$module["title"] 	= "top_menu_client";
 $module["template"] 	= "module.tpl.htm";
 $module["startpage"] 	= "client/client_list.php";
 $module["tab_width"]    = '';
 
-/*
-	Email accounts menu
-*/
 
+$items[] = array(   'title' 	=> "Edit Client",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/client_list.php',
+                    'html_id'   => 'client_list');
 
-
-
-$items[] = array( 'title' 	=> "Edit Client",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/client_list.php',
-				  'html_id' => 'client_list');
-
-$items[] = array( 'title' 	=> "Add Client",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/client_edit.php',
-				  'html_id' => 'client_add');
+$items[] = array(   'title' 	=> "Add Client",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/client_edit.php',
+                    'html_id'   => 'client_add');
 				  
-				  if($_SESSION["s"]["user"]["typ"] == 'admin'){
-	$items[] = array( 'title' 	=> "Edit Client-Templates",
-					  'target' 	=> 'content',
-					  'link'	=> 'client/client_template_list.php',
-					  'html_id' => 'client_template_list');
+if($_SESSION["s"]["user"]["typ"] == 'admin'){
+$items[] = array(   'title' 	=> "Edit Client-Templates",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/client_template_list.php',
+                    'html_id'   => 'client_template_list');
 }
 
-$module["nav"][] = array(	'title'	=> 'Clients',
-							'open' 	=> 1,
-							'items'	=> $items);
+$module["nav"][] = array(   'title'	=> 'Clients',
+                            'open' 	=> 1,
+                            'items'	=> $items);
 
 unset($items);
 
 
 if($_SESSION["s"]["user"]["typ"] == 'admin'){
 
-$items[] = array( 'title' 	=> "Edit Reseller",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/reseller_list.php',
-				  'html_id' => 'reseller_list');
+$items[] = array(   'title' 	=> "Edit Reseller",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/reseller_list.php',
+                    'html_id'   => 'reseller_list');
 
-$items[] = array( 'title' 	=> "Add Reseller",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/reseller_edit.php',
-				  'html_id' => 'reseller_add');
+$items[] = array(   'title' 	=> "Add Reseller",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/reseller_edit.php',
+                    'html_id'   => 'reseller_add');
 
-$module["nav"][] = array(	'title'	=> 'Resellers',
-							'open' 	=> 1,
-							'items'	=> $items);
+$module["nav"][] = array(   'title'	=> 'Resellers',
+                            'open' 	=> 1,
+                            'items'	=> $items);
 
 unset($items);
 }
 
-$items[] = array( 'title' 	=> "Edit Client Circle",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/client_circle_list.php',
-				  'html_id' => 'client_circle_list');
+$items[] = array(   'title' 	=> "Edit Client Circle",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/client_circle_list.php',
+                    'html_id'   => 'client_circle_list');
 
-$items[] = array( 'title' 	=> "Send email",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/client_message.php',
-				  'html_id' => 'reseller_add');
+$items[] = array(   'title' 	=> "Send email",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/client_message.php',
+                    'html_id'   => 'reseller_add');
 
-$module["nav"][] = array(	'title'	=> 'Messaging',
-							'open' 	=> 1,
-							'items'	=> $items);
+$module["nav"][] = array(   'title'	=> 'Messaging',
+                            'open' 	=> 1,
+                            'items'	=> $items);
 
 unset($items);
 
@@ -87,5 +81,18 @@
 
 	unset($items);
 }
-							
+
+if($_SESSION["s"]["user"]["typ"] == 'admin'){
+$items[] = array(   'title' 	=> "Interface Settings",
+                    'target' 	=> 'content',
+                    'link'	=> 'client/reseller_admin_interface.php',
+                    'html_id'   => 'reseller_admin_interface');
+
+
+$module["nav"][] = array(   'title'	=> 'Reseller Panel',
+                            'open' 	=> 1,
+                            'items'	=> $items);
+
+unset($items);
+}
 ?>
\ No newline at end of file

--
Gitblit v1.9.1