Umfragen
edit.line.php
Go to the documentation of this file.
1 <?php
2 /*
3  * edit.line.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 $color = $widget->get_value("color");
27 $height = $widget->get_value("height");
28 
29 
30 echo "<form action='edit.handle.php' method='POST'>";
31 
32 echo "<h2 style=';margin-left:-1em'>Abstandstyp festlegen</h2>";
33 $widget->display_type_edit();
34 
35 echo "<h2 style='margin-top:2em;margin-left:-1em'>Abstand Einsellungen</h2>";
36 $widget->display_space_edit();
37 echo "<p>Die Höhe des Abstandes wird mit der Anzahl von Zeilen, die übersprungen werden angegeben. <br/> Kommazahlen sind mit Punkt (.) als Trennung erlaubt. (z.B. 1.5) (Vorgabe ist 1)</p>";
38 
39 
40 echo "<h2 style='margin-top:2em;margin-left:-1em'>Horizontale Linie Einstellungen</h2>";
41 $widget->display_color_edit();
42 echo "<p>HTML-Notaton des Farbwertes (z.B. #2e3436 Vorgabe:Schwarz) Siehe Tabelle.</p>";
43 
44 echo "<table style='text-align:center;margin-left:2em'>";
45 $i = 0;
46 echo "<tr>";
47 foreach( array_slice($widget->colors,1) as $color){
48  if( $i%3 == 0 ){
49  echo "</tr><tr>";
50  }
51  echo "<td> <div style='background-color:$color;border-radius:5px;text-shadow: 0px 1px 1px #D0D0D0'>$color</div> </td>";
52  ++$i;
53 }
54 echo "</tr>";
55 echo "</table>";
56 
57 
58 
59 echo "<div class='form_save_container'>";
60 echo "<input type='hidden' name='pollID' value='{$widget->pollID}'/>";
61 echo "<input type='hidden' name='wID' value='{$widget->ID}'/>";
62 echo "
63  <input type='submit' name='save' value='Speichern'/> &nbsp;
64  <input type='submit' name='apply' value='Übernehmen'/>";
65 
66 echo "</div>";
67 
68 echo "</form>";
69 
70 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>";
71 
72 ?>