cvs: peardoc /en/package/html/html-quickform/html-quickform-select html-quickform-select.xml
| From: | Christian Weiske | Date: | Fri, 21 Nov 2008 11:59:12 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-quickform/html-quickform-select html-quickform-select.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11297@lists.php.net to get a copy of this message | ||
cweiske Fri Nov 21 11:59:12 2008 UTC
Modified files:
/peardoc/en/package/html/html-quickform/html-quickform-select
html-quickform-select.xml
Log:
Small example for quickform select
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-quickform/html-quickform-select/html-quickform-select.xml?r1=1.5&r2=1.6&diff_format=u
Index: peardoc/en/package/html/html-quickform/html-quickform-select/html-quickform-select.xml
diff -u peardoc/en/package/html/html-quickform/html-quickform-select/html-quickform-select.xml:1.5
peardoc/en/package/html/html-quickform/html-quickform-select/html-quickform-select.xml:1.6
--- peardoc/en/package/html/html-quickform/html-quickform-select/html-quickform-select.xml:1.5 Thu
Oct 9 15:16:35 2008
+++ peardoc/en/package/html/html-quickform/html-quickform-select/html-quickform-select.xml Fri Nov
21 11:59:12 2008
@@ -33,8 +33,8 @@
<variablelist>
<varlistentry>
<term>
-
-
+
+
&type.string;
<parameter>$elementName</parameter>
</term>
@@ -43,7 +43,7 @@
Select name attribute
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
<varlistentry>
<term>
@@ -105,4 +105,16 @@
</para>
¬e.notstatic;
</refsection>
+
+ <refsection
xml:id="package.html.html-quickform.html-quickform-select.html-quickform-select.example">
+ &title.example;
+ <programlisting role="php"><![CDATA[
+$select = $quickform->createElement(
+ 'select', 'selectname',
+ 'Label for select',
+ array('fr' => 'French', 'de' => 'German',
'en_GB' => 'British English'),
+ array('id' => 'selectname', 'onchange' =>
'...'));
+);
+]]></programlisting>
+ </refsection>
</refentry>