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 00024 00033 require_once "./include/inc.header.php"; 00034 00035 // limit access only to authors 00036 if (!$rbacsystem->checkAccess("write", ROOT_FOLDER_ID)) 00037 { 00038 $ilias->raiseError("You are not entitled to access this page!",$ilias->error_obj->WARNING); 00039 } 00040 00041 sendInfo("Not available in this release."); 00042 00043 $tpl->addBlockFile("CONTENT", "content", "tpl.editor.html"); 00044 $tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html"); 00045 $tpl->addBlockFile("BUTTONS", "buttons", "tpl.buttons.html"); 00046 00047 /* 00048 $tpl->setCurrentBlock("btn_cell"); 00049 $tpl->setVariable("BTN_LINK","???.php"); 00050 $tpl->setVariable("BTN_TXT", $lng->txt("test_intern")); 00051 00052 $tpl->parseCurrentBlock(); 00053 $tpl->setCurrentBlock("btn_cell"); 00054 $tpl->setVariable("BTN_LINK","lo_new.php"); 00055 $tpl->setVariable("BTN_TXT", $lng->txt("lo_new")); 00056 00057 $tpl->parseCurrentBlock(); 00058 $tpl->setCurrentBlock("btn_cell"); 00059 $tpl->setVariable("BTN_LINK","crs_edit.php"); 00060 $tpl->setVariable("BTN_TXT", $lng->txt("courses")); 00061 00062 $tpl->parseCurrentBlock(); 00063 $tpl->setCurrentBlock("btn_row"); 00064 $tpl->parseCurrentBlock(); 00065 00066 00067 for ($i = 0; $i < 5; $i++) 00068 { 00069 $id = $i; 00070 $tpl->setCurrentBlock("row"); 00071 $tpl->setVariable("ROWCOL", "tblrow".(($i%2)+1)); 00072 $tpl->setVAriable("DATE", date("d.m.Y H:i:s")); 00073 $tpl->setVAriable("TITLE", $lng->txt("lo").$i); 00074 $status = "on"; 00075 $switchstatus = "off"; 00076 $tpl->setVariable("LINK_STATUS", "editor.php?cmd=set".$switchstatus."line&id=".$id); 00077 $tpl->setVariable("LINK_GENERATE", "editor.php?cmd=generate&id=".$id); 00078 $tpl->setVariable("LINK_ANNOUNCE", "mail.php?cmd=announce&id=".$id); 00079 $tpl->setVariable("LINK_EDIT", "lo_edit.php?id=".$id); 00080 $tpl->setVAriable("STATUS", $status); 00081 $tpl->setVariable("TXT_LO_SET_STATUS", $lng->txt("set_".$switchstatus."line")); 00082 $tpl->setVariable("TXT_ANNOUNCE", $lng->txt("announce")); 00083 $tpl->setVariable("TXT_GENERATE", $lng->txt("generate")); 00084 $tpl->setVariable("TXT_EDIT", $lng->txt("edit")); 00085 $tpl->setVAriable("TITLE", $lng->txt("lo").$i); 00086 00087 $tpl->parseCurrentBlock(); 00088 } 00089 00090 $tpl->setCurrentBlock("content"); 00091 $tpl->setVariable("TXT_LO_EDIT", $lng->txt("lo_edit")); 00092 00093 $tpl->setVariable("TXT_TITLE", $lng->txt("title")); 00094 $tpl->setVariable("TXT_ONLINE_VERSION", $lng->txt("online_version")); 00095 $tpl->setVariable("TXT_OFFLINE_VERSION", $lng->txt("offline_version")); 00096 $tpl->setVariable("TXT_PUBLISHED", $lng->txt("published")); 00097 $tpl->parseCurrentBlock(); 00098 */ 00099 $tpl->show(); 00100 ?>