• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

setup/include/inc.client_tabs.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00033 $this->tpl->addBlockFile("TABS", "tabs", "tpl.tabs.html");
00034 
00035 $tab = $this->cmd ? $this->cmd : "view";
00036 
00037 //if (!isset($_SESSION["ClientId"]))
00038 //{
00039         $client_id = "client_id=".$_GET["client_id"];
00040 //}
00041 
00042 // overview
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 // database
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 // languages
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 // contact data
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 // ilias-NIC
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 // setup settings
00077 /* disabled
00078 $this->tpl->setCurrentBlock("tab");
00079 $this->tpl->setVariable("TAB_TYPE",$tab == "settings" ? "tabactive" : "tabinactive");
00080 $this->tpl->setVariable("TAB_LINK","setup.php?cmd=settings&lang=".$this->lang);
00081 $this->tpl->setVariable("TAB_TEXT",$this->lng->txt("settings"));
00082 $this->tpl->parseCurrentBlock();*/
00083 
00084 // delete confirmation
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 // ilias-NIC
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 ?>

Generated on Fri Dec 13 2013 13:52:13 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1