Umfragen
edit.matrix.php
Go to the documentation of this file.
1 <?php
2 /*
3  * edit.matrix.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 
25 
26 echo "<form action='edit.handle.php' method='POST'>";
27 // misc settings
28 $widget->display_show_charts_edit();
29 echo "<br/>";
30 $widget->display_chartType_edit();
31 echo "<br/>";
32 
33 // OPTIONS
34 echo "<h2 style='margin-left:-1em'>Spalten (Antworten)</h2>";
35 $widget->display_dispName_edit();
36 echo "<br/>";
37 echo "<br/>";
38 $widget->display_option_list_edit($poll->type);
39 
40 // QUESTIONS
41 echo "<h2 style='margin-left:-1em' >Zeilen (Fragen)</h2>";
42 $widget->display_numberQuestion_edit();
43 echo "<br/>";
44 echo "<br/>";
45 $widget->display_question_list_edit( $poll->type );
46 
47 
48 echo "<div class='form_save_container'>";
49 echo "<input type='hidden' name='pollID' value='{$widget->pollID}'/>";
50 echo "<input type='hidden' name='wID' value='{$widget->ID}'/>";
51 echo "
52  <input type='submit' name='save' value='Speichern'/> &nbsp;
53  <input type='submit' name='apply' value='Übernehmen'/>";
54 
55 echo "</div>";
56 echo "</form>";
57 
58 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>";
59 
60 
61 ?>
62