cvs: peardoc /de/package/html html-form.xml html-quickform.xml /de/package/html/html-form intro.xml

From: Date: Mon, 23 May 2005 22:15:25 +0000
Subject: cvs: peardoc /de/package/html html-form.xml html-quickform.xml /de/package/html/html-form intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6079@lists.php.net to get a copy of this message
alexmerz Mon May 23 18:15:25 2005 EDT Added files: /peardoc/de/package/html html-form.xml html-quickform.xml /peardoc/de/package/html/html-form intro.xml Log: initial translation

http://cvs.php.net/co.php/peardoc/de/package/html/html-form.xml?r=1.1&p=1 Index: peardoc/de/package/html/html-form.xml +++ peardoc/de/package/html/html-form.xml <?xml version='1.0' encoding='ISO-8859-1' ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 --> <sect1 id="package.html.html-form"> <title>HTML_Form</title> <para> Das ist ein einfacher HTML-Formular-Generator. Er unterstützt alle HTML-Formularelemente einschließlich Datei-Uploads. Das Formular kann entgegengenommen oder ausgegeben werden, als einzelne Elemente oder in kompletter Form mit festen Tabellenlayout. </para> &package.html.html-form.intro; &package.html.html-form.examples; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/de/package/html/html-quickform.xml?r=1.1&p=1 Index: peardoc/de/package/html/html-quickform.xml +++ peardoc/de/package/html/html-quickform.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.html.html-quickform"> <title>HTML_QuickForm</title> <para> Das PEAR::HTML_QuickForm-Package bietet Methoden zur Erzeugung, Überprüfung und Verarbeitung von HTML-Formular. </para> <sect2 id="package.html.html-quickform.introduction"> <title>Einführung</title> <para> QuickForm ist eine umfangreiche Bibliothek zum Umgang mit HTML-Formularen. Es bietet die Validierung von Eingaben auf Client-Seite (über JavaScript) und Serverseitig, und ist auf viele Arten anpass- und erweiterbar. QuickForm umfasst viele Dateien. Die Hauptdatei ist <filename>QuickForm.php</filename> und sollte sich im Verzeichnis <filename class="directory">pear/HTML</filename> befinden. Weitere wichtige Dateien sind <filename>element.php</filename>, die alle relevanten Methoden für Formularelemente enthält, und <filename>group.php</filename>, welche Methoden enthält, die sich auf Gruppen von Elementen beziehen. Beide befinden sich im Verzeichnis <filename class="directory">HTML/QuickForm</filename> mit den anderen Formularobjekten. Die Datei <filename>input.php</filename> enthält eine allgemeine Klasse für alle Eingabeelemente (Text, Password ...). QuickForm besitzt Objekte alle üblichen Formularelemente: Select, Text, Password, Checkbox, File, Submit, Reset, Button, Image, Radio, Hidden, Textarea. QuickForm ermöglicht die Erzeugung eigener Elemente, solange sie übereinstimmen mit dem allgemeinen Befehlssatz. </para> &package.html.html-quickform.tutorial; &package.html.html-quickform.intro-faq; &package.html.html-quickform.intro-elements; &package.html.html-quickform.intro-migration32; </sect2> <sect2 id="package.html.html-quickform.basic-form"> <title>Grundlegende Formularerzeugung</title> &package.html.html-quickform.html-quickform.html-quickform; &package.html.html-quickform.html-quickform.addelement; &package.html.html-quickform.html-quickform.apiversion; &package.html.html-quickform.html-quickform.createelement; &package.html.html-quickform.html-quickform.elementexists; &package.html.html-quickform.html-quickform.errormessage; &package.html.html-quickform.html-quickform.getelementtype; &package.html.html-quickform.html-quickform.getelement; &package.html.html-quickform.html-quickform.getmaxfilesize; &package.html.html-quickform.html-quickform.getregisteredtypes; &package.html.html-quickform.html-quickform.insertelementbefore; &package.html.html-quickform.html-quickform.iserror; &package.html.html-quickform.html-quickform.istyperegistered; &package.html.html-quickform.html-quickform.registerelementtype; &package.html.html-quickform.html-quickform.removeelement; &package.html.html-quickform.html-quickform.setmaxfilesize; &package.html.html-quickform.html-quickform.updateelementattr; </sect2> <sect2 id="package.html.html-quickform.elements"> <title>Klassen für die Fomularelemente</title> <sect3 id="package.html.html-quickform.elements.base"> <title>Basisklassen</title> &package.html.html-quickform.html-quickform-element; &package.html.html-quickform.html-quickform-element.html-quickform-element; &package.html.html-quickform.html-quickform-element.accept; &package.html.html-quickform.html-quickform-element.apiversion; &package.html.html-quickform.html-quickform-element.exportvalue; &package.html.html-quickform.html-quickform-element.freeze; &package.html.html-quickform.html-quickform-element.getfrozenhtml; &package.html.html-quickform.html-quickform-element.getlabel; &package.html.html-quickform.html-quickform-element.getname; &package.html.html-quickform.html-quickform-element.gettype; &package.html.html-quickform.html-quickform-element.getvalue; &package.html.html-quickform.html-quickform-element.isfrozen; &package.html.html-quickform.html-quickform-element.onquickformevent; &package.html.html-quickform.html-quickform-element.setlabel; &package.html.html-quickform.html-quickform-element.setname; &package.html.html-quickform.html-quickform-element.setpersistantfreeze; &package.html.html-quickform.html-quickform-element.setvalue; &package.html.html-quickform.html-quickform-element.unfreeze; &package.html.html-quickform.html-quickform-input; &package.html.html-quickform.html-quickform-input.html-quickform-input; &package.html.html-quickform.html-quickform-input.settype; </sect3> <sect3 id="package.html.html-quickform.elements.standard"> <title>Standard-HTML-Elemente</title> &package.html.html-quickform.html-quickform-button; &package.html.html-quickform.html-quickform-button.html-quickform-button; &package.html.html-quickform.html-quickform-checkbox; &package.html.html-quickform.html-quickform-checkbox.html-quickform-checkbox; &package.html.html-quickform.html-quickform-checkbox.getchecked; &package.html.html-quickform.html-quickform-checkbox.gettext; &package.html.html-quickform.html-quickform-checkbox.setchecked; &package.html.html-quickform.html-quickform-checkbox.settext; &package.html.html-quickform.html-quickform-file; &package.html.html-quickform.html-quickform-file.html-quickform-file; &package.html.html-quickform.html-quickform-file.getsize; &package.html.html-quickform.html-quickform-file.getvalue; &package.html.html-quickform.html-quickform-file.isuploadedfile; &package.html.html-quickform.html-quickform-file.moveuploadedfile; &package.html.html-quickform.html-quickform-file.setsize; &package.html.html-quickform.html-quickform-hidden; &package.html.html-quickform.html-quickform-hidden.html-quickform-hidden; &package.html.html-quickform.html-quickform-image; &package.html.html-quickform.html-quickform-image.html-quickform-image; &package.html.html-quickform.html-quickform-image.setalign; &package.html.html-quickform.html-quickform-image.setborder; &package.html.html-quickform.html-quickform-image.setsource; &package.html.html-quickform.html-quickform-password; &package.html.html-quickform.html-quickform-password.html-quickform-password; &package.html.html-quickform.html-quickform-password.setmaxlength; &package.html.html-quickform.html-quickform-password.setsize; &package.html.html-quickform.html-quickform-radio; &package.html.html-quickform.html-quickform-radio.html-quickform-radio; &package.html.html-quickform.html-quickform-radio.getchecked; &package.html.html-quickform.html-quickform-radio.gettext; &package.html.html-quickform.html-quickform-radio.setchecked; &package.html.html-quickform.html-quickform-radio.settext; &package.html.html-quickform.html-quickform-reset; &package.html.html-quickform.html-quickform-reset.html-quickform-reset; &package.html.html-quickform.html-quickform-select; &package.html.html-quickform.html-quickform-select.html-quickform-select; &package.html.html-quickform.html-quickform-select.addoption; &package.html.html-quickform.html-quickform-select.getmultiple; &package.html.html-quickform.html-quickform-select.getprivatename; &package.html.html-quickform.html-quickform-select.getselected; &package.html.html-quickform.html-quickform-select.getsize; &package.html.html-quickform.html-quickform-select.load; &package.html.html-quickform.html-quickform-select.loadarray; &package.html.html-quickform.html-quickform-select.loaddbresult; &package.html.html-quickform.html-quickform-select.loadquery; &package.html.html-quickform.html-quickform-select.setmultiple; &package.html.html-quickform.html-quickform-select.setselected; &package.html.html-quickform.html-quickform-select.setsize; &package.html.html-quickform.html-quickform-submit; &package.html.html-quickform.html-quickform-submit.html-quickform-submit; &package.html.html-quickform.html-quickform-text; &package.html.html-quickform.html-quickform-text.html-quickform-text; &package.html.html-quickform.html-quickform-text.setmaxlength; &package.html.html-quickform.html-quickform-text.setsize; &package.html.html-quickform.html-quickform-textarea; &package.html.html-quickform.html-quickform-textarea.html-quickform-textarea; &package.html.html-quickform.html-quickform-textarea.setcols; &package.html.html-quickform.html-quickform-textarea.setrows; &package.html.html-quickform.html-quickform-textarea.setwrap; </sect3> <sect3 id="package.html.html-quickform.elements.custom"> <title>Custom-Elemente</title> &package.html.html-quickform.html-quickform-advcheckbox; &package.html.html-quickform.html-quickform-advcheckbox.html-quickform-advcheckbox; &package.html.html-quickform.html-quickform-advcheckbox.getonclickjs; &package.html.html-quickform.html-quickform-advcheckbox.getprivatename; &package.html.html-quickform.html-quickform-advcheckbox.setvalues; &package.html.html-quickform.html-quickform-autocomplete; &package.html.html-quickform.html-quickform-autocomplete.html-quickform-autocomplete; &package.html.html-quickform.html-quickform-autocomplete.setoptions; &package.html.html-quickform.html-quickform-date; &package.html.html-quickform.html-quickform-date.html-quickform-date; &package.html.html-quickform.html-quickform-header; &package.html.html-quickform.html-quickform-header.html-quickform-header; &package.html.html-quickform.html-quickform-hiddenselect; &package.html.html-quickform.html-quickform-hiddenselect.html-quickform-hiddenselect; &package.html.html-quickform.html-quickform-hierselect; &package.html.html-quickform.html-quickform-hierselect.html-quickform-hierselect; &package.html.html-quickform.html-quickform-hierselect.setmainoptions; &package.html.html-quickform.html-quickform-hierselect.setsecoptions; &package.html.html-quickform.html-quickform-html; &package.html.html-quickform.html-quickform-html.html-quickform-html; &package.html.html-quickform.html-quickform-link; &package.html.html-quickform.html-quickform-link.html-quickform-link; &package.html.html-quickform.html-quickform-link.sethref; &package.html.html-quickform.html-quickform-static; &package.html.html-quickform.html-quickform-static.html-quickform-static; &package.html.html-quickform.html-quickform-static.settext; </sect3> </sect2> <sect2 id="package.html.html-quickform.groups"> <title>Gruppierung</title> &package.html.html-quickform.html-quickform.addgroup; &package.html.html-quickform.html-quickform-group; &package.html.html-quickform.html-quickform-group.html-quickform-group; &package.html.html-quickform.html-quickform-group.getelementname; &package.html.html-quickform.html-quickform-group.getelements; &package.html.html-quickform.html-quickform-group.getgrouptype; &package.html.html-quickform.html-quickform-group.setelements; </sect2> <sect2 id="package.html.html-quickform.values"> <title>Mit Elementwerten umgehen</title> <para> Dieser Abschnitt beschreibt die Methoden zum Umgang mit den Werten von Elementen und der erhaltenen Werte. </para> <sect3 id="package.html.html-quickform.values.getting-setting"> <title>Erhalten, setzen und verabeiten von Werten</title> &package.html.html-quickform.html-quickform.setconstants; &package.html.html-quickform.html-quickform.setdefaults; &package.html.html-quickform.html-quickform.exportvalue; &package.html.html-quickform.html-quickform.exportvalues; &package.html.html-quickform.html-quickform.getelementvalue; &package.html.html-quickform.html-quickform.getsubmitvalue; &package.html.html-quickform.html-quickform.getsubmitvalues; &package.html.html-quickform.html-quickform.process; </sect3> <sect3 id="package.html.html-quickform.values.validation"> <title>Validation and filters</title> <para> QuickForm also provides validation rules support. You can code your own validation rules, register them in QuickForm and then call them in your script. By default, QuickForm can handle validation against regular expressions (<ulink url="&url.php.lookup;preg-match">preg_match</ulink> style) and check for required elements. If you want client-side validation, QuickForm can generate the javascript code needed. Server-side validation is always on by default. </para> <para> QuickForm can also make use of filters for data import into the form or for data processing once the form has been submitted. Filters work the same way as rules except that you don't need to register them. You write your filter functions and call them in your script. You can call any php function (ie. trim, addslashes, htmlentities, etc.) and have them applied recursively to your element values. </para> &package.html.html-quickform.intro-validation; &package.html.html-quickform.html-quickform.addrule; &package.html.html-quickform.html-quickform.addgrouprule; &package.html.html-quickform.html-quickform.addformrule; &package.html.html-quickform.html-quickform.iselementrequired; &package.html.html-quickform.html-quickform.validate; &package.html.html-quickform.html-quickform.getelementerror; &package.html.html-quickform.html-quickform.setelementerror; &package.html.html-quickform.html-quickform.registerrule; &package.html.html-quickform.html-quickform.getregisteredrules; &package.html.html-quickform.html-quickform.isruleregistered; &package.html.html-quickform.html-quickform.applyfilter; </sect3> </sect2> <sect2 id="package.html.html-quickform.output"> <title>Ausgabe des Formulars</title> <para> Sie können das Formular auf vielfältige Arten anpassen. QuickForm kann verschiedene Arten von Renderen benutzen, der standardmäßige, der die Anpassung des Formulars, seiner Elemente, der Fehlermeldungen, der Überschriften und der Hinweistexte und Markierungen für erforderlichen Elemente. Sie können auch ihren eigenen Render einsetzen. </para> <sect3 id="package.html.html-quickform.output.form-customization"> <title>Formular-Anpassungen und Ausgabehilfen</title> &package.html.html-quickform.html-quickform.freeze; &package.html.html-quickform.html-quickform.iselementfrozen; &package.html.html-quickform.html-quickform.isfrozen; &package.html.html-quickform.html-quickform.setrequirednote; &package.html.html-quickform.html-quickform.setjswarnings; &package.html.html-quickform.html-quickform.getrequirednote; &package.html.html-quickform.html-quickform.getvalidationscript; &package.html.html-quickform.html-quickform.accept; &package.html.html-quickform.html-quickform.defaultrenderer; &package.html.html-quickform.html-quickform.toarray; &package.html.html-quickform.html-quickform.tohtml; </sect3> <sect3 id="package.html.html-quickform.output.basic-renderers"> <title>Basis-Renderer</title> <para>Diese Renderer basieren auf dem Code für <classname>HTML_QuickForm</classname>-Version kleiner 3 und benötigen keine zusätzlichen Klassen zum funktionieren.</para> &package.html.html-quickform.intro-renderers; &package.html.html-quickform.html-quickform-renderer-default; &package.html.html-quickform.html-quickform-renderer-default.clearalltemplates; &package.html.html-quickform.html-quickform-renderer-default.setelementtemplate; &package.html.html-quickform.html-quickform-renderer-default.setformtemplate; &package.html.html-quickform.html-quickform-renderer-default.setgroupelementtemplate; &package.html.html-quickform.html-quickform-renderer-default.setgrouptemplate; &package.html.html-quickform.html-quickform-renderer-default.setheadertemplate; &package.html.html-quickform.html-quickform-renderer-default.setrequirednotetemplate; &package.html.html-quickform.html-quickform-renderer-default.tohtml; &package.html.html-quickform.html-quickform-renderer-array; &package.html.html-quickform.html-quickform-renderer-array.html-quickform-renderer-array; &package.html.html-quickform.html-quickform-renderer-array.setelementstyle; &package.html.html-quickform.html-quickform-renderer-array.toarray; </sect3> <sect3 id="package.html.html-quickform.output.template-renderers"> <title>Template-basierte Renderer</title> <para>Diese Renderer benutzen Templates, um das HTML für das Formular zu erzeugen.</para> &package.html.html-quickform.html-quickform-renderer-arraysmarty; &package.html.html-quickform.html-quickform-renderer-arraysmarty.html-quickform-renderer-arraysmarty; &package.html.html-quickform.html-quickform-renderer-arraysmarty.seterrortemplate; &package.html.html-quickform.html-quickform-renderer-arraysmarty.setrequiredtemplate; &package.html.html-quickform.html-quickform-renderer-itdynamic; &package.html.html-quickform.html-quickform-renderer-itdynamic.html-quickform-renderer-itdynamic; &package.html.html-quickform.html-quickform-renderer-itdynamic.setelementblock; &package.html.html-quickform.html-quickform-renderer-itdynamic.setheaderblock; &package.html.html-quickform.html-quickform-renderer-itstatic; &package.html.html-quickform.html-quickform-renderer-itstatic.html-quickform-renderer-itstatic; &package.html.html-quickform.html-quickform-renderer-itstatic.seterrortemplate; &package.html.html-quickform.html-quickform-renderer-itstatic.setrequiredtemplate; &package.html.html-quickform.html-quickform-renderer-quickhtml; &package.html.html-quickform.html-quickform-renderer-quickhtml.html-quickform-renderer-quickhtml; &package.html.html-quickform.html-quickform-renderer-quickhtml.tohtml; &package.html.html-quickform.html-quickform-renderer-quickhtml.elementtohtml; </sect3> <sect3 id="package.html.html-quickform.output.renderer-doc"> <title>Renderer-Infrastruktur</title> <para>Wenn Sie die existierenden Renderer modifizieren wollen oder einen neuen schreiben wollen, dann ist dieser Abschnitt für Sie relevant.</para> &package.html.html-quickform.html-quickform-renderer; &package.html.html-quickform.html-quickform-renderer.startform; &package.html.html-quickform.html-quickform-renderer.finishform; &package.html.html-quickform.html-quickform-renderer.startgroup; &package.html.html-quickform.html-quickform-renderer.finishgroup; &package.html.html-quickform.html-quickform-renderer.renderelement; &package.html.html-quickform.html-quickform-renderer.renderheader; &package.html.html-quickform.html-quickform-renderer.renderhidden; &package.html.html-quickform.html-quickform-renderer.renderhtml; </sect3> </sect2> </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/de/package/html/html-form/intro.xml?r=1.1&p=1 Index: peardoc/de/package/html/html-form/intro.xml +++ peardoc/de/package/html/html-form/intro.xml <?xml version='1.0' encoding='ISO-8859-1' ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 --> <refentry id="package.html.html-form.intro"> <refentryinfo> <author> <firstname>Martin</firstname> <surname>Jansen</surname> </author> </refentryinfo> <refnamediv> <refname>Einführung</refname> <refpurpose><acronym>HTML</acronym>-Formulare erzeugen</refpurpose> </refnamediv> <refsect1 id="package.html.html-form.intro.whatis"> <title>Was ist HTML_Form?</title> <para> Das ist ein einfacher HTML-Formular-Generator. Er unterstützt alle HTML-Formularelemente einschließlich Datei-Uploads. Das Formular kann entgegengenommen oder ausgegeben werden, als einzelne Elemente oder in kompletter Form mit festen Tabellenlayout. </para> <refsect2 id="package.html.html-form.intro.whatis.range"> <title>Einsatzbereich</title> <para> Sie können <classname>HTML_Form</classname> für <acronym>HTML</acronym>-basierte Projekte benutzen. Allerdings kann es im <quote>Tabellenmodus</quote> schnell zu Problemen beim Design kommen. Die Tabelle, die von <classname>HTML_Form</classname> erzeugt wird, kann nicht mit <acronym>CSS</acronym> oder anderen Mitteln kontrolliert werden. Das Einsatzgebiet sind deshalb Seiten, in denen das Design nicht die Hauptsache ist, sondern wo es um schnellen und sauberen Quellcode geht. Zum Beispiel im Back-Office-Bereich oder Plätzen wie <ulink url="&url.pear;">pear.php.net</ulink>, wo das Packages häufig eingesetzt wird. </para> </refsect2> <refsect2 id="package.html.html-form.intro.whatis.example"> <title>Einfache Beispiele</title> <example> <title>Grundlegendes Beispiel</title> <programlisting role="php"> <![CDATA[ require_once "HTML/Form.php"; $form = new HTML_Form($_SERVER['PHP_SELF']); $form->addText("name", "What's your name?"); $form->addSubmit("submit", "Go, Go"); $form->display(); ]]> </programlisting> </example> <para> Das obige Beispiel erzeugt ein HTML-Formular das nur ein einzelnes Textfeld enthält mit dem Namen <quote>name</quote> und der Beschriftung (Label) <quote>What's your name</quote> und einen Submit-Butten bezeichnet mit <quote>Go, Go</quote>. </para> </refsect2> <refsect2 id="package.html.html-form.intro.whatis.tags"> <title>Unterstützte Tags</title> <para> Die folgenden HTML-Formular-Tags werden von <classname>HTML_Form</classname> unterstützt: Text, Password Checkboxen, Textareas, Submit-Buttons, Reset-Buttons, Select-Auswahllisten, Radio-Buttons, Image-Buttons, Hidden-Elemente, Dateiupload-Element. Weiterhin können Leerräume und einfacher Text zum Formular ergänzt werden. </para> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#6079) next »