Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00033 $this->tpl->addBlockFile("TABS", "tabs", "tpl.tabs.html");
00034
00035 $tab = $this->cmd ? $this->cmd : "view";
00036
00037
00038
00039 $client_id = "client_id=".$_GET["client_id"];
00040
00041
00042
00043 $this->tpl->setCurrentBlock("tab");
00044 $this->tpl->setVariable("TAB_TYPE",$tab == "view" ? "tabactive" : "tabinactive");
00045 $this->tpl->setVariable("TAB_LINK","setup.php?".$client_id."&cmd=view");
00046 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("overview")));
00047 $this->tpl->parseCurrentBlock();
00048
00049
00050 $this->tpl->setCurrentBlock("tab");
00051 $this->tpl->setVariable("TAB_TYPE",$tab == "db" ? "tabactive" : "tabinactive");
00052 $this->tpl->setVariable("TAB_LINK","setup.php?".$client_id."&cmd=db");
00053 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("database")));
00054 $this->tpl->parseCurrentBlock();
00055
00056
00057 $this->tpl->setCurrentBlock("tab");
00058 $this->tpl->setVariable("TAB_TYPE",$tab == "lang" ? "tabactive" : "tabinactive");
00059 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=lang");
00060 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("languages")));
00061 $this->tpl->parseCurrentBlock();
00062
00063 $this->tpl->setCurrentBlock("tab");
00064 $this->tpl->setVariable("TAB_TYPE",$tab == "contact" ? "tabactive" : "tabinactive");
00065 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=contact");
00066 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("contact")));
00067 $this->tpl->parseCurrentBlock();
00068
00069
00070 $this->tpl->setCurrentBlock("tab");
00071 $this->tpl->setVariable("TAB_TYPE",$tab == "nic" ? "tabactive" : "tabinactive");
00072 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=nic");
00073 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("ilias_nic")));
00074 $this->tpl->parseCurrentBlock();
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 if ($this->isAdmin())
00086 {
00087 $this->tpl->setCurrentBlock("tab");
00088 $this->tpl->setVariable("TAB_TYPE",$tab == "delete" ? "tabactive" : "tabinactive");
00089 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=delete&lang=".$this->lang);
00090 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("delete")));
00091 $this->tpl->parseCurrentBlock();
00092 }
00093
00094
00095 $this->tpl->setCurrentBlock("tab");
00096 $this->tpl->setVariable("TAB_TYPE",$tab == "tools" ? "tabactive" : "tabinactive");
00097 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=tools");
00098 $this->tpl->setVariable("TAB_TEXT",ucfirst($this->lng->txt("tools")));
00099 $this->tpl->parseCurrentBlock();
00100
00101 ?>