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

calendar/properties.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                                                                                       |
00005         |       Dateplaner Modul - month                                                                                                  |
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 */
00030 // include som properties functions
00031 include_once    ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.parse.php');
00032 
00033 
00034 /* ------------------------------------  generate frames --------------------------- */
00035 // -----------------------------------------  fixed ---------------------------------//
00036 if($_GET[action] == "next"){
00037                 $_GET[year] = $_GET[year] + 1;
00038                 $minical_show = setMinicalendar($_GET[month], $_GET[year], $DP_Lang, $_GET[app]);
00039 }elseif($_GET[action] == "last"){
00040                 $_GET[year] = $_GET[year] - 1;
00041                 $minical_show = setMinicalendar($_GET[month], $_GET[year], $DP_Lang, $_GET[app]);
00042 }else{
00043         $minical_show = setMinicalendar($_REQUEST[month],$_REQUEST[year], $DP_Lang, $_REQUEST[app]);
00044 }
00045 eval ("\$lefttxt = \"".$Gui->getTemplate("menue")."\";");
00046 eval ("\$left = \"".$Gui->getTemplate("left")."\";");
00047 
00048 // right frame is curently not used
00049 $right  = '';
00050 
00051 // the up frame is detect by the interface 
00052 
00053 // down frame is curently not used
00054 $downtext = '';
00055 // --------------------------------------  end fixed  -------------------------------//
00056 
00057 //*******************************************************************************************************
00058 
00059 $tableBorder = 0;
00060         
00061 if ($_REQUEST[btn_accept] == "OK" )
00062 {
00063         if ($_REQUEST[newKeyword] != "")
00064         {
00065                 $DB->addKeyword( $DP_UId, $_REQUEST[newKeyword] );
00066         }
00067 
00068         if ($_REQUEST[keyword] != "" AND $_REQUEST[changedKeyword] != "")
00069         {       
00070                 $DB->updateKeyword( $_REQUEST[keyword], $_REQUEST[changedKeyword] );
00071         }
00072         
00073 }
00074 
00075 if ( $_REQUEST[btn_delete] == "$DP_language[delete]" )
00076 {
00077                 $DB->delKeyword( $_REQUEST[keyword] );
00078 }
00079 
00080 if ( $_REQUEST[btn_time] == "OK" )
00081 {
00082         $startEnd = $DB->getStartEnd( $DP_UId );
00083         if ( $startEnd[0] != "" )
00084         {       // Es ist schon ein Eintrag vorhanden
00085                 $DB->updateStartEnd( $startEnd[0], $_REQUEST[starttime], $endtime );
00086                 
00087         }
00088         else
00089         {
00090                 // Noch kein Eintrag vorhanden
00091                 $DB->addStartEnd( $DP_UId, $_REQUEST[starttime], $_REQUEST[endtime] );
00092                 
00093         }
00094         $_SESSION[DP_Starttime] = $_REQUEST[starttime];
00095         $_SESSION[DP_Endtime]   = $_REQUEST[endtime];           
00096 }
00097 
00098 
00099 
00100 $keywords = $DB->getKeywords($DP_UId);
00101 $x="";
00102 for ($i = 0; $i < count($keywords); $i++)
00103 {
00104         $keywordText = $keywords[$i][1];
00105         $keywordID = $keywords[$i][0];
00106         $options ="<option value='$keywordID'>$keywordText</option>";
00107         $x = $x.$options;
00108 }
00109 $optionBox = $x;
00110 
00111 
00112 //*******************************************************************************************************
00113 if($_FILES) {
00114         $parsedata = parse($DB,$_FILES);
00115 }
00116 
00117 eval ("\$centertxt = \"".$Gui->getTemplate("properties_main")."\";");
00118 
00119 
00120 // -----------------------------------------  fixed ---------------------------------//
00121 // frameset template
00122 eval ("\$main = \"".$Gui->getTemplate("frames_set")."\";");
00123 // main template
00124 eval("doOutput(\"".$Gui->getTemplate("main")."\");"); 
00125 // --------------------------------------  end fixed --------------------------------//
00126 exit;
00127 ?>

Generated on Fri Dec 13 2013 17:56:47 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1