<patTemplate:tmpl name="content">
<script type="text/javascript">
<!--
function SendForm( obj )
{
if (!obj.value)
return;
var oFrm = obj.form;
var ok = false;
// Verifica se existem noticias marcadas
for (var i = 0; i < oFrm.length; i++)
if (oFrm.elements[i].checked)
{
ok = true;
break;
}
if (!ok)
{
obj.options[0].selected = true;
alert('Você precisa selecionar pelo menos uma enquete.');
return;
}
// Mostra msg se o car afor apagar noticias
if (obj.value == 'del')
if (!window.confirm('Tem certeza que deseja APAGAR as enquetes marcadas?'))
{
obj.options[0].selected = true;
return;
}
// Envia o form...
oFrm.action = '?m=enquete&action=listar&subaction='+obj.value;
oFrm.submit();
}
// -->
</script>
<patTemplate:tmpl name="semenquete" visibility="hidden">
<p>Não há nenhuma enquete cadastrada.</p>
</patTemplate:tmpl>
<patTemplate:tmpl name="lista">
<p>As seguintes enquetes estão cadastradas.</p>
<form method="post" action="">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="14" align="left" valign="top" class="b2_left" scope="col"><img src="img/b2_ctl.gif" width="14" height="14" alt="" /></th>
<th class="b2_header" scope="col" width="20"> </th>
<th class="b2_header" scope="col">Pergunta</th>
<th class="b2_header" scope="col">Início</th>
<th class="b2_header" scope="col">Fim</th>
<th class="b2_header" scope="col">Seção</th>
<th class="b2_header" scope="col">Votos</th>
<th class="b2_header" scope="col" width="40">Visível</th>
<th width="14" align="right" valign="top" class="b2_right" scope="col"><img src="img/b2_ctr.gif" width="14" height="14" alt="" /></th>
</tr>
<patTemplate:tmpl name="noticia">
<tr>
<td width="14" class="b2_left"> </td>
<td class="b2_content"><input type="checkbox" class="checkbox" name="enquete[]" value="{ID}" /></td>
<td class="b2_content"><span onmouseover="DisplayTip('{RESULTADO}', 'Resultado:');" onmouseout="HideTip();">{PERGUNTA}</span></td>
<td class="b2_content" nowrap="nowrap">{INICIO}</td>
<td class="b2_content" nowrap="nowrap">{FIM}</td>
<td class="b2_content">{SECAO}</td>
<td class="b2_content">{VOTOS}</td>
<td class="b2_content" align="center"><img src="img/{VISIBLE}" border="0" alt="" /></td>
<td width="14" class="b2_right"> </td>
</tr>
</patTemplate:tmpl>
<tr class="b2_bottom">
<td width="14" align="left" valign="bottom" class="b2_left"><img src="img/b2_cbl.gif" width="14" height="14" class="b2_left" alt="" /></td>
<td class="b2_bottom" colspan="7"></td>
<td width="14" align="right" valign="bottom" class="b2_right"><img src="img/b2_cbr.gif" width="14" height="14" alt="" /></td>
</tr>
</table>
<div style="float: right; padding-right: 10px;">
<p>
<patTemplate:tmpl name="prevpage" visibility="hidden">
<a href="{LINK}"><img src="img/page_prev.gif" width="17" height="15" border="0" align="top" onmouseover="DisplayTip('Página anterior')" onmouseout="HideTip();" /></a>
</patTemplate:tmpl>
<span class="pagenumber">{PAGE}</span>
<patTemplate:tmpl name="nextpage" visibility="hidden">
<a href="{LINK}"><img src="img/page_next.gif" width="17" height="15" border="0" align="top" onmouseover="DisplayTip('Próxima página')" onmouseout="HideTip();" /></a>
</patTemplate:tmpl>
</p>
</div>
<p>
Com as marcadas:
<select onchange="SendForm( this );">
<option value="" selected="selected">Não faça nada</option>
<option value="show">Tornar visível</option>
<option value="hidden">Tornar invisível</option>
<option value="del" class="warning">Apagar</option>
</select>
</p>
</form>
</patTemplate:tmpl>
</patTemplate:tmpl>
<patTemplate:tmpl name="respostas">
{RESPOSTA}<br />
<img src="./img/bar_left.gif" height="9" alt=""/><img src="./img/bar_center.gif" width="{WIDTH}" height="9" alt=""/><img src="./img/bar_right.gif" height="9" alt=""/> {PERC}% ({COUNT})<br />
</patTemplate:tmpl>