From 520bb3384b00b2c8b9c393610deaf10c124d62a2 Mon Sep 17 00:00:00 2001 From: cmaffio Date: Wed, 9 Nov 2016 13:23:04 +0100 Subject: [PATCH] Aggiunta sezione WhiteFox --- core/function.php | 2 +- proxy/squid_acl/listip | 1 + wf/index.php | 74 ++++++++++ wf/iscritti_edit.php | 303 +++++++++++++++++++++++++++++++++++++++++ wf/iscritti_lista.php | 77 +++++++++++ wf/wf_gest.php | 61 +++++++++ 6 files changed, 517 insertions(+), 1 deletion(-) create mode 100755 wf/index.php create mode 100755 wf/iscritti_edit.php create mode 100755 wf/iscritti_lista.php create mode 100755 wf/wf_gest.php diff --git a/core/function.php b/core/function.php index 1559afb..d693f97 100755 --- a/core/function.php +++ b/core/function.php @@ -625,7 +625,7 @@ class html { $this->size = count ($dati); if ($align != "") $align = "align=\"$align\""; - print "\n"; + print "
\n"; print "\t\n"; $somma = 0; foreach ($dati as $riga) { diff --git a/proxy/squid_acl/listip b/proxy/squid_acl/listip index e69de29..0c4b6f6 100644 --- a/proxy/squid_acl/listip +++ b/proxy/squid_acl/listip @@ -0,0 +1 @@ +192.168.1.1 diff --git a/wf/index.php b/wf/index.php new file mode 100755 index 0000000..771e0fe --- /dev/null +++ b/wf/index.php @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +riga(); +} +$tabella->close(); +view_footer(); +?> diff --git a/wf/iscritti_edit.php b/wf/iscritti_edit.php new file mode 100755 index 0000000..8265d01 --- /dev/null +++ b/wf/iscritti_edit.php @@ -0,0 +1,303 @@ + + + + + + +?> + + + +intestazione (array("","Cognome","","Nome","","Codice Fiscale","")); +?> + + + + + + + + + + + + + +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à","")); +?> + + + + + + + + + + + + + +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","")); +?> + + + + + + + + + + + +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.","")); +?> + + + + + + + + + + + +riga(5); +$tabella->close(); + +$tabella = new html (0,"90%",array(5,20,5,30,0)); +$tabella->intestazione (array("","Telefono","","Mail","")); +?> + + + + + + + +riga(20); +$tabella->close(); + +$tabella = new html (0,"90%",array(5,20,5,20,5,15,0)); +$tabella->intestazione (array("","Cognome","","Nome","","Codice Fiscale","")); +?> + + + + + + + + + +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à","")); +?> + + + + + + + + + + + + + +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","")); +?> + + + + + + + + + +riga(5); +$tabella->close(); + +$tabella = new html (0,"90%",array(5,20,5,10,0)); +$tabella->intestazione (array("","Tessera FITA","","Data FITA","")); +?> + + + + + + + + + + + + + + + + + +riga(5); +$tabella->close(); + +$tabella = new html (0,"90%",array(5,20,5,20,5,10,0)); +$tabella->riga(); ?> + + +close(); ?> + + diff --git a/wf/iscritti_lista.php b/wf/iscritti_lista.php new file mode 100755 index 0000000..5ddf468 --- /dev/null +++ b/wf/iscritti_lista.php @@ -0,0 +1,77 @@ + + + + + + + + + +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 )) { +?> + + + + + + + + + + + + + + + + + + + + + + +close(); +?> + + diff --git a/wf/wf_gest.php b/wf/wf_gest.php new file mode 100755 index 0000000..a173ae6 --- /dev/null +++ b/wf/wf_gest.php @@ -0,0 +1,61 @@ + + + + + + + + + +
Utente limitatoUtente non limitatoDettaglioInviati
Ricevuti
Atleta AttivoAtleta non Attivo
Utente attivoUtente non attivoModifica Utente