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
00030
00031 include_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.parse.php');
00032
00033
00034
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 eval ("\$lefttxt = \"".$Gui->getTemplate("menue")."\";");
00046 eval ("\$left = \"".$Gui->getTemplate("left")."\";");
00047
00048
00049 $right = '';
00050
00051
00052
00053
00054 $downtext = '';
00055
00056
00057
00058
00059 $tableBorder = 0;
00060
00061 if ($_REQUEST[btn_accept] == "OK" )
00062 {
00063 if ($_REQUEST[newKeyword] != "")
00064 {
00065 $DB->addKeyword( $DP_UId, $_REQUEST[newKeyword] );
00066 }
00067
00068 if ($_REQUEST[keyword] != "" AND $_REQUEST[changedKeyword] != "")
00069 {
00070 $DB->updateKeyword( $_REQUEST[keyword], $_REQUEST[changedKeyword] );
00071 }
00072
00073 }
00074
00075 if ( $_REQUEST[btn_delete] == "$DP_language[delete]" )
00076 {
00077 $DB->delKeyword( $_REQUEST[keyword] );
00078 }
00079
00080 if ( $_REQUEST[btn_time] == "OK" )
00081 {
00082 $startEnd = $DB->getStartEnd( $DP_UId );
00083 if ( $startEnd[0] != "" )
00084 {
00085 $DB->updateStartEnd( $startEnd[0], $_REQUEST[starttime], $endtime );
00086
00087 }
00088 else
00089 {
00090
00091 $DB->addStartEnd( $DP_UId, $_REQUEST[starttime], $_REQUEST[endtime] );
00092
00093 }
00094 $_SESSION[DP_Starttime] = $_REQUEST[starttime];
00095 $_SESSION[DP_Endtime] = $_REQUEST[endtime];
00096 }
00097
00098
00099
00100 $keywords = $DB->getKeywords($DP_UId);
00101 $x="";
00102 for ($i = 0; $i < count($keywords); $i++)
00103 {
00104 $keywordText = $keywords[$i][1];
00105 $keywordID = $keywords[$i][0];
00106 $options ="<option value='$keywordID'>$keywordText</option>";
00107 $x = $x.$options;
00108 }
00109 $optionBox = $x;
00110
00111
00112
00113 if($_FILES) {
00114 $parsedata = parse($DB,$_FILES);
00115 }
00116
00117 eval ("\$centertxt = \"".$Gui->getTemplate("properties_main")."\";");
00118
00119
00120
00121
00122 eval ("\$main = \"".$Gui->getTemplate("frames_set")."\";");
00123
00124 eval("doOutput(\"".$Gui->getTemplate("main")."\");");
00125
00126 exit;
00127 ?>