gnopaste

Sorry for this ugly message. We are searching for some translators.
Please take a look here
Thanks to all translators, you're doing a great job!

Name
func
Scriptlanguage
PHP
Tabwidth
4
Date
03/01/2010 05:02:29 pm
IP
79.222.42.87

hauptdatei

  1. <?php
  2.  
  3. $tmpfile = "tmp.php";
  4.  
  5. include("func.php");
  6.  
  7. $inputs = addedinputs($tmpfile);
  8. $uniqueinputs = array_unique($inputs);
  9. array_shift($uniqueinputs);
  10.  
  11. include("editform.php");
  12. include("createform.php");
  13. include("tools.php");
  14.  
  15. if(is_file("form.php")){
  16. $sbv = "Formular &auml;ndern";
  17. }else{
  18. $sbv = "Formular erstellen";
  19. }
  20.  
  21. $inputs = addedinputs($tmpfile);
  22.  
  23. ?>
  24. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  25. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  26. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  27. <head>
  28. <title>Kontaktformular-Generator</title>
  29. <meta name="robots" content="noindex,nofollow"/>
  30. <link rel="stylesheet" type="text/css" href="style.css" />
  31. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
  32. <script type="text/javascript" src="ajax.js"></script>
  33.  
  34. </head>
  35. <body <?php if(isset($_GET["type"])){echo 'onload="addinput(\''.$_GET["type"].'\')"';}elseif(isset($_GET["edit"]) && $_GET["edit"] != 'edit' && isset($_GET["id"])){echo 'onload="fademsg()"';}?>>
  36.  
  37. <div id="message" style="display: none;" onclick="closepopup('message')">
  38.     <span><?php echo $msg; ?></span>
  39.     <a href="javascript:closepopup('message')">Meldung ausblenden</a>
  40. </div>
  41.  
  42. <div id="createformpopup" style="display: none;">
  43. <div id="formoptions">
  44. <form method="post" action="index.php?action=createform">
  45.     <br/>
  46.     <a href="javascript:Klapptext('formoptions')" class="formoptions"><img src="images/plus.gif" id="image_formoptions" alt="+" title="Aus/Ein-klappen" border="0">&nbsp;Optionale Einstellungen f&uuml;r das Formular:</a><br/>
  47.     <div id="layer_formoptions" style="display: none;">
  48.         <input type="checkbox" value="checked" name="antispam" checked="checked"/>&nbsp;Anti-Spam aktivieren&nbsp;<span>(empfohlen)</span><br/>
  49.     </div>
  50.     <br/>
  51.     <a href="javascript:closepopup('createformpopup')" class="abortcreateform">Abbrechen</a><input type="submit" name="submitcreateform" value="<?php echo $sbv; ?>" class="submitcreateform"/>
  52. </form>
  53. </div>
  54. </div>
  55.  
  56. <div id="toolbox">
  57.     <a href="index.php?action=preview"><img src="images/preview.gif" width="12" height="12" alt="" border="0" />&nbsp;Vorschau</a>
  58.     <a href="index.php?action=load"><img src="images/load.gif" width="12" height="12" alt="" border="0" />&nbsp;Formular laden</a>
  59.     <a href="index.php?action=save"><img src="images/save.gif" width="12" height="12" alt="" border="0" />&nbsp;Formular speichern</a>
  60.     <a href="javascript:delform()"><img src="images/delete.gif" width="12" height="12" alt="" border="0" />&nbsp;Formular l&ouml;schen</a>
  61. </div>
  62.  
  63. <div id="wrap">
  64. <noscript>Bitte aktivieren Sie Javaskript, um diese Funktion nutzen zu k&ouml;nnen!</noscript>
  65. <div id="selecttype">
  66. <span>Art des Eigabefelds:</span>
  67. <a href="javascript:addinput('txt')"><img src="images/plus.gif" width="" height="" alt="+" border="0"/>&nbsp;Textfeld</a>
  68. <a href="javascript:addinput('select')"><img src="images/plus.gif" width="" height="" alt="+" border="0"/>&nbsp;Auswahlfeld</a>
  69. <a href="javascript:addinput('radio')"><img src="images/plus.gif" width="" height="" alt="+" border="0"/>&nbsp;Radio-Buttons</a>
  70. <a href="javascript:addinput('checkbox')"><img src="images/plus.gif" width="" height="" alt="+" border="0"/>&nbsp;Checkbox</a>
  71. <a href="javascript:addinput('txtarea')"><img src="images/plus.gif" width="" height="" alt="+" border="0"/>&nbsp;gro&szlig;es Textfeld</a>
  72. </div>
  73. <!--<input type="hidden" name="addedinputs" value="0" id="addedinputs"/>-->
  74. <div id="inputs">
  75. <?php
  76.     $addedinputs = array_unique($inputs); // 'none' Werte im 0-Schluessel zusammenfassen
  77.     if(count($addedinputs) == '1'){
  78.         echo '<div style="padding: 5px 0px; font-weight: bold; text-align: center;">Erstellen Sie bitte Ihr Formular!</div>';
  79.     }else{
  80.         ksort($addedinputs);
  81.         array_shift($addedinputs); // 0-Schluessel entfernen
  82.         foreach($addedinputs AS $addedinput){
  83.             $values = explode('[#]', $addedinput);
  84.             $id = $values['0'];
  85.             $type = $values['1'];
  86.             $output = $type; ### Erweitern!
  87.             echo '<div class="input">';
  88.             echo $output;
  89.             echo '<a href="index.php?edit=delete&amp;id='.$id.'" class="delete" title="Eingabefeld l&ouml;schen">&nbsp;</a><a href="index.php?edit=edit&amp;id='.$id.'" class="edit" title="Eingabefeld &uuml;berarbeiten">&nbsp;</a><a href="index.php?edit=down&amp;id='.$id.'" class="down" title="Eingabefeld eine Position nach unten verschieben">&nbsp;</a><a href="index.php?edit=up&amp;id='.$id.'" class="up" title="Eingabefeld eine Position nach oben verschieben">&nbsp;</a></div>';
  90.             
  91.         }
  92.     }
  93. ?>
  94. </div>
  95. <br/>
  96. <div id="addinputbox">
  97. <div id="default" style="display: block;">
  98.     Bitte w&auml;hlen Sie rechts das hinzuzuf&uuml;gende Eingabefeld.
  99. </div>
  100. <div id="txt" style="display: none;">
  101.     <form method="post" action="index.php?type=txt">
  102.     <fieldset>
  103.     <input type="hidden" name="txt" value="0" id="txt_hidden"/>
  104.     <label for="txt_label">Bezeichnung:&nbsp;</label><input type="text" name="label" value="" id="txt_label"/><br/>
  105.     <label for="txt_req">Pflichtfeld:&nbsp;</label><input type="checkbox" name="req" value="1" id="txt_req"/><br/>
  106.     <br/><input type="submit" name="addtxt" value="Eingabefeld hinzuf&uuml;gen" class="addinput"/>
  107.     </fieldset>
  108.     </form>
  109. </div>
  110. <div id="select" style="display: none;">
  111.     <form method="post" action="index.php?type=select">
  112.     <fieldset>
  113.     <input type="hidden" name="select" value="0" id="select_hidden"/>
  114.     <label for="select_label">Bezeichnung:&nbsp;</label><input type="text" name="label" value="" id="select_label"/><br/>
  115.     <label for="select_req">Pflichtfeld:&nbsp;</label><input type="checkbox" name="req" value="1" id="select_req"/><br/>
  116.     <br/><input type="submit" name="addselect" value="Auswahlfeld hinzuf&uuml;gen" class="addinput"/>
  117.     </fieldset>
  118.     </form>
  119. </div>
  120. <div id="radio" style="display: none;">
  121.     <form method="post" action="index.php?type=radio">
  122.     <fieldset>
  123.     <input type="hidden" name="radio" value="0" id="radio_hidden"/>
  124.     <label for="radio_label">Bezeichnung:&nbsp;</label><input type="text" name="label" value="" id="radio_label"/><br/>
  125.     <label for="radio_req">Pflichtfeld:&nbsp;</label><input type="checkbox" name="req" value="1" id="radio_req"/><br/>
  126.     <br/><input type="submit" name="addradio" value="Radio-Button hinzuf&uuml;gen" class="addinput"/>
  127.     </fieldset>
  128.     </form>
  129. </div>
  130. <div id="checkbox" style="display: none;">
  131.     <form method="post" action="index.php?type=checkbox">
  132.     <fieldset>
  133.     <input type="hidden" name="checkbox" value="0" id="checkbox_hidden"/>
  134.     <label for="checkbox_label">Bezeichnung:&nbsp;</label><input type="text" name="label" value="" id="checkbox_label"/><br/>
  135.     <label for="checkbox_req">Pflichtfeld:&nbsp;</label><input type="checkbox" name="req" value="1" id="checkbox_req"/><br/>
  136.     <br/><input type="submit" name="addcheckbox" value="Checkbox hinzuf&uuml;gen" class="addinput"/>
  137.     </fieldset>
  138.     </form>
  139. </div>
  140. <div id="txtarea" style="display: none;">
  141.     <form method="post" action="index.php?type=txtarea">
  142.     <fieldset>
  143.     <input type="hidden" name="txtarea" value="0" id="txtarea_hidden"/>
  144.     <label for="txtarea_label">Bezeichnung:&nbsp;</label><input type="text" name="label" value="" id="txtarea_label"/><br/>
  145.     <label for="txtarea_req">Pflichtfeld:&nbsp;</label><input type="checkbox" name="req" value="1" id="txtarea_req"/><br/>
  146.     <br/><input type="submit" name="addtxtarea" value="gro&szlig;es Eingabefeld hinzuf&uuml;gen" class="addinput"/>
  147.     </fieldset>
  148.     </form>
  149. </div>
  150.  
  151. </div>
  152. </form>
  153. <br/>
  154. <a href="javascript:openpopup('createformpopup')" class="createform">Formular erstellen</a>
  155. </div>
  156. <div id="developmentoutput">
  157.     <b>$inputs</b> = <?php print_r($inputs); ?>
  158.     <br/><br/>
  159.     <b>$addedinputs</b> = <?php print_r($addedinputs); ?>
  160.     <br/><br/>
  161.     <b>$uniqueinputs</b> = <?php print_r($uniqueinputs); ?>
  162. </div>
  163. </body>
  164. </html>
submitter » gnopaster | imprint « imprint     
» Terms of use «


Donate via Bitcoin:
1KCq5UvwuTMwgSAHUsd7eqkBWTHZau1ydN