cvs: peardoc /ja/package/html/html-quickform html-quickform-renderer-object.xml html-quickform-renderer-objectflexy.xml
/ja/package/html/html-quickform/html-quickform-renderer-object html-quickform-renderer-object.xml toobject.xml
/ja/package/html/html-quickform/html-quickform-renderer-objectflexy html-quickform-renderer-objectflexy.xml sethtmltemplate.xml setlabeltemplate.xml
| From: | TAKAGI Masahiro | Date: | Fri, 28 Mar 2008 09:04:22 +0000 |
| Subject: | cvs: peardoc /ja/package/html/html-quickform html-quickform-renderer-object.xml html-quickform-renderer-objectflexy.xml /ja/package/html/html-quickform/html-quickform-renderer-object html-quickform-renderer-object.xml toobject.xml /ja/package/html/html-quickform/html-quickform-renderer-objectflexy html-quickform-renderer-objectflexy.xml sethtmltemplate.xml setlabeltemplate.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-10595@lists.php.net to get a copy of this message | ||
takagi Fri Mar 28 09:04:22 2008 UTC
Added files:
/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy
setlabeltemplate.xml
sethtmltemplate.xml
html-quickform-renderer-objectflexy.xml
/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object
toobject.xml
html-quickform-renderer-object.xml
/peardoc/ja/package/html/html-quickform
html-quickform-renderer-objectflexy.xml
html-quickform-renderer-object.xml
Log:
added Japanese translation.
http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate"> <refnamediv> <refname>HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate()</refname> <refpurpose>html è¦ç´ ã®ã¬ã³ããªã³ã°ã«ä½¿ç¨ãããã³ãã¬ã¼ãã®ãã¡ã¤ã«åãè¨å®ãã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate</function></funcdef> <paramdef>string <parameter>$template</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.desc"> &title.desc; <para> ãã©ã¼ã ã®ã©ãã«ã®ã¬ã³ããªã³ã°ã«ä½¿ç¨ãããã³ãã¬ã¼ãã®ãã¡ã¤ã«åãè¨å®ãã¾ãã ãã³ãã¬ã¼ãå ã§ã¯ã{label} ãæªä¿®æ£ã®ã©ãã«ã«å¤æããã¾ãã ã¨ã©ã¼ãçºçããå ´åã¯ã{error} ã«ã¨ã©ã¼ãè¨å®ããã¾ãã è¦ç´ ãå¿ é ã®å ´åã¯ã{required} ã true ã¨ãªãã¾ããä¾ã示ãã¾ãã <programlisting> <![CDATA[ {if:required} <font color="orange" size="1">*</font> {end:} {label:h} ]]> </programlisting> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$template</parameter> </term> <listitem> <para> ãã³ãã¬ã¼ãã®ãã¡ã¤ã«åã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate"> <refnamediv> <refname>HTML_QuickForm_Renderer_ObjectFlexy::setHtmlTemplate()</refname> <refpurpose>html è¦ç´ ã®ã¬ã³ããªã³ã°ã«ä½¿ç¨ãããã³ãã¬ã¼ãã®ãã¡ã¤ã«åãè¨å®ãã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::setHtmlTemplate</function></funcdef> <paramdef>string <parameter>$template</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.desc"> &title.desc; <para> ãã³ãã¬ã¼ãå ã§ã¯ã{html} ãæªä¿®æ£ã® html ã«å¤æããã¾ãã è¦ç´ ãå¿ é ã®å ´åã¯ã{required} ã true ã¨ãªãã¾ããä¾ã示ãã¾ãã <programlisting> <![CDATA[ {if:error} <font color="red" size="1">{error:h}</font><br /> {end:} {html:h} ]]> </programlisting> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$template</parameter> </term> <listitem> <para> ãã³ãã¬ã¼ãã®ãã¡ã¤ã«åã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy"> <refnamediv> <refname>constructor HTML_QuickForm_Renderer_ObjectFlexy::HTML_QuickForm_Renderer_ObjectFlexy()</refname> <refpurpose>ã³ã³ã¹ãã©ã¯ã¿</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::HTML_QuickForm_Renderer_ObjectFlexy</function></funcdef> <paramdef>object <parameter>&$flexy</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.object; <parameter>&$flexy</parameter> </term> <listitem> <para> 使ç¨ãããHTML_Template_Flexy ãããã¯äºæãã³ãã¬ã¼ãã®ãªãã¸ã§ã¯ãã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object.toobject"> <refnamediv> <refname>HTML_QuickForm_Renderer_Object::toObject()</refname> <refpurpose>çµæã®ãªãã¸ã§ã¯ããè¿ã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/Object.php'; </funcsynopsisinfo> <funcprototype> <funcdef>QuickformForm <function>HTML_QuickForm_Renderer_Object::toObject</function></funcdef> <void /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.desc"> &title.desc; <para>ã¬ã³ãã©ã«ãã£ã¦ä½æãããããã©ã¼ã ã®ãªãã¸ã§ã¯ã表ç¾ãè¿ãã¾ãã</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object"> <refnamediv> <refname>constructor HTML_QuickForm_Renderer_Object::HTML_QuickForm_Renderer_Object()</refname> <refpurpose>ã³ã³ã¹ãã©ã¯ã¿</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/Object.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_Object::HTML_QuickForm_Renderer_Object</function></funcdef> <paramdef> bool <parameter> <optional>$collectHidden = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$collectHidden</parameter> </term> <listitem> <para> &true;: ãã¹ã¦ã® hidden è¦ç´ ãæååã«ã¾ã¨ãã¾ãã&false;: hidden è¦ç´ ãé常ã®ãã©ã¼ã è¦ç´ ã¨ãã¦å¦çãã¾ãã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy"> <refnamediv> <refname><classname>HTML_QuickForm_Renderer_ObjectFlexy</classname></refname> <refpurpose>Flexy ãã³ãã¬ã¼ãç¨ã®ã¬ã³ãã©</refpurpose> </refnamediv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.desc"> &title.desc; <para> ãã®ã¬ã³ãã©ã¯ãFlexy ãã³ãã¬ã¼ãã使ç¨ãã¦ãã©ã¼ã ãåºåãã¾ãã éçãªä½¿ç¨ä¾ã¨åçãªä½¿ç¨ä¾ã <filename class="directory">docs/renderers</filename> ãã£ã¬ã¯ããªã«ããã¾ãã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.example"> <title>使ç¨ä¾</title> <para> ããã¯ãObjectFlexy ã¬ã³ãã©ãåç´ãªãã³ãã¬ã¼ãã§ä½¿ç¨ããä¾ã§ãã <example> <title>è¦ç´ ã®å®ç¾©</title> <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/Template/Flexy.php'; require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; // ãã©ã¼ã åã使ç¨ãã¦ãã¬ã¼ã¹ãã«ããæ¢ãã¾ã $form = new HTML_QuickForm('form', 'POST'); // å人æ å ± $form->addElement('header', 'personal', 'Personal Information'); $form->addElement('text', 'email', 'Your email:'); $form->addElement('password', 'pass', 'Your password:', 'size=10'); $name['last'] = &HTML_QuickForm::createElement('text', 'first', 'First', 'size=10'); $name['first'] = &HTML_QuickForm::createElement('text', 'last', 'Last', 'size=10'); $form->addGroup($name, 'name', 'Name:', ', '); $areaCode = &HTML_QuickForm::createElement('text', '', null,'size=4 maxlength=3'); $phoneNo1 = &HTML_QuickForm::createElement('text', '', null, 'size=4 maxlength=3'); $phoneNo2 = &HTML_QuickForm::createElement('text', '', null, 'size=5 maxlength=4'); $form->addGroup(array($areaCode, $phoneNo1, $phoneNo2), 'phone', 'Telephone:', '-'); // ä¼ç¤¾æ å ± $form->addElement('header', 'company_info', 'Company Information'); $form->addElement('text', 'company', 'Company:', 'size=20'); $str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20'); $str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20'); $form->addGroup($str, 'street', 'Street:', '<br />'); $addr['zip'] = &HTML_QuickForm::createElement('text', 'zip', 'Zip', 'size=6 maxlength=10'); $addr['city'] = &HTML_QuickForm::createElement('text', 'city', 'City', 'size=15'); $form->addGroup($addr, 'address', 'Zip, city:'); $select = array('' => 'Please select...', 'AU' => 'Australia', 'FR' => 'France', 'DE' => 'Germany', 'IT' => 'Italy'); $form->addElement('select', 'country', 'Country:', $select); // ãã®ä»ã®è¦ç´ $form->addElement('checkbox', 'news', '', " Check this box if you don't want to receive our newsletter."); $form->addElement('reset', 'reset', 'Reset'); $form->addElement('submit', 'submit', 'Register'); // ãã©ã¼ã ã®æ¤è¨¼ if ($form->validate()) { // å ¥åã«åé¡ããªãã£ãã®ã§ãã¼ã¿ãããªã¼ãºãã¾ã $form->freeze(); } // ãã³ãã¬ã¼ããªãã¸ã§ã¯ãã®æºå $options = &PEAR::getStaticProperty('HTML_Template_Flexy','options'); $options = array( 'templateDir' => './templates', 'compileDir' => './templates/build', 'forceCompile' => 1, 'debug' => 0, 'local' => 'en' ); $template = new HTML_Template_Flexy($options); $renderer =& new HTML_QuickForm_Renderer_ObjectFlexy($template); $renderer->setLabelTemplate("label.html"); $renderer->setHtmlTemplate("html.html"); $form->accept($renderer); $view = new StdClass; $view->form = $renderer->toObject(); $template->compile("flexy-static.html"); $template->outputObject($view); ?> ]]> </programlisting> </example> </para> <para> ä¸ã§ä½¿ç¨ãããã³ãã¬ã¼ããã¡ã¤ã«ã¯ã次ã®ããã«ãªãã¾ãã <filename>label.html</filename> <example> <title>ã©ãã«ç¨ã®ãã³ãã¬ã¼ã</title> <programlisting> <![CDATA[ {if:required} <font color="red" size="1">*</font> {end:} {label:h} ]]> </programlisting> </example> <filename>html.html</filename> <example> <title>html å ¨ä½ç¨ã®ãã³ãã¬ã¼ã</title> <programlisting> <![CDATA[ {if:error} <font color="orange" size="1">{error:h}</font><br /> {end:} {html:h} ]]> </programlisting> </example> <filename>flexy-static.html</filename> <example> <title>ãã©ã¼ã ç¨ã®ãã³ãã¬ã¼ã</title> <programlisting> <![CDATA[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- $Id: html-quickform-renderer-objectflexy.xml,v 1.1 2008/03/28 09:04:22 takagi Exp $ --> <html> <head> <title>Flexy template : 2 column layout example</title> <style type="text/css"> .errors { font-family: sans-serif; color : #000; background-color : #FFF; font-size : 12pt; } .label { font-family: sans-serif; color : Navy; font-size : 11px; text-align : right; vertical-align : top; white-space: nowrap; } .element { font-family: sans-serif; background-color : #EEE; text-align : left; white-space: nowrap; } .note { font-family: sans-serif; background-color : #EEE; text-align : center; font-size : 10pt; color : AAA; white-space: nowrap; } th { font-family: sans-serif; font-size : small; color : #FFF; background-color : #AAA; } .maintable { border : thin dashed #D0D0D0; background-color : #EEE; } </style> {form.javascript:h} </head> <body> {form.outputHeader():h} {form.hidden:h} <table class="maintable" width="600" align="center"> <tr> <td width="50%" valign="top"><!-- Personal info --> <table width="100%" cellpadding="4"> <tr><th colspan="2">{form.header.personal:h}</th></tr> <tr> <td class="label">{form.name.label:h}</td> <td class="element">{form.name.error:h} <table cellspacing="0" cellpadding="1"> <tr> <td>{form.name.first.html:h}</td> <td>{form.name.last.html:h}</td> </tr> <tr> <td><font size="1" color="grey">{form.name.first.label:h}</font></td> <td><font size="1" color="grey">{form.name.last.label:h}</font></td> </tr> </table> </td> </tr> <tr> <td class="label">{form.phone.label:h}</td> <td class="element">{form.phone.html:h}</td> </tr> <tr> <td class="label">{form.email.label:h}</td> <td class="element">{form.email.html:h}</td> </tr> <tr><td colspan="2" class="note">Please, choose a 8-10 characters password.</td></tr> <tr> <td class="label">{form.pass.label:h}</td> <td class="element">{form.pass.html:h}</td> </tr> </table> </td> <td width="50%" valign="top"><!-- Company info --> <table width="100%" cellpadding="4"> <tr><th colspan="2">{form.header.company_info:h}</th></tr> <tr> <td class="label">{form.company.label:h}</td> <td class="element">{form.company.html:h}</td> </tr> <tr> <td class="label" valign="top">{form.street.label:h}</td> <td class="element">{form.street.html:h}</td> </tr> <tr> <td class="label">{form.address.label:h}</td> <td class="element">{form.address.error:h} <table cellspacing="0" cellpadding="1"> <tr> <td>{form.address.zip.html:h}</td> <td>{form.address.city.html:h}</td> </tr> <tr> <td><font size="1" color="grey">{form.address.zip.label:h}</font></td> <td><font size="1" color="grey">{form.address.city.label:h}</font></td> </tr> </table> </td> </tr> <tr> <td class="label">{form.country.label:h}</td> <td class="element">{form.country.html:h}</td> </tr> <tr> <td class="label">{form.destination.label:h}</td> <td class="element">{form.destination.html:h}</td> </tr> </table> </td> </tr> </table> <table width="600" align="center"> <tr> <td>{form.requirednote:h}</td> <td align="right">{form.reset.html:h} {form.submit.html:h}</td> </tr> <tr> <td colspan="2" style="font-size:11px; color: navy;"><br />{form.news.html:h}</td> </tr> </table> </form> <br /> <b>Collected Errors:</b><br /> {foreach:form.errors,error} <font color="red">{error}</font> in element [{name}]<br /> {end:} <p><strong>The used "Static" Object</strong></p> <pre style="font-size: 12px;"> {static_object} </pre> </body> </html> ]]> </programlisting> </example> </para> <para> Flexy ãã³ãã¬ã¼ãã«ã¤ãã¦ã®æ å ±ã¯ãããã±ã¼ã¸ã®ãã¼ã ãã¼ã¸ãåç §ãã ããã </para> </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-executeMultiple-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/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object"> <refnamediv> <refname><classname>HTML_QuickForm_Renderer_Object</classname></refname> <refpurpose>ãã©ã¼ã ããªãã¸ã§ã¯ãã§è¡¨ã</refpurpose> </refnamediv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.desc"> &title.desc; <para> ãã®ã¬ã³ãã©ã¯èªåèªèº«ã§ã¯ä½ãåºåããããã©ã¼ã ã®æ§é ããªãã¸ã§ã¯ãã§è¿ãã¾ãã ãã®ãªãã¸ã§ã¯ãã¯ãå¾ã§åºåãçæããéã«ä½¿ç¨ããã¾ãã ãã®ã¬ã³ãã©ã¨ Flexy ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã使ç¨ããä¾ãã <filename class="directory">docs/renderers</filename> ãã£ã¬ã¯ããªã«ããã¾ãã </para> <para> ãã©ã¼ã ã®ãªãã¸ã§ã¯ãã¯ã以ä¸ã®ããã«ãªãã¾ãã <programlisting> <![CDATA[ QuickformForm Object ( [frozen] => [javascript] => [attributes] => action="/object.php" method="post" name="form" id="form" [requirednote] => <span style="font-size:80%; color:#ff0000;">*</span><span style="font-size:80%;"> denotes required field</span> [hidden] => [errors] => stdClass Object ( ) [elements] => Array ( [0] => QuickformElement Object ( [name] => session [value] => 1234567890 [type] => hidden [frozen] => [label] => [required] => [error] => [style] => [html] => <input name="session" type="hidden" value="1234567890" /> [separator] => [elements] => ) ... ) [sections] => Array ( [0] => stdClass Object ( [header] => Personal Information [elements] => Array ( [0] => QuickformElement Object ( [name] => email [value] => [type] => text [frozen] => [label] => Your email: [required] => 1 [error] => [style] => [html] => <input name="email" type="text" /> [separator] => [elements] => ) ... ) ) ... ) ) ]]> </programlisting> </para> <tip> <para> <function>HTML_QuickForm::toObject</function> ã¡ã½ããã¯ã å é¨ã§ãªãã¸ã§ã¯ãã¬ã³ãã©ã使ç¨ãã¾ãã </para> </tip> </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-executeMultiple-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/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate"> <refnamediv> <refname>HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate()</refname> <refpurpose>html è¦ç´ ã®ã¬ã³ããªã³ã°ã«ä½¿ç¨ãããã³ãã¬ã¼ãã®ãã¡ã¤ã«åãè¨å®ãã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate</function></funcdef> <paramdef>string <parameter>$template</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.desc"> &title.desc; <para> ãã©ã¼ã ã®ã©ãã«ã®ã¬ã³ããªã³ã°ã«ä½¿ç¨ãããã³ãã¬ã¼ãã®ãã¡ã¤ã«åãè¨å®ãã¾ãã ãã³ãã¬ã¼ãå ã§ã¯ã{label} ãæªä¿®æ£ã®ã©ãã«ã«å¤æããã¾ãã ã¨ã©ã¼ãçºçããå ´åã¯ã{error} ã«ã¨ã©ã¼ãè¨å®ããã¾ãã è¦ç´ ãå¿ é ã®å ´åã¯ã{required} ã true ã¨ãªãã¾ããä¾ã示ãã¾ãã <programlisting> <![CDATA[ {if:required} <font color="orange" size="1">*</font> {end:} {label:h} ]]> </programlisting> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$template</parameter> </term> <listitem> <para> ãã³ãã¬ã¼ãã®ãã¡ã¤ã«åã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate"> <refnamediv> <refname>HTML_QuickForm_Renderer_ObjectFlexy::setHtmlTemplate()</refname> <refpurpose>html è¦ç´ ã®ã¬ã³ããªã³ã°ã«ä½¿ç¨ãããã³ãã¬ã¼ãã®ãã¡ã¤ã«åãè¨å®ãã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::setHtmlTemplate</function></funcdef> <paramdef>string <parameter>$template</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.desc"> &title.desc; <para> ãã³ãã¬ã¼ãå ã§ã¯ã{html} ãæªä¿®æ£ã® html ã«å¤æããã¾ãã è¦ç´ ãå¿ é ã®å ´åã¯ã{required} ã true ã¨ãªãã¾ããä¾ã示ãã¾ãã <programlisting> <![CDATA[ {if:error} <font color="red" size="1">{error:h}</font><br /> {end:} {html:h} ]]> </programlisting> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$template</parameter> </term> <listitem> <para> ãã³ãã¬ã¼ãã®ãã¡ã¤ã«åã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy"> <refnamediv> <refname>constructor HTML_QuickForm_Renderer_ObjectFlexy::HTML_QuickForm_Renderer_ObjectFlexy()</refname> <refpurpose>ã³ã³ã¹ãã©ã¯ã¿</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::HTML_QuickForm_Renderer_ObjectFlexy</function></funcdef> <paramdef>object <parameter>&$flexy</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.object; <parameter>&$flexy</parameter> </term> <listitem> <para> 使ç¨ãããHTML_Template_Flexy ãããã¯äºæãã³ãã¬ã¼ãã®ãªãã¸ã§ã¯ãã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object.toobject"> <refnamediv> <refname>HTML_QuickForm_Renderer_Object::toObject()</refname> <refpurpose>çµæã®ãªãã¸ã§ã¯ããè¿ã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/Object.php'; </funcsynopsisinfo> <funcprototype> <funcdef>QuickformForm <function>HTML_QuickForm_Renderer_Object::toObject</function></funcdef> <void /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.desc"> &title.desc; <para>ã¬ã³ãã©ã«ãã£ã¦ä½æãããããã©ã¼ã ã®ãªãã¸ã§ã¯ã表ç¾ãè¿ãã¾ãã</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object"> <refnamediv> <refname>constructor HTML_QuickForm_Renderer_Object::HTML_QuickForm_Renderer_Object()</refname> <refpurpose>ã³ã³ã¹ãã©ã¯ã¿</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/Object.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_Object::HTML_QuickForm_Renderer_Object</function></funcdef> <paramdef> bool <parameter> <optional>$collectHidden = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.desc"> &title.desc; ¬documented; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$collectHidden</parameter> </term> <listitem> <para> &true;: ãã¹ã¦ã® hidden è¦ç´ ãæååã«ã¾ã¨ãã¾ãã&false;: hidden è¦ç´ ãé常ã®ãã©ã¼ã è¦ç´ ã¨ãã¦å¦çãã¾ãã </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.throws"> &title.throws; <para> ä¾å¤ã¯ã¹ãã¼ããã¾ããã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.note"> &title.note; ¬e.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy"> <refnamediv> <refname><classname>HTML_QuickForm_Renderer_ObjectFlexy</classname></refname> <refpurpose>Flexy ãã³ãã¬ã¼ãç¨ã®ã¬ã³ãã©</refpurpose> </refnamediv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.desc"> &title.desc; <para> ãã®ã¬ã³ãã©ã¯ãFlexy ãã³ãã¬ã¼ãã使ç¨ãã¦ãã©ã¼ã ãåºåãã¾ãã éçãªä½¿ç¨ä¾ã¨åçãªä½¿ç¨ä¾ã <filename class="directory">docs/renderers</filename> ãã£ã¬ã¯ããªã«ããã¾ãã </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.example"> <title>使ç¨ä¾</title> <para> ããã¯ãObjectFlexy ã¬ã³ãã©ãåç´ãªãã³ãã¬ã¼ãã§ä½¿ç¨ããä¾ã§ãã <example> <title>è¦ç´ ã®å®ç¾©</title> <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/Template/Flexy.php'; require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; // ãã©ã¼ã åã使ç¨ãã¦ãã¬ã¼ã¹ãã«ããæ¢ãã¾ã $form = new HTML_QuickForm('form', 'POST'); // å人æ å ± $form->addElement('header', 'personal', 'Personal Information'); $form->addElement('text', 'email', 'Your email:'); $form->addElement('password', 'pass', 'Your password:', 'size=10'); $name['last'] = &HTML_QuickForm::createElement('text', 'first', 'First', 'size=10'); $name['first'] = &HTML_QuickForm::createElement('text', 'last', 'Last', 'size=10'); $form->addGroup($name, 'name', 'Name:', ', '); $areaCode = &HTML_QuickForm::createElement('text', '', null,'size=4 maxlength=3'); $phoneNo1 = &HTML_QuickForm::createElement('text', '', null, 'size=4 maxlength=3'); $phoneNo2 = &HTML_QuickForm::createElement('text', '', null, 'size=5 maxlength=4'); $form->addGroup(array($areaCode, $phoneNo1, $phoneNo2), 'phone', 'Telephone:', '-'); // ä¼ç¤¾æ å ± $form->addElement('header', 'company_info', 'Company Information'); $form->addElement('text', 'company', 'Company:', 'size=20'); $str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20'); $str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20'); $form->addGroup($str, 'street', 'Street:', '<br />'); $addr['zip'] = &HTML_QuickForm::createElement('text', 'zip', 'Zip', 'size=6 maxlength=10'); $addr['city'] = &HTML_QuickForm::createElement('text', 'city', 'City', 'size=15'); $form->addGroup($addr, 'address', 'Zip, city:'); $select = array('' => 'Please select...', 'AU' => 'Australia', 'FR' => 'France', 'DE' => 'Germany', 'IT' => 'Italy'); $form->addElement('select', 'country', 'Country:', $select); // ãã®ä»ã®è¦ç´ $form->addElement('checkbox', 'news', '', " Check this box if you don't want to receive our newsletter."); $form->addElement('reset', 'reset', 'Reset'); $form->addElement('submit', 'submit', 'Register'); // ãã©ã¼ã ã®æ¤è¨¼ if ($form->validate()) { // å ¥åã«åé¡ããªãã£ãã®ã§ãã¼ã¿ãããªã¼ãºãã¾ã $form->freeze(); } // ãã³ãã¬ã¼ããªãã¸ã§ã¯ãã®æºå $options = &PEAR::getStaticProperty('HTML_Template_Flexy','options'); $options = array( 'templateDir' => './templates', 'compileDir' => './templates/build', 'forceCompile' => 1, 'debug' => 0, 'local' => 'en' ); $template = new HTML_Template_Flexy($options); $renderer =& new HTML_QuickForm_Renderer_ObjectFlexy($template); $renderer->setLabelTemplate("label.html"); $renderer->setHtmlTemplate("html.html"); $form->accept($renderer); $view = new StdClass; $view->form = $renderer->toObject(); $template->compile("flexy-static.html"); $template->outputObject($view); ?> ]]> </programlisting> </example> </para> <para> ä¸ã§ä½¿ç¨ãããã³ãã¬ã¼ããã¡ã¤ã«ã¯ã次ã®ããã«ãªãã¾ãã <filename>label.html</filename> <example> <title>ã©ãã«ç¨ã®ãã³ãã¬ã¼ã</title> <programlisting> <![CDATA[ {if:required} <font color="red" size="1">*</font> {end:} {label:h} ]]> </programlisting> </example> <filename>html.html</filename> <example> <title>html å ¨ä½ç¨ã®ãã³ãã¬ã¼ã</title> <programlisting> <![CDATA[ {if:error} <font color="orange" size="1">{error:h}</font><br /> {end:} {html:h} ]]> </programlisting> </example> <filename>flexy-static.html</filename> <example> <title>ãã©ã¼ã ç¨ã®ãã³ãã¬ã¼ã</title> <programlisting> <![CDATA[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- $Id: html-quickform-renderer-objectflexy.xml,v 1.1 2008/03/28 09:04:22 takagi Exp $ --> <html> <head> <title>Flexy template : 2 column layout example</title> <style type="text/css"> .errors { font-family: sans-serif; color : #000; background-color : #FFF; font-size : 12pt; } .label { font-family: sans-serif; color : Navy; font-size : 11px; text-align : right; vertical-align : top; white-space: nowrap; } .element { font-family: sans-serif; background-color : #EEE; text-align : left; white-space: nowrap; } .note { font-family: sans-serif; background-color : #EEE; text-align : center; font-size : 10pt; color : AAA; white-space: nowrap; } th { font-family: sans-serif; font-size : small; color : #FFF; background-color : #AAA; } .maintable { border : thin dashed #D0D0D0; background-color : #EEE; } </style> {form.javascript:h} </head> <body> {form.outputHeader():h} {form.hidden:h} <table class="maintable" width="600" align="center"> <tr> <td width="50%" valign="top"><!-- Personal info --> <table width="100%" cellpadding="4"> <tr><th colspan="2">{form.header.personal:h}</th></tr> <tr> <td class="label">{form.name.label:h}</td> <td class="element">{form.name.error:h} <table cellspacing="0" cellpadding="1"> <tr> <td>{form.name.first.html:h}</td> <td>{form.name.last.html:h}</td> </tr> <tr> <td><font size="1" color="grey">{form.name.first.label:h}</font></td> <td><font size="1" color="grey">{form.name.last.label:h}</font></td> </tr> </table> </td> </tr> <tr> <td class="label">{form.phone.label:h}</td> <td class="element">{form.phone.html:h}</td> </tr> <tr> <td class="label">{form.email.label:h}</td> <td class="element">{form.email.html:h}</td> </tr> <tr><td colspan="2" class="note">Please, choose a 8-10 characters password.</td></tr> <tr> <td class="label">{form.pass.label:h}</td> <td class="element">{form.pass.html:h}</td> </tr> </table> </td> <td width="50%" valign="top"><!-- Company info --> <table width="100%" cellpadding="4"> <tr><th colspan="2">{form.header.company_info:h}</th></tr> <tr> <td class="label">{form.company.label:h}</td> <td class="element">{form.company.html:h}</td> </tr> <tr> <td class="label" valign="top">{form.street.label:h}</td> <td class="element">{form.street.html:h}</td> </tr> <tr> <td class="label">{form.address.label:h}</td> <td class="element">{form.address.error:h} <table cellspacing="0" cellpadding="1"> <tr> <td>{form.address.zip.html:h}</td> <td>{form.address.city.html:h}</td> </tr> <tr> <td><font size="1" color="grey">{form.address.zip.label:h}</font></td> <td><font size="1" color="grey">{form.address.city.label:h}</font></td> </tr> </table> </td> </tr> <tr> <td class="label">{form.country.label:h}</td> <td class="element">{form.country.html:h}</td> </tr> <tr> <td class="label">{form.destination.label:h}</td> <td class="element">{form.destination.html:h}</td> </tr> </table> </td> </tr> </table> <table width="600" align="center"> <tr> <td>{form.requirednote:h}</td> <td align="right">{form.reset.html:h} {form.submit.html:h}</td> </tr> <tr> <td colspan="2" style="font-size:11px; color: navy;"><br />{form.news.html:h}</td> </tr> </table> </form> <br /> <b>Collected Errors:</b><br /> {foreach:form.errors,error} <font color="red">{error}</font> in element [{name}]<br /> {end:} <p><strong>The used "Static" Object</strong></p> <pre style="font-size: 12px;"> {static_object} </pre> </body> </html> ]]> </programlisting> </example> </para> <para> Flexy ãã³ãã¬ã¼ãã«ã¤ãã¦ã®æ å ±ã¯ãããã±ã¼ã¸ã®ãã¼ã ãã¼ã¸ãåç §ãã ããã </para> </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-executeMultiple-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/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object"> <refnamediv> <refname><classname>HTML_QuickForm_Renderer_Object</classname></refname> <refpurpose>ãã©ã¼ã ããªãã¸ã§ã¯ãã§è¡¨ã</refpurpose> </refnamediv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.desc"> &title.desc; <para> ãã®ã¬ã³ãã©ã¯èªåèªèº«ã§ã¯ä½ãåºåããããã©ã¼ã ã®æ§é ããªãã¸ã§ã¯ãã§è¿ãã¾ãã ãã®ãªãã¸ã§ã¯ãã¯ãå¾ã§åºåãçæããéã«ä½¿ç¨ããã¾ãã ãã®ã¬ã³ãã©ã¨ Flexy ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã使ç¨ããä¾ãã <filename class="directory">docs/renderers</filename> ãã£ã¬ã¯ããªã«ããã¾ãã </para> <para> ãã©ã¼ã ã®ãªãã¸ã§ã¯ãã¯ã以ä¸ã®ããã«ãªãã¾ãã <programlisting> <![CDATA[ QuickformForm Object ( [frozen] => [javascript] => [attributes] => action="/object.php" method="post" name="form" id="form" [requirednote] => <span style="font-size:80%; color:#ff0000;">*</span><span style="font-size:80%;"> denotes required field</span> [hidden] => [errors] => stdClass Object ( ) [elements] => Array ( [0] => QuickformElement Object ( [name] => session [value] => 1234567890 [type] => hidden [frozen] => [label] => [required] => [error] => [style] => [html] => <input name="session" type="hidden" value="1234567890" /> [separator] => [elements] => ) ... ) [sections] => Array ( [0] => stdClass Object ( [header] => Personal Information [elements] => Array ( [0] => QuickformElement Object ( [name] => email [value] => [type] => text [frozen] => [label] => Your email: [required] => 1 [error] => [style] => [html] => <input name="email" type="text" /> [separator] => [elements] => ) ... ) ) ... ) ) ]]> </programlisting> </para> <tip> <para> <function>HTML_QuickForm::toObject</function> ã¡ã½ããã¯ã å é¨ã§ãªãã¸ã§ã¯ãã¬ã³ãã©ã使ç¨ãã¾ãã </para> </tip> </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-executeMultiple-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 -->