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

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