cvs: smarty /docs/ru/designers/language-custom-functions language-function-html-checkboxes.xml language-function-html-table.xml

"George Miroshnikov" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsfreespace1095715171@cvsserver>
freespace		Mon Sep 20 17:19:31 2004 EDT

  Modified files:              
    /smarty/docs/ru/designers/language-custom-functions	
                                                       	language-function-html-checkboxes.xml 
                                                       	language-function-html-table.xml 
  Log:
  Fresh sync.

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
freespace-20040920171931.txt (text/plain, 10.1 KB)
http://cvs.php.net/diff.php/smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml?r1=1.6&r2=1.7&ty=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml:1.6 smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml:1.7
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml:1.6	Fri Sep  3 04:59:56 2004
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml	Mon Sep 20 17:19:31 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.6 $ -->
-<!-- EN-Revision: 1.3 Maintainer: tony2001 Status: ready -->
+<!-- $Revision: 1.7 $ -->
+<!-- EN-Revision: 1.4 Maintainer: freespace Status: ready -->
 <sect1 id="language.function.html.checkboxes">
  <title>html_checkboxes</title>
  <informaltable frame="all">
@@ -22,46 +22,53 @@
   <tbody>
    <row>
     <entry>name</entry>
-    <entry>ñòðîêà (string)</entry>
+    <entry>string</entry>
     <entry>Íåò</entry>
     <entry><emphasis>checkbox</emphasis></entry>
     <entry>íàçâàíèå ñïèñêà ôëàæêîâ</entry>
    </row>
    <row>
     <entry>values</entry>
-    <entry>ìàññèâ</entry>
+    <entry>array</entry>
     <entry>Äà, åñëè íå óêàçàí àòòðèáóò options</entry>
     <entry><emphasis>n/a</emphasis></entry>
     <entry>Ìàññèâ çíà÷åíèé äëÿ ôëàæêîâ</entry>
    </row>
    <row>
     <entry>output</entry>
-    <entry>ìàññèâ</entry>
+    <entry>array</entry>
     <entry>Äà, åñëè íå óêàçàí àòòðèáóò options</entry>
     <entry><emphasis>n/a</emphasis></entry>
     <entry>ìàññèâ íàçâàíèé ôëàæêîâ</entry>
    </row>
    <row>
     <entry>selected/checked</entry>
-    <entry>ñòðîêà/ìàññèâ</entry>
+    <entry>string/array</entry>
     <entry>Íåò</entry>
     <entry><emphasis>ïóñòî</emphasis></entry>
     <entry>âûáðàííûé ôëàæîê(ôëàæêè)</entry>
    </row>
    <row>
     <entry>options</entry>
-    <entry>àññîöèàòèâíûé ìàññèâ</entry>
+    <entry>associative array</entry>
     <entry>Äà, åñëè íå óêàçàíû àòòðèáóòû values è output</entry>
     <entry><emphasis>n/a</emphasis></entry>
     <entry>Àññîöèàòèâíé ìàññèâ çíà÷åíèé è íàçâàíèé</entry>
    </row>
    <row>
     <entry>separator</entry>
-    <entry>ñòðîêà (string)</entry>
+    <entry>string</entry>
     <entry>Íåò</entry>
     <entry><emphasis>ïóñòî</emphasis></entry>
     <entry>ñòðîêà ðàçäåëÿþùàÿ êàæäûé ôëàæîê</entry>
    </row>
+   <row>
+    <entry>labels</entry>
+    <entry>boolean</entry>
+    <entry>Íåò</entry>
+    <entry><emphasis>true</emphasis></entry>
+    <entry>äîáàâëÿåò &lt;label&gt;-òýãè ê âûâîäó</entry>
+   </row>
   </tbody>
   </tgroup>
  </informaltable>
@@ -78,48 +85,63 @@
  </para>
  <example>
   <title>html_checkboxes</title>
-  <programlisting>
+  <programlisting role="php">
 <![CDATA[
- index.php:
-
- require('Smarty.php.class');
- $smarty = new Smarty;
- $smarty->assign('cust_ids', array(1000,1001,1002,1003));
- $smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
- Johnson','Charlie Brown'));
- $smarty->assign('customer_id', 1001);
- $smarty->display('index.tpl');
-
-
- index.tpl:
-
- {html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
-
-
- index.php:
-
- require('Smarty.php.class');
- $smarty = new Smarty;
- $smarty->assign('cust_checkboxes', array(
-    1001 => 'Joe Schmoe',
-    1002 => 'Jack Smith',
-    1003 => 'Jane Johnson','Charlie Brown'));
- $smarty->assign('customer_id', 1001);
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {html_checkboxes name="id" options=$cust_checkboxes checked=$customer_id separator="<br />"}
+<?php
 
+require('Smarty.class.php');
+$smarty = new Smarty;
+$smarty->assign('cust_ids', array(1000,1001,1002,1003));
+$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown'));
+$smarty->assign('customer_id', 1001);
+$smarty->display('index.tpl');
 
- OUTPUT: (both examples)
+?>
+]]>
+  </programlisting>
+  <para>
+   øàáëîí index.tpl:
+  </para>
+  <programlisting>
+<![CDATA[
+{html_checkboxes name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"}
+]]>
+  </programlisting>
+  <programlisting role="php">
+<![CDATA[
+<?php
 
- <input type="checkbox" name="id[]" value="1000">Joe Schmoe<br />
- <input type="checkbox" name="id[]" value="1001" checked="checked"><br />
- <input type="checkbox" name="id[]" value="1002">Jane Johnson<br />
- <input type="checkbox" name="id[]" value="1003">Charlie Brown<br />
+require('Smarty.class.php');
+$smarty = new Smarty;
+$smarty->assign('cust_checkboxes', array(
+			1000 => 'Joe Schmoe',
+			1001 => 'Jack Smith',
+			1002 => 'Jane Johnson',
+			1003 => 'Charlie Brown'));
+$smarty->assign('customer_id', 1001);
+$smarty->display('index.tpl');
+?>
 ]]>
   </programlisting>
+  <para>
+   øàáëîí index.tpl:
+  </para>
+  <programlisting>
+<![CDATA[
+{html_checkboxes name="id" options=$cust_checkboxes selected=$customer_id separator="&lt;br /&gt;"}
+]]>
+  </programlisting>
+  <para>
+   îáà ïðèìåðà âûâåäóò:
+  </para>
+  <screen>
+<![CDATA[
+<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />
+<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />
+<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />
+<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />
+]]>
+  </screen>
  </example>
 </sect1>
 <!-- Keep this comment at the end of the file
http://cvs.php.net/diff.php/smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml:1.3 smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml:1.4
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml:1.3	Mon Jul 19 09:11:27 2004
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml	Mon Sep 20 17:19:31 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.1 Maintainer: tony2001 Status: ready -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.3 Maintainer: freespace Status: ready -->
 <sect1 id="language.function.html.table">
  <title>html_table</title>
  <informaltable frame="all">
@@ -22,28 +22,46 @@
   <tbody>
    <row>
     <entry>loop</entry>
-    <entry>ìàññèâ</entry>
+    <entry>array</entry>
     <entry>Äà</entry>
     <entry><emphasis>n/a</emphasis></entry>
     <entry>ìàññèâ äàííûõ, ïî êîòîðîìó áóäåò ïðîèçâåäåí îáõîä</entry>
    </row>
    <row>
     <entry>cols</entry>
-    <entry>öåëîå (integer)</entry>
+    <entry>integer</entry>
     <entry>Íåò</entry>
     <entry><emphasis>3</emphasis></entry>
     <entry>êîëè÷åñòâî êîëîíîê òàáëèöû</entry>
    </row>
    <row>
+    <entry>cols</entry>
+    <entry>integer</entry>
+    <entry>Íåò</entry>
+    <entry><emphasis>3</emphasis></entry>
+    <entry>êîëè÷åñòâî êîëîíîê òàáëèöû,
+    äàííûå çàïîëíÿþò ÿ÷åöêè ñëåâà íàïðàâî,
+    ñâåðõó âíèç.</entry>
+   </row>
+   <row>
+    <entry>rows</entry>
+    <entry>integer</entry>
+    <entry>Íåò</entry>
+    <entry><emphasis>empty</emphasis></entry>
+    <entry>êîëè÷åñòâî ðÿäîâ òàáëèöû, äàííûå çàïîëíÿþò
+    ÿ÷åöêè ñëåâà íàïðàâî, ñâåðõó âíèç. Ýòîò àòòðèáóò -
+    âçàèìîèñêëþ÷àþùèéñÿ ñ àòòðèáóòîì "cols".</entry>
+   </row>
+   <row>
     <entry>table_attr</entry>
-    <entry>ñòðîêà (string)</entry>
+    <entry>string</entry>
     <entry>Íåò</entry>
     <entry><emphasis>border="1"</emphasis></entry>
     <entry>äîïîëíèòåëüíûå àòòðèáóòû òýãà table</entry>
    </row>
    <row>
     <entry>tr_attr</entry>
-    <entry>ñòðîêà (string)</entry>
+    <entry>string</entry>
     <entry>Íåò</entry>
     <entry><emphasis>ïóñòî</emphasis></entry>
     <entry>äîïîëíèòåëüíûå àòòðèáóòû òýãà tr (åñëè óêàçàí 
@@ -51,7 +69,7 @@
    </row>
    <row>
     <entry>td_attr</entry>
-    <entry>ñòðîêà (string)</entry>
+    <entry>string</entry>
     <entry>Íåò</entry>
     <entry><emphasis>ïóñòî</emphasis></entry>
     <entry>äîïîëíèòåëüíûå àòòðèáóòû òýãà td (åñëè óêàçàí 
@@ -59,11 +77,26 @@
    </row>
    <row>
     <entry>trailpad</entry>
-    <entry>ñòðîêà (string)</entry>
+    <entry>string</entry>
     <entry>Íåò</entry>
     <entry><emphasis>&amp;nbsp;</emphasis></entry>
        <entry>çíà÷åíèå îñòàòî÷íûõ ÿ÷ååê íà ïîñëåäíåé 
        ñòðîêå òàáèëöû</entry>
+   </row>
+   
+   <row>
+    <entry>hdir</entry>
+    <entry>string</entry>
+    <entry>Íåò</entry>
+    <entry><emphasis>right</emphasis></entry>
+    <entry>íàïðàâëåíèå îòîáðàæåíèÿ êàæäîãî ðÿäà. äîïóñòèìûå çíà÷åíèÿ: <emphasis>left</emphasis> (ñëåâà íàïðàâî), <emphasis>right</emphasis> (ñïðàâà íàëåâî)</entry>
+   </row>
+   <row>
+    <entry>vdir</entry>
+    <entry>string</entry>
+    <entry>Íåò</entry>
+    <entry><emphasis>down</emphasis></entry>
+    <entry>íàïðàâëåíèå îòîáðàæåíèå êàæäîé êîëîíêè. äîïóñòèìûå çíà÷åíèÿ: <emphasis>down</emphasis> (ñâåðõó âíèç), <emphasis>up</emphasis> (ñíèçó ââåðõ)</entry>
    </row>
   </tbody>
   </tgroup>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.