a ideia é ao clicar no checkbox significa que tal ta completo pra tal pessoa.
como faço, ao clicar no ceckbox fique activo, isto é, clico no checkbox...e a proxima vez q abrir o listar.php aparece os checkboxs clicados e os nao clicados(obvio).
aqui vai o codigo:
<html>
<head>
<!-- paste this code into your webpage -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="tablecloth/tablecloth.js"></script>
<script type="text/javascript" src="script.js"></script>
<!-- end -->
<style>
body{
margin:0;
padding:0;
background:#f1f1f1;
font:70% Arial, Helvetica, sans-serif;
color:#555;
line-height:150%;
text-align:left;
}
a{
text-decoration:none;
color:#057fac;
}
a:hover{
text-decoration:none;
color:#888;
}
h1{
font-size:190%;
margin:0 20px;
line-height:90px;
}
h2{
font-size:190%;
}
#container{
margin: 0 auto;
width: 1200px;
/*background: #FFFFEC;*/
padding-bottom: 2px;
}
#content{margin:4 45px;}
p.sig{
margin:7 auto;
width:580px;
padding:4em 0;
}
form{
margin: 1em 0;
padding: .2em 30px;
background: #FFFF66;
}
</style>
</head>
<body>
<div id="container">
</div>
<div id="content">
<a href="site_jf Mateus/site/secretariaback.html">Voltar</a>
<?php
header('Content-type: text/html; charset=ISO-8859-1');
if(file_exists("init.php")) {
require "init.php";
} else {
echo "Arquivo init.php nao foi encontrado";
exit;
}
if(!function_exists("Abre_Conexao")) {
echo "Erro o arquivo init.php foi auterado, nao existe a funcao Abre_Conexao";
exit;
}
Abre_Conexao();
$re = mysql_query("SELECT * FROM usuarios ORDER BY usuarios.data_nascimento desc;");
if(mysql_errno() != 0) {
if(!isset($erros)) {
echo "Erro o arquivo init.php foi auterado, nao existe $erros";
exit;
}
echo $erros[mysql_errno()];
exit;
}
?>
<br>
<center><h2>Listagem dos pedidos</h2>
</center>
<?php
echo "<p style=color:red>";
$busca = mysql_query("SELECT count(*) FROM usuarios");
$total = mysql_result($busca,0);
echo "<b>Tem de momento: </b> $total pedidos";
echo "</p>";
?>
<table border="1">
<tr bgcolor="#ccff66">
<th>Gerir</th>
<th>Nome</th>
<th>Email</th>
<th>Data de Nascimento</th>
<th>BI</th>
<th>Natural</th>
<th>Rua</th>
<th>Contribuinte</th>
<th>Estado Civil</th>
<th>Profissao</th>
<th>Freguesia</th>
<th>Concelho</th>
<th>Distrito</th>
<th>Pai</th>
<th>Mae</th>
<th>Telefone</th>
<th>Efeitos de:</th>
<th>Tipo Pedido</th>
<th>Estado</th>
</tr>
<?php
while($l = mysql_fetch_array($re)) {
$id = $l["id_usuario"];
$nome = $l["nome"];
//$foto = $l["foto"];
$email = $l["email"];
$dia = $l["dia"];
$mes = $l["mes"];
$ano = $l["ano"];
// $data =$l["ano"];
$bi = $l["bi"];
$naturalidade =$l["naturalidade"];
$rua =$l["rua"];
$contribuinte =$l["contribuinte"];
$estado =$l["estado"];
$profissao =$l["profissao"];
$freguesia =$l["freguesia"];
$concelho =$l["concelho"];
$distrito =$l["distrito"];
$concelho =$l["concelho"];
$pai =$l["pai"];
$mae =$l["mae"];
$telefone =$l["telefone"];
$outros =$l["outros"];
$confirma =$l["confirma"];
echo "
<tr>
<td><a href=\"editar.php?id=$id\">[Editar]</a> <a href=\"excluir.php?id=$id\">[Excluir]</a></td>
<td> $nome</td>
<td> $email</td>
<td> $dia-$mes-$ano</td>
<td> $bi</td>
<td> $naturalidade</td>
<td> $rua</td>
<td> $contribuinte</td>
<td> $estado</td>
<td> $profissao</td>
<td> $freguesia</td>
<td> $concelho</td>
<td> $distrito</td>
<td> $pai</td>
<td> $mae</td>
<td> $telefone</td>
<td> $outros</td>
<td class=style19> $confirma</td>
<td> <input name='check' type='checkbox' /></td>
</tr>\n";
}
@mysql_close();
?>
</table>
</div>
</body>
</html>