44 3 =>
"April", 4 =>
"Mai", 5 =>
"Juni",
45 6 =>
"Juli", 7 =>
"August", 8 =>
"September",
46 9 =>
"Oktober", 10 =>
"November", 11 =>
"Dezember" );
82 $ok =
$db->is_results_empty($this->ID);
84 if( ($val ==
true) AND (($this->anonymous ===
false) OR ($this->is_public ===
true)) ){
86 $err =
"Die Umfrage konnte nicht anonymisiert werden, da bereits Daten vorhanden sind. Bitte diese auswerten und löschen.";
88 $this->anonymous =
true;
89 $db->delete_all_result($this->ID);
90 $db->update_poll_field($this->ID,
"anonymous",
"1");
93 }
else if( ($val ==
false) AND ($this->anonymous ===
true) ){
95 $err =
"Die Anonymisierung der Umfrage konnte nicht zurück gezogen werden, da bereits Daten vorhanden sind. Bitte diese auswerten und löschen.";
97 $this->anonymous =
false;
98 $db->update_poll_field($this->ID,
"anonymous",
"0");
99 if( in_array($_SESSION[
"user"]->group,explode(
",",TEACHER_GROUP)) ){
102 $db->klassenliste(
$au,$this);
121 $ok =
$db->is_results_empty($this->ID);
122 if( ($val ===
true) AND ($this->is_public ===
false) ){
124 if( $this->anonymous ===
true ){
126 $err =
"Die Umfrage konnte nicht für externe Benutzer freigegeben werden, da dies eine anonyme Umfrage vorausetzt. Möglicherweise sind noch Daten in den Ergebnissen vorhanden.";
128 $this->is_public =
true;
129 $db->update_poll_field($this->ID,
"anonymous",
"2");
132 $err =
"Um die Umfrage für externe Nutzer freizugeben, muss die Umfrage anonym erfolgen. Bitte dies einstellen.";
135 }
else if( ($val ===
false) AND ($this->is_public ===
true) AND ($this->anonymous ===
true) ){
136 $this->is_public =
false;
137 $db->update_poll_field($this->ID,
"anonymous",
"1");
150 $name = htmlspecialchars(
$name , ENT_QUOTES ,
"UTF-8",
true);
151 if( strlen(
$name) <= 256){
163 $random = substr(md5(mt_rand()),0,7);
164 $str=
"{$this->ID}-{$this->owner}-{$this->name}-{$random}";
176 public function delete(
$db){
186 if(
$name ==
"email_notif" ){
187 if( is_array($value) ){
199 if(
$name ==
"email_notif" ){
214 return serialize($this->
config);
230 if (isset($this->widget_list)){
231 foreach($this->widget_list as &$w){
236 foreach( $w->widget_list as $question ){
237 if ($question->ID ==
$ID){
252 foreach( $this->widget_list as
$widget ){
253 if ($widget->name ==
$name){
257 foreach( $widget->widget_list as $child ){
258 if ($child->name ==
$name){
274 foreach($this->groups as $gr){
275 if( ($group == $gr) OR ($gr ==
"*") ){
287 $timeout = strptime($this->active_since,
"%Y-%m-%d %H:%M:%S");
303 $timeout = strptime($this->timeout,
"%Y-%m-%d %H:%M:%S");
319 $timeout = strptime($this->timeout,
"%Y-%m-%d %H:%M:%S");
322 $m = $this->local_monthNames[
$timeout[
"tm_mon"]];
324 if( ($timeout[
"tm_min"] == 0) AND ($timeout[
"tm_hour"] == 0) ){
327 if($timeout[
"tm_min"] == 0){
328 $time =
" ".$timeout[
"tm_hour"].
"Uhr";
330 $time =
" ".$timeout[
"tm_hour"].
":".$timeout[
"tm_min"];
333 return "{$timeout["tm_mday
"]}. {$m} $y {$time}";
345 if( ($conf ==
"font-family") OR ($conf ==
"font-size") OR ($conf ==
"font-bold") ){
352 foreach( $this->widget_list as
$widget ){
353 $f = $widget->get_config($conf_name);
358 if(
sizeof(
$count) != 0 ){
359 asort(
$count,SORT_NUMERIC);
360 $winner = array_slice(
$count , -1,1,
true);
361 $winner = array_keys($winner);
362 $winner = $winner[0];
379 if( !((isset($this->
name)) AND ($this->
name !=
"")) ){
383 if( $this->is_public ===
false ){
384 if( !isset($this->groups) ){
386 $reason[] =
"groups";
388 if( (
sizeof($this->groups) == 0) OR ((
sizeof($this->groups) > 0) AND ($this->groups[0] ==
"") ) ){
390 $reason[] =
"groups";
396 if( !( (isset($this->timeout)) AND ($this->timeout !=
"") ) ){
398 $reason[] =
"timeout";
400 if( !( (isset($this->widget_list)) AND (
sizeof($this->widget_list) > 0) ) ){
402 $reason[] =
"widget_list";
420 $this->widget_list =
$db->load_poll($this->ID);
430 $poll_infos =
$db->get_poll_infoArray( $pollID ) ;
431 if( ($poll_infos !==
false) AND(
sizeof($poll_infos) > 0) ){
432 $this->ID = intval($pollID);
433 $this->hashID = $poll_infos[
"hashID"];
434 $this->groups = explode(
",",$poll_infos[
"groups"]);
435 $this->timeout = $poll_infos[
"timeout"];
436 $this->active_since = $poll_infos[
"active_since"];
437 $this->
name = $poll_infos[
"name"];
438 $this->owner = intval($poll_infos[
"owner"]);
439 $this->owner_fn = $poll_infos[
"owner_fn"];
440 $this->status = intval($poll_infos[
"status"]);
441 $this->type = intval($poll_infos[
"type"]);
442 $this->anonymous = (bool) $poll_infos[
"anonymous"] ;
443 $this->theme = $poll_infos[
"theme"] ;
444 if( (
int) $poll_infos[
"anonymous"] > 1 ){
445 $this->is_public =
true;
447 $this->noDisplay = (bool) $poll_infos[
"noDisplay"];
450 if( isset($poll_infos[
"config"]) AND ($poll_infos[
"config"] !=
"") ){
451 $this->
config = unserialize($poll_infos[
"config"]);
453 if( !is_array($this->
config) ){
470 $res =
$db->get_poll_result_for_user($this->ID,$username);
471 if( $res !==
false ){
472 $keys = array_keys($res);
473 foreach($this->widget_list as &
$widget){
475 $widget->value = $res[$widget->name];
478 foreach( $widget->widget_list as $child ){
479 if( (in_array($child->name,
$keys)) ){
480 $child->value = $res[$child->name];
495 foreach($this->widget_list as $w){
497 $w->set_data(
"users",
$db->get_schedule_widget_data($w) );
520 if ( ($index >= 0) AND ($index <
sizeof($this->widget_list)) ){
525 $temp[] = $this->widget_list[
$i];
528 $temp[
sizeof($temp)-1]->index = $temp[
sizeof($temp)-1]->index+1;
540 $this->widget_list = $temp;
543 }
else if ($index == -1){
544 $this->widget_list[] = $w;
546 $this->widget_list[
$i ]->index =
$i;
558 $del_w_passed =
false;
562 if( $this->widget_list[
$i]->ID != $id ){
564 if($del_w_passed ==
true){
565 $this->widget_list[
$i]->index = $this->widget_list[
$i]->index-1;
567 $temp[] = $this->widget_list[
$i];
570 $del_w_passed =
true;
573 $this->widget_list = $temp;
577 $db->delete_widget($this->ID,$id);
579 $childs = $wid->get_all_childs();
580 foreach( $childs as $child ){
581 $db->delete_widget($this->ID,$child->ID);
583 $db->delete_widget($this->ID,$id);
585 $db->mass_update_widget($this->widget_list);
597 if( (isset($this->widget_list[$index1])) AND (isset($this->widget_list[$index2])) ){
601 if( $index1 > $index2 ){
605 $this->widget_list[$index1]->index =
$i;
606 $temp[] = $this->widget_list[$index1];
610 if( (
$i >= $index2) AND (
$i < $index1) ){
611 ++$this->widget_list[
$i]->index;
615 $temp[] = $this->widget_list[
$i];
620 }
else if($index1 < $index2){
624 if( (
$i <= $index2) AND (
$i > $index1) ){
625 --$this->widget_list[
$i]->index;
629 $temp[] = $this->widget_list[
$i];
633 $this->widget_list[$index1]->index =
$i;
634 $temp[] = $this->widget_list[$index1];
639 if(
sizeof($temp) > 0){
640 $this->widget_list = $temp;
641 $db->mass_update_widget($this->widget_list);
662 return $db->update_poll_field($this->ID ,
"name" , $this->
name);
671 if( (
sizeof($this->groups) > 0) OR ($this->groups ===
"*") ){;
674 if($this->groups ===
"*"){
677 foreach($this->groups as $group){
683 return $db->update_poll_field($this->ID ,
"groups" ,
$data);
694 return $db->update_poll_field($this->ID ,
"timeout" , $this->timeout);
703 return $db->update_poll_field($this->ID ,
"noDisplay" , $this->noDisplay);
712 return $db->update_poll_field($this->ID ,
"theme" , $this->theme);
721 $val = serialize($this->
config);
722 return $db->update_poll_field($this->ID ,
"config" , $val);
735 foreach($this->widget_list as &$wid){
748 foreach($this->widget_list as $w){
750 $e = $w->handle_inpt();
753 $errors = array_merge($errors,$e);
768 echo
"<input type='text' name='poll_name' id='poll_name' value='{$this->name}' placeholder='Umfragetitel' size='30'/>";
778 if( isset($_POST[
"poll_name"]) AND ($_POST[
"poll_name"] !=
"")){
779 if( !$this->
set_name($_POST[
"poll_name"])){
783 $err_reason =
"Bitte in den Umfrageeigenschaften den Namen der Umfrage angeben.";
801 $groups = $auth->get_all_groups($whitelist);
804 if( $this->is_public ===
true ){
805 $deactivated =
"disabled='disabled'";
807 echo
"<select multiple='multiple' size='5' name='poll_group_select[]' $deactivated>";
809 if( in_array(
"*",$this->groups) ){
810 echo
"<option value='*' selected='selected'>Alle</option>";
812 echo
"<option value='*'>Alle</option>";
816 if( in_array($g[1],$this->groups) ){
817 echo
"<option value='{$g[1]}' selected='selected'>{$g[0]}</option>";
819 echo
"<option value='{$g[1]}'>{$g[0]}</option>";
824 echo
"<p>Keine Gruppen verfügbar.</p>";
836 $groups_all = $auth->get_all_groups($whitelist);
837 $groups_selected = array();
838 $groups_all_wildcard =
false;
839 if(
sizeof($groups_all) > 0){
841 $groups_IDs = array();
842 foreach($groups_all as $gr){
843 $groups_IDs[] = intval($gr[1]);
846 if( $this->is_public ===
false ){
847 if( (isset($_POST[
"poll_group_select"])) AND (
sizeof($_POST[
"poll_group_select"])>0) ){
848 foreach( $_POST[
"poll_group_select"] as $gid_in){
850 if( in_array( intval($gid_in), $groups_IDs) ){
851 $groups_selected[] = intval($gid_in);
853 }
else if($gid_in ==
"*"){
854 $groups_all_wildcard =
true;
858 $err_reason =
"Bitte in den Umfrageeigenschaften die Klassenbeschränkung der Umfrage angeben.";
861 $groups_all_wildcard =
true;
864 $err_reason =
"Fehler bei der Verarbeitung. Keine Gruppen gefunden.";
868 if ( (
sizeof($groups_selected) != 0) OR ($groups_all_wildcard ==
true) ){
869 if ($groups_all_wildcard ==
true){
870 $this->groups = array(
"*");
872 $this->groups = $groups_selected;
875 $err_reason =
"Bitte in den Umfrageeigenschaften die Klassenbeschränkung der Umfrage angeben.";
892 if (
$i == $seleced ){
893 echo
"<option value='$i' selected='selected'>$i</option>";
895 echo
"<option value='$i'>$i</option>";
906 $timeout = strptime($this->timeout,
"%Y-%m-%d %H:%M:%S");
929 if($this->timeout !=
"0000-00-00 00:00:00"){
935 echo
"<script type='text/javascript'>";
936 echo
"document.write(\"<input type='text' id='poll_timeout_datepicker' name='poll_timeout_datepicker' placeholder='TT-MM-JJJJ' value='$val'/>\");";
937 echo
"$( \"#poll_timeout_datepicker\" ).datepicker({dateFormat: \"dd-mm-yy\" });";
941 echo
"<label for='poll_timeout_day'>Tag:</label>";
942 echo
"<select name='poll_timeout_day' id='poll_timeout_day'>";
943 for(
$i=1 ;
$i<=31 ; ++
$i){
948 echo
"<label for='poll_timeout_month'>Monat:</label>";
949 echo
"<select name='poll_timeout_month' id='poll_timeout_month'>";
950 for(
$i=1 ;
$i<=12 ; ++
$i){
955 echo
"<label for='poll_timeout_year'>Jahr:</label>";
956 echo
"<input type='text' value='$y' name='poll_timeout_year' id='poll_timeout_year' size='4'/>";
961 echo
"<div style='margin:0px;padding:0px;margin-top:.3em;'>";
962 echo
"<label for='poll_timeout_hour'>Stunde:</label>";
963 echo
"<select name='poll_timeout_hour' id='poll_timeout_hour'>";
969 echo
"<label for='poll_timeout_min'>Minute:</label>";
970 echo
"<select name='poll_timeout_min' id='poll_timeout_min'>";
1000 if( (isset($_POST[
"poll_timeout_datepicker"])) AND ($_POST[
"poll_timeout_datepicker"] !=
"" ) AND
1001 (is_numeric($_POST[
"poll_timeout_min"])) AND (is_numeric($_POST[
"poll_timeout_hour"])) ){
1003 $d = explode(
"-",$_POST[
"poll_timeout_datepicker"]);
1004 if( (
sizeof($d)==3) ){
1005 $day = intval($d[0]);
1006 $month = intval($d[1]);
1007 $year = intval($d[2]);
1008 $hour = intval($_POST[
"poll_timeout_hour"]);
1009 $min = intval($_POST[
"poll_timeout_min"]);
1016 $err_reason =
"Das Datumsformat der automatischen Deaktivierung der Umfrage ist ungültig.";
1018 }
else if ( (!is_numeric($_POST[
"poll_timeout_day"])) OR (!is_numeric($_POST[
"poll_timeout_month"])) OR
1019 (!is_numeric($_POST[
"poll_timeout_year"])) OR (!is_numeric($_POST[
"poll_timeout_hour"])) OR
1020 (!is_numeric($_POST[
"poll_timeout_min"])) ){
1021 $err_reason =
"Das Datum der automatischen deaktivierung der Umfrage ist entweder nicht gültig oder nicht eingestellt.";
1023 $day = intval($_POST[
"poll_timeout_day"]);
1024 $month = intval($_POST[
"poll_timeout_month"]);
1025 $year = intval($_POST[
"poll_timeout_year"]);
1026 $hour = intval($_POST[
"poll_timeout_hour"]);
1027 $min = intval($_POST[
"poll_timeout_min"]);
1037 if (checkdate($month,$day,$year)){
1038 if( ($hour>=0) AND ($hour<24) AND ($min>=0) AND ($min<60)){
1039 $datetime =
"$year-$month_s-$day_s $hour_s:$min_s:00";
1041 $err_reason =
"Das Datumsformat der automatischen Deaktivierung ist ungültig!";
1044 $err_reason =
"Das Datumsformat der automatischen Deaktivierung ist ungültig!";
1048 if( $datetime !=
"" ){;
1049 $this->timeout = $datetime;
1061 $stati_names = array(
"Aktiv",
"Unvollständig" ,
"Deaktiviert" ,
"Vorlage" ,
"Archiv");
1062 $stati_colors = array(
"#BCF6A9" ,
"#F6E7A9" ,
"#FF9792" ,
"#C1DEE2" ,
"#C6C1E2");
1063 $options_status =
"<option value='' style='padding:2px'></option>";
1065 foreach( $stati as $st ){
1067 if( $this->status == $st ){
1068 $sel =
"selected='selected'";
1070 $options_status .=
"<option value='$st' $sel style='background-color:{$stati_colors[$i]};padding:2px'>{$stati_names[$i]}</option>";
1074 echo
"<label for='poll_status'>Status:</label>";
1075 echo
"<select size='1' name='poll_status' id='poll_status'>
1079 echo
"Diese Vorlage wird geteilt.";
1089 if( (isset($_POST[
"poll_status"])) AND ($_POST[
"poll_status"] !=
"") ){
1103 $db->update_poll_field($this->ID ,
"active_since", date(
"Y-m-d H:i:s") );
1105 return "Die Umfrage konnte nicht aktiviert werden, da noch einige Elemente in der Einstellung fehlen.";
1110 $db->update_poll_field($this->ID ,
"active_since",
"0000-00-00 0:0:0" );
1114 return "Umfragestatus nicht ausgewählt";
1123 echo
"Spaltentrennung durch: ";
1124 echo
"<select name='delimiter' size='1'>";
1125 echo
"<option value=';' selected='selected'>Semicolon (;)</option>";
1126 echo
"<option value=','>Kommata (,)</option>";
1128 echo
"<br/>Textbegrenzung durch: ";
1129 echo
"<select name='enc' size='1'>";
1130 echo
"<option value='single'>einfaches Hochkomma (')</option>";
1131 echo
"<option value='double' selected='selected'>doppeltes Hochkomma (\")</option>";
1145 if( (isset($_GET[
"delimiter"])) ){
1146 if($_GET[
"delimiter"] ==
";"){
1148 }
else if($_GET[
"delimiter"] ==
","){
1152 if( isset($_GET[
"enc"]) ){
1153 if( $_GET[
"enc"] ==
"single" ){
1155 }
else if( $_GET[
"enc"] ==
"double" ){
1161 }
else if($dl ===
false){
1173 "Andale Mono" =>
"andale mono,times",
"Arial" =>
"arial,helvetica,sans-serif",
1174 "Arial Black" =>
"arial black,avant garde",
"Book Antiqua" =>
"book antiqua,palatino",
1175 "Comic Sans MS" =>
"comic sans ms,sans-serif",
"Courier New" =>
"courier new,courier",
1176 "Georgia" =>
"georgia,palatino",
"Helvetica" =>
"helvetica",
1177 "Impact" =>
"impact,chicago",
"Symbol" =>
"symbol",
1178 "Tahoma" =>
"tahoma,arial,helvetica,sans-serif",
"Terminal" =>
"terminal,monaco",
1179 "Times New Roman" =>
"times new roman,times",
"Trebuchet MS" =>
"trebuchet ms,geneva",
1180 "Verdana" =>
"verdana,geneva",
"Webdings" =>
"webdings",
1181 "Wingdings" =>
"wingdings,zapf dingbats"
1186 echo
"<select name='poll_font_family_select'>";
1187 $names = array_keys($fonts);
1189 echo
"<option value=''>Standard</option>";
1190 foreach( $names as
$name ){
1191 if( $fonts[$name] == $font ){
1192 $sel =
"selected='selected'";
1194 echo
"<option value='$name' style='font-family:{$fonts[$name]}' $sel> $name </option>";
1205 "Andale Mono" =>
"andale mono,times",
"Arial" =>
"arial,helvetica,sans-serif",
1206 "Arial Black" =>
"arial black,avant garde",
"Book Antiqua" =>
"book antiqua,palatino",
1207 "Comic Sans MS" =>
"comic sans ms,sans-serif",
"Courier New" =>
"courier new,courier",
1208 "Georgia" =>
"georgia,palatino",
"Helvetica" =>
"helvetica",
1209 "Impact" =>
"impact,chicago",
"Symbol" =>
"symbol",
1210 "Tahoma" =>
"tahoma,arial,helvetica,sans-serif",
"Terminal" =>
"terminal,monaco",
1211 "Times New Roman" =>
"times new roman,times",
"Trebuchet MS" =>
"trebuchet ms,geneva",
1212 "Verdana" =>
"verdana,geneva",
"Webdings" =>
"webdings",
1213 "Wingdings" =>
"wingdings,zapf dingbats"
1216 if ( (isset($_POST[
"poll_font_family_select"])) AND ($_POST[
"poll_font_family_select"] !=
"") ){
1217 if( isset( $fonts[ $_POST[
"poll_font_family_select"] ] ) ){
1218 $value= $fonts[ $_POST[
"poll_font_family_select"] ];
1221 foreach($this->widget_list as
$widget){
1222 $widget->set_config(
"font-family",$value);
1232 "1 (8pt)" =>
"xx-small",
"2 (10pt)" =>
"x-small",
"3 (12pt)" =>
"small",
1233 "4 (14pt)" =>
"medium",
"5 (18pt)" =>
"large" ,
"6 (24pt)" =>
"x-large"
1237 $names = array_keys($sizes);
1239 echo
"<select name='poll_font_size_select' style='height:2em'>";
1241 echo
"<option value=''>Standard</option>";
1242 foreach( $names as
$name ){
1243 if( $sizes[$name] == $size ){
1244 $sel =
"selected='selected'";
1246 echo
"<option value='{$sizes[$name]}' style='font-size:{$sizes[$name]}' $sel> $name </option>";
1257 "xx-small" =>
"xx-small",
"x-small" =>
"x-small",
"small" =>
"small",
1258 "medium" =>
"medium",
"large" =>
"large" ,
"x-large" =>
"x-large"
1261 if ( (isset($_POST[
"poll_font_size_select"])) AND ($_POST[
"poll_font_size_select"] !=
"") ){
1262 if( isset( $sizes[ $_POST[
"poll_font_size_select"] ] ) ){
1263 $value= $sizes[ $_POST[
"poll_font_size_select"] ];
1266 foreach($this->widget_list as
$widget){
1267 $widget->set_config(
"font-size",$value);
1277 if( $bold ==
true ){
1278 $sel =
"checked='checked'";
1281 echo
"<input type='checkbox' name='poll_font_bold_checkbox' value='bold' $sel/> Fragen fett darstellen";
1290 if( (isset($_POST[
"poll_font_bold_checkbox"])) AND ($_POST[
"poll_font_bold_checkbox"] ==
"bold") ){
1293 foreach($this->widget_list as
$widget){
1294 $widget->set_config(
"font-bold",$value);
1303 if( $this->noDisplay ==
true ){
1304 $sel =
"checked='checked'";
1307 echo
"<input type='checkbox' name='poll_noDisplay_checkbox' value='noDisplay' $sel/> <u>nicht</u> auf der Hauptseite anzeigen.";
1316 if( (isset($_POST[
"poll_noDisplay_checkbox"])) AND ($_POST[
"poll_noDisplay_checkbox"] ==
"noDisplay") ){
1319 $this->noDisplay = $value;
1327 $names = array(
"Nicht anonym",
"Anonym",
"Anonym und öffentlich");
1328 $vals = array(
"1",
"2",
"3");
1330 if( $this->anonymous ==
true ){
1332 if( $this->is_public ==
true ){
1336 echo
"<select name='poll_anonymous_public'>";
1337 for(
$i=0 ;
$i<
sizeof($names) ; ++
$i){
1339 if( $s == $vals[
$i] ){
1340 $sel =
"selected='selected'";
1342 echo
"<option value='{$vals[$i]}' {$sel}>{$names[$i]}</option>";
1355 $err =
""; $err2=
"";
1356 if( isset($_POST[
"poll_anonymous_public"]) ){
1358 if( $_POST[
"poll_anonymous_public"] ==
"1" ){
1361 }elseif( $_POST[
"poll_anonymous_public"] ==
"2" ){
1364 }elseif( $_POST[
"poll_anonymous_public"] ==
"3" ){
1365 if( $this->anonymous ==
false ){
1371 if( (
$err !=
"") OR ($err2 !=
"") ){
1372 return array(
$err, $err2);
1382 if ( (isset($_POST[
"poll_anonymous"])) ){
1383 $this->anonymous =
true;
1385 $this->anonymous =
false;
1387 if( (isset($_POST[
"poll_public"]) ) ){
1388 $this->is_public =
true;
1390 $this->is_public =
false;
1401 $themeList = array();
1402 $themeListDisp = array();
1403 while( ($ent = readdir($dir)) !==
false ){
1405 if( (is_dir($ent) ===
false) AND ( substr($ent,-4,4) ==
".css" ) ){
1406 $themeListDisp[] = substr($ent,0,-4);
1407 $themeList[] = $ent;
1413 echo
"<select name='poll_theme'> ";
1414 echo
"<option value=''>Standard</option>";
1415 for(
$i=0 ;
$i<
sizeof($themeList) ; ++
$i ){
1417 $themeDisp = $themeListDisp[
$i];
1419 if(
$theme == $this->theme){
1420 echo
"<option value='$theme' selected='selected'>$themeDisp</option>";
1422 echo
"<option value='$theme'>$themeDisp</option>";
1435 if( (isset($_POST[
"poll_theme"])) AND ($_POST[
"poll_theme"] !=
"") ){
1437 $themeList = array();
1438 while( ($ent = readdir($dir)) !==
false ){
1439 $themeList[] = $ent;
1444 $themeList = array_diff($themeList , array(
".",
"..") );
1446 if( in_array($_POST[
"poll_theme"],$themeList) ){
1447 $this->theme = $_POST[
"poll_theme"];
1463 echo
"Mich per E-mail benachichtigen wenn:<br/>";
1465 if( in_array(
"insert",$cnf) ){
1466 $checked =
"checked='checked'";
1468 echo
"<input type='checkbox' name='poll_notification_insert' id='poll_notification_insert' value='true' $checked/> <label for='poll_notification_insert'>Neuer Datensatz</label><br/>";
1470 if( in_array(
"update",$cnf) ){
1471 $checked =
"checked='checked'";
1473 echo
"<input type='checkbox' name='poll_notification_update' id='poll_notification_update' value='true' $checked/> <label for='poll_notification_update'>Datensatz aktualisiert</label><br/>";
1482 if( (isset($_POST[
"poll_notification_insert"])) AND ($_POST[
"poll_notification_insert"] ==
"true") ){
1485 if( (isset($_POST[
"poll_notification_update"])) AND ($_POST[
"poll_notification_update"] ==
"true") ){
1489 $cnf = array_merge($cnf,$new);