From 0ae667e6cfdd1bcc85bacf85cd93a84f99fa88f8 Mon Sep 17 00:00:00 2001
From: cfoe <cfoe@ispconfig3>
Date: Tue, 22 May 2012 04:08:05 -0400
Subject: [PATCH] added missing language string already present in default theme

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

diff --git a/interface/web/client/lib/module.conf.php b/interface/web/client/lib/module.conf.php
index 23c4a18..3e36a26 100644
--- a/interface/web/client/lib/module.conf.php
+++ b/interface/web/client/lib/module.conf.php
@@ -1,7 +1,7 @@
 <?php
 
 $module["name"] 		= "client";
-$module["title"] 		= "Client";
+$module["title"] 		= "top_menu_client";
 $module["template"] 	= "module.tpl.htm";
 $module["startpage"] 	= "client/client_list.php";
 $module["tab_width"]    = '';
@@ -11,16 +11,60 @@
 */
 
 
-$items[] = array( 'title' 	=> "Add Client",
-				  'target' 	=> 'content',
-				  'link'	=> 'client/client_edit.php');
+
 
 $items[] = array( 'title' 	=> "Edit Client",
 				  'target' 	=> 'content',
-				  'link'	=> 'client/client_list.php');
+				  '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');
+				  
+				  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);
+
+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' 	=> "Add Reseller",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/reseller_edit.php',
+				  'html_id' => 'reseller_add');
+
+$module["nav"][] = array(	'title'	=> 'Resellers',
+							'open' 	=> 1,
+							'items'	=> $items);
+
+unset($items);
+}
+
+$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);
+
+unset($items);
+
 ?>
\ No newline at end of file

--
Gitblit v1.9.1