Inhaltsverzeichnis Smarty Smarty Funktionen {input} Datetime

Datetime

Erstellt ein Eingabeelement zur Auswahl eines Datums + Uhrzeit

Attribut  Typ  Erforderlich  Beschreibung 
only_date  integer  Nein Beschränkt die Auswahl auf das Datum (ohne Uhrzeit)

Vorschau

 date

Beispiel

QuelltextSmarty Code:
  1. <form name="extra">
  2. <div align="center">
  3. <table class="table">
  4.     <tr>
  5.         <td class="cell">
  6.             {input version=5 type="datetime" name="input_datetime" title="Datum" short="Bitte geben Sie ein Datum ein, hier mit Uhrzeit"}
  7.             {input version=5 type="datetime" name="input_datetime_2" title="Datum" short="Bitte geben Sie ein Datum ein, hier ohne Uhrzeit" only_date=1}
  8.             <br />
  9.         </td>
  10.     </tr>
  11. </table>
  12. </div>
  13. </form>
  14. <script language="javascript">
  15. {literal}
  16. function do_load()
  17. {
  18. }

  19. function do_unload()
  20. {
  21.     window.parent.unload_extra();
  22. }
  23. {/literal}
  24. </script>