ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
inc.client_tabs.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 $this->tpl->addBlockFile("TABS", "tabs", "tpl.tabs.html", "Services/UIComponent/Tabs");
14 
15 $tab = $this->cmd ? $this->cmd : "view";
16 
17 //if (!isset($_SESSION["ClientId"]))
18 //{
19  $client_id = "client_id=".$_GET["client_id"];
20 //}
21 
22 // overview
23 $this->tpl->setCurrentBlock("tab");
24 $this->tpl->setVariable("TAB_TYPE",$tab == "view" ? "active" : "");
25 $this->tpl->setVariable("TAB_LINK","setup.php?".$client_id."&cmd=view");
26 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("overview")));
27 $this->tpl->parseCurrentBlock();
28 
29 // database
30 $this->tpl->setCurrentBlock("tab");
31 $this->tpl->setVariable("TAB_TYPE", in_array($tab, array("db", "displayDatabase", "showUpdateSteps", "dbslave")) ? "active" : "");
32 $this->tpl->setVariable("TAB_LINK","setup.php?".$client_id."&cmd=db");
33 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("database")));
34 $this->tpl->parseCurrentBlock();
35 
36 // sessions
37 $this->tpl->setCurrentBlock("tab");
38 $this->tpl->setVariable("TAB_TYPE", $tab == "sess" ? "active" : "");
39 $this->tpl->setVariable("TAB_LINK","setup.php?".$client_id."&cmd=sess");
40 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("session_management")));
41 $this->tpl->parseCurrentBlock();
42 
43 // languages
44 $this->tpl->setCurrentBlock("tab");
45 $this->tpl->setVariable("TAB_TYPE",$tab == "lang" ? "active" : "");
46 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=lang");
47 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("languages")));
48 $this->tpl->parseCurrentBlock();
49 // contact data
50 $this->tpl->setCurrentBlock("tab");
51 $this->tpl->setVariable("TAB_TYPE",$tab == "contact" ? "active" : "");
52 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=contact");
53 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("contact")));
54 $this->tpl->parseCurrentBlock();
55 
56 // proxy tab
57 $this->tpl->setCurrentBlock("tab");
58 $this->tpl->setVariable("TAB_TYPE",in_array($tab, array("proxy", "displayProxy", "saveProxy")) ? "active" : "");
59 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=proxy");
60 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("proxy")));
61 $this->tpl->parseCurrentBlock();
62 
63 // global cache
64 $this->tpl->setCurrentBlock("tab");
65 $this->tpl->setVariable("TAB_TYPE", in_array($tab, array("cache", "displayCache", "saveCache")) ? "active" : "");
66 $this->tpl->setVariable("TAB_LINK", "setup.php?cmd=cache");
67 $this->tpl->setVariable("TAB_TEXT", ucfirst($this->lng->txt("global_cache")));
68 $this->tpl->parseCurrentBlock();
69 
70 // ilias-NIC
71 $this->tpl->setCurrentBlock("tab");
72 $this->tpl->setVariable("TAB_TYPE",$tab == "nic" ? "active" : "");
73 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=nic");
74 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("ilias_nic")));
75 $this->tpl->parseCurrentBlock();
76 
77 // Populate
78 if ($this->setup->isAdmin())
79 {
80  $this->tpl->setCurrentBlock("tab");
81  $this->tpl->setVariable("TAB_TYPE",$tab == "cloneSelectSource" ? "active" : "");
82  $this->tpl->setVariable("TAB_LINK","setup.php?cmd=cloneSelectSource");
83  $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("populate")));
84  $this->tpl->parseCurrentBlock();
85 }
86 
87 // setup settings
88 /* disabled
89 $this->tpl->setCurrentBlock("tab");
90 $this->tpl->setVariable("TAB_TYPE",$tab == "settings" ? "active" : "");
91 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=settings&lang=".$this->lang);
92 $this->tpl->setVariable("TAB_TEXT",$this->lng->txt("settings"));
93 $this->tpl->parseCurrentBlock();*/
94 
95 // delete confirmation
96 if ((is_object($this->setup) && $this->setup->isAdmin()))
97 {
98  $this->tpl->setCurrentBlock("tab");
99  $this->tpl->setVariable("TAB_TYPE",$tab == "delete" ? "active" : "");
100  $this->tpl->setVariable("TAB_LINK","setup.php?cmd=delete&lang=".$this->lang);
101  $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("delete")));
102  $this->tpl->parseCurrentBlock();
103 }
104 
105 // ilias-NIC
106 $this->tpl->setCurrentBlock("tab");
107 $this->tpl->setVariable("TAB_TYPE",$tab == "tools" ? "active" : "");
108 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=tools");
109 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("tools")));
110 $this->tpl->parseCurrentBlock();
111 
112 ?>
Create styles array
The data for the language used.
$client_id