From 04e09afcccbf4e7f3eafa540ea35ac22b38f5bc0 Mon Sep 17 00:00:00 2001
From: filip <filip@ispconfig3>
Date: Mon, 27 Sep 2010 07:31:33 -0400
Subject: [PATCH] Implemented new FAQ functionality in help module

---
 interface/web/client/lib/module.conf.php |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/interface/web/client/lib/module.conf.php b/interface/web/client/lib/module.conf.php
index 23c4a18..c6fea58 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"]    = '';
@@ -13,14 +13,46 @@
 
 $items[] = array( 'title' 	=> "Add Client",
 				  'target' 	=> 'content',
-				  'link'	=> 'client/client_edit.php');
+				  'link'	=> 'client/client_edit.php',
+				  'html_id' => 'client_add');
 
 $items[] = array( 'title' 	=> "Edit Client",
 				  'target' 	=> 'content',
-				  'link'	=> 'client/client_list.php');
+				  'link'	=> 'client/client_list.php',
+				  'html_id' => 'client_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);
+
+unset($items);
+
+
+if($_SESSION["s"]["user"]["typ"] == 'admin'){
+
+$items[] = array( 'title' 	=> "Add Reseller",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/reseller_edit.php',
+				  'html_id' => 'reseller_add');
+
+$items[] = array( 'title' 	=> "Edit Reseller",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/reseller_list.php',
+				  'html_id' => 'reseller_list');
+
+$module["nav"][] = array(	'title'	=> 'Resellers',
+							'open' 	=> 1,
+							'items'	=> $items);
+}
+
+
+
+
 ?>
\ No newline at end of file

--
Gitblit v1.9.1