Umfragen
edit.checkBoxSingle.php
Go to the documentation of this file.
1 <?php
2 /*
3  * edit.CheckBoxSingle.php
4  *
5  * Copyright 2012 Johannes <jojo@jojo-42>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20  * MA 02110-1301, USA.
21  *
22  *
23  */
24 echo "<form action='edit.handle.php' method='POST'>";
25 
26 echo "<p>Einstellungen der Checkbox. Mit der Checkbox können einfache Ja/Nein Fragen abgefragt werden. </p>";
27 if ($poll->type == POLLTYPE_SIMPLE){
28  echo "<p>Folgende Werte werden gespeichert. Um eigene Werte zu verwenden bitte erweiterte Umfrage starten.</p>";
29  echo '<ul><li>Checkbox aktiv (angeklickt) => "Ja"</li> <li>Checkbox inaktiv => "Nein"</li> </ul>';
30 }
31 echo "<hr style='width:80%;margin-bottom:2em' />";
32 
33 $widget->display_dispName_edit();
34 echo "<br/>";
35 if( $poll->type == POLLTYPE_ADVANCED ){
36  $widget->display_name_edit();
37  echo "<br/>";
38  echo "<br/>";
39  $widget->display_config_edit();
40  echo "<br/>";
41 }
42 
43 echo "<br/>";
44 $widget->display_required_edit();
45 echo "<br/>";
46 
47 echo "<br/>";
48 $widget->display_show_charts_edit();
49 echo "<br/>";
50 $widget->display_chartType_edit();
51 
52 
53 echo "<br/>";
54 echo "<br/>";
55 $widget->display_max_edit();
56 echo "<br/>";
57 
58 echo "<div class='form_save_container'>";
59 echo "<input type='hidden' name='pollID' value='{$widget->pollID}'/>";
60 echo "<input type='hidden' name='wID' value='{$widget->ID}'/>";
61 echo "
62  <input type='submit' name='save' value='Speichern'/> &nbsp;
63  <input type='submit' name='apply' value='Übernehmen'/>";
64 
65 echo "</div>";
66 
67 echo "</form>";
68 echo "<div class='export_widget_box'>Frage <a href='action.widget.php?pollID={$poll->ID}&amp;widgetID={$widget->ID}&amp;action=export_XML_widget'>exportieren</a></div>";
69 
70 ?>