Umfragen
edit.text.php
Go to the documentation of this file.
1 <?php
2 /*
3  * edit.text.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 des Textfeldes. Mit einem Textfeld kann man maximal 256 Zeichen abfragen.</p>";
27 $widget->display_dispName_edit();
28 echo "<br/>";
29 if( $poll->type == POLLTYPE_ADVANCED ){
30  $widget->display_name_edit();
31  echo "<br/>";
32 }
33 $widget->display_required_edit();
34 echo "<br/>";
35 
36 echo "<p>Die Eingabe kann auf bestimmte Werttypen festgelegt werden. Wird dies nicht erfüllt, so wird eine entspechende Fehlermeldung angezeigt und Daten der Umfrage werden nicht gespeichert.</p>";
37 $widget->display_regexp_edit();
38 echo "<br/>";
39 
40 echo "<div class='form_save_container'>";
41 echo "<input type='hidden' name='pollID' value='{$widget->pollID}'/>";
42 echo "<input type='hidden' name='wID' value='{$widget->ID}'/>";
43 echo "
44  <input type='submit' name='save' value='Speichern'/> &nbsp;
45  <input type='submit' name='apply' value='Übernehmen'/>";
46 
47 echo "</div>";
48 
49 echo "</form>";
50 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>";
51 
52 ?>