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

modules/dateplaner/includes/inc.output.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                                                                                       |
00005         |       Dateplaner Modul                                                                                                                  |                                                                                                     
00006         +-----------------------------------------------------------------------------+
00007         | Copyright (c) 2004 ILIAS open source & University of Applied Sciences Bremen|
00008         |                                                                             |
00009         | This program is free software; you can redistribute it and/or               |
00010         | modify it under the terms of the GNU General Public License                 |
00011         | as published by the Free Software Foundation; either version 2              |
00012         | of the License, or (at your option) any later version.                      |
00013         |                                                                             |
00014         | This program is distributed in the hope that it will be useful,             |
00015         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00016         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00017         | GNU General Public License for more details.                                |
00018         |                                                                             |
00019         | You should have received a copy of the GNU General Public License           |
00020         | along with this program; if not, write to the Free Software                 |
00021         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00022         +-----------------------------------------------------------------------------+
00023 */
00024 
00045 function doOutput($template) {
00046                 global $templatefolder, $actualtemplate ,$PAGETITLE, $DP_StyleFname, $DP_Style, $DP_language, $_SESSION;
00047 
00048                 if($_SESSION[DP_JSscript] != "1" ) {
00049                         $jsscriptIn                     = "<!-- ";
00050                         $jsscriptOut            = " -->";
00051                         $template       = str_replace("{jsscriptIn}","$jsscriptIn",$template);
00052                         $template       = str_replace("{jsscriptOut}","$jsscriptOut",$template);
00053                 }else {
00054                         $template       = str_replace("{jsscriptIn}","",$template);
00055                         $template       = str_replace("{jsscriptOut}","",$template);
00056                 }
00057 
00058                 $template       = str_replace("{TITLE}","$DP_language[title]",$template);
00059                 $template       = str_replace("{PAGETITLE}","$PAGETITLE",$template);
00060                 
00061                 $template       = str_replace("{DATEPLANER_ROOT_DIR}",DATEPLANER_ROOT_DIR,$template);
00062                 $template       = str_replace("{ILIAS_HTTP_PATH}",ILIAS_HTTP_PATH,$template);
00063 
00064                 $css_ilias      = '<LINK href="'.$DP_StyleFname.'" type="text/css" rel="stylesheet" />';
00065         $template       = str_replace("{css_ilias}","$css_ilias",$template);
00066 
00067                 $css            = '<LINK href=".'.DATEPLANER_ROOT_DIR.$templatefolder."/".$actualtemplate."/".$DP_Style.'.css" type="text/css" rel="stylesheet" />';
00068         $template       = str_replace("{css}","$css",$template);
00069         echo $template;
00070         }
00071 ?>

Generated on Fri Dec 13 2013 09:06:37 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1