WS fix again

This commit is contained in:
tony2001
2004-04-15 16:18:37 +00:00
parent 2d5ee85e60
commit dfea03bf9d
3 changed files with 282 additions and 273 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?> <?xml version="1.0" encoding="windows-1251"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<sect1 id="language.function.fetch"> <sect1 id="language.function.fetch">
<title>fetch</title> <title>fetch</title>
<informaltable frame="all"> <informaltable frame="all">
<tgroup cols="5"> <tgroup cols="5">
@@ -64,9 +64,10 @@
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ($secure_dir). <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ($secure_dir).
</para> </para>
</note> </note>
<example> <example>
<title>fetch</title> <title>fetch</title>
<programlisting> <programlisting>
<![CDATA[
{* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> javascript <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> *} {* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> javascript <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> *}
{fetch file="/export/httpd/www.domain.com/docs/navbar.js"} {fetch file="/export/httpd/www.domain.com/docs/navbar.js"}
@@ -80,8 +81,10 @@
{fetch file="http://www.myweather.com/68502/" assign="weather"} {fetch file="http://www.myweather.com/68502/" assign="weather"}
{if $weather ne ""} {if $weather ne ""}
&lt;b&gt;{$weather}&lt;/b&gt; &lt;b&gt;{$weather}&lt;/b&gt;
{/if}</programlisting> {/if}
</example> ]]>
</programlisting>
</example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?> <?xml version="1.0" encoding="windows-1251"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<sect1 id="language.function.html.checkboxes"> <sect1 id="language.function.html.checkboxes">
<title>html_checkboxes</title> <title>html_checkboxes</title>
<informaltable frame="all"> <informaltable frame="all">
<tgroup cols="5"> <tgroup cols="5">
@@ -75,48 +75,51 @@
<20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>
<20><><EFBFBD> name/value <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> &lt;input&gt;. <20><><EFBFBD> name/value <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> &lt;input&gt;.
</para> </para>
<example> <example>
<title>html_checkboxes</title> <title>html_checkboxes</title>
<programlisting> <programlisting>
index.php: <![CDATA[
index.php:
require('Smarty.php.class'); require('Smarty.php.class');
$smarty = new Smarty; $smarty = new Smarty;
$smarty-&gt;assign('cust_ids', array(1000,1001,1002,1003)); $smarty->assign('cust_ids', array(1000,1001,1002,1003));
$smarty-&gt;assign('cust_names', array('Joe Schmoe','Jack Smith','Jane $smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
Johnson','Charlie Brown')); Johnson','Charlie Brown'));
$smarty-&gt;assign('customer_id', 1001); $smarty->assign('customer_id', 1001);
$smarty-&gt;display('index.tpl'); $smarty->display('index.tpl');
index.tpl: index.tpl:
{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="&lt;br /&gt;"} {html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
index.php: index.php:
require('Smarty.php.class'); require('Smarty.php.class');
$smarty = new Smarty; $smarty = new Smarty;
$smarty-&gt;assign('cust_checkboxes', array( $smarty->assign('cust_checkboxes', array(
1001 =&gt; 'Joe Schmoe', 1001 => 'Joe Schmoe',
1002 =&gt; 'Jack Smith', 1002 => 'Jack Smith',
1003 =&gt; 'Jane Johnson','Charlie Brown')); 1003 => 'Jane Johnson','Charlie Brown'));
$smarty-&gt;assign('customer_id', 1001); $smarty->assign('customer_id', 1001);
$smarty-&gt;display('index.tpl'); $smarty->display('index.tpl');
index.tpl: index.tpl:
{html_checkboxes name="id" options=$cust_checkboxes checked=$customer_id separator="&lt;br /&gt;"} {html_checkboxes name="id" options=$cust_checkboxes checked=$customer_id separator="<br />"}
OUTPUT: (both examples) OUTPUT: (both examples)
&lt;input type="checkbox" name="id[]" value="1000"&gt;Joe Schmoe&lt;br /&gt; <input type="checkbox" name="id[]" value="1000">Joe Schmoe<br />
&lt;input type="checkbox" name="id[]" value="1001" checked="checked"&gt;&lt;br /&gt; <input type="checkbox" name="id[]" value="1001" checked="checked"><br />
&lt;input type="checkbox" name="id[]" value="1002"&gt;Jane Johnson&lt;br /&gt; <input type="checkbox" name="id[]" value="1002">Jane Johnson<br />
&lt;input type="checkbox" name="id[]" value="1003"&gt;Charlie Brown&lt;br /&gt;</programlisting> <input type="checkbox" name="id[]" value="1003">Charlie Brown<br />
</example> ]]>
</programlisting>
</example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?> <?xml version="1.0" encoding="windows-1251"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<sect1 id="language.function.html.image"> <sect1 id="language.function.html.image">
<title>html_image</title> <title>html_image</title>
<informaltable frame="all"> <informaltable frame="all">
<tgroup cols="5"> <tgroup cols="5">
@@ -91,14 +91,15 @@
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
</para> </para>
</note> </note>
<example> <example>
<title>html_image</title> <title>html_image</title>
<programlisting> <programlisting>
<![CDATA[
index.php: index.php:
require('Smarty.php.class'); require('Smarty.php.class');
$smarty = new Smarty; $smarty = new Smarty;
$smarty-&gt;display('index.tpl'); $smarty->display('index.tpl');
index.tpl: index.tpl:
@@ -108,10 +109,12 @@ index.tpl:
OUTPUT: (possible) OUTPUT: (possible)
&lt;img src="pumpkin.jpg" border="0" width="44" height="68"&gt; <img src="pumpkin.jpg" border="0" width="44" height="68">
&lt;img src="/path/under/docroot/pumpkin.jpg" border="0" width="44" height="68"&gt; <img src="/path/under/docroot/pumpkin.jpg" border="0" width="44" height="68">
&lt;img src="../path/relative/to/currdir/pumpkin.jpg" border="0" width="44" height="68"&gt;</programlisting> <img src="../path/relative/to/currdir/pumpkin.jpg" border="0" width="44" height="68">
</example> ]]>
</programlisting>
</example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables: