Aggiunta sezione WhiteFox
This commit is contained in:
@@ -625,7 +625,7 @@ class html {
|
|||||||
$this->size = count ($dati);
|
$this->size = count ($dati);
|
||||||
|
|
||||||
if ($align != "") $align = "align=\"$align\"";
|
if ($align != "") $align = "align=\"$align\"";
|
||||||
print "<table cellpadding=\"0\" cellspacing=\"0\" border=\"$bordo\" width=\"$size\" $align>\n";
|
print "<table cellpadding=\"0\" cellspacing=\"0\" border=\"$bordo\" width=\"$size\" style=\"table-layout:fixed;\" $align >\n";
|
||||||
print "\t<tr>\n";
|
print "\t<tr>\n";
|
||||||
$somma = 0;
|
$somma = 0;
|
||||||
foreach ($dati as $riga) {
|
foreach ($dati as $riga) {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
192.168.1.1
|
||||||
|
|||||||
74
wf/index.php
Executable file
74
wf/index.php
Executable file
@@ -0,0 +1,74 @@
|
|||||||
|
<?php
|
||||||
|
include_once ("../core/config.php");
|
||||||
|
$UTENTE = login();
|
||||||
|
$DIRITTI = diritti('Utente');
|
||||||
|
view_top();
|
||||||
|
?>
|
||||||
|
<meta http-equiv="refresh" content="10">
|
||||||
|
<?php
|
||||||
|
$query = " SELECT
|
||||||
|
GREATEST (max(inviati), max(ricevuti)) AS max
|
||||||
|
FROM
|
||||||
|
proxy_speed
|
||||||
|
";
|
||||||
|
|
||||||
|
$res = mysql_query( $query, $DB_ID );
|
||||||
|
$valori = mysql_fetch_array ( $res );
|
||||||
|
$max = $valori['max'];
|
||||||
|
|
||||||
|
$query = " SELECT
|
||||||
|
proxy_speed.ip,
|
||||||
|
proxy_speed.ricevuti,
|
||||||
|
proxy_speed.inviati,
|
||||||
|
proxy_pool.attivo,
|
||||||
|
proxy_pool.id,
|
||||||
|
proxy_pool.nome
|
||||||
|
FROM
|
||||||
|
proxy_speed
|
||||||
|
JOIN
|
||||||
|
proxy_pool
|
||||||
|
ON
|
||||||
|
proxy_speed.ip = proxy_pool.ip
|
||||||
|
ORDER BY
|
||||||
|
ricevuti desc ,
|
||||||
|
inviati desc
|
||||||
|
";
|
||||||
|
|
||||||
|
$res = mysql_query( $query, $DB_ID );
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%", array (3,3,2,20,2,8,2,10,2,0));
|
||||||
|
while ($dato = mysql_fetch_array ( $res )) {
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<?php
|
||||||
|
if ($dato['attivo']) {
|
||||||
|
?>
|
||||||
|
<td rowspan=2 class="col3btn"><a href="proxy_gest.php?azione=pool_rem&id=<?php print $dato['ip']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Utente limitato" TITLE="Utente limitato"></a></td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td rowspan=2 class="col3btn"><a href="proxy_gest.php?azione=pool_ins&id=<?php print $dato['ip']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Utente non limitato" TITLE="Utente non limitato"></a></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td rowspan=2 class="col3btn"><a href="pool_ip.php?id=<?php print $dato['id'] ?>"><img src="<?php print $CONF['base_url'] ?>/img/modify.gif" ALT="Dettaglio" TITLE="Dettaglio"></a></td>
|
||||||
|
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['ip'] ?></td>
|
||||||
|
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="descrizione">Inviati</td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colspeed"><?php print byteConvert($dato['inviati']) ?> </td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colimg"><img border="0" src="barra.php?max=<?php print $max ?>&val=<?php print $dato['inviati'] ?>&col=red"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="colip"><?php if ($dato['nome'] != "") { print $dato['nome']; } else { $host = gethostbyaddr ($dato['ip']); print substr($host, 0, strpos($host, ".")); } ?></td>
|
||||||
|
<td class="descrizione">Ricevuti</td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colspeed"><?php print byteConvert($dato['ricevuti']) ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colimg"><img border="0" src="barra.php?max=<?php print $max ?>&val=<?php print $dato['ricevuti'] ?>&col=blue"></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga();
|
||||||
|
}
|
||||||
|
$tabella->close();
|
||||||
|
view_footer();
|
||||||
|
?>
|
||||||
303
wf/iscritti_edit.php
Executable file
303
wf/iscritti_edit.php
Executable file
@@ -0,0 +1,303 @@
|
|||||||
|
<?php
|
||||||
|
include_once ("../core/config.php");
|
||||||
|
$UTENTE = login();
|
||||||
|
$DIRITTI = diritti('Admin');
|
||||||
|
view_top();
|
||||||
|
|
||||||
|
if (isset($_POST['id'])) {
|
||||||
|
$id = $_POST['id'];
|
||||||
|
$user = $_POST['user'];
|
||||||
|
$fullname = $_POST['fullname'];
|
||||||
|
$ip = $_POST['ip'];
|
||||||
|
|
||||||
|
$pwd = "";
|
||||||
|
|
||||||
|
if ($_POST['pwd1'] != "") {
|
||||||
|
$pwd1 = $_POST['pwd1'];
|
||||||
|
$pwd2 = $_POST['pwd2'];
|
||||||
|
|
||||||
|
if ($pwd1 == $pwd2) {
|
||||||
|
$pwd = "pass = PASSWORD('$pwd1'),";
|
||||||
|
} else {
|
||||||
|
$pwd = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($pwd == -1) {
|
||||||
|
print "ERRORE le password devono coincidere";
|
||||||
|
} else {
|
||||||
|
if ($id) {
|
||||||
|
$query = " UPDATE
|
||||||
|
proxy_utenti
|
||||||
|
SET
|
||||||
|
user = '$user',
|
||||||
|
fullname = '$fullname',
|
||||||
|
ip = '$ip',
|
||||||
|
$pwd
|
||||||
|
modifica = NOW()
|
||||||
|
WHERE
|
||||||
|
id = $id
|
||||||
|
";
|
||||||
|
} else {
|
||||||
|
$query = " INSERT INTO
|
||||||
|
proxy_utenti
|
||||||
|
SET
|
||||||
|
user = '$user',
|
||||||
|
fullname = '$fullname',
|
||||||
|
ip = '$ip',
|
||||||
|
$pwd
|
||||||
|
data = NOW(),
|
||||||
|
modifica = NOW(),
|
||||||
|
attivo = 1
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
$res = mysql_query( $query, $DB_ID );
|
||||||
|
if ($id == "") {
|
||||||
|
$id = mysql_insert_id();
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.location.href='users_edit.php?id=<?php print $id ?>'
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} elseif (isset($_GET['id'])) {
|
||||||
|
$id = $_GET['id'];
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function getvalue() {
|
||||||
|
MyIFrame = document.getElementById("chkpwd");
|
||||||
|
MyIFrame.src = "users_pwd.php";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// <iframe id="chkpwd" style="display:none; visibility:hidden;"></iframe>
|
||||||
|
?>
|
||||||
|
|
||||||
|
<form name="" method="post">
|
||||||
|
<input type="hidden" name="id" value="<?php print $id ?>">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$query = " SELECT
|
||||||
|
id,
|
||||||
|
attivo,
|
||||||
|
nome,
|
||||||
|
cognome,
|
||||||
|
nome,
|
||||||
|
id_cintura,
|
||||||
|
id_palestra,
|
||||||
|
id_categoria,
|
||||||
|
DATE_FORMAT(certificato, '%d.%m.%Y') AS certificato,
|
||||||
|
via,
|
||||||
|
cap,
|
||||||
|
citta,
|
||||||
|
provincia,
|
||||||
|
cf,
|
||||||
|
sesso,
|
||||||
|
stato,
|
||||||
|
DATE_FORMAT(nascita_data, '%d.%m.%Y') AS nascita_data,
|
||||||
|
nascita_luogo,
|
||||||
|
nascita_provincia,
|
||||||
|
gen_cognome,
|
||||||
|
gen_nome,
|
||||||
|
gen_cf,
|
||||||
|
gen_sesso,
|
||||||
|
gen_stato,
|
||||||
|
gen_nascita_data,
|
||||||
|
gen_nascita_luogo,
|
||||||
|
gen_nascita_provincia,
|
||||||
|
telefono,
|
||||||
|
mail,
|
||||||
|
DATE_FORMAT(data_richiesta, '%d.%m.%Y') AS data_richiesta,
|
||||||
|
DATE_FORMAT(data_delibera, '%d.%m.%Y') AS data_delibera,
|
||||||
|
DATE_FORMAT(data_fita, '%d.%m.%Y') AS data_fita,
|
||||||
|
c_soc,
|
||||||
|
tessera
|
||||||
|
FROM
|
||||||
|
wf_iscritto
|
||||||
|
WHERE
|
||||||
|
id = $id
|
||||||
|
";
|
||||||
|
|
||||||
|
$res = mysql_query( $query, $DB_ID );
|
||||||
|
$dato = mysql_fetch_array ( $res );
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,20,5,15,0));
|
||||||
|
$tabella->intestazione (array("","Cognome","","Nome","","Codice Fiscale",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<?php
|
||||||
|
if ($dato['attivo']) {
|
||||||
|
?>
|
||||||
|
<td class="spazioh"><a href="wf_gest.php?azione=wf_off&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Atleta Attivo" TITLE="Atleta Attivo"></a></td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td class="spazioh"><a href="wf_gest.php?azione=wf_on&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Atleta non Attivo" TITLE="Atleta non Attivo"></a></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td class="colip"><input size=20% type="text" name=cognome value="<?php print $dato['cognome'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=nome value="<?php print $dato['nome'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=15% type="text" name=cf value="<?php print $dato['cf'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(5);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,3,5,10,5,20,5,5,5,10,0));
|
||||||
|
$tabella->intestazione (array("","Sesso","","Data di nascita","","Luogo di nascita","","Prov.","","Nazionalità",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=3% type="text" name=sesso value="<?php print $dato['sesso'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=nascita_data value="<?php print $dato['nascita_data'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=nascita_luogo value="<?php print $dato['nascita_luogo'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=5% type="text" name=nascita_provincia value="<?php print $dato['nascita_provincia'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=stato value="<?php print $dato['stato'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(20);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,20,5,20,5,10,0));
|
||||||
|
$tabella->intestazione (array("","Palestra","","Cintura","","Categoria","","Scad. certificato",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=id_palestra value="<?php print $dato['id_palestra'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=id_cintura value="<?php print $dato['id_cintura'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=id_categoria value="<?php print $dato['id_categoria'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=certificato value="<?php print $dato['certificato'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(20);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,10,5,20,5,5,0));
|
||||||
|
$tabella->intestazione (array("","Indirizzo","","CAP","","Città","","Prov.",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=via value="<?php print $dato['via'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=cap value="<?php print $dato['cap'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=citta value="<?php print $dato['citta'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=5% type="text" name=provincia value="<?php print $dato['provincia'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(5);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,30,0));
|
||||||
|
$tabella->intestazione (array("","Telefono","","Mail",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=telefono value="<?php print $dato['telefono'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=30% type="text" name=mail value="<?php print $dato['mail'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(20);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,20,5,15,0));
|
||||||
|
$tabella->intestazione (array("","Cognome","","Nome","","Codice Fiscale",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=gen_cognome value="<?php print $dato['gen_cognome'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=gen_nome value="<?php print $dato['gen_nome'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=15% type="text" name=gen_cf value="<?php print $dato['gen_cf'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(5);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,3,5,10,5,20,5,5,5,10,0));
|
||||||
|
$tabella->intestazione (array("","Sesso","","Data di nascita","","Luogo di nascita","","Prov.","","Nazionalità",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=3% type="text" name=gen_sesso value="<?php print $dato['gen_sesso'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=gen_nascita_data value="<?php print $dato['gen_nascita_data'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=gen_nascita_luogo value="<?php print $dato['gen_nascita_luogo'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=5% type="text" name=gen_nascita_provincia value="<?php print $dato['gen_nascita_provincia'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=gen_stato value="<?php print $dato['gen_stato'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(30);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,10,5,10,0));
|
||||||
|
$tabella->intestazione (array("","Codice Societario","","Data richiesta","","Data Delibera",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=c_soc value="<?php print $dato['c_soc'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=data_richiesta value="<?php print $dato['data_richiesta'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=data_delibera value="<?php print $dato['data_delibera'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga(5);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,10,0));
|
||||||
|
$tabella->intestazione (array("","Tessera FITA","","Data FITA",""));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=20% type="text" name=tessera value="<?php print $dato['tessera'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><input size=10% type="text" name=data_fita value="<?php print $dato['data_fita'] ?>"></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$tabella->riga(5);
|
||||||
|
$tabella->close();
|
||||||
|
|
||||||
|
$tabella = new html (0,"90%",array(5,20,5,20,5,10,0));
|
||||||
|
$tabella->riga(); ?>
|
||||||
|
<tr><td class="spaziov" colspan=10><input type="submit" value="Conferma"></td></tr>
|
||||||
|
|
||||||
|
<?php $tabella->close(); ?>
|
||||||
|
</form>
|
||||||
|
<?php view_footer(); ?>
|
||||||
77
wf/iscritti_lista.php
Executable file
77
wf/iscritti_lista.php
Executable file
@@ -0,0 +1,77 @@
|
|||||||
|
<?php
|
||||||
|
include_once ("../core/config.php");
|
||||||
|
$UTENTE = login();
|
||||||
|
$DIRITTI = diritti('Admin');
|
||||||
|
view_top();
|
||||||
|
?>
|
||||||
|
|
||||||
|
<form name="" method="post">
|
||||||
|
<?php $tabella = new html (0,"90%", array (3,5,2,15,2,15,2,10,2,10,2,10,2,10,0)); ?>
|
||||||
|
<tr>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="spazioh"><a href="pool_ip.php"><img src="<?php print $CONF['base_url'] ?>/img/addresource.png"></a></td>
|
||||||
|
<td colspan=13 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$tabella->riga();
|
||||||
|
$query = " SELECT
|
||||||
|
wf_iscritto.id,
|
||||||
|
wf_iscritto.attivo,
|
||||||
|
wf_iscritto.cognome,
|
||||||
|
wf_iscritto.nome,
|
||||||
|
wf_cinture.cintura,
|
||||||
|
wf_palestre.palestra,
|
||||||
|
wf_iscritto.id_categoria,
|
||||||
|
DATE_FORMAT(wf_iscritto.certificato, '%d.%m.%Y') AS certificato
|
||||||
|
FROM
|
||||||
|
wf_iscritto
|
||||||
|
JOIN
|
||||||
|
wf_cinture
|
||||||
|
ON
|
||||||
|
wf_iscritto.id_cintura = wf_cinture.id
|
||||||
|
JOIN
|
||||||
|
wf_palestre
|
||||||
|
ON
|
||||||
|
wf_iscritto.id_palestra = wf_palestre.id
|
||||||
|
ORDER BY
|
||||||
|
cognome,
|
||||||
|
nome
|
||||||
|
|
||||||
|
|
||||||
|
";
|
||||||
|
|
||||||
|
$res = mysql_query( $query, $DB_ID );
|
||||||
|
$tabella->intestazione (array("", "", "", "Cognome", "", "Nome", "", "Cintura", "", "categoria", "", "Palestra", "", "Scad. cert.", ""));
|
||||||
|
$tabella->riga();
|
||||||
|
while ($dato = mysql_fetch_array ( $res )) {
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<?php
|
||||||
|
if ($dato['attivo']) {
|
||||||
|
?>
|
||||||
|
<td class="col3btn"><a href="wf_gest.php?azione=wf_off&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Utente attivo" TITLE="Utente attivo"></a></td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td class="col3btn"><a href="wf_gest.php?azione=wf_on&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Utente non attivo" TITLE="Utente non attivo"></a></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td class="col3btn"><a href="iscritti_edit.php?id=<?php print $dato['id'] ?>"><img src="<?php print $CONF['base_url'] ?>/img/modify.gif" ALT="Modifica Utente" TITLE="Modifica Utente"></a></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['cognome'] ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['nome'] ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['cintura'] ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['id_categoria'] ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['palestra'] ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
<td class="colip"><?php print $dato['certificato'] ?></td>
|
||||||
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
$tabella->close();
|
||||||
|
?>
|
||||||
|
</form>
|
||||||
|
<?php view_footer(); ?>
|
||||||
61
wf/wf_gest.php
Executable file
61
wf/wf_gest.php
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
<?php
|
||||||
|
include_once ("../core/config.php");
|
||||||
|
$UTENTE = login();
|
||||||
|
$DIRITTI = diritti('Admin');
|
||||||
|
?>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
function confirmation(testo) {
|
||||||
|
alert(testo)
|
||||||
|
document.location.href='main.php'
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (isset($_GET['id'])) {
|
||||||
|
$id = $_GET['id'];
|
||||||
|
if (isset($_GET['azione'])) {
|
||||||
|
$azione = $_GET['azione'];
|
||||||
|
$genera = 0;
|
||||||
|
switch ($azione) {
|
||||||
|
case "wf_on":
|
||||||
|
$query = "UPDATE wf_iscritto SET attivo = 1 WHERE id = $id";
|
||||||
|
$testo = "Confermate l'abilitazione dell'utente?";
|
||||||
|
break;
|
||||||
|
case "wf_off":
|
||||||
|
$query = "UPDATE wf_iscritto SET attivo = 0 WHERE id = $id";
|
||||||
|
$testo = "Confermate la disabilitazione dell'utente?";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
$testo = "Regola non implementata";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($_GET['ref'])) {
|
||||||
|
$ref = pack ('H*', $_GET['ref']);
|
||||||
|
mysql_query( $query, $DB_ID );
|
||||||
|
if ($genera) genera($DB_ID);
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.location.href="<?php print $ref ?>"
|
||||||
|
</script>
|
||||||
|
<?php } else {
|
||||||
|
$ref = unpack ('H*', $_SERVER["HTTP_REFERER"]);
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var r = confirm("<?php print $testo ?>");
|
||||||
|
if (r == true) {
|
||||||
|
document.location.href="<?php print $_SERVER['REQUEST_URI']?>&ref=<?php print $ref[1] ?>"
|
||||||
|
} else {
|
||||||
|
document.location.href="<?php print $_SERVER['HTTP_REFERER']?>"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user