cvs: smarty /docs/ru/designers/language-custom-functions language-function-assign.xml language-function-eval.xml language-function-fetch.xml language-function-html-checkboxes.xml language-function-html-image.xml language-function-html-options.xml language-function-html-radios.xml language-function-html-table.xml language-function-mailto.xml language-function-popup-init.xml language-function-popup.xml
[email protected] ("George Miroshnikov") Thu, 20 Jul 2006 11:56:10 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvsfreespace1153396570@cvsserver> |
freespace Thu Jul 20 11:56:10 2006 UTC
Modified files:
/smarty/docs/ru/designers/language-custom-functions
language-function-assign.xml
language-function-eval.xml
language-function-fetch.xml
language-function-html-checkboxes.xml
language-function-html-image.xml
language-function-html-options.xml
language-function-html-radios.xml
language-function-html-table.xml
language-function-mailto.xml
language-function-popup-init.xml
language-function-popup.xml
Log:
sync with EN
freespace-20060720115610.txt
(text/plain, 29.3 KB)
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-assign.xml?r1=1.8&r2=1.9&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-assign.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-assign.xml:1.8 smarty/docs/ru/designers/language-custom-functions/language-function-assign.xml:1.9
--- smarty/docs/ru/designers/language-custom-functions/language-function-assign.xml:1.8 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-assign.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.8 $ -->
-<!-- EN-Revision: 1.6 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 1.8 Maintainer: freespace Status: ready -->
<sect1 id="language.function.assign">
<title>{assign}</title>
<para>
@@ -64,9 +64,19 @@
</example>
<example>
+ <title>{assign} è àðèôìåòèêà</title>
+ <para> ýòîì ñëîæíîì ïðèìåðå ïåðåìåííûå äîëæíû çàêëþ÷àòüñÿ â îáðàòíûå êàâû÷êè</para>
+ <programlisting>
+<![CDATA[
+{assign var=running_total value=`$running_total+$some_array[loop].some_value`}
+]]>
+ </programlisting>
+ </example>
+
+ <example>
<title>Äîñòóï ê ïåðåìåííûì {assign} èç PHP-ñêðèïòà.</title>
<para>
- ×òîáû ïîëó÷èòü äîñòóï ê ïåðåìåííûì {assign} èç PHP èñïîëüçóéòå ôóíêöèþ
+ ×òîáû ïîëó÷èòü äîñòóï ê ïåðåìåííûì {assign} èç PHP-ñêðèïòà, èñïîëüçóéòå ôóíêöèþ
<link linkend="api.get.template.vars">get_template_vars()</link>.
Îáðàòèòå âíèìàíèå, ÷òî ïåðåìåííûå äîñòóïíû òîëüêî âî âðåìÿ è ïîñëå
âûïîëíåíèÿ øàáëîíà, êàê âèäíî èç ñëåäóþùåãî ïðèìåðà:
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-eval.xml?r1=1.7&r2=1.8&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-eval.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-eval.xml:1.7 smarty/docs/ru/designers/language-custom-functions/language-function-eval.xml:1.8
--- smarty/docs/ru/designers/language-custom-functions/language-function-eval.xml:1.7 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-eval.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.7 $ -->
-<!-- EN-Revision: 1.4 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.8 $ -->
+<!-- EN-Revision: 1.6 Maintainer: freespace Status: ready -->
<sect1 id="language.function.eval">
<title>{eval}</title>
<para>
@@ -69,28 +69,26 @@
<title>{eval}</title>
<programlisting>
<![CDATA[
- setup.conf
- ----------
-
- emphstart = <strong>
- emphend = </strong>
- title = Welcome to {$company}'s home page!
- ErrorCity = You must supply a {#emphstart#}city{#emphend#}.
- ErrorState = You must supply a {#emphstart#}state{#emphend#}.
+#setup.conf
+#----------
+emphstart = <strong>
+emphend = </strong>
+title = Welcome to {$company}'s home page!
+ErrorCity = You must supply a {#emphstart#}city{#emphend#}.
+ErrorState = You must supply a {#emphstart#}state{#emphend#}.
]]>
</programlisting>
<para>
- index.tpl:
+ Øàáëîí:
</para>
<programlisting>
<![CDATA[
- {config_load file="setup.conf"}
-
- {eval var=$foo}
- {eval var=#title#}
- {eval var=#ErrorCity#}
- {eval var=#ErrorState# assign="state_error"}
- {$state_error}
+{config_load file='setup.conf'}
+{eval var=$foo}
+{eval var=#title#}
+{eval var=#ErrorCity#}
+{eval var=#ErrorState# assign='state_error'}
+{$state_error}
]]>
</programlisting>
<para>
@@ -98,13 +96,37 @@
</para>
<screen>
<![CDATA[
- This is the contents of foo.
- Welcome to Foobar Pub & Grill's home page!
- You must supply a <strong>city</strong>.
- You must supply a <strong>state</strong>.
+This is the contents of foo.
+Welcome to Foobar Pub & Grill's home page!
+You must supply a <strong>city</strong>.
+You must supply a <strong>state</strong>.
]]>
</screen>
</example>
+
+ <example>
+ <title>Äðóãîé ïðèìåð èñïîëüçîâàíèÿ {eval}</title>
+ <para>
+ Îòîáðàæàåò èìÿ ñåðâåðà (çàãëàâíûìè áóêâàìè) è IP-àäðåñ.
+ Ïåðåìåííàÿ $str òàê æå ìîæåò áûòü ðåçóëüòàòîì çàïðîñà ê ÁÄ.
+ </para>
+ <programlisting role="php">
+<![CDATA[
+// php script
+$str = 'The server name is {$smarty.server.SERVER_NAME|upper} '
+ .'at {$smarty.server.SERVER_ADDR}';
+$smarty->assign('foo',$str);
+]]>
+ </programlisting>
+ <para>
+ Øàáëîí:
+ </para>
+ <programlisting>
+<![CDATA[
+ {eval var=$foo}
+]]>
+ </programlisting>
+ </example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-fetch.xml?r1=1.9&r2=1.10&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-fetch.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-fetch.xml:1.9 smarty/docs/ru/designers/language-custom-functions/language-function-fetch.xml:1.10
--- smarty/docs/ru/designers/language-custom-functions/language-function-fetch.xml:1.9 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-fetch.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.9 $ -->
-<!-- EN-Revision: 1.9 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.10 $ -->
+<!-- EN-Revision: 1.11 Maintainer: freespace Status: ready -->
<sect1 id="language.function.fetch">
<title>{fetch}</title>
<para>
@@ -14,8 +14,7 @@
</para>
<para>
Åñëè óêàçàòü ñïåöèàëíüûé àòðèáóò "assign", òî âûâîä ôóíêöèè {fetch}
- áóäåò ïðèñâîåí ïåðåìåííîé øàáëîíà, âìåñòî îòîáðàæåíèÿ. Äîáàâëåíî â
- Smarty âåðñèè 1.5.0.
+ áóäåò ïðèñâîåí ïåðåìåííîé øàáëîíà, âìåñòî îòîáðàæåíèÿ.
</para>
<informaltable frame="all">
@@ -63,29 +62,31 @@
<note>
<title>Òåõíè÷åñêîå Çàìå÷àíèå</title>
<para>
- Åñëè âêëþ÷åíà security è óêàçàí ôàéë èç ëîêàëüíîé ôàéëîâîé
- ñèñòåìû, òî îòîáðàçÿòñÿ ëèøü ôàéëû, êîòîðûé íàõîäÿòñÿ â
- óêàçàíûõ áåçîïàñíûõ ïàïêàõ
- (<link linkend="variable.secure.dir">$secure_dir</link>).
+ Åñëè âêëþ÷¸í ðåæèì <link linkend="variable.security">$security</link>
+ è óêàçàí ôàéë èç ëîêàëüíîé ôàéëîâîé ñèñòåìû, òî ôàéë îáðàáîòàåòñÿ ëèøü â
+ òîì ñëó÷àå, åñëè îí íàõîäÿòñÿ â îäíîé èç óêàçàíûõ
+ <link linkend="variable.secure.dir">áåçîïàñíûõ ïàïêàõ</link>.
</para>
</note>
<example>
- <title>{fetch}</title>
+ <title>Ïðèìåð {fetch}</title>
<programlisting>
<![CDATA[
{* âêëþ÷àåì javascript â øàáëîí *}
-{fetch file="/export/httpd/www.example.com/docs/navbar.js"}
+{fetch file='/export/httpd/www.example.com/docs/navbar.js'}
{* Äîáàâëÿåì íåìíîãî ïðîãíîçà ïîãîäû ñ ñåðâåðà ïîãîäû *}
-{fetch file="http://www.myweather.com/68502/"}
+{fetch file='http://www.myweather.com/68502/'}
{* íîâîñòíóþ ëåíòó áåðåì ñ ftp ñåðâåðà *}
-{fetch file="ftp://user:[email protected]/path/to/currentheadlines.txt"}
+{fetch file='ftp://user:[email protected]/path/to/currentheadlines.txt'}
+{* êàê â ïðåäûäóùåì ïðèìåðå, íî ñ ïåðåìåííûìè *}
+{fetch file="ftp://`$user`:`$password`@`$server`/`$path`"}
{* ïðèñâàèâàåì ïîëó÷åííûé ôàéë ïåðåìåííîé *}
-{fetch file="http://www.myweather.com/68502/" assign="weather"}
-{if $weather ne ""}
- <b>{$weather}</b>
+{fetch file='http://www.myweather.com/68502/' assign='weather'}
+{if $weather ne ''}
+ <div id="weather">{$weather}</div>
{/if}
]]>
</programlisting>
@@ -94,7 +95,8 @@
<para>
Ñì. òàêæå
<link linkend="language.function.capture">{capture}</link>,
- <link linkend="language.function.eval">{eval}</link>
+ <link linkend="language.function.eval">{eval}</link>,
+ <link linkend="language.function.assign">{assign}</link>
è
<link linkend="api.fetch">fetch()</link>.
</para>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml?r1=1.11&r2=1.12&diff_format=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.11 smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml:1.12
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml:1.11 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.11 $ -->
-<!-- EN-Revision: 1.11 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.12 $ -->
+<!-- EN-Revision: 1.16 Maintainer: freespace Status: ready -->
<sect1 id="language.function.html.checkboxes">
<title>{html_checkboxes}</title>
<para>
@@ -9,7 +9,7 @@
êîòîðàÿ ñîçäàåò ãðóïïó ôëàæêîâ â HTML ïî óêàçàííîé èíôîðìàöèè.
Òàêæå îíà îáåñïå÷èâàåò îòìåòêó ôëàæêîâ ïî óìîë÷àíèþ.
Ïàðàìåòðû values è output ÿâëÿþòñÿ îáÿçàòåëüíûìè, åñëè íå óêàçàí àòðèáóò
- options. Âåñü âûâîä ñîâìåñòèì ñ XHTML.
+ options. Âåñü âûâîä èäåò â ôîðìàòå XHTML.
</para>
<informaltable frame="all">
@@ -78,6 +78,13 @@
<entry><emphasis>true</emphasis></entry>
<entry>äîáàâëÿåò <label>-òýãè ê âûâîäó</entry>
</row>
+ <row>
+ <entry>assign</entry>
+ <entry>string</entry>
+ <entry>Íåò</entry>
+ <entry><emphasis>ïóñòî</emphasis></entry>
+ <entry>ñîõðàíèòü òýãè ôëàæêîâ â ìàññèâ âìåñòî âûâîäà</entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-html-image.xml?r1=1.9&r2=1.10&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-html-image.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-html-image.xml:1.9 smarty/docs/ru/designers/language-custom-functions/language-function-html-image.xml:1.10
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-image.xml:1.9 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-image.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.9 $ -->
-<!-- EN-Revision: 1.7 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.10 $ -->
+<!-- EN-Revision: 1.8 Maintainer: freespace Status: ready -->
<sect1 id="language.function.html.image">
<title>{html_image}</title>
<para>
@@ -114,22 +114,18 @@
</para>
</note>
<example>
- <title>{html_image}</title>
+ <title>Ïðèìåð ðàáîòû html_image</title>
<programlisting>
<![CDATA[
-{html_image file="pumpkin.jpg"}
-{html_image file="/path/from/docroot/pumpkin.jpg"}
-{html_image file="../path/relative/to/currdir/pumpkin.jpg"}
-
-OUTPUT: (possible)
-
-<img src="pumpkin.jpg" width="44" height="68">
-<img src="/path/under/docroot/pumpkin.jpg" width="44" height="68">
-<img src="../path/relative/to/currdir/pumpkin.jpg" width="44" height="68">
+index.tpl:
+-------------------
+{html_image file='pumpkin.jpg'}
+{html_image file='/path/from/docroot/pumpkin.jpg'}
+{html_image file='../path/relative/to/currdir/pumpkin.jpg'}
]]>
</programlisting>
<para>
- âîçìîæíûé ðåçóëüòàò:
+ Âîçìîæíûé ðåçóëüòàò îáðàáîòêè øàáëîíà:
</para>
<screen>
<![CDATA[
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-html-options.xml?r1=1.10&r2=1.11&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-html-options.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-html-options.xml:1.10 smarty/docs/ru/designers/language-custom-functions/language-function-html-options.xml:1.11
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-options.xml:1.10 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-options.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.10 $ -->
-<!-- EN-Revision: 1.12 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.11 $ -->
+<!-- EN-Revision: 1.14 Maintainer: freespace Status: ready -->
<sect1 id="language.function.html.options">
<title>{html_options}</title>
<para>{html_options} ÿâëÿåòñÿ
@@ -158,11 +158,11 @@
<![CDATA[
<?php
-$sql = 'select type_id, types from types order by type';
-$smarty->assign('types',$db->getAssoc($sql));
+$sql = 'select type_id, types from contact_types order by type';
+$smarty->assign('contact_types',$db->getAssoc($sql));
-$sql = 'select contact_id, name, email, type_id
- from contacts where contact_id='.$contact_id;
+$sql = 'select contact_id, name, email, contact_type_id
+ from contacts where contact_id='.$contact_id;
$smarty->assign('contact',$db->getRow($sql));
?>
@@ -175,7 +175,7 @@
<![CDATA[
<select name="type_id">
<option value='null'>-- none --</option>
- {html_options name="type" options=$types selected=$contact.type_id}
+ {html_options options=$contact_types selected=$contact.type_id}
</select>
]]>
</programlisting>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-html-radios.xml?r1=1.8&r2=1.9&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-html-radios.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-html-radios.xml:1.8 smarty/docs/ru/designers/language-custom-functions/language-function-html-radios.xml:1.9
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-radios.xml:1.8 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-radios.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.8 $ -->
-<!-- EN-Revision: 1.11 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 1.16 Maintainer: freespace Status: ready -->
<sect1 id="language.function.html.radios">
<title>{html_radios}</title>
<para>{html_radios} ÿâëÿåòñÿ
@@ -8,7 +8,7 @@
êîòîðàÿ ñîçäàåò ãðóïïó ðàäèîêíîïîê â HTML ïî óêàçàííîé èíôîðìàöèè.
Òàêæå îíà îáåñïå÷èâàåò âûáîð ðàäèîêíîïêè ïî óìîë÷àíèþ.
Ïàðàìåòðû values è output ÿâëÿþòñÿ îáÿçàòåëüíûìè, åñëè íå óêàçàí àòðèáóò
- options. Âåñü âûâîä ñîâìåñòèì ñ XHTML.
+ options. Âåñü âûâîä èäåò â ôîðìàòå XHTML.
</para>
<informaltable frame="all">
@@ -71,6 +71,13 @@
<entry><emphasis>ïóñòî</emphasis></entry>
<entry>òåêñò, ðàçäåëÿþùèé ýëåìåíòû âûáîðà</entry>
</row>
+ <row>
+ <entry>assign</entry>
+ <entry>string</entry>
+ <entry>Íåò</entry>
+ <entry><emphasis>ïóñòî</emphasis></entry>
+ <entry>ñîõðàíÿåò òýãè radio â ìàññèâ, âìåñòî âûâîäà â øàáëîí</entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
@@ -81,7 +88,7 @@
</para>
<example>
- <title>{html_radios}: Ïðèìåð ¹1</title>
+ <title>{html_radios} - ïðèìåð ¹1</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -103,13 +110,13 @@
</para>
<programlisting>
<![CDATA[
-{html_radios name="id" values=$cust_ids output=$cust_names
- selected=$customer_id separator="<br />"}
+{html_radios name='id' values=$cust_ids output=$cust_names
+ selected=$customer_id separator='<br />'}
]]>
</programlisting>
</example>
<example>
- <title>{html_radios}: Ïðèìåð ¹2</title>
+ <title>{html_radios} - ïðèìåð ¹2</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -133,7 +140,7 @@
]]>
</programlisting>
<para>
- Both examples will output:
+ Îáà ïðèìåðà âûâåäóò ñëåäóþùåå:
</para>
<screen>
<![CDATA[
@@ -146,16 +153,16 @@
</screen>
</example>
<example>
- <title>{html_radios}- Ïðèìåð ñ áàçîé äàííûõ (ê ïðèìåðó, PEAR èëè ADODB):</title>
+ <title>{html_radios} - ïðèìåð ñ áàçîé äàííûõ (ê ïðèìåðó, PEAR èëè ADODB):</title>
<programlisting role="php">
<![CDATA[
<?php
-$sql = 'select type_id, types from types order by type';
-$smarty->assign('types',$db->getAssoc($sql));
+$sql = 'select type_id, types from contact_types order by type';
+$smarty->assign('contact_types',$db->getAssoc($sql));
-$sql = 'select contact_id, name, email, type_id
- from contacts where contact_id='.$contact_id;
+$sql = 'select contact_id, name, email, contact_type_id '
+ .'from contacts where contact_id='.$contact_id;
$smarty->assign('contact',$db->getRow($sql));
?>
@@ -166,7 +173,8 @@
</para>
<programlisting>
<![CDATA[
-{html_radios name="type" options=$types selected=$contact.type_id separator="<br />"}
+{html_radios name='contact_type_id' options=$contact_types
+ selected=$contact.contact_type_id separator='<br />'}
]]>
</programlisting>
</example>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml?r1=1.9&r2=1.10&diff_format=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.9 smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml:1.10
--- smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml:1.9 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-html-table.xml Thu Jul 20 11:56:09 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<!-- EN-Revision: 1.9 Maintainer: freespace Status: ready -->
<sect1 id="language.function.html.table">
<title>{html_table}</title>
@@ -42,7 +42,7 @@
</row>
<row>
<entry>cols</entry>
- <entry>integer</entry>
+ <entry>mixed</entry>
<entry>Íåò</entry>
<entry><emphasis>3</emphasis></entry>
<entry>
@@ -51,6 +51,8 @@
èç êîëè÷åñòâà ñòðîê è êîëè÷åñòâà ýëåìåíòîâ äëÿ îòîáðàæåíèÿ, ÷òîáû êàê
ðàç óìåñòèòü âñå ýëåìåíòû. Åñëè îáà ïàðàìåòðà (è rows, è cols) îïóùåíû,
cols ïðèíèìàåò çíà÷åíèå ïî óìîë÷àíèþ, ðàâíîå 3.
+ Åñëè ïàðàìåòð ÿâëÿåòñÿ ñïèñêîì èëè ìàññèâîì, êîë-âî êîëîíîê ðàññ÷èòûâàåòñÿ
+ èñõîäÿ èç êîë-âà ýëåìåíòîâ â ñïèñêå èëè ìàññèâå.
</entry>
</row>
<row>
@@ -77,6 +79,15 @@
</entry>
</row>
<row>
+ <entry>caption</entry>
+ <entry>string</entry>
+ <entry>Íåò</entry>
+ <entry><emphasis>ïóñòî</emphasis></entry>
+ <entry>
+ òåêñò, èñïîëüçóåìûé â êà÷åñòâå çàãîëîâêà òàáëèöû.
+ </entry>
+ </row>
+ <row>
<entry>table_attr</entry>
<entry>string</entry>
<entry>Íåò</entry>
@@ -84,17 +95,24 @@
<entry>àòðèáóòû äëÿ òýãà table</entry>
</row>
<row>
+ <entry>th_attr</entry>
+ <entry>string</entry>
+ <entry>Íåò</entry>
+ <entry><emphasis>ïóñòî</emphasis></entry>
+ <entry>àòðèáóòû äëÿ òýãà th (çíà÷åíèÿ ìàññèâà îòîáðàæàþòñÿ öèêëè÷íî)</entry>
+ </row>
+ <row>
<entry>tr_attr</entry>
<entry>string</entry>
<entry>Íåò</entry>
- <entry><emphasis>empty</emphasis></entry>
+ <entry><emphasis>ïóñòî</emphasis></entry>
<entry>àòðèáóòû äëÿ òýãà tr (çíà÷åíèÿ ìàññèâà îòîáðàæàþòñÿ öèêëè÷íî)</entry>
</row>
<row>
<entry>td_attr</entry>
<entry>string</entry>
<entry>Íåò</entry>
- <entry><emphasis>empty</emphasis></entry>
+ <entry><emphasis>ïóñòî</emphasis></entry>
<entry>àòðèáóòû äëÿ òýãà td (çíà÷åíèÿ ìàññèâà îòîáðàæàþòñÿ öèêëè÷íî)</entry>
</row>
<row>
@@ -153,7 +171,7 @@
<![CDATA[
{html_table loop=$data}
{html_table loop=$data cols=4 table_attr='border="0"'}
-{html_table loop=$data cols=4 tr_attr=$tr}
+{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr}
]]>
</programlisting>
<para>
@@ -162,19 +180,30 @@
<screen>
<![CDATA[
<table border="1">
+<tbody>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr>
<tr><td>7</td><td>8</td><td>9</td></tr>
+</tbody>
</table>
<table border="0">
+<tbody>
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr>
<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr>
<tr><td>9</td><td> </td><td> </td><td> </td></tr>
+</tbody>
</table>
<table border="1">
+<thead>
+<tr>
+<th>first</th><th>second</th><th>third</th><th>fourth</th>
+</tr>
+</thead>
+<tbody>
<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr>
<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr>
<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr>
+</tbody>
</table>
]]>
</screen>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-mailto.xml?r1=1.10&r2=1.11&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-mailto.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-mailto.xml:1.10 smarty/docs/ru/designers/language-custom-functions/language-function-mailto.xml:1.11
--- smarty/docs/ru/designers/language-custom-functions/language-function-mailto.xml:1.10 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-mailto.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.10 $ -->
-<!-- EN-Revision: 1.6 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.11 $ -->
+<!-- EN-Revision: 1.7 Maintainer: freespace Status: ready -->
<sect1 id="language.function.mailto">
<title>{mailto}</title>
<para>
@@ -113,38 +113,38 @@
</para>
</note>
<example>
- <title>{mailto}</title>
+ <title>Ïðèìåðû èñïîëüçîâàíèÿ {mailto} è ðåçóëüòàòû èõ îáðàáîòêè</title>
<programlisting>
<![CDATA[
- {mailto address="[email protected]"}
+{mailto address="[email protected]"}
<a href="mailto:[email protected]" >[email protected]</a>
- {mailto address="[email protected]" text="send me some mail"}
+{mailto address="[email protected]" text="send me some mail"}
<a href="mailto:[email protected]" >send me some mail</a>
- {mailto address="[email protected]" encode="javascript"}
+{mailto address="[email protected]" encode="javascript"}
<script type="text/javascript" language="javascript">
eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b'))
</script>
- {mailto address="[email protected]" encode="hex"}
+{mailto address="[email protected]" encode="hex"}
<a href="mailto:%6d%65.. snipped..3%6f%6d">m&..snipped...#x6f;m</a>
- {mailto address="[email protected]" subject="Hello to you!"}
- <a href="mailto:[email protected]?subject=Hello%20to%20you%21" >[email protected]</a>
+{mailto address="[email protected]" subject="Hello to you!"}
+<a href="mailto:[email protected]?subject=Hello%20to%20you%21" >[email protected]</a>
{mailto address="[email protected]" cc="[email protected],[email protected]"}
- <a href="mailto:[email protected][email protected]%[email protected]" >[email protected]</a>
+<a href="mailto:[email protected][email protected]%[email protected]" >[email protected]</a>
{mailto address="[email protected]" extra='class="email"'}
- <a href="mailto:[email protected]" class="email">[email protected]</a>
+<a href="mailto:[email protected]" class="email">[email protected]</a>
{mailto address="[email protected]" encode="javascript_charcode"}
- <script type="text/javascript" language="javascript">
- <!--
+<script type="text/javascript" language="javascript">
+<!--
{document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))}
- //-->
- </script>
+//-->
+</script>
]]>
</programlisting>
</example>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-popup-init.xml?r1=1.6&r2=1.7&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-popup-init.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-popup-init.xml:1.6 smarty/docs/ru/designers/language-custom-functions/language-function-popup-init.xml:1.7
--- smarty/docs/ru/designers/language-custom-functions/language-function-popup-init.xml:1.6 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-popup-init.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.6 $ -->
-<!-- EN-Revision: 1.5 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.7 $ -->
+<!-- EN-Revision: 1.6 Maintainer: freespace Status: ready -->
<sect1 id="language.function.popup.init">
<title>{popup_init}</title>
<para>
@@ -25,7 +25,7 @@
<![CDATA[
<head>
{* popup_init äîëæíà áûòü âûçâàíà îäèí ðàç â íà÷àëå ñòðàíèöû *}
-{popup_init src="javascripts/overlib.js"}
+{popup_init src='javascripts/overlib/overlib.js'}
</head>
]]>
</programlisting>
http://cvs.php.net/viewvc.cgi/smarty/docs/ru/designers/language-custom-functions/language-function-popup.xml?r1=1.8&r2=1.9&diff_format=u
Index: smarty/docs/ru/designers/language-custom-functions/language-function-popup.xml
diff -u smarty/docs/ru/designers/language-custom-functions/language-function-popup.xml:1.8 smarty/docs/ru/designers/language-custom-functions/language-function-popup.xml:1.9
--- smarty/docs/ru/designers/language-custom-functions/language-function-popup.xml:1.8 Fri Dec 30 15:43:38 2005
+++ smarty/docs/ru/designers/language-custom-functions/language-function-popup.xml Thu Jul 20 11:56:09 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.8 $ -->
-<!-- EN-Revision: 1.6 Maintainer: freespace Status: ready -->
+<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 1.9 Maintainer: freespace Status: ready -->
<sect1 id="language.function.popup">
<title>{popup}</title>
<para>
@@ -361,7 +361,7 @@
ôóíêöèè</entry>
</row>
<row>
- <entry>timeout</entry>
+ <entry>function</entry>
<entry>string</entry>
<entry>Íåò</entry>
<entry><emphasis>n/a</emphasis></entry>
@@ -401,20 +401,27 @@
<programlisting>
<![CDATA[
{* popup_init äîëæíà áûòü âûçâàíà îäèí ðàç â íà÷àëå ñòðàíèöû *}
-{popup_init src="/javascripts/overlib.js"}
+{popup_init src='/javascripts/overlib.js'}
{* ñîçäàåò ññûëêó ñî âñïëûâàþùèì îêíîì, êîãäà âû íàâîäèòå íà íå¸ êóðñîð *}
-<a href="mypage.html" {popup text="This link takes you to my page!"}>mypage</a>
+<a href="mypage.html" {popup text='This link takes you to my page!'}>mypage</a>
{* âû ìîæåòå èñïîëüçîâàòü HTML, ññûëêè è ò.ä. â òåêñòå *}
-<a href="mypage.html" {popup sticky=true caption="mypage contents"
+<a href="mypage.html" {popup sticky=true caption='mypage contents'
text="<ul><li>links</li><li>pages</li><li>images</li></ul>"
-snapx=10 snapy=10}>mypage</a>
+snapx=10 snapy=10 trigger='onClick'}>mypage</a>
+
+{* âñïëûâàþùåå îêíî íàä ÿ÷åéêîé òàáëèöû *}
+<tr><td {popup caption='Part details' text=$part_long_description}>{$part_number}</td></tr>
]]>
</programlisting>
</example>
<para>
- Ñì. òàêæå
+ Äðóãîé õîðîøèé ïðèìåð ìîæíî íàéòè íà â îïèñàíèè òýãà
+ <link linkend="language.function.capture">{capture}</link>.
+ </para>
+ <para>
+ Ñì. òàêæå
<link linkend="language.function.popup.init">{popup_init}</link>
è
<ulink url="&url.overLib;">overLib</ulink>.