Committer: Claudio M <claudio@cmaffio.it> modified: core/config.php renamed: anagrafica/funzioni.php -> whitefox/funzioni.php renamed: anagrafica/index.php -> whitefox/index.php renamed: anagrafica/iscritti_edit.php -> whitefox/iscritti_edit.php renamed: anagrafica/iscritti_lista.php -> whitefox/iscritti_lista.php renamed: anagrafica/wf_gest.php -> whitefox/wf_gest.php
79 lines
3.0 KiB
PHP
Executable File
79 lines
3.0 KiB
PHP
Executable File
<?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(); ?>
|