00001 <?php 00002 /* 00003 +-----------------------------------------------------------------------------+ 00004 | ILIAS open source | 00005 | Dateplaner Modul - inbox | 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 DP inbox functions 00034 include_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.inbox.php'); 00035 00036 /* ------------------------------------ generate frames --------------------------- */ 00037 // ----------------------------------------- fixed ---------------------------------// 00038 if($_GET[action] == "next"){ 00039 $_GET[year] = $_GET[year] + 1; 00040 $minical_show = setMinicalendar($_GET[month], $_GET[year], $DP_Lang, $_GET[app]); 00041 }elseif($_GET[action] == "last"){ 00042 $_GET[year] = $_GET[year] - 1; 00043 $minical_show = setMinicalendar($_GET[month], $_GET[year], $DP_Lang, $_GET[app]); 00044 }else{ 00045 $minical_show = setMinicalendar($_REQUEST[month],$_REQUEST[year], $DP_Lang, $_REQUEST[app]); 00046 } 00047 eval ("\$lefttxt = \"".$Gui->getTemplate("menue")."\";"); 00048 eval ("\$left = \"".$Gui->getTemplate("left")."\";"); 00049 00050 // right frame is curently not used 00051 $right = ''; 00052 00053 // the up frame is detect by the interface 00054 00055 // down frame is curently not used 00056 $downtext = ''; 00057 // -------------------------------------- end fixed -------------------------------// 00058 00059 00060 if ( isset($_POST[btn_accept]) ) // it the btton pressed 00061 { 00062 $i = 0; 00063 00064 while ( isset($_POST[$i]) ) // while dates exists 00065 { 00066 $array = explode("-",$_POST[$i]); // catch string elements as an array 00067 00068 switch ($array[0]) // witch radio button was pressed ? 00069 { 00070 00071 case 'ok': 00072 $DB->applyChangedDate ($DP_UId, $array[1], $array[2] ); 00073 break; 00074 case 'del': 00075 $DB->discardChangedDate ($DP_UId, $array[1], $array[2] ); 00076 break; 00077 case 'noChange': 00078 // Nichts tun 00079 break; 00080 } 00081 00082 $i++; 00083 } 00084 } 00085 00086 $centertxt = setInboxView($Gui, $DB); 00087 // ----------------------------------------- fixed ---------------------------------// 00088 // frameset template 00089 eval ("\$main = \"".$Gui->getTemplate("frames_set")."\";"); 00090 // main template 00091 eval("doOutput(\"".$Gui->getTemplate("main")."\");"); 00092 // -------------------------------------- end fixed --------------------------------// 00093 exit; 00094 ?>