Submit

Erstellt einen Versenden-Button.

Vorschau

 submit_1

Beispiel

QuelltextSmarty Code:
  1. <form name="extra" method="post" >
  2. <div align="center">
  3. <table class="table">
  4.     <tr>
  5.         <td class="cell">
  6.             {input version=5 type="submit" name="input_submit" title="Submit"}
  7.             <br />
  8.         </td>
  9.     </tr>
  10.     <tr>
  11.         <td class="cell">
  12.             {$msg}
  13.         </td>
  14.     </tr>
  15. </table>
  16. </div>
  17. </form>
  18. <script language="javascript">
  19. {literal}
  20. function do_load()
  21. {
  22. }

  23. function do_unload()
  24. {
  25.     window.parent.unload_extra();
  26. }
  27. {/literal}
  28. </script>

Es wird eine zugehörige php-Datei benötigt (in der navigation.ini festzulegen) und der <form> tag muss um method="post" erweitert werden

Ausschnitt aus der navigation.ini

[Plugin-Submit]
url = "extra.php?tpl_name=test/admin/submit.html&script_name=test/admin/submit.php"
title = submit

Ausschnitt aus der submit.php

QuelltextPHP Code:
  1. <?php
  2. if($_REQUEST['extra']['input_submit']){
  3.     $smarty->assign('msg', 'Formular verschickt');
  4. }else{
  5.     $smarty->assign('msg', 'Noch nicht abgeschick');
  6. }
  7. ?>
Tel: +49 (0)6261 / 6743-0
Fax: +49 (0)6261 / 6743-29
E-Mail: info@egotec.com
EGOTEC GmbH
Hauptstraße 130
D-74821 Mosbach
Erstellt mit EGOTEC® Internet: www.egotec.com © EGOTEC GmbH