Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00033
00034 include_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.parse.php');
00035
00036
00037
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 eval ("\$lefttxt = \"".$Gui->getTemplate("menue")."\";");
00049 eval ("\$left = \"".$Gui->getTemplate("left")."\";");
00050
00051
00052 $right = '';
00053
00054
00055
00056
00057 $downtext = '';
00058
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 {
00088 $DB->updateStartEnd( $startEnd[0], $_REQUEST[starttime], $endtime );
00089
00090 }
00091 else
00092 {
00093
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
00124
00125 eval ("\$main = \"".$Gui->getTemplate("frames_set")."\";");
00126
00127 eval("doOutput(\"".$Gui->getTemplate("main")."\");");
00128
00129 exit;
00130 ?>