Review translation, fixing tags, etc...

This commit is contained in:
thomasgm
2004-10-01 14:39:42 +00:00
parent 1203342d80
commit 4465197142
18 changed files with 574 additions and 504 deletions

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -24,32 +24,35 @@
<entry>string</entry>
<entry>Sim</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>O nome da vari<72>vel que esta ganhando valor</entry>
<entry>O nome da vari<72>vel que est<EFBFBD> sendo definida</entry>
</row>
<row>
<entry>value</entry>
<entry>string</entry>
<entry>Yes</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>O valor que esta sendo dado</entry>
<entry>O valor que est<EFBFBD> sendo definido</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
assign <20> usado para definir valores para vari<72>vel
assign <20> usado para definir o valor de uma vari<72>vel
de template durante a execu<63><75>o do template.
</para>
<example>
<title>assign</title>
<programlisting>
{assign var="name" value="Bob"}
<![CDATA[
{assign var="nome" value="Bob"}
The value of $name is {$name}.
O valor de $nome <EFBFBD> {$nome}.
MOSTRA:
The value of $name is Bob.</programlisting>
O valor de $nome <EFBFBD> Bob.
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -31,14 +31,14 @@
<entry>number</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>1</emphasis></entry>
<entry>O n<>mero inicial para contar a partir de</entry>
<entry>O n<>mero no qual a contagem se inicia</entry>
</row>
<row>
<entry>skip</entry>
<entry>number</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>1</emphasis></entry>
<entry>O intervalo para contar</entry>
<entry>O intervalo entre as contagens</entry>
</row>
<row>
<entry>direction</entry>
@@ -69,32 +69,35 @@
counter <20> usada para mostrar uma contagem. counter ir<69> se lembrar de
count em cada intera<72><61>o. Voc<6F> pode ajustar o n<>mero, o intervalo
e a dire<72><65>o da contagem, assim como detrminar quando
mostrar ou n<>o a contagem. Voc<6F> pode ter varios contadores ao
mostrar ou n<>o a contagem. Voc<6F> pode ter v<EFBFBD>rios contadores ao
mesmo tempo, dando um nome <20>nico para cada um. Se voc<6F> n<>o der um nome,
o nome 'default' ser<65> usado.
</para>
<para>
Se voc<6F> indicar o atributo especial "assign", a sa<73>da da fun<75><6E>o counter
ir<EFBFBD> para essa vari<72>vel de template ao inv<6E>s de
ser<EFBFBD> passada para essa vari<72>vel de template ao inv<6E>s de
ser mostrada no template.
</para>
<example>
<title>counter</title>
<programlisting>
<![CDATA[
{* inicia a contagem *}
{counter start=0 skip=2 print=false}
{counter}&lt;br&gt;
{counter}&lt;br&gt;
{counter}&lt;br&gt;
{counter}&lt;br&gt;
{counter}<br>
{counter}<br>
{counter}<br>
{counter}<br>
MOSTRA:
2&lt;br&gt;
4&lt;br&gt;
6&lt;br&gt;
8&lt;br&gt;</programlisting>
2<br>
4<br>
6<br>
8<br>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -30,7 +30,7 @@
<entry>values</entry>
<entry>mixed</entry>
<entry>Sim</entry>
<entry><emphasis>N/A</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Os valores do ciclo, ou uma lista delimitada
por v<>rgula (veja o atributo delimiter),
ou uma matriz de valores.</entry>
@@ -54,13 +54,13 @@
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>,</emphasis></entry>
<entry>O delimitador para usar no atributo values.</entry>
<entry>O delimitador para usar no atributo 'values'.</entry>
</row>
<row>
<entry>assign</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>A vari<72>vel de template que
receber<65> a sa<73>da</entry>
</row>
@@ -88,29 +88,31 @@
</para>
<para>
Se voc<6F> indicar o atributo especial "assign", a sa<73>da da fun<75><6E>o
cycle ir<EFBFBD> para a vari<72>vel de template ao inv<6E>s de ser
cycle ser<EFBFBD> passada para uma vari<72>vel de template ao inv<6E>s de ser
mostrado diretamente no template.
</para>
<example>
<title>cycle</title>
<programlisting>
<![CDATA[
{section name=rows loop=$data}
&lt;tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"&gt;
&lt;td&gt;{$data[rows]}&lt;/td&gt;
&lt;/tr&gt;
<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
<td>{$data[rows]}</td>
</tr>
{/section}
MOSTRA:
&lt;tr bgcolor="#eeeeee"&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr bgcolor="#d0d0d0"&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr bgcolor="#eeeeee"&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
<tr bgcolor="#eeeeee">
<td>1</td>
</tr>
<tr bgcolor="#d0d0d0">
<td>2</td>
</tr>
<tr bgcolor="#eeeeee">
<td>3</td>
</tr>
]]>
</programlisting>
</example>
</sect1>

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -30,11 +30,11 @@
</tgroup>
</informaltable>
<para>
{debug} mostra o console de debug na p<>gina. Isto funciona independente
{debug} mostra o console de debug na p<>gina. Ele funciona independente
da defini<6E><69>o de <link linkend="chapter.debugging.console">debug</link>.
J<> que isto <20> executado em tempo de execu<63><75>o, isto <20> capaz apenas de
J<> que ele <20> executado em tempo de execu<63><75>o, ele <20> capaz apenas de
mostrar as vari<72>veis definidas, e n<>o os templates
que estejam em uso. Mas voc<6F> pode ver todas as vari<72>veis
que est<EFBFBD>o em uso. Mas voc<6F> pode ver todas as vari<72>veis
dispon<6F>veis no escopo do template.
</para>
</sect1>

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -66,11 +66,12 @@
<example>
<title>eval</title>
<programlisting>
<![CDATA[
setup.conf
----------
emphstart = &lt;b&gt;
emphend = &lt;/b&gt;
emphstart = <b>
emphend = </b>
title = Welcome to {$company}'s home page!
ErrorCity = You must supply a {#emphstart#}city{#emphend#}.
ErrorState = You must supply a {#emphstart#}state{#emphend#}.
@@ -90,10 +91,10 @@ index.tpl
MOSTRA:
This is the contents of foo.
Welcome to Foobar Pub &amp; Grill's home page!
You must supply a &lt;b&gt;city&lt;/b&gt;.
You must supply a &lt;b&gt;state&lt;/b&gt;.
Welcome to Foobar Pub & Grill's home page!
You must supply a <b>city</b>.
You must supply a <b>state</b>.
]]>
</programlisting>
</example>
</sect1>

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -47,28 +47,29 @@
</para>
<para>
Se voc<6F> indicar o atributo especial "assign", a sa<73>da da fun<75><6E>o
fetch ir<EFBFBD> para uma vari<72>vel de template ao iv<69>s de
fetch ser<EFBFBD> passada para uma vari<72>vel de template ao inv<EFBFBD>s de
ser mostrado no template. (novo no Smarty 1.5.0)
</para>
<note>
<title>Nota T<>cnica</title>
<para>
Isto n<>o suporta redirecionamento http, tenha
certesa de incluir a barra no final aonde necess<73>rio.
fetch n<>o suporta redirecionamento http, tenha
certeza de incluir a barra no final aonde necess<73>rio.
</para>
</note>
<note>
<title>Nota T<>cnica</title>
<para>
Se a seguran<61>a do template esta ativada e voc<6F>
estiver obtendo um arquivo do sistema de arquivos local, isto
ir<69> permitir apenas arquivos de um dos diret<65>rios
estiver obtendo um arquivo do sistema de arquivos locais, fetch
ir<69> funcionar apenas em arquivos de um dos diret<65>rios
definidos como seguros. ($secure_dir)
</para>
</note>
<example>
<title>fetch</title>
<programlisting>
<![CDATA[
{* inclui algum javascript no seu template *}
{fetch file="/export/httpd/www.domain.com/docs/navbar.js"}
@@ -81,8 +82,10 @@
{* coloca o conte<74>do obtido para uma var<61>vel de template *}
{fetch file="http://www.myweather.com/68502/" assign="weather"}
{if $weather ne ""}
&lt;b&gt;{$weather}&lt;/b&gt;
{/if}</programlisting>
<b>{$weather}</b>
{/if}
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -50,7 +50,7 @@
<row>
<entry>options</entry>
<entry>matriz</entry>
<entry>Sim, a mesnos que esteja usando values e output</entry>
<entry>Sim, a menos que esteja usando values e output</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>Uma matriz associativa de valores e sa<73>da</entry>
</row>
@@ -73,8 +73,8 @@
</informaltable>
<para>
html_checkboxes <20> uma fun<75><6E>o personalizada que cria um grupo de
checkbox com os dados providos. Ela cuida de qual(is) item(s)
est<73>o selecionado(s) por padr<64>o. Os atributos requeridos s<>o
checkbox com os dados fornecidos. Ela cuida de qual(is) item(s)
est<73>o selecionado(s) por padr<64>o. Os atributos obrigat<EFBFBD>rios s<>o
values e output, a menos que voc<6F> use options.
Toda a sa<73>da <20> compat<61>vel com XHTML.
</para>
@@ -85,44 +85,47 @@
<example>
<title>html_checkboxes</title>
<programlisting>
<![CDATA[
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_ids', array(1000,1001,1002,1003));
$smarty-&gt;assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown'));
$smarty-&gt;assign('customer_id', 1001);
$smarty-&gt;display('index.tpl');
$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="&lt;br /&gt;"}
{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_checkboxes', array(
1000 =&gt; 'Joe Schmoe',
1001 =&gt; 'Jack Smith',
1002 =&gt; 'Jane Johnson',
1003 =&gt; 'Charlie Brown'));
$smarty-&gt;assign('customer_id', 1001);
$smarty-&gt;display('index.tpl');
$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');
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 />"}
MOSTRA: (ambos os exemplos)
&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1000" /&gt;Joe Schmoe&lt;/label&gt;&lt;br /&gt;
&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1001" checked="checked" /&gt;Jack Smith&lt;/label&gt;&lt;br /&gt;
&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1002" /&gt;Jane Johnson&lt;/label&gt;&lt;br /&gt;
&lt;label&gt;&lt;input type="checkbox" name="checkbox[]" value="1003" /&gt;Charlie Brown&lt;/label&gt;&lt;br /&gt;</programlisting>
<label><input type="checkbox" name="checkbox[]" value="1000" />Joe Schmoe</label><br />
<label><input type="checkbox" name="checkbox[]" value="1001" checked="checked" />Jack Smith</label><br />
<label><input type="checkbox" name="checkbox[]" value="1002" />Jane Johnson</label><br />
<label><input type="checkbox" name="checkbox[]" value="1003" />Charlie Brown</label><br />
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -24,7 +24,7 @@
<entry>string</entry>
<entry>Sim</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>name/path para a imagem</entry>
<entry>nome/caminho para a imagem</entry>
</row>
<row>
<entry>border</entry>
@@ -66,7 +66,7 @@
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>valor href para aonde a imagem ser<65> ligada</entry>
<entry>valor href para aonde a imagem ser<65> linkada</entry>
</row>
</tbody>
</tgroup>
@@ -83,13 +83,13 @@
de um diret<65>rio seguro.
</para>
<para>
<parameter>href</parameter> <20> o valor href para onde a imagem ser<65> ligada. Se um link <20> fornecido,
<parameter>href</parameter> <20> o valor href para onde a imagem ser<65> linkada. Se um link <20> fornecido,
uma tag &lt;a href="LINKVALUE"&gt;&lt;a&gt; <20> posta em volta da tag da imagem.
</para>
<note>
<title>Nota T<>cnica</title>
<para>
html_image requer uma a<EFBFBD><EFBFBD>o ao disco para ler a imagem e calcular
html_image requer um acesso ao disco para ler a imagem e calcular
a altura e a largura. Se voc<6F> n<>o usa caching de template, normalmente <20>
melhor evitar html_image e deixar as tags de imagem est<73>ticas para performance
otimizada.
@@ -98,11 +98,12 @@
<example>
<title>html_image</title>
<programlisting>
<![CDATA[
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;display('index.tpl');
$smarty->display('index.tpl');
index.tpl:
@@ -110,15 +111,13 @@ index.tpl:
{html_image file="/path/from/docroot/pumpkin.jpg"}
{html_image file="../path/relative/to/currdir/pumpkin.jpg"}
OUTPUT: (poss<73>vel)
&lt;img src="pumpkin.jpg" alt="" border="0" width="44" height="68" /&gt;
&lt;img src="/path/from/docroot/pumpkin.jpg" alt="" border="0" width="44" height="68" /&gt;
&lt;img src="../path/relative/to/currdir/pumpkin.jpg" alt="" border="0" width="44" height="68" /&gt;</programlisting>
MOSTRA: (poss<73>vel)
<img src="pumpkin.jpg" alt="" border="0" width="44" height="68" />
<img src="/path/from/docroot/pumpkin.jpg" alt="" border="0" width="44" height="68" />
<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" border="0" width="44" height="68" />
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -22,30 +22,30 @@
<row>
<entry>values</entry>
<entry>array</entry>
<entry>Sim, a menos que usando atributos de op<EFBFBD><EFBFBD>es</entry>
<entry>Sim, a menos que usando atributos de options</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>um array de valores para o menu dropdown</entry>
<entry>uma matriz de valores para o menu dropdown</entry>
</row>
<row>
<entry>output</entry>
<entry>array</entry>
<entry>Sim, a menos que usando atributos de op<EFBFBD><EFBFBD>es</entry>
<entry>Sim, a menos que usando atributos de options</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>um array de sa<73>da para o menu dropdown</entry>
<entry>uma matriz de sa<73>da para o menu dropdown</entry>
</row>
<row>
<entry>selected</entry>
<entry>string/array</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>empty</emphasis></entry>
<entry>o elemento do option selecionado</entry>
<entry>o elemento do options selecionado</entry>
</row>
<row>
<entry>options</entry>
<entry>associative array</entry>
<entry>Sim, a menos que usando valores e sa<EFBFBD>da</entry>
<entry>Sim, a menos que usando values e output</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>um array associativo de valores e sa<73>da</entry>
<entry>uma matriz associativa de output e output</entry>
</row>
<row>
<entry>name</entry>
@@ -58,73 +58,75 @@
</tgroup>
</informaltable>
<para>
html_options <20> uma fun<75><6E>o customizada que cria um grupo html option com os dados fornecidos.
Ela est<73> atenta de quais itens s<EFBFBD>o selecionados por defini<EFBFBD><EFBFBD>o. Atributos exigidos s<>o valores e
sa<EFBFBD>da, a menos que voc<6F> use options
no lugar.
html_options <20> uma fun<75><6E>o personalizada que cria um grupo html option com os dados fornecidos.
Ela est<73> atenta de quais itens est<EFBFBD>o selecionados por padr<EFBFBD>o. Atributos obrigat<EFBFBD>rios s<>o 'values' e
'output', a menos que voc<6F> use options no lugar.
</para>
<para>
Se um valor dado <20> um array, ele ser<65> tratado como um OPTGROUP html,
e mostrar<61> os grupos.
Recursion <20> suportado com OPTGROUP. Todas as sa<73>das est<EFBFBD>o compat<61>veis com XHTML.
Recursividade <20> suportada pelo OPTGROUP. Todas as sa<73>das s<EFBFBD>o compat<61>veis com XHTML.
</para>
<para>
Se o atributo opcional <emphasis>name</emphasis> <20> dado, as tags
&lt;select name="groupname"&gt;&lt;/select&gt; ir<69>o enclausurar a lista de op<6F><70>es.
&lt;select name="groupname"&gt;&lt;/select&gt; ir<69>o incluir a lista de op<6F><70>es dentro dela.
Caso contr<74>rio apenas a lista de op<6F><70>es <20> gerada.
</para>
<para>
Todos os par<61>metros que n<>o est<73>o na lista acima s<>o exibidos como
name/value-pairs dentro de &lt;select&gt;-tag. Eles s<>o ignorados se o opcional
<emphasis>name</emphasis>n<EFBFBD>o <20> dado.
nome/valor dentro de &lt;select&gt;-tag. Eles s<>o ignorados se o opcional
<emphasis>name</emphasis> n<EFBFBD>o <20> fornecido.
</para>
<example>
<title>html_options</title>
<programlisting>
<![CDATA[
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_ids', array(1000,1001,1002,1003));
$smarty-&gt;assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
Johnson','Carlie Brown'));
$smarty-&gt;assign('customer_id', 1001);
$smarty-&gt;display('index.tpl');
$smarty->assign('customer_id', 1001);
$smarty->display('index.tpl');
index.tpl:
&lt;select name=customer_id&gt;
<select name=customer_id>
{html_options values=$cust_ids selected=$customer_id output=$cust_names}
&lt;/select&gt;
</select>
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_options', array(
1001 =&gt; 'Taniel Franklin',
1002 =&gt; 'Fernando Correa',
1003 =&gt; 'Marcelo Pereira',
1004 =&gt; 'Charlie Brown'));
$smarty-&gt;assign('customer_id', 1001);
$smarty-&gt;display('index.tpl');
$smarty->assign('cust_options', array(
1001 => 'Taniel Franklin',
1002 => 'Fernando Correa',
1003 => 'Marcelo Pereira',
1004 => 'Charlie Brown'));
$smarty->assign('customer_id', 1001);
$smarty->display('index.tpl');
index.tpl:
&lt;select name=customer_id&gt;
<select name=customer_id>
{html_options options=$cust_options selected=$customer_id}
&lt;/select&gt;
</select>
OUTPUT: (both examples)
&lt;select name=customer_id&gt;
&lt;option value="1000"&gt;Taniel Franklin&lt;/option&gt;
&lt;option value="1001" selected="selected"&gt;Fernando Correa&lt;/option&gt;
&lt;option value="1002"&gt;Marcelo Pereira&lt;/option&gt;
&lt;option value="1003"&gt;Charlie Brown&lt;/option&gt;
&lt;/select&gt;</programlisting>
<select name=customer_id>
<option value="1000">Taniel Franklin</option>
<option value="1001" selected="selected">Fernando Correa</option>
<option value="1002">Marcelo Pereira</option>
<option value="1003">Charlie Brown</option>
</select>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -29,95 +29,98 @@
<row>
<entry>values</entry>
<entry>array</entry>
<entry>Sim, a menos que utilizando atributo de op<EFBFBD><EFBFBD>es</entry>
<entry>Sim, a menos que utilizando atributo de options</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>um array de valores para radio buttons</entry>
<entry>uma matriz de valores para radio buttons</entry>
</row>
<row>
<entry>output</entry>
<entry>array</entry>
<entry>Sim, a menos que utilizando atributo de op<EFBFBD><EFBFBD>es</entry>
<entry>Sim, a menos que utilizando atributo de options</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>um array de sa<73>da pra radio buttons</entry>
<entry>uma matriz de sa<73>da pra radio buttons</entry>
</row>
<row>
<entry>checked</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>empty</emphasis></entry>
<entry>O elemento do radio assinalado</entry>
<entry>O elemento do radio marcado</entry>
</row>
<row>
<entry>options</entry>
<entry>associative array</entry>
<entry>Sim, a menos que utilizando valores e sa<EFBFBD>da</entry>
<entry>Sim, a menos que utilizando values e output</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>um array associativo de valores e sa<EFBFBD>da</entry>
<entry>uma matriz associativa de values e output</entry>
</row>
<row>
<entry>separator</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>empty</emphasis></entry>
<entry>string de texto para separae cada item de radio</entry>
<entry>string de texto para separar cada item de radio</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
html_radios <20> uma fun<75><6E>o customizada que cria grupo de bot<6F>es de radio html
com os dados fornecidos. Ele est<73> atento para qual item est<73> selecionado por defini<EFBFBD><EFBFBD>o.
Atributos exigidos s<>o valores e sa<EFBFBD>das, a menos que voc<6F> use op<EFBFBD><EFBFBD>es no lugar disso. Toda
html_radios <20> uma fun<75><6E>o personalizada que cria grupo de bot<6F>es de radio html
com os dados fornecidos. Ele est<73> atento para qual item est<73> selecionado por padr<EFBFBD>o.
Atributos obrigat<EFBFBD>rios s<>o 'values' e 'output', a menos que voc<6F> use 'options' no lugar disso. Toda
sa<73>da <20> compat<61>vel com XHTML.
</para>
<para>
Todos os par<61>metros que n<>o est<73>o na lista acima s<>o impressos como
name/value-pairs de dentro de cada &lt;input&gt;-tags criada.
nome/valor de dentro de cada tag &lt;input&gt; criada.
</para>
<example>
<title>html_radios</title>
<programlisting>
<![CDATA[
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_ids', array(1000,1001,1002,1003));
$smarty-&gt;assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
Johnson','Carlie Brown'));
$smarty-&gt;assign('customer_id', 1001);
$smarty-&gt;display('index.tpl');
$smarty->assign('customer_id', 1001);
$smarty->display('index.tpl');
index.tpl:
{html_radios values=$cust_ids checked=$customer_id output=$cust_names separator="&lt;br /&gt;"}
{html_radios values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('cust_radios', array(
1001 =&gt; 'Joe Schmoe',
1002 =&gt; 'Jack Smith',
1003 =&gt; 'Jane Johnson',
1004 =&gt; 'Charlie Brown'));
$smarty-&gt;assign('customer_id', 1001);
$smarty-&gt;display('index.tpl');
$smarty->assign('cust_radios', array(
1001 => 'Joe Schmoe',
1002 => 'Jack Smith',
1003 => 'Jane Johnson',
1004 => 'Charlie Brown'));
$smarty->assign('customer_id', 1001);
$smarty->display('index.tpl');
index.tpl:
{html_radios name="id" options=$cust_radios checked=$customer_id separator="&lt;br /&gt;"}
{html_radios name="id" options=$cust_radios checked=$customer_id separator="<br />"}
OUTPUT: (both examples)
&lt;input type="radio" name="id[]" value="1000"&gt;Taniel Fraklin&lt;br /&gt;
&lt;input type="radio" name="id[]" value="1001" checked="checked"&gt;&lt;br /&gt;
&lt;input type="radio" name="id[]" value="1002"&gt;Marcelo Pereira&lt;br /&gt;
&lt;input type="radio" name="id[]" value="1003"&gt;Charlie Brown&lt;br /&gt;</programlisting>
<input type="radio" name="id[]" value="1000">Taniel Fraklin<br />
<input type="radio" name="id[]" value="1001" checked="checked"><br />
<input type="radio" name="id[]" value="1002">Marcelo Pereira<br />
<input type="radio" name="id[]" value="1003">Charlie Brown<br />
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -30,9 +30,8 @@
<entry>time</entry>
<entry>timestamp/YYYY-MM-DD</entry>
<entry>N<EFBFBD>o</entry>
<entry>tempo atual no timestamp do unix ou YYYY-MM-DD
format</entry>
<entry>qual date/time para usar</entry>
<entry>tempo atual no formato timestamp do unix ou YYYY-MM-DD</entry>
<entry>qual date/time usar</entry>
</row>
<row>
<entry>start_year</entry>
@@ -62,7 +61,7 @@
<entry>boolean</entry>
<entry>No</entry>
<entry>true</entry>
<entry>whether to display months or not</entry>
<entry>se mostra os meses ou n<EFBFBD>o</entry>
</row>
<row>
<entry>display_years</entry>
@@ -76,7 +75,7 @@
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry>%B</entry>
<entry>qual seria o formato do m<>s (strftime)</entry>
<entry>qual o formato do m<>s (strftime)</entry>
</row>
<row>
<entry>day_format</entry>
@@ -192,106 +191,142 @@
<entry>formato strftime dos valores do m<>s, o padr<64>o <20>
%m para n<>mero de m<>s.</entry>
</row>
<row>
<entry>year_empty</entry>
<entry>string</entry>
<entry>No</entry>
<entry>null</entry>
<entry>Se for fornecido ent<6E>o o primeiro eleemento do select-box 'anos'
ter<65> este nome e o valor "". Isto <20> <20>til para fazer o select-box ler
"Por favor selecione um ano" por exemplo. Note que voc<6F> pode usar valores
como "-MM-DD" como atributos de tempo para indicar um ano n<>o selecionado.
</entry>
</row>
<row>
<entry>month_empty</entry>
<entry>string</entry>
<entry>No</entry>
<entry>null</entry>
<entry>Caso fornecido ent<6E>o o primeiro elemento do select-box 'meses' ter<65>
este nome e o valor "". Note que voc<6F> pode suar valores como "YYYY--DD" como
atributos de tempo para indicar meses n<>o selecionados.
</entry>
</row>
<row>
<entry>day_empty</entry>
<entry>string</entry>
<entry>No</entry>
<entry>null</entry>
<entry>Caso fornecido ent<6E>o o primeiro elemento do select-box 'dias' ter<65>
este nome e o valor "". Note que voc<6F> pode usar valores como "YYYY-MM-" como
atributos de tempo para indicar dias n<>o selecionados.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
html_select_date <20> uma fun<75><6E>o customizada que cria menus dropdowns
de data para voc<6F>. Ele pode mostrar algo ou tudo de ano, m<EFBFBD>s e dia.
html_select_date <20> uma fun<75><6E>o personalizada que cria menus dropdowns
de data para voc<6F>. Ele pode mostrar qualquer um/ou todos os anos, meses e dias.
</para>
<example>
<title>html_select_date</title>
<programlisting>
<![CDATA[
{html_select_date}
OUTPUT:
MOSTRA
&lt;select name="Date_Month"&gt;
&lt;option value="1"&gt;January&lt;/option&gt;
&lt;option value="2"&gt;February&lt;/option&gt;
&lt;option value="3"&gt;March&lt;/option&gt;
&lt;option value="4"&gt;April&lt;/option&gt;
&lt;option value="5"&gt;May&lt;/option&gt;
&lt;option value="6"&gt;June&lt;/option&gt;
&lt;option value="7"&gt;July&lt;/option&gt;
&lt;option value="8"&gt;August&lt;/option&gt;
&lt;option value="9"&gt;September&lt;/option&gt;
&lt;option value="10"&gt;October&lt;/option&gt;
&lt;option value="11"&gt;November&lt;/option&gt;
&lt;option value="12" selected&gt;December&lt;/option&gt;
&lt;/select&gt;
&lt;select name="Date_Day"&gt;
&lt;option value="1"&gt;01&lt;/option&gt;
&lt;option value="2"&gt;02&lt;/option&gt;
&lt;option value="3"&gt;03&lt;/option&gt;
&lt;option value="4"&gt;04&lt;/option&gt;
&lt;option value="5"&gt;05&lt;/option&gt;
&lt;option value="6"&gt;06&lt;/option&gt;
&lt;option value="7"&gt;07&lt;/option&gt;
&lt;option value="8"&gt;08&lt;/option&gt;
&lt;option value="9"&gt;09&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="11"&gt;11&lt;/option&gt;
&lt;option value="12"&gt;12&lt;/option&gt;
&lt;option value="13" selected&gt;13&lt;/option&gt;
&lt;option value="14"&gt;14&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="16"&gt;16&lt;/option&gt;
&lt;option value="17"&gt;17&lt;/option&gt;
&lt;option value="18"&gt;18&lt;/option&gt;
&lt;option value="19"&gt;19&lt;/option&gt;
&lt;option value="20"&gt;20&lt;/option&gt;
&lt;option value="21"&gt;21&lt;/option&gt;
&lt;option value="22"&gt;22&lt;/option&gt;
&lt;option value="23"&gt;23&lt;/option&gt;
&lt;option value="24"&gt;24&lt;/option&gt;
&lt;option value="25"&gt;25&lt;/option&gt;
&lt;option value="26"&gt;26&lt;/option&gt;
&lt;option value="27"&gt;27&lt;/option&gt;
&lt;option value="28"&gt;28&lt;/option&gt;
&lt;option value="29"&gt;29&lt;/option&gt;
&lt;option value="30"&gt;30&lt;/option&gt;
&lt;option value="31"&gt;31&lt;/option&gt;
&lt;/select&gt;
&lt;select name="Date_Year"&gt;
&lt;option value="2001" selected&gt;2001&lt;/option&gt;
&lt;/select&gt;</programlisting>
<select name="Date_Month">
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12" selected>December</option>
</select>
<select name="Date_Day">
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13" selected>13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="Date_Year">
<option value="2001" selected>2001</option>
</select>
]]>
</programlisting>
</example>
<example>
<title>html_select_date</title>
<programlisting>
<![CDATA[
{* ano de come<6D>o e fim pode ser relativo ao ano atual *}
{html_select_date prefix="StartDate" time=$time start_year="-5" end_year="+1" display_days=false}
OUTPUT: (o ano atual <20> 2000)
MOSTRA: (o ano atual <20> 2000)
&lt;select name="StartDateMonth"&gt;
&lt;option value="1"&gt;January&lt;/option&gt;
&lt;option value="2"&gt;February&lt;/option&gt;
&lt;option value="3"&gt;March&lt;/option&gt;
&lt;option value="4"&gt;April&lt;/option&gt;
&lt;option value="5"&gt;May&lt;/option&gt;
&lt;option value="6"&gt;June&lt;/option&gt;
&lt;option value="7"&gt;July&lt;/option&gt;
&lt;option value="8"&gt;August&lt;/option&gt;
&lt;option value="9"&gt;September&lt;/option&gt;
&lt;option value="10"&gt;October&lt;/option&gt;
&lt;option value="11"&gt;November&lt;/option&gt;
&lt;option value="12" selected&gt;December&lt;/option&gt;
&lt;/select&gt;
&lt;select name="StartDateYear"&gt;
&lt;option value="1999"&gt;1995&lt;/option&gt;
&lt;option value="1999"&gt;1996&lt;/option&gt;
&lt;option value="1999"&gt;1997&lt;/option&gt;
&lt;option value="1999"&gt;1998&lt;/option&gt;
&lt;option value="1999"&gt;1999&lt;/option&gt;
&lt;option value="2000" selected&gt;2000&lt;/option&gt;
&lt;option value="2001"&gt;2001&lt;/option&gt;
&lt;/select&gt;</programlisting>
<select name="StartDateMonth">
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12" selected>December</option>
</select>
<select name="StartDateYear">
<option value="1999">1995</option>
<option value="1999">1996</option>
<option value="1999">1997</option>
<option value="1999">1998</option>
<option value="1999">1999</option>
<option value="2000" selected>2000</option>
<option value="2001">2001</option>
</select>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -59,7 +59,7 @@
<entry>booleano</entry>
<entry>N<EFBFBD>o</entry>
<entry>true</entry>
<entry>Exibir ou n<>o da forma (am/pm)</entry>
<entry>Exibir ou n<>o no formato (am/pm)</entry>
</row>
<row>
<entry>use_24_hours</entry>
@@ -87,7 +87,7 @@
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry>n/a</entry>
<entry>exibe valores para o array deste nome outputs values to array of this name</entry>
<entry>exibe valores para o array deste nome</entry>
</row>
<row>
<entry>all_extra</entry>
@@ -133,172 +133,175 @@
</tgroup>
</informaltable>
<para>
html_select_time <20> uma fun<75><6E>o cusomizada que cria menus dropdowns de hora para voc<6F>. Ela pode mostrar
html_select_time <20> uma fun<75><6E>o personalizada que cria menus dropdowns de hora para voc<6F>. Ela pode mostrar
alguns valores, ou tudo de hora,
minuto, segundo e ainda formato am/pm
minuto, segundo e ainda no formato am/pm.
</para>
<example>
<title>html_select_time</title>
<programlisting>
<![CDATA[
{html_select_time use_24_hours=true}
OUTPUT:
MOSTRA:
&lt;select name="Time_Hour"&gt;
&lt;option value="00"&gt;00&lt;/option&gt;
&lt;option value="01"&gt;01&lt;/option&gt;
&lt;option value="02"&gt;02&lt;/option&gt;
&lt;option value="03"&gt;03&lt;/option&gt;
&lt;option value="04"&gt;04&lt;/option&gt;
&lt;option value="05"&gt;05&lt;/option&gt;
&lt;option value="06"&gt;06&lt;/option&gt;
&lt;option value="07"&gt;07&lt;/option&gt;
&lt;option value="08"&gt;08&lt;/option&gt;
&lt;option value="09" selected&gt;09&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="11"&gt;11&lt;/option&gt;
&lt;option value="12"&gt;12&lt;/option&gt;
&lt;option value="13"&gt;13&lt;/option&gt;
&lt;option value="14"&gt;14&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="16"&gt;16&lt;/option&gt;
&lt;option value="17"&gt;17&lt;/option&gt;
&lt;option value="18"&gt;18&lt;/option&gt;
&lt;option value="19"&gt;19&lt;/option&gt;
&lt;option value="20"&gt;20&lt;/option&gt;
&lt;option value="21"&gt;21&lt;/option&gt;
&lt;option value="22"&gt;22&lt;/option&gt;
&lt;option value="23"&gt;23&lt;/option&gt;
&lt;/select&gt;
&lt;select name="Time_Minute"&gt;
&lt;option value="00"&gt;00&lt;/option&gt;
&lt;option value="01"&gt;01&lt;/option&gt;
&lt;option value="02"&gt;02&lt;/option&gt;
&lt;option value="03"&gt;03&lt;/option&gt;
&lt;option value="04"&gt;04&lt;/option&gt;
&lt;option value="05"&gt;05&lt;/option&gt;
&lt;option value="06"&gt;06&lt;/option&gt;
&lt;option value="07"&gt;07&lt;/option&gt;
&lt;option value="08"&gt;08&lt;/option&gt;
&lt;option value="09"&gt;09&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="11"&gt;11&lt;/option&gt;
&lt;option value="12"&gt;12&lt;/option&gt;
&lt;option value="13"&gt;13&lt;/option&gt;
&lt;option value="14"&gt;14&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="16"&gt;16&lt;/option&gt;
&lt;option value="17"&gt;17&lt;/option&gt;
&lt;option value="18"&gt;18&lt;/option&gt;
&lt;option value="19"&gt;19&lt;/option&gt;
&lt;option value="20" selected&gt;20&lt;/option&gt;
&lt;option value="21"&gt;21&lt;/option&gt;
&lt;option value="22"&gt;22&lt;/option&gt;
&lt;option value="23"&gt;23&lt;/option&gt;
&lt;option value="24"&gt;24&lt;/option&gt;
&lt;option value="25"&gt;25&lt;/option&gt;
&lt;option value="26"&gt;26&lt;/option&gt;
&lt;option value="27"&gt;27&lt;/option&gt;
&lt;option value="28"&gt;28&lt;/option&gt;
&lt;option value="29"&gt;29&lt;/option&gt;
&lt;option value="30"&gt;30&lt;/option&gt;
&lt;option value="31"&gt;31&lt;/option&gt;
&lt;option value="32"&gt;32&lt;/option&gt;
&lt;option value="33"&gt;33&lt;/option&gt;
&lt;option value="34"&gt;34&lt;/option&gt;
&lt;option value="35"&gt;35&lt;/option&gt;
&lt;option value="36"&gt;36&lt;/option&gt;
&lt;option value="37"&gt;37&lt;/option&gt;
&lt;option value="38"&gt;38&lt;/option&gt;
&lt;option value="39"&gt;39&lt;/option&gt;
&lt;option value="40"&gt;40&lt;/option&gt;
&lt;option value="41"&gt;41&lt;/option&gt;
&lt;option value="42"&gt;42&lt;/option&gt;
&lt;option value="43"&gt;43&lt;/option&gt;
&lt;option value="44"&gt;44&lt;/option&gt;
&lt;option value="45"&gt;45&lt;/option&gt;
&lt;option value="46"&gt;46&lt;/option&gt;
&lt;option value="47"&gt;47&lt;/option&gt;
&lt;option value="48"&gt;48&lt;/option&gt;
&lt;option value="49"&gt;49&lt;/option&gt;
&lt;option value="50"&gt;50&lt;/option&gt;
&lt;option value="51"&gt;51&lt;/option&gt;
&lt;option value="52"&gt;52&lt;/option&gt;
&lt;option value="53"&gt;53&lt;/option&gt;
&lt;option value="54"&gt;54&lt;/option&gt;
&lt;option value="55"&gt;55&lt;/option&gt;
&lt;option value="56"&gt;56&lt;/option&gt;
&lt;option value="57"&gt;57&lt;/option&gt;
&lt;option value="58"&gt;58&lt;/option&gt;
&lt;option value="59"&gt;59&lt;/option&gt;
&lt;/select&gt;
&lt;select name="Time_Second"&gt;
&lt;option value="00"&gt;00&lt;/option&gt;
&lt;option value="01"&gt;01&lt;/option&gt;
&lt;option value="02"&gt;02&lt;/option&gt;
&lt;option value="03"&gt;03&lt;/option&gt;
&lt;option value="04"&gt;04&lt;/option&gt;
&lt;option value="05"&gt;05&lt;/option&gt;
&lt;option value="06"&gt;06&lt;/option&gt;
&lt;option value="07"&gt;07&lt;/option&gt;
&lt;option value="08"&gt;08&lt;/option&gt;
&lt;option value="09"&gt;09&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="11"&gt;11&lt;/option&gt;
&lt;option value="12"&gt;12&lt;/option&gt;
&lt;option value="13"&gt;13&lt;/option&gt;
&lt;option value="14"&gt;14&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="16"&gt;16&lt;/option&gt;
&lt;option value="17"&gt;17&lt;/option&gt;
&lt;option value="18"&gt;18&lt;/option&gt;
&lt;option value="19"&gt;19&lt;/option&gt;
&lt;option value="20"&gt;20&lt;/option&gt;
&lt;option value="21"&gt;21&lt;/option&gt;
&lt;option value="22"&gt;22&lt;/option&gt;
&lt;option value="23" selected&gt;23&lt;/option&gt;
&lt;option value="24"&gt;24&lt;/option&gt;
&lt;option value="25"&gt;25&lt;/option&gt;
&lt;option value="26"&gt;26&lt;/option&gt;
&lt;option value="27"&gt;27&lt;/option&gt;
&lt;option value="28"&gt;28&lt;/option&gt;
&lt;option value="29"&gt;29&lt;/option&gt;
&lt;option value="30"&gt;30&lt;/option&gt;
&lt;option value="31"&gt;31&lt;/option&gt;
&lt;option value="32"&gt;32&lt;/option&gt;
&lt;option value="33"&gt;33&lt;/option&gt;
&lt;option value="34"&gt;34&lt;/option&gt;
&lt;option value="35"&gt;35&lt;/option&gt;
&lt;option value="36"&gt;36&lt;/option&gt;
&lt;option value="37"&gt;37&lt;/option&gt;
&lt;option value="38"&gt;38&lt;/option&gt;
&lt;option value="39"&gt;39&lt;/option&gt;
&lt;option value="40"&gt;40&lt;/option&gt;
&lt;option value="41"&gt;41&lt;/option&gt;
&lt;option value="42"&gt;42&lt;/option&gt;
&lt;option value="43"&gt;43&lt;/option&gt;
&lt;option value="44"&gt;44&lt;/option&gt;
&lt;option value="45"&gt;45&lt;/option&gt;
&lt;option value="46"&gt;46&lt;/option&gt;
&lt;option value="47"&gt;47&lt;/option&gt;
&lt;option value="48"&gt;48&lt;/option&gt;
&lt;option value="49"&gt;49&lt;/option&gt;
&lt;option value="50"&gt;50&lt;/option&gt;
&lt;option value="51"&gt;51&lt;/option&gt;
&lt;option value="52"&gt;52&lt;/option&gt;
&lt;option value="53"&gt;53&lt;/option&gt;
&lt;option value="54"&gt;54&lt;/option&gt;
&lt;option value="55"&gt;55&lt;/option&gt;
&lt;option value="56"&gt;56&lt;/option&gt;
&lt;option value="57"&gt;57&lt;/option&gt;
&lt;option value="58"&gt;58&lt;/option&gt;
&lt;option value="59"&gt;59&lt;/option&gt;
&lt;/select&gt;
&lt;select name="Time_Meridian"&gt;
&lt;option value="am" selected&gt;AM&lt;/option&gt;
&lt;option value="pm"&gt;PM&lt;/option&gt;
&lt;/select&gt;</programlisting>
<select name="Time_Hour">
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09" selected>09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
</select>
<select name="Time_Minute">
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20" selected>20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>
<select name="Time_Second">
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23" selected>23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>
<select name="Time_Meridian">
<option value="am" selected>AM</option>
<option value="pm">PM</option>
</select>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -23,7 +23,7 @@
<entry>loop</entry>
<entry>array</entry>
<entry>Sim</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>array de dados para ser feito o loop</entry>
</row>
<row>
@@ -81,26 +81,27 @@
</tgroup>
</informaltable>
<para>
<emphasis>html_table</emphasis> <20> uma fun<75><6E>o customizada que transforma um array de dados
em uma tabela HTML. O atributo <emphasis>cols</emphasis> determina com quantas colunas estar<EFBFBD>o
na tabela. Os valores <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> e
<emphasis>html_table</emphasis> <20> uma fun<75><6E>o personalizada que transforma um array de dados
em uma tabela HTML. O atributo <emphasis>cols</emphasis> determina a quantidade de colunas que
a tabela ter<65>. Os valores <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> e
<emphasis>td_attr</emphasis> determinam os atributos dados para a tabela, tags tr e td. Se <emphasis>tr_attr</emphasis> ou
<emphasis>td_attr</emphasis> s<>o arrays, eles entrar<61>o em ciclo.
<emphasis>trailpad</emphasis> <20> o
alor colocado dentro do trailing
valor colocado dentro do trailing
cells na <20>ltima linha da tabela
se h<> alguma presente.
</para>
<example>
<title>html_table</title>
<programlisting>
<![CDATA[
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty-&gt;assign('data',array(1,2,3,4,5,6,7,8,9));
$smarty-&gt;assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"'));
$smarty-&gt;display('index.tpl');
$smarty->assign('data',array(1,2,3,4,5,6,7,8,9));
$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"'));
$smarty->display('index.tpl');
index.tpl:
@@ -110,21 +111,23 @@ index.tpl:
MOSTRA:
&lt;table border="1"&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;table border="0"&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;table border="1"&gt;
&lt;tr bgcolor="#eeeeee"&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr bgcolor="#dddddd"&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;/tr&gt;
&lt;tr bgcolor="#eeeeee"&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</programlisting>
<table border="1">
<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>
</table>
<table border="0">
<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>&amp;nbsp;</td><td>&amp;nbsp;</td><td>&amp;nbsp;</td></tr>
</table>
<table border="1">
<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>&amp;nbsp;</td><td>&amp;nbsp;</td><td>&amp;nbsp;</td></tr>
</table>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -23,15 +23,15 @@
<entry>address</entry>
<entry>string</entry>
<entry>Sim</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>O endere<72>o de email</entry>
</row>
<row>
<entry>text</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>O texto para mostrar, o padr<64>o
<entry><emphasis>n/d</emphasis></entry>
<entry>O texto <EFBFBD> ser exibido, o padr<64>o
<20> o endere<72>o de email</entry>
</row>
<row>
@@ -47,7 +47,7 @@
<entry>cc</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Endere<EFBFBD>o de e-mail para mandar uma c<>pia carbono(cc).
Separe os endere<72>os por v<>rgula.</entry>
</row>
@@ -55,7 +55,7 @@
<entry>bcc</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Endere<EFBFBD>o de e-mail para mandar uma c<>pia carbono cega(bcc).
Separe os endere<72>os por v<>rgula.</entry>
</row>
@@ -63,14 +63,14 @@
<entry>subject</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Assunto do e-mail.</entry>
</row>
<row>
<entry>newsgroups</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>newsgroup para postar.
Separe os endere<72>os por v<>rgula.</entry>
</row>
@@ -78,7 +78,7 @@
<entry>followupto</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Endere<EFBFBD>o para acompanhar.
Separe os endere<72>os por v<>rgula.</entry>
</row>
@@ -86,7 +86,7 @@
<entry>extra</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Qualquer outra informa<6D><61>o que voc<6F>
queira passar para o link, como
classes de planilhas de estilo</entry>
@@ -96,7 +96,7 @@
</informaltable>
<para>
mailto automatiza o processo de cria<69><61>o de links de e-mail e opcionalmente
codifica eles. Codificar e-mail torna mais dif<69>cil para
codifica eles. Codificar o e-mail torna mais dif<69>cil para
web spiders pegarem endere<72>os no seu site.
</para>
<note>
@@ -109,6 +109,7 @@
<example>
<title>mailto</title>
<programlisting>
<![CDATA[
{mailto address="me@domain.com"}
{mailto address="me@domain.com" text="send me some mail"}
{mailto address="me@domain.com" encode="javascript"}
@@ -119,17 +120,19 @@
MOSTRA:
&lt;a href="mailto:me@domain.com" &gt;me@domain.com&lt;/a&gt;
&lt;a href="mailto:me@domain.com" &gt;send me some mail&lt;/a&gt;
&lt;SCRIPT language="javascript"&gt;eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6
<a href="mailto:me@domain.com" >me@domain.com</a>
<a href="mailto:me@domain.com" >send me some mail</a>
<SCRIPT language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6
9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%
61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e
%27%29%3b'))&lt;/SCRIPT&gt;
&lt;a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" &gt;&amp;#x6d;&amp;#x65;&amp;#x40;&amp;#x64;&amp;
#x6f;&amp;#x6d;&amp;#x61;&amp;#x69;&amp;#x6e;&amp;#x2e;&amp;#x63;&amp;#x6f;&amp;#x6d;&lt;/a&gt;
&lt;a href="mailto:me@domain.com?subject=Hello%20to%20you%21" &gt;me@domain.com&lt;/a&gt;
&lt;a href="mailto:me@domain.com?cc=you@domain.com%2Cthey@domain.com" &gt;me@domain.com&lt;/a&gt;
&lt;a href="mailto:me@domain.com" class="email"&gt;me@domain.com&lt;/a&gt;</programlisting>
%27%29%3b'))</SCRIPT>
<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >&amp;#x6d;&amp;#x65;&amp;#x40;&amp;#x64;&amp;
#x6f;&amp;#x6d;&amp;#x61;&amp;#x69;&amp;#x6e;&amp;#x2e;&amp;#x63;&amp;#x6f;&amp;#x6d;</a>
<a href="mailto:me@domain.com?subject=Hello%20to%20you%21" >me@domain.com</a>
<a href="mailto:me@domain.com?cc=you@domain.com%2Cthey@domain.com" >me@domain.com</a>
<a href="mailto:me@domain.com" class="email">me@domain.com</a>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do atributo</entry>
<entry>Tipo</entry>
<entry>Exigido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -24,7 +24,7 @@
<entry>string</entry>
<entry>Sim</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>a equa<75><61>o para executar</entry>
<entry>a equa<75><61>o <EFBFBD> ser executar</entry>
</row>
<row>
<entry>format</entry>
@@ -85,11 +85,12 @@
<example>
<title>math</title>
<programlisting>
<![CDATA[
{* $height=4, $width=5 *}
{math equation="x + y" x=$height y=$width}
OUTPUT:
MOSTRA:
9
@@ -101,7 +102,7 @@ OUTPUT:
width=$row_width
division=#col_div#}
OUTPUT:
MOSTRA:
100
@@ -110,7 +111,7 @@ OUTPUT:
{math equation="(( x + y ) / z )" x=2 y=10 z=2}
OUTPUT:
MOSTRA:
6
@@ -119,9 +120,11 @@ OUTPUT:
{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"}
OUTPUT:
MOSTRA:
9.44</programlisting>
9.44
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -20,8 +20,11 @@
<example>
<title>popup_init</title>
<programlisting>
<![CDATA[
{* popup_init deve ser utilizada uma vez no topo da p<>gina *}
{popup_init src="/javascripts/overlib.js"}</programlisting>
{popup_init src="/javascripts/overlib.js"}
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -23,7 +23,7 @@
<entry>text</entry>
<entry>string</entry>
<entry>Sim</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>O text/html para mostrar na janela popup</entry>
</row>
<row>
@@ -45,98 +45,98 @@
<entry>caption</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define o texto para o t<>tulo</entry>
</row>
<row>
<entry>fgcolor</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>A cor usada dentro da caixa popup</entry>
</row>
<row>
<entry>bgcolor</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>A cor da borda da caixa popup</entry>
</row>
<row>
<entry>textcolor</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a cor do texto dentro da caixa popup</entry>
</row>
<row>
<entry>capcolor</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a cor do t<>tulo da caixa</entry>
</row>
<row>
<entry>closecolor</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a cor do texto para fechar</entry>
</row>
<row>
<entry>textfont</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a cor do texto para ser usado no texto principal</entry>
</row>
<row>
<entry>captionfont</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a fonte para ser usada no T<>tulo</entry>
</row>
<row>
<entry>closefont</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a fonte para o texto "Close"</entry>
</row>
<row>
<entry>textsize</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a fonte do texto principa</entry>
</row>
<row>
<entry>captionsize</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define o tamanho da fonte do t<>tulo</entry>
</row>
<row>
<entry>closesize</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define o tamanho da fonte do texto "Close"</entry>
</row>
<row>
<entry>width</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a largura da caixa</entry>
</row>
<row>
<entry>height</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define a altura da caixa</entry>
</row>
<row>
@@ -179,14 +179,14 @@
<entry>border</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Torna as bordas dos popups grossas ou finas</entry>
</row>
<row>
<entry>offsetx</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>A que distancia do mouse o popup ir<69>
aparecer, horizontalmente</entry>
</row>
@@ -194,7 +194,7 @@
<entry>offsety</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>A que distancia do mouse o popup ir<69>
aparecer, verticalmente</entry>
</row>
@@ -202,7 +202,7 @@
<entry>fgbackground</entry>
<entry>url para imagem</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define uma imagem para usar ao inv<6E>s de uma
cor dentro do popup.</entry>
</row>
@@ -210,7 +210,7 @@
<entry>bgbackground</entry>
<entry>url to image</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>define uma imagem para ser usada como borda
ao inv<6E>s de uma cor para o popup. Nota: voc<6F> deve definir bgcolor
como "" ou a cor ir<69> aparecer tamb<6D>m. NOTA: quando tiver um
@@ -221,14 +221,14 @@
<entry>closetext</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define o texto "Close" para qualquer outra coisa</entry>
</row>
<row>
<entry>noclose</entry>
<entry>boolean</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>N<EFBFBD>o mostra o texto "Close" em coladas
com um t<>tulo</entry>
</row>
@@ -236,14 +236,14 @@
<entry>status</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define o texto na barra de status do browser</entry>
</row>
<row>
<entry>autostatus</entry>
<entry>boolean</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define o texto da barra de status para o texto do popup.
NOTA: sobrescreve a defini<6E><69>o de status</entry>
</row>
@@ -251,7 +251,7 @@
<entry>autostatuscap</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>define o texto da barra de status como o texto do t<>tulo
NOTA: sobrescreve o status e autostatus</entry>
</row>
@@ -259,7 +259,7 @@
<entry>inarray</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Indica ao overLib para ler o texto deste <20>ndice
na matriz ol_text array, localizada em overlib.js. Este
par<61>metro pode ser usado ao inv<6E>s do texto</entry>
@@ -268,7 +268,7 @@
<entry>caparray</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>diz para overLib ler o t<>tulo a partir deste <20>ndice
na matriz ol_caps</entry>
</row>
@@ -276,14 +276,14 @@
<entry>capicon</entry>
<entry>url</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Mostra a imagem antes do t<>tulo</entry>
</row>
<row>
<entry>snapx</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>snaps the popup to an even position in a
horizontal grid</entry>
</row>
@@ -291,7 +291,7 @@
<entry>snapy</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>snaps the popup to an even position in a
vertical grid</entry>
</row>
@@ -299,7 +299,7 @@
<entry>fixx</entry>
<entry>integer</entry>
<entry>No</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>locks the popups horizontal position Note:
overrides all other horizontal placement</entry>
</row>
@@ -307,7 +307,7 @@
<entry>fixy</entry>
<entry>integer</entry>
<entry>No</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>locks the popups vertical position Note:
overrides all other vertical placement</entry>
</row>
@@ -315,7 +315,7 @@
<entry>background</entry>
<entry>url</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Define uma imagem para ser usada como
fundo ao inv<6E>s da tabela</entry>
</row>
@@ -323,7 +323,7 @@
<entry>padx</entry>
<entry>integer,integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Prenche a imagem de fundo com espa<70>os em branco horizontal
para coloca<63><61>o do texto. Nota: este <20> um comando
de dois par<61>metros</entry>
@@ -332,7 +332,7 @@
<entry>pady</entry>
<entry>integer,integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Prenche a imagem de fundo com espa<70>os em branco vertical
para coloca<63><61>o do texto. Nota: este <20> um comando
de dois par<61>metros</entry>
@@ -341,7 +341,7 @@
<entry>fullhtml</entry>
<entry>boolean</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Permite a voc<6F> controlar o html sobre a figura
de fundo completamente. O c<>digo HTML <20> esperado
no atributo "text"</entry>
@@ -350,7 +350,7 @@
<entry>frame</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Controla popups em frames diferentes. Veja a p<>gina da
overlib para maiores informa<6D><61>es sobre esta fun<75><6E>o</entry>
</row>
@@ -358,7 +358,7 @@
<entry>timeout</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Utiliza uma fun<75><6E>o e pega o valor de retorno
como texto que deva ser mostrado
na janela popup</entry>
@@ -367,7 +367,7 @@
<entry>delay</entry>
<entry>integer</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Faz com que o popup funcione como um tooltip. Ir<49>
aparecer apenas ap<61>s um certo atraso em mil<69>simos de segundo</entry>
</row>
@@ -375,7 +375,7 @@
<entry>hauto</entry>
<entry>boolean</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Determina automaticamente se o popup deve aparecer
a esquerda ou direita do mouse.</entry>
</row>
@@ -383,7 +383,7 @@
<entry>vauto</entry>
<entry>boolean</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>Determina automaticamente se o popup deve aparecer
abaixo ou acima do mouse.</entry>
</row>

View File

@@ -13,7 +13,7 @@
<row>
<entry>Nome do Atributo</entry>
<entry>Tipo</entry>
<entry>Requerido</entry>
<entry>Obrigat<EFBFBD>rio</entry>
<entry>Padr<EFBFBD>o</entry>
<entry>Descri<EFBFBD><EFBFBD>o</entry>
</row>
@@ -23,7 +23,7 @@
<entry>style</entry>
<entry>string</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>estilo pr<70>-definido</entry>
</row>
<row>
@@ -52,7 +52,7 @@
<entry>number</entry>
<entry>N<EFBFBD>o</entry>
<entry><emphasis>80</emphasis></entry>
<entry>Em quantos caracteres quebrar cada linha</entry>
<entry>Quantidade de caracteres antes de quebrar cada linha</entry>
</row>
<row>
<entry>wrap_char</entry>
@@ -74,7 +74,7 @@
<entry>assign</entry>
<entry>string</entry>
<entry>No</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry><emphasis>n/d</emphasis></entry>
<entry>A vari<72>vel de template que ir<69>
receber a sa<73>da</entry>
</row>
@@ -83,7 +83,7 @@
</informaltable>
<para>
textformat <20> uma fun<75><6E>o de bloco usada para formatar texto. Basicamente
limpa espa<70>os e caracteres especiais, e formata os paragrafos
ela remove espa<70>os e caracteres especiais, e formata os par<EFBFBD>grafos
quebrando o texto ao final de palavras e identando linhas.
</para>
<para>
@@ -93,6 +93,7 @@
<example>
<title>textformat</title>
<programlisting>
<![CDATA[
{textformat wrap=40}
This is foo.
@@ -228,7 +229,7 @@ This is bar.
bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo
bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo
foo.
]]>
</programlisting>
</example>
</sect1>