Current Path : /web/htdocs/www.entinoprofit.org/home/database/
Upload File :
Current File : /web/htdocs/www.entinoprofit.org/home/database/lista_affiliazioni.php

<?php
include_once("include/config.php");
include_once("include/auth.lib.php");

list($status, $user) = auth_get_status();

if($status == AUTH_LOGGED & auth_get_option("TRANSICTION METHOD") == AUTH_USE_LINK){
	$link = "?uid=".$_GET['uid'];
}else	$link = '';

switch($status){
case AUTH_LOGGED:

if ($user["username"] == 'acsi'){

if (isset($_POST['e-postmain']))
{
	while(list($key, $val) = each($_POST["delete"])) 
		{ 
    if($val == 'del')
        $deleteIds[] = $key;
	$delmail = "DELETE FROM utenti WHERE id='$key'";
	$delres = mysql_query($delmail) or die("Query 1 failed");
	
	} 

}	



$query = "SELECT * FROM utenti WHERE username = ''";


$risultato = mysql_query($query) or die("Query 1 failed");
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Database ACSI Comitato Provinciale di Padova</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" class="table1">
  <!--DWLayoutTable-->
  <tr>
    <td height="20" colspan="9"><div align="center">Database ACSI Comitato Provinciale di Padova</div></td>
  </tr>
  <tr>
    <td height="20"></td>
  </tr>
  <tr>
    <td height="20" colspan="9"><div align="center"><?php include('in.php'); ?></div></td>
  </tr>
 </table>

<div id="main"> 
<table width="100%" class="table2">
  <!--DWLayoutTable-->
  <tr>
    <td height="22" colspan="25" valign="center">
      <div align="center">Lista AFFILIAZIONI IN SOSPESO 
	  
	  </div></td>
  </tr></table>
<form name="modulo" id="modulo" method="post" action="lista_affiliazioni.php">
  <table width="100%" class="table2">
    <!--DWLayoutTable-->
	<thead>
		<tr><th height="20">ID</th>
 <th height="20">Nome Club</th>
 <th height="20">Presidente</th>
 <th height="20">Telefono</th>
 <th height="20">Cellulare</th>
 <th height="20">Email</th> 
 <th height="20">Data</th>
 <th height="20">ACCOUNT</th>
 <TH height="20"></TH>
</tr></thead> 
<?php
while ($array = mysql_fetch_array($risultato, MYSQL_BOTH)) { 

$date = ($array['lastUpdate'] != '0') ? date('m/d/Y h:m', $array['lastUpdate']) : '';

echo "<tr valign='middle'>";

echo "<td height='20' class='form'>".$array['id']."</td>
<td valign='middle' class='form'>".$array['name']."</td>
 <td valign='middle' >".$array['nome1']." ".$array['cognome1']."</td>
<td valign='middle' >".$array['tel']."</td>
 <td valign='middle' >".$array['cel']."</td></a>
 <td valign='middle' >".$array['email']."</td>
 <td valign='middle'>".$date."</td>
 <td valign='middle'><a href='modAff.php?id=".$array['id']."'>CREA ACCOUNT</a></td>
<TD><input type='checkbox' name='delete[".$array['id']."]' value='del'  ></TD></tr>";
}
?>

</table>
<p align="center"><input type="submit" name="e-postmain" value="Cancella affiliazioni" ></p>
</FORM>

</div> 
</body>
</html>
<?php } ?>