<?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 = '';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Database Rivs</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%" border="1" bgcolor="#3333CC">
<!--DWLayoutTable-->
<tr bordercolor="#FFFFFF" bgcolor="#FF0000" class="form">
<td height="20" colspan="9" bgcolor="#CC0000" class="form"><div align="center">Database ACSI Comitato Provinciale di Padova</div></td>
</tr>
<tr>
<td height="20"></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#CC0000" class="form">
<td height="20" colspan="9"><div align="center"><?php include('in.php'); ?></div></td>
</tr>
</table><p></p>
<table width="100%" border="1" bgcolor="#3333CC">
<!--DWLayoutTable-->
<tr bordercolor="#FFFFFF" bgcolor="#CC0000" class="form">
<td height="23" colspan="5" valign="top" class='form1'><div align="center" class="form">Gestione tessere </div></td>
</tr>
<tr bordercolor="#3333CC">
<td height="20" colspan="5" valign="top" class='form1'><div align="center"></div></td>
</tr>
<tr bordercolor="#3333CC">
<td height="28" colspan="3" valign="top"><!--DWLayoutEmptyCell--> </td>
<td width="227" valign="middle" class='form'>
<form method="post" action="gestionetessere2.php">
<select name="club">
<?php
if ($user["admin"] == 2)
{
$query = "SELECT username, regione FROM utenti where regione = 'campania'";
$risultato = mysql_query($query) or die("Query 1 failed");
while ($array = mysql_fetch_array($risultato, MYSQL_BOTH)) {
echo "<option value='$array[username]'>$array[username]</option>";
}
}
if ($user["admin"] == 1)
{
$query = "SELECT username, regione FROM utenti ";
$risultato = mysql_query($query) or die("Query 1 failed");
while ($array = mysql_fetch_array($risultato, MYSQL_BOTH)) {
echo "<option value='$array[username]'>$array[username]</option>";
}
}
?>
</select>
<input type="submit" value="Invia">
</form></td>
<td width="437" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr bordercolor="#3333CC">
<td width="236" height="26" valign="top"><!--DWLayoutEmptyCell--> </td>
<td width="235" valign="middle" class='form'><!--DWLayoutEmptyCell--> </td>
<td colspan="3" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr bordercolor="#3333CC">
<td height="24" colspan="5" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="5"></td>
<td></td>
<td width="3"></td>
<td></td>
<td></td>
</tr>
</table>
<table width="100%">
<tr><td>
<div align="center"> </div></td>
</tr>
</table>
</table>
</body>
</html>