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

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

Generated on Fri Dec 13 2013 10:18:30 for ILIAS Release_3_5_x_branch .rev 46805 by  doxygen 1.7.1