<patTemplate:tmpl name="formulario">
<script type="text/javascript">
function Cancelar()
{
window.open("?m=enquete&action=listar", "_self");
}
</script>
<input type="hidden" name="id" value="{ID}" />
<table class="formtable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Seção:</td>
<td><select name="secao" id="secao">
<option value="">Selecionar</option>
<patTemplate:tmpl name="secoes">
<option value="{ID}" {SELECTED}>{NOME}</option>
</patTemplate:tmpl>
</select>
<img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Geralmente um site é dividido em várias seções, aqui você escolhe em qual seção esta enquete irá aparecer.');" onmouseout="HideTip();" />
<img src="img/ic_required.gif" width="11" height="11" border="0" alt="" />
</td>
</tr>
<tr>
<td>Pergunta:</td>
<td><input type="text" name="pergunta" value="{PERGUNTA}" size="40" {PERGUNTAERR} />
<img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('A pergunta que será feita na enquete.');" onmouseout="HideTip();" />
<img src="img/ic_required.gif" width="11" height="11" border="0" alt="" />
</td>
</tr>
<tr>
<td>Respostas:<br />
Obs.: <b>Uma<br />resposta por<br />linha.</b></td>
<td><textarea name="respostas" cols="40" rows="5" {RESPOSTASERR}>{RESPOSTAS}</textarea>
<img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Todas as respostas possíveis da enquete.<br /><b>Digite apenas uma resposta por linha</b>, linhas em branco serão ignoradas.');" onmouseout="HideTip();" />
<img src="img/ic_required.gif" width="11" height="11" border="0" alt="" />
</td>
</tr>
<tr>
<td>Data do término:</td>
<td><input type="text" name="dataend" id="dataend" value="{DATAEND}" size="20" {DATAENDERR} />
<img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Data para o trérmino da enquete no formato <b>dd/mm/aaaa hh:mm</b>, deixe vazio se quiser que a enquete não tenha fim. <br /> A hora deve estar no <b>formato 24hr</b>.');" onmouseout="HideTip();" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" class="checkbox" name="visible" id="visible" value="1" {VISIBLE} />
<label for="visible">Enquete Visível:</label>
<img src="img/ic_help.gif" width="11" height="11" border="0" alt="" onmouseover="DisplayTip('Deixe esta opção marcada para a enquete aparecer no site. <br />Se esta opção estiver desmarcada esta enquete só aparecerá no site quando a enquete anterior acabar.');" onmouseout="HideTip();" />
</td>
</tr>
</table>
<script type="text/javascript">
<!--
/**
* Mascaras Setup
*/
var dataend = new Mask("dataend", "00/00/0000 00:00");
// -->
</script>
</patTemplate:tmpl>