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

calendar/inbox.php

Go to the documentation of this file.
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 */
00030 // include DP inbox functions
00031 include_once    ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.inbox.php');
00032 
00033 /* ------------------------------------  generate frames --------------------------- */
00034 // -----------------------------------------  fixed ---------------------------------//
00035 /*
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 
00046 eval ("\$lefttxt = \"".$Gui->getTemplate("menue")."\";");
00047 eval ("\$left = \"".$Gui->getTemplate("left")."\";");
00048 
00049 // right frame is curently not used
00050 $right  = '';
00051 
00052 // the up frame is detect by the interface 
00053 
00054 // down frame is curently not used
00055 $downtext = '';
00056 // --------------------------------------  end fixed  -------------------------------//
00057 
00058 if ( isset($_POST[btn_accept]) )                                                                // it the btton pressed
00059 {
00060         $i = 0;
00061 
00062         while ( isset($_POST[$i]) )                                                                     // while dates exists
00063         {
00064                 $array = explode("-",$_POST[$i]);                                               // catch string elements as an array
00065 
00066                 switch ($array[0])                                                                              // witch radio button was pressed ?
00067                 {
00068                         
00069                         case 'ok':
00070                                 $DB->applyChangedDate ($DP_UId, $array[1], $array[2] );
00071                                 break;
00072                         case 'del':
00073                                 $DB->discardChangedDate ($DP_UId, $array[1], $array[2] );
00074                                 break;
00075                         case 'noChange':
00076                                 // Nichts tun
00077                                 break;
00078                 }
00079 
00080                 $i++;
00081         }
00082 }
00083 
00084 $centertxt = setInboxView($Gui, $DB);
00085 //echo htmlentities($centertxt); exit;
00086 // -----------------------------------------  fixed ---------------------------------//
00087 // frameset template
00088 eval ("\$main = \"".$Gui->getTemplate("frames_set")."\";");
00089 // main template
00090 eval("doOutput(\"".$Gui->getTemplate("main")."\");");
00091 //doOutput($Gui->getTemplate("main"));
00092 // --------------------------------------  end fixed --------------------------------//
00093 exit;
00094 ?>

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