<patTemplate:tmpl name="content">
<patTemplate:tmpl name="lista">
<script type="text/javascript">
<!--
function SendForm( obj )
{
if (!obj.value)
return;
var oFrm = obj.form;
var ok = false;
// Verifica se existem opções 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 um usuário.');
return;
}
// Mostra msg se o car afor apagar noticias
if (obj.value == 'del')
if (!window.confirm('Tem certeza que deseja APAGAR os usuários marcados?'))
{
obj.options[0].selected = true;
return;
}
// Envia o form...
oFrm.action = '?m=opcoes&action=listusers&subaction='+obj.value;
oFrm.submit();
}
// -->
</script>
<p>Os seguintes usuários 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">Nome</th>
<th class="b2_header" scope="col">Login</th>
<th class="b2_header" scope="col">Privilégio</th>
<th class="b2_header" scope="col">status</th>
<th class="b2_header" scope="col">IP</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="userlist">
<tr>
<td width="14" class="b2_left"> </td>
<td class="b2_content"><input type="checkbox" class="checkbox" name="usuario[]" value="{ID}" /></td>
<td class="b2_content"><a href="?m=opcoes&action=showedituser&id={ID}">{NOME}</a></td>
<td class="b2_content" nowrap="nowrap">{USER}</td>
<td class="b2_content" nowrap="nowrap">{PRIVS}</td>
<td class="b2_content">{STATUS}</td>
<td class="b2_content">{IP}</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="6"></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="ban">Bloquear conta</option>
<option value="unban">Desbloquear conta</option>
<option value="del" class="warning">Apagar</option>
</select>
</p>
</form>
<div class="secao">Criar usuário</div>
</patTemplate:tmpl>
<patTemplate:tmpl name="error">
<div class="error">{ERROR}</div>
</patTemplate:tmpl>
<form method="post" action="?m=opcoes&action=createuser">
<patTemplate:link src="userform" />
<div align="center"><input type="submit" value="Criar usuário" class="button" /></div>
</form>
</patTemplate:tmpl>