tbrehm
2012-04-19 72dcd77228065f99347791482cba26fee71489d3
commit | author | age
acbf53 1 <?php
b5a23a 2
T 3 $module["name"]         = "client";
40dd9f 4 $module["title"]         = "top_menu_client";
b5a23a 5 $module["template"]     = "module.tpl.htm";
T 6 $module["startpage"]     = "client/client_list.php";
7 $module["tab_width"]    = '';
8
9 /*
10     Email accounts menu
11 */
12
13
fb3a98 14
b5a23a 15
T 16 $items[] = array( 'title'     => "Edit Client",
17                   'target'     => 'content',
e90dd1 18                   'link'    => 'client/client_list.php',
M 19                   'html_id' => 'client_list');
b5a23a 20
fb3a98 21 $items[] = array( 'title'     => "Add Client",
T 22                   'target'     => 'content',
23                   'link'    => 'client/client_edit.php',
24                   'html_id' => 'client_add');
25                   
26                   if($_SESSION["s"]["user"]["typ"] == 'admin'){
7ce09d 27     $items[] = array( 'title'     => "Edit Client-Templates",
V 28                       'target'     => 'content',
e90dd1 29                       'link'    => 'client/client_template_list.php',
M 30                       'html_id' => 'client_template_list');
7ce09d 31 }
b5a23a 32
T 33 $module["nav"][] = array(    'title'    => 'Clients',
34                             'open'     => 1,
35                             'items'    => $items);
be7d7f 36
T 37 unset($items);
38
39
40 if($_SESSION["s"]["user"]["typ"] == 'admin'){
41
42 $items[] = array( 'title'     => "Edit Reseller",
43                   'target'     => 'content',
e90dd1 44                   'link'    => 'client/reseller_list.php',
M 45                   'html_id' => 'reseller_list');
be7d7f 46
fb3a98 47 $items[] = array( 'title'     => "Add Reseller",
T 48                   'target'     => 'content',
49                   'link'    => 'client/reseller_edit.php',
50                   'html_id' => 'reseller_add');
51
be7d7f 52 $module["nav"][] = array(    'title'    => 'Resellers',
T 53                             'open'     => 1,
54                             'items'    => $items);
72dcd7 55
T 56 unset($items);
be7d7f 57 }
T 58
72dcd7 59 $items[] = array( 'title'     => "Send email",
T 60                   'target'     => 'content',
61                   'link'    => 'client/client_message.php',
62                   'html_id' => 'reseller_add');
be7d7f 63
72dcd7 64 $module["nav"][] = array(    'title'    => 'Messaging',
T 65                             'open'     => 1,
66                             'items'    => $items);
be7d7f 67
72dcd7 68 unset($items);
be7d7f 69
b5a2f8 70 ?>