eliminazione whitefox
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
function categoria ($data) {
|
|
||||||
global $DB_ID;
|
|
||||||
|
|
||||||
$query = " SELECT
|
|
||||||
categoria
|
|
||||||
FROM
|
|
||||||
wf_categoria
|
|
||||||
WHERE
|
|
||||||
STR_TO_DATE('$data', '%d.%m.%Y')
|
|
||||||
BETWEEN
|
|
||||||
DATE_SUB(CONCAT(YEAR(NOW()),'-01-01 00:00:00'), INTERVAL fine YEAR)
|
|
||||||
AND
|
|
||||||
DATE_SUB(CONCAT(YEAR(NOW()),'-12-31 00:00:00'), INTERVAL inizio YEAR)
|
|
||||||
";
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
$categoria = "";
|
|
||||||
while ($dato = mysql_fetch_array ($res)) {
|
|
||||||
$categoria .= $dato['categoria']." - ";
|
|
||||||
}
|
|
||||||
return substr($categoria, 0, -3);
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -1,403 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once ("../core/config.php");
|
|
||||||
include_once ("funzioni.php");
|
|
||||||
$UTENTE = login();
|
|
||||||
$DIRITTI = diritti('Admin');
|
|
||||||
view_top();
|
|
||||||
|
|
||||||
if (isset($_POST['id'])) {
|
|
||||||
extract($_POST);
|
|
||||||
|
|
||||||
if ($id) {
|
|
||||||
$query = " UPDATE
|
|
||||||
wf_iscritto
|
|
||||||
SET
|
|
||||||
nome = '$nome',
|
|
||||||
cognome = '$cognome',
|
|
||||||
id_cintura = $id_cintura,
|
|
||||||
id_palestra = $id_palestra,
|
|
||||||
certificato = STR_TO_DATE('$certificato', '%d.%m.%Y'),
|
|
||||||
via = '$via',
|
|
||||||
cap = '$cap',
|
|
||||||
citta = '$citta',
|
|
||||||
provincia = '$provincia',
|
|
||||||
cf = '$cf',
|
|
||||||
sesso = '$sesso',
|
|
||||||
stato = '$stato',
|
|
||||||
nascita_data = STR_TO_DATE('$nascita_data', '%d.%m.%Y'),
|
|
||||||
nascita_luogo = '$nascita_luogo',
|
|
||||||
nascita_provincia = '$nascita_provincia',
|
|
||||||
gen_cognome = '$gen_cognome',
|
|
||||||
gen_nome = '$gen_nome',
|
|
||||||
gen_cf = '$gen_cf',
|
|
||||||
gen_sesso = '$gen_sesso',
|
|
||||||
gen_stato = '$gen_stato',
|
|
||||||
gen_nascita_data = STR_TO_DATE('$gen_nascita_data', '%d.%m.%Y'),
|
|
||||||
gen_nascita_luogo = '$gen_nascita_luogo',
|
|
||||||
gen_nascita_provincia = '$gen_nascita_provincia',
|
|
||||||
telefono = '$telefono',
|
|
||||||
mail = '$mail',
|
|
||||||
data_richiesta = STR_TO_DATE('$data_richiesta', '%d.%m.%Y'),
|
|
||||||
data_delibera = STR_TO_DATE('$data_delibera', '%d.%m.%Y'),
|
|
||||||
data_fita = STR_TO_DATE('$data_fita', '%d.%m.%Y'),
|
|
||||||
c_soc = '$c_soc',
|
|
||||||
tessera = '$tessera'
|
|
||||||
WHERE
|
|
||||||
id = $id
|
|
||||||
";
|
|
||||||
} else {
|
|
||||||
$query = " INSERT INTO
|
|
||||||
wf_iscritto
|
|
||||||
SET
|
|
||||||
attivo = 0,
|
|
||||||
nome = '$nome',
|
|
||||||
cognome = '$cognome',
|
|
||||||
id_cintura = $id_cintura,
|
|
||||||
id_palestra = $id_palestra,
|
|
||||||
certificato = STR_TO_DATE('$certificato', '%d.%m.%Y'),
|
|
||||||
via = '$via',
|
|
||||||
cap = '$cap',
|
|
||||||
citta = '$citta',
|
|
||||||
provincia = '$provincia',
|
|
||||||
cf = '$cf',
|
|
||||||
sesso = '$sesso',
|
|
||||||
stato = '$stato',
|
|
||||||
nascita_data = STR_TO_DATE('$nascita_data', '%d.%m.%Y'),
|
|
||||||
nascita_luogo = '$nascita_luogo',
|
|
||||||
nascita_provincia = '$nascita_provincia',
|
|
||||||
gen_cognome = '$gen_cognome',
|
|
||||||
gen_nome = '$gen_nome',
|
|
||||||
gen_cf = '$gen_cf',
|
|
||||||
gen_sesso = '$gen_sesso',
|
|
||||||
gen_stato = '$gen_stato',
|
|
||||||
gen_nascita_data = STR_TO_DATE('$gen_nascita_data', '%d.%m.%Y'),
|
|
||||||
gen_nascita_luogo = '$gen_nascita_luogo',
|
|
||||||
gen_nascita_provincia = '$gen_nascita_provincia',
|
|
||||||
telefono = '$telefono',
|
|
||||||
mail = '$mail',
|
|
||||||
data_richiesta = STR_TO_DATE('$data_richiesta', '%d.%m.%Y'),
|
|
||||||
data_delibera = STR_TO_DATE('$data_delibera', '%d.%m.%Y'),
|
|
||||||
data_fita = STR_TO_DATE('$data_fita', '%d.%m.%Y'),
|
|
||||||
c_soc = '$c_soc',
|
|
||||||
tessera = '$tessera'
|
|
||||||
";
|
|
||||||
}
|
|
||||||
|
|
||||||
print $query;
|
|
||||||
exit;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
if ($id == "") {
|
|
||||||
$id = mysql_insert_id();
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
document.location.href='iscritti_edit.php?id=<?php print $id ?>'
|
|
||||||
</script>
|
|
||||||
<?php
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} elseif (isset($_GET['id'])) {
|
|
||||||
$id = $_GET['id'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form name="" method="post">
|
|
||||||
<input type="hidden" name="id" value="<?php print $id ?>">
|
|
||||||
<?php
|
|
||||||
|
|
||||||
$query = " SELECT
|
|
||||||
id,
|
|
||||||
attivo,
|
|
||||||
nome,
|
|
||||||
cognome,
|
|
||||||
id_cintura,
|
|
||||||
id_palestra,
|
|
||||||
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,
|
|
||||||
DATE_FORMAT(gen_nascita_data, '%d.%m.%Y') AS 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 );
|
|
||||||
|
|
||||||
$query = " SELECT
|
|
||||||
id,
|
|
||||||
palestra
|
|
||||||
FROM
|
|
||||||
wf_palestre
|
|
||||||
ORDER BY
|
|
||||||
palestra
|
|
||||||
";
|
|
||||||
$res_palestra = mysql_query( $query, $DB_ID );
|
|
||||||
|
|
||||||
$query = " SELECT
|
|
||||||
id,
|
|
||||||
cintura
|
|
||||||
FROM
|
|
||||||
wf_cinture
|
|
||||||
ORDER BY
|
|
||||||
kup desc,
|
|
||||||
dan
|
|
||||||
";
|
|
||||||
$res_cintura = mysql_query( $query, $DB_ID );
|
|
||||||
|
|
||||||
$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,5,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">
|
|
||||||
<select name=sesso>
|
|
||||||
<option value="F" <?php if ($dato['sesso'] == "F") { print "selected=\"selected\"";}?>>F</option>
|
|
||||||
<option value="M" <?php if ($dato['sesso'] == "M") { print "selected=\"selected\"";}?>>M</option>
|
|
||||||
</select>
|
|
||||||
</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,15,5,15,5,15,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">
|
|
||||||
<select name=id_palestra>
|
|
||||||
<?php while ($dato_palestra = mysql_fetch_array ( $res_palestra )) { ?>
|
|
||||||
<option value="<?php print $dato_palestra['id']?>" <?php if ($dato['id_palestra'] == $dato_palestra['id']) { print "selected=\"selected\"";}?>><?php print $dato_palestra['palestra']?></option>
|
|
||||||
<?php } ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip">
|
|
||||||
<select name=id_cintura>
|
|
||||||
<?php while ($dato_cintura = mysql_fetch_array ( $res_cintura )) { ?>
|
|
||||||
<option value="<?php print $dato_cintura['id']?>" <?php if ($dato['id_cintura'] == $dato_cintura['id']) { print "selected=\"selected\"";}?>><?php print $dato_cintura['cintura']?></option>
|
|
||||||
<?php } ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print categoria($dato['nascita_data']) ?></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(10);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,90,5));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td><hr></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip">Dati genitore se minore</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,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,5,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">
|
|
||||||
<select name=gen_sesso>
|
|
||||||
<option value="F" <?php if ($dato['gen_sesso'] == "F") { print "selected=\"selected\"";}?>>F</option>
|
|
||||||
<option value="M" <?php if ($dato['gen_sesso'] == "M") { print "selected=\"selected\"";}?>>M</option>
|
|
||||||
</select>
|
|
||||||
</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(10);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,90,5));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td><hr></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip">Dati Societari</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,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,0));
|
|
||||||
$tabella->riga(); ?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="spaziov" colspan=10><input type="submit" value="Conferma"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<?php $tabella->close(); ?>
|
|
||||||
</form>
|
|
||||||
<?php view_footer(); ?>
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once ("../core/config.php");
|
|
||||||
include_once ("funzioni.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="iscritti_edit.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,
|
|
||||||
DATE_FORMAT(wf_iscritto.nascita_data, '%d.%m.%Y') AS nascita_data,
|
|
||||||
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 categoria($dato['nascita_data']) ?></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(); ?>
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
<?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