<?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 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">
<SCRIPT LANGUAGE="JavaScript">
function verifica(form) {
if (form.nome.value == "") {
alert("Occorre riempire il campo Nome");
return false;
} else if (form.cognome.value== "") {
alert("Occorre riempire il campo Cognome");
return false;
} else if (form.tel.value== "") {
alert("Occorre riempire il campo telefono");
return false;
} else if (form.mail.value== "") {
alert("Occorre riempire il campo email");
return false;
}
return true;
}
// --> </SCRIPT>
</head>
<body>
<table 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">
<?php
$id = $_GET['id'];
$query = "SELECT * FROM referente WHERE id = ".$id."";
$result = mysql_query($query) or die (mysql_error());
$array = mysql_fetch_array($result, MYSQL_BOTH);
?>
<table width="40%" class="table3">
<thead>
<tr>
<th height="22" colspan="2">REFERENTE </th>
</tr></thead>
<tr>
<td colspan="2" height="26" align="center"><?php echo "<a href=\"modreferente.php?id=$id\">[Modifica referente]</a> | <a href=\"ref2pdf.php?id=$id\">[Stampa]</a> | <a href='lista_referenti.php'>Lista referenti</a>"; ?></td>
</tr>
<tr valign="middle">
<td height="26"><div align="justify" >Associazione</div></td>
<td class="desc">
<?php
$queryClub = "SELECT id,name,username FROM utenti WHERE id = ".$array['idclub']."";
$resultClub = mysql_query($queryClub) or die (mysql_error());
$arrayClub = mysql_fetch_array($resultClub,MYSQL_BOTH);
echo '<a href="schedaclub.php?club='.$arrayClub['username'].'" target="_blank">'.$arrayClub['name'].'</a>';
?>
</td>
</tr>
<tr valign="middle">
<td height="26"><div align="justify" >Nome</div></td>
<td class="desc"><?php echo $array['nome']; ?>
</td>
</tr>
<tr valign="middle">
<td height="26" >Cognome</td>
<td class="desc"><?php echo $array['cognome']; ?>
</td>
</tr>
<tr valign="middle">
<td height="26" >Indirizzo</td>
<td class="desc"><?php echo $array['indirizzo']; ?>
</td>
</tr>
<tr valign="middle">
<td height="26" >Progetto</td>
<td class="desc"><?php echo $array['progetto']; ?>
</td>
</tr>
<tr valign="middle"><td height="26">Telefono</td>
<td class="desc"><?php echo $array['tel']; ?>
</td>
</tr>
<tr valign="middle">
<td height="26">Email</td>
<td class="desc"><?php echo $array['mail']; ?>
</td>
</tr>
<tr valign="middle">
<td height="26">Note</td>
<td class="desc"><?php echo $array['note']; ?></td>
</tr>
<td height="28" colspan="2" valign="top"><div align="right">
</div></td>
</tr>
</table>
</div>
</body>
</html>