From 691a64e13af1ef93e11152beeda89700601b46c0 Mon Sep 17 00:00:00 2001 From: cmaffio Date: Fri, 20 May 2016 17:30:01 +0200 Subject: [PATCH] Modifiche HTML --- condes/condes_gest.php | 16 ++- condes/condes_macchine.php | 33 ++---- condes/condes_regole.php | 194 ++++++++++++++++++++++++++++++++++++ condes/condes_utenti.php | 15 ++- condes/index.php | 135 +++++++++++++++++++++++++ core/chkpasswd.php | 101 +++++++++---------- core/conf.php | 46 ++++----- core/footer.php | 7 +- core/function.php | 86 +++++++++------- core/main.php | 3 - core/modconf.php | 30 +++--- core/top.php | 9 +- core/userlogin.php | 39 ++++---- "proxy/\\" | 156 ----------------------------- proxy/acl_edit.php | 64 ++++++------ proxy/acl_lista.php | 16 +-- proxy/index.php | 29 ++---- proxy/net_acl.php | 13 +-- proxy/net_edit.php | 23 +---- proxy/net_lista.php | 16 +-- proxy/pool_acl.php | 34 ++----- proxy/pool_ip.php | 37 ++++--- proxy/pool_lista.php | 13 ++- proxy/users_edit.php | 44 +++----- proxy/users_group_edit.php | 17 ++-- proxy/users_group_lista.php | 15 ++- proxy/users_lista.php | 17 ++-- risorse/stili/stile.css | 3 + utenti/index.php | 18 ++-- utenti/logutenti.php | 57 +++++++---- utenti/modutenti.php | 106 +++++++++----------- utenti/permessiutenti.php | 37 ++++--- 32 files changed, 776 insertions(+), 653 deletions(-) create mode 100755 condes/condes_regole.php delete mode 100644 "proxy/\\" diff --git a/condes/condes_gest.php b/condes/condes_gest.php index d11660d..eaf064d 100755 --- a/condes/condes_gest.php +++ b/condes/condes_gest.php @@ -34,6 +34,19 @@ if (isset($_GET['id'])) { $testo = "Confermate la disattivazione della macchina?"; break; + case "regola_rm": + $query = "DELETE FROM condes_regole WHERE id = $id"; + $testo = "Confermate la rimozione della macchina da quelle disponibili?"; + break; + case "regola_up": + $query = "UPDATE condes_regole SET attivo = 1 WHERE id = $id"; + $testo = "Confermate l'attivazione della macchina?"; + break; + case "regola_down": + $query = "UPDATE condes_regole SET attivo = 0 WHERE id = $id"; + $testo = "Confermate la disattivazione della macchina?"; + break; + default: $testo = "Regola non implementata"; break; @@ -102,7 +115,4 @@ function remote ($DB_ID) { $stream = ssh2_exec($connection, $dato['command']); } } - ?> - - diff --git a/condes/condes_macchine.php b/condes/condes_macchine.php index b75f503..8c61fa4 100755 --- a/condes/condes_macchine.php +++ b/condes/condes_macchine.php @@ -16,22 +16,6 @@ if (isset($_POST['id'])) { $res = mysql_query( $query, $DB_ID ); } -?> - - - @@ -59,7 +45,7 @@ $res = mysql_query( $query, $DB_ID ); - + - - - -
- - +riga (); +} +$tabella->close(); +view_footer(); +?> diff --git a/condes/condes_regole.php b/condes/condes_regole.php new file mode 100755 index 0000000..22e9cda --- /dev/null +++ b/condes/condes_regole.php @@ -0,0 +1,194 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + Utente attivo + + Utente non attivo + + + + + Utenza + + Macchina + + ACL + + Perm + + + + + + + + + + + + +riga(); +} +$tabella->close(); +view_footer(); +?> diff --git a/condes/condes_utenti.php b/condes/condes_utenti.php index e608b21..93a6f0a 100755 --- a/condes/condes_utenti.php +++ b/condes/condes_utenti.php @@ -16,10 +16,7 @@ function PopupG(apri) } //--> - - - -
@@ -85,10 +83,9 @@ while ($dato = mysql_fetch_array ( $res )) { Grafico Utilizzo
- - +$tabella->riga (); +} +$tabella->close (); +view_footer(); +?> diff --git a/condes/index.php b/condes/index.php index e69de29..016d9eb 100644 --- a/condes/index.php +++ b/condes/index.php @@ -0,0 +1,135 @@ +"; + + foreach ($_POST as $id => $valore) { + if ($id == "utente") continue; + print "---- $id => $valore
"; + + $query = " SELECT + proxy_acl_ip.id + FROM + condes_regole + JOIN + condes_macchine + ON + condes_regole.id_condes_macchine = condes_macchine.id + JOIN + proxy_acl_ip + ON + proxy_acl_ip.idacllist = condes_regole.id_proxy_acl_list + AND + proxy_acl_ip.idpool = condes_macchine.id_proxy_pool + WHERE + condes_regole.id = $id + "; + + $res = mysql_query( $query, $DB_ID ); + $dato = mysql_fetch_array ( $res ); + print_r ($dato); + print "
"; + + } + + + + $query = " INSERT INTO + condes_regole + SET + id_utenti = $id_utenti, + id_condes_macchine = $id_macchine, + id_proxy_acl_list = $id_acl, + permanente = $perm, + data = NOW(), + attivo = 1 + "; +// $res = mysql_query( $query, $DB_ID ); +} + +$tabella = new html (0,"90%",array(15,2,20,2,15,2,5,0)); +?> +
+ + + + + + +riga (); + +$query = " SELECT + condes_regole.id, + proxy_pool.nome, + proxy_pool.ip, + proxy_acl_list.nome AS acl, + condes_regole.permanente + FROM + condes_regole + JOIN + utenti + ON + condes_regole.id_utenti = utenti.id + AND + utenti.id = ".$UTENTE['id']." + JOIN + condes_macchine + ON + condes_regole.id_condes_macchine = condes_macchine.id + JOIN + proxy_pool + ON + condes_macchine.id_proxy_pool = proxy_pool.id + JOIN + proxy_acl_list + ON + condes_regole.id_proxy_acl_list = proxy_acl_list.id + WHERE + condes_regole.attivo = 1 + ORDER BY + -proxy_pool.nome DESC, + proxy_pool.ip + "; + +$res = mysql_query( $query, $DB_ID ); +while ($dato = mysql_fetch_array ( $res )) { +?> + + + + + + Macchina + + ACL + + Perm + + + + + + + + +riga (); +} ?> +
+close (); +view_footer(); +?> diff --git a/core/chkpasswd.php b/core/chkpasswd.php index a9ed4a2..4f91bd9 100755 --- a/core/chkpasswd.php +++ b/core/chkpasswd.php @@ -19,32 +19,23 @@ if (isset ($_POST['id'])) { $testo = "L'utente e' stato correttamente modificato"; $query = "UPDATE utenti SET $querypwd modifica = NOW(), mail='$mail' WHERE `id`=$id"; + + $tabella = new html (0,"90%", array (0)); + $tabella->riga(); + + if (mysql_query( $query, $DB_ID )) { + $testo = "L'utente e' stato correttamente modificato"; + } else { + $testo = "Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: ".mysql_error(); + } ?> - - - - - - - - - - - - - - -
+
- -
- -Non e' stato possibile eseguire l'operazione richiesta a causa di un errore:
-
- -
- +riga(); + $tabella->close(); } else { $bottone = "Modifica"; @@ -54,11 +45,8 @@ Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: - - - +if (($modifica == 0 || $modifica == 1) && !isset($_GET['rm'])) { ?> @@ -110,31 +98,34 @@ $(document).ready(function()
- + - + + - + - +riga(); ?> - + + - + - +riga(); ?> - - - +riga(); ?> - -
Nome Utente
- + - + - - - + + + +riga(); ?> - + - - - + + + + - -
+ +
+
 
@@ -142,29 +133,33 @@ $(document).ready(function()
 
+close(); ?>
   
+riga(); +$tabella->close(); +?>
- - - + diff --git a/core/conf.php b/core/conf.php index 85a0a8f..7fe5de3 100755 --- a/core/conf.php +++ b/core/conf.php @@ -2,24 +2,22 @@ include_once ("config.php"); $UTENTE = login(); isadmin(); - view_top(); -?> - - +$tabella = new html (0,"90%", array(2,20,2,30,2,40,0)); +?> - - - - - - + + + + + + - - riga(); + $query = "SELECT * FROM conf WHERE vis=1 ORDER BY ordine"; $res = mysql_query( $query, $DB_ID ); while ($dato = mysql_fetch_array ( $res )) { @@ -49,16 +47,18 @@ while ($dato = mysql_fetch_array ( $res )) { if ($visualizza) { ?> - - - - - - + + + + + + - - -
CampoValoreNotaCampoValoreNota
- +riga(); + } +} +$tabella->close(); +view_footer (); +?> diff --git a/core/footer.php b/core/footer.php index b8d7df7..6ef38b2 100755 --- a/core/footer.php +++ b/core/footer.php @@ -1,6 +1,9 @@ - +riga(); +?> @@ -10,7 +13,7 @@ -
    
+close(); ?> diff --git a/core/function.php b/core/function.php index ebca43c..f857d31 100755 --- a/core/function.php +++ b/core/function.php @@ -395,7 +395,7 @@ function home_moduli () { $menu = array_moduli(); - html_spazi (array (5,30,0)); + $tabella = new html (0,"90%", array (5,30,0)); for ($i=1; $i @@ -403,10 +403,8 @@ function home_moduli () { - - - close (); } function lista_moduli () { @@ -618,41 +616,61 @@ function generateStrongPassword($length = 9, $add_dashes = false, $available_set return $dash_str; } -function html_spazi ($dati) { - global $CONF; +class html { + + public function __construct($bordo, $size, $dati, $align="") { + global $CONF; - print ""; - $somma = 0; - foreach ($dati as $riga) { - if (!$riga) { - $riga = 100 - $somma; - } else { - $somma += $riga; - } -?> - -"; -} + $this->conf = $CONF; + $this->size = count ($dati); -function html_intestazione ($dati, $tipo = array ()) { - global $CONF; - - print ""; - foreach ($dati as $key => $riga) { - if ($riga == "") { - $riga = " "; + if ($align != "") $align = "align=\"$align\""; + print "\n"; + print "\t\n"; + $somma = 0; + foreach ($dati as $riga) { + if (!$riga) { + $riga = 100 - $somma; + } else { + $somma += $riga; + } + print "\t\t\n"; } + print "\t\n"; + } - if (isset ($tipo[$key]) && $tipo[$key] != "") { - $classe = $tipo[$key]; - } else { - $classe = "descrizione"; + public function intestazione ($dati, $tipo = array ()) { + + print "\t\n"; + foreach ($dati as $key => $riga) { + if ($riga == "") { + $riga = " "; + } + + if (isset ($tipo[$key]) && $tipo[$key] != "") { + $classe = $tipo[$key]; + } else { + $classe = "descrizione"; + } + print "\t\t\n"; } -?> - -"; + print "\t\n"; + } + + public function riga () { + print "\t\n"; + } + + public function close () { + print "
conf['base_url']."/img/spazio.gif\">
$riga
size\">conf['base_url']."/img/spazio.gif\">
\n"; + } + + public function td_vuoto () { + } + + public function bottoni () { + } + } ?> diff --git a/core/main.php b/core/main.php index e38aeeb..6e6181e 100755 --- a/core/main.php +++ b/core/main.php @@ -6,10 +6,7 @@ view_top(); - - -
diff --git a/core/modconf.php b/core/modconf.php index d457128..3679d16 100755 --- a/core/modconf.php +++ b/core/modconf.php @@ -14,7 +14,7 @@ if (isset ($_GET['var'])) {
- + @@ -22,8 +22,7 @@ if (isset ($_GET['var'])) { - - +riga(); ?> @@ -31,8 +30,7 @@ if (isset ($_GET['var'])) { - - +riga(); ?> @@ -61,16 +59,17 @@ if (isset ($_GET['var'])) { - - +riga(); ?> - -
Variabile
Commento
Valore
   
+riga(); +$tabella->close(); +?>
- + -
- - +close(); + } else { +$tabella = new html (1, "90%", array(0)); ?> close(); } +view_footer(); ?> - diff --git a/core/top.php b/core/top.php index bca9f4b..c96bc81 100755 --- a/core/top.php +++ b/core/top.php @@ -5,18 +5,19 @@ -
Operazione non permessa
+ + + + + + + + + + +riga(); ?> + + + + + + +close(); ?> diff --git "a/proxy/\\" "b/proxy/\\" deleted file mode 100644 index de2d67c..0000000 --- "a/proxy/\\" +++ /dev/null @@ -1,156 +0,0 @@ - - -
- - + -
Utente: Logout
+close(); ?>
diff --git a/core/userlogin.php b/core/userlogin.php index f6eb101..0b9180b 100755 --- a/core/userlogin.php +++ b/core/userlogin.php @@ -1,23 +1,24 @@
- - - - - - - - - - - - - - - - - - -

" />
+ +

" />
-= DATE_SUB(NOW(), INTERVAL 1 $tempo) - "; - - $res = mysql_query( $query, $DB_ID ); - $dato = mysql_fetch_array ( $res ); -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Utente limitatoUtente non limitato - - -
Indirizzo IP gia' esistente
- -     - -
- - - diff --git a/proxy/acl_edit.php b/proxy/acl_edit.php index 6e1b218..fd50d92 100755 --- a/proxy/acl_edit.php +++ b/proxy/acl_edit.php @@ -49,12 +49,10 @@ if (isset($_POST['rif']) && $_POST['rif'] != "") { } else { $id = 0; } -//print $query; ?>
-intestazione (array("","","Nome ACL","","Ultima Modifica","")); ?> - - - - - - - - +riga(); ?> - - - + + + + + + + + + + + + +close(); ?> + - + - - +riga(); +?> @@ -142,9 +135,8 @@ if ($dato['attivo']) { - - - +riga(); + while ($dato = mysql_fetch_array ( $res )) { ?> @@ -158,8 +150,8 @@ if ($dato['attivo']) { -
Nome ACLUltima Modifica
- - - - - - - - - - - - -
DefaultNegaDefaultAutorizza
> > >
-
+ +
DefaultNegaDefaultAutorizza
> > >
Nuova destinazione
+} +$tabella->close(); +?>
- diff --git a/proxy/acl_lista.php b/proxy/acl_lista.php index a87e124..5b6e93c 100755 --- a/proxy/acl_lista.php +++ b/proxy/acl_lista.php @@ -6,15 +6,16 @@ view_top(); ?>
- - + - riga(); $query = " SELECT proxy_acl_list.id, proxy_acl_list.sys, @@ -80,11 +81,10 @@ while ($dato = mysql_fetch_array ( $res )) { - - -
+$tabella->riga(); +} +$tabella->close(); +?>
- diff --git a/proxy/index.php b/proxy/index.php index dc58935..ba4858c 100755 --- a/proxy/index.php +++ b/proxy/index.php @@ -4,22 +4,8 @@ $UTENTE = login(); $DIRITTI = diritti('Utente'); view_top(); ?> - - - - - - - -
- - +$tabella->riga(); +} +$tabella->close(); +view_footer(); +?> diff --git a/proxy/net_acl.php b/proxy/net_acl.php index 64569eb..bc15cdc 100755 --- a/proxy/net_acl.php +++ b/proxy/net_acl.php @@ -77,11 +77,11 @@ function do_submit() { }
-intestazione (array ("","Rete","","Nega","Default","Autorizza","","Nome Lista",""), array("","","","radio","radio","radio","","","")); + $res = mysql_query( $query, $DB_ID ); $conta = 0; while ($dato = mysql_fetch_array ( $res )) { @@ -98,8 +98,9 @@ while ($dato = mysql_fetch_array ( $res )) { -
+} +$tabella->riga(); +$tabella->close(); +?>
- diff --git a/proxy/net_edit.php b/proxy/net_edit.php index 3d0e7c6..4ff658a 100755 --- a/proxy/net_edit.php +++ b/proxy/net_edit.php @@ -38,7 +38,6 @@ if (isset($_POST['id'])) { ?>
- - - - - - - - - - - - +$tabella = new html (0,"90%",array(3,20,2,20,2,15,2,15,0)); +$tabella->intestazione (array("","Rete","","NetMask","","Data attivazione","","Ultima Modifica","")); +?> - - +riga(); ?> - -
ReteNetMaskData attivazioneUltima Modifica
+close(); ?>
- diff --git a/proxy/net_lista.php b/proxy/net_lista.php index fc2129c..c2b03e1 100755 --- a/proxy/net_lista.php +++ b/proxy/net_lista.php @@ -5,15 +5,16 @@ $DIRITTI = diritti('Admin'); view_top(); ?>
- - + - riga(); $query = " SELECT id, attivo, @@ -54,11 +55,10 @@ while ($dato = mysql_fetch_array ( $res )) { - - -
+$tabella->riga(); +} +$tabella->close(); +?>
- diff --git a/proxy/pool_acl.php b/proxy/pool_acl.php index 372d9fa..ee62ca6 100755 --- a/proxy/pool_acl.php +++ b/proxy/pool_acl.php @@ -76,30 +76,11 @@ function do_submit() { }
- +intestazione (array("","Indirizzo IP","","Nega","Default","Autorizza","","Nome Lista",""), array("","","","radio","radio","radio","","","")); +?> - - - - - - - - - - - - - - - - - - - - - - -
Indirizzo IPNegaDefaultAutorizzaNome Lista
+} +$tabella->riga(); +$tabella->close(); +?>
- diff --git a/proxy/pool_ip.php b/proxy/pool_ip.php index 9607ae4..0f05881 100755 --- a/proxy/pool_ip.php +++ b/proxy/pool_ip.php @@ -5,9 +5,9 @@ $DIRITTI = diritti('Admin'); view_top(); ?>
- - - -riga(); +$tabella->intestazione (array("", "IP", "", "Nome", "", "", "Inizio dati", "", "Fine Dati", "", "Inviati", "", "Ricevuti", "")); ?> - - +riga(); ?> - - -riga(); } else { if (isset($_POST['ip'])) { $ip = $_POST['ip']; @@ -127,7 +124,6 @@ html_intestazione (array("", "IP", "", "Nome", "", "", "Inizio dati", "", "Fine $error_code = mysql_errno(); if ($error_code == 1062) { ?> - - + +?> -
Indirizzo IP gia' esistente
intestazione (array("","Utente","","Nome Completo","","Data attivazione","","Ultima Modifica","","IP","")); ?> - - - - - - - - - - - - - - + - + @@ -143,17 +134,13 @@ if ($dato['attivo']) { - +riga(); +$tabella->intestazione (array("","Nuova Password","","Conferma Nuova Password","","","","","","","")); +?> - - - - - - - - + @@ -162,10 +149,9 @@ if ($dato['attivo']) { - +riga(); ?> -
UtenteNome CompletoData attivazioneUltima ModificaIP
Utente non Attivo
Nuova PasswordConferma Nuova Password

+close(); ?>
- diff --git a/proxy/users_group_edit.php b/proxy/users_group_edit.php index 459b862..4f4ddf7 100755 --- a/proxy/users_group_edit.php +++ b/proxy/users_group_edit.php @@ -44,11 +44,9 @@ if (isset($_POST['id'])) {
- - intestazione (array ("","Prefisso","","Intervallo","","Lunghezza",""), array("","","","radio","","","")); ?> @@ -64,8 +62,10 @@ html_intestazione (array ("","Prefisso","","Intervallo","","Lunghezza",""), arra - - +riga(); +$tabella->intestazione (array ("","Lunghezza Password","","Tempo assegnato (h)","","","")); +?> @@ -73,12 +73,11 @@ html_intestazione (array ("","Prefisso","","Intervallo","","Lunghezza",""), arra - +riga(); ?> -
+close(); ?>
- diff --git a/proxy/users_group_lista.php b/proxy/users_group_lista.php index 13b5e20..eae50a2 100755 --- a/proxy/users_group_lista.php +++ b/proxy/users_group_lista.php @@ -3,9 +3,8 @@ include_once ("../core/config.php"); $UTENTE = login(); $DIRITTI = diritti('Admin'); view_top(); +$tabella = new html (0,"90%",array (3,3,3,2,10,2,13,2,10,2,10,0)); ?> - - @@ -28,7 +27,7 @@ $query = " SELECT "; $res = mysql_query( $query, $DB_ID ); -html_intestazione (array ("","","","","Utente","","Nome Completo","","Primo Accesso","","Ultimo Accesso","")); +$tabella->intestazione (array ("","","","","Utente","","Nome Completo","","Primo Accesso","","Ultimo Accesso","")); while ($dato = mysql_fetch_array ( $res )) { ?> @@ -57,10 +56,8 @@ while ($dato = mysql_fetch_array ( $res )) { - - -
- - +$tabella->riga(); +} +$tabella->close(); +view_footer(); ?> diff --git a/proxy/users_lista.php b/proxy/users_lista.php index cff2ad5..022f1de 100755 --- a/proxy/users_lista.php +++ b/proxy/users_lista.php @@ -3,9 +3,9 @@ include_once ("../core/config.php"); $UTENTE = login(); $DIRITTI = diritti('Admin'); view_top(); + +$tabella = new html (0,"90%", array (5,5,5,2,10,2,13,2,12,2,10,0)); ?> - - @@ -28,7 +28,7 @@ $query = " SELECT "; $res = mysql_query( $query, $DB_ID ); -html_intestazione (array ("","","","","Utente","","Nome Completo","","Ultimo Accesso","","IP Associato","")); +$tabella->intestazione (array ("","","","","Utente","","Nome Completo","","Ultimo Accesso","","IP Associato","")); while ($dato = mysql_fetch_array ( $res )) { ?> @@ -57,10 +57,9 @@ while ($dato = mysql_fetch_array ( $res )) { - - -
- - +$tabella->riga(); +} +$tabella->close(); +view_footer(); +?> diff --git a/risorse/stili/stile.css b/risorse/stili/stile.css index fb86d45..83ae152 100644 --- a/risorse/stili/stile.css +++ b/risorse/stili/stile.css @@ -67,6 +67,9 @@ td.col3valore { font-family: verdana; font-size: 12px; text-align: left; vertic td.col3valore2 { font-family: verdana; font-size: 10px; text-align: left; vertical-align:middle; width:200px; height: 10px; text-decoration: none; color: #000000; } td.colip { font-family: verdana; font-size: 10px; text-align: left; vertical-align:middle; width:80px; height: 10px; text-decoration: none; color: #000000; white-space: nowrap} +td.textr { font-family: verdana; font-size: 10px; text-align: right; vertical-align:middle; width:80px; height: 10px; text-decoration: none; color: #000000; white-space: nowrap} +td.textc { font-family: verdana; font-size: 10px; text-align: center; vertical-align:middle; width:80px; height: 10px; text-decoration: none; color: #000000; white-space: nowrap} +td.textl { font-family: verdana; font-size: 10px; text-align: left; vertical-align:middle; width:80px; height: 10px; text-decoration: none; color: #000000; white-space: nowrap} td.colspeed { font-family: verdana; font-size: 10px; text-align: left; vertical-align:middle; width:80px; height: 10px; text-decoration: none; color: #000000; white-space: nowrap} td.colimg { font-family: verdana; font-size: 11px; text-align: left; height:1px; text-decoration: none; color: #8e8e8e; white-space: nowrap} diff --git a/utenti/index.php b/utenti/index.php index c9efa8f..fe3abc0 100755 --- a/utenti/index.php +++ b/utenti/index.php @@ -16,15 +16,16 @@ function PopupG(apri) } //--> - - + - riga(); $query = "SELECT id, utente, admin, creazione, modifica, ultimo, attivo FROM utenti ORDER BY utente"; $res = mysql_query( $query, $DB_ID ); while ($dato = mysql_fetch_array ( $res )) { @@ -75,10 +76,9 @@ while ($dato = mysql_fetch_array ( $res )) { - - -
Aggiungi utente
Grafico Utilizzo
- - +$tabella->riga(); +} +$tabella->close(); +view_footer(); +?> diff --git a/utenti/logutenti.php b/utenti/logutenti.php index 04044e8..52a15bd 100755 --- a/utenti/logutenti.php +++ b/utenti/logutenti.php @@ -2,15 +2,11 @@ include_once ("../core/config.php"); $UTENTE = login(); $DIRITTI = diritti('Admin'); -//isadmin(); ?> - - intestazione (array("","Indirizzo IP","","Accesso","","Uscita","","Numero pagine","","","")); +$tabella->riga(); + while ($dato = mysql_fetch_array ( $res )) { ?> - - - - - - - - + + + + + + + + + + - - riga(); } -if ($fatte < $righe) { - for ($i = $fatte; $i<=$righe; $i++) { ?> - - - -
Indirizzo IP: Accesso: Uscita: Numero pagine: Dettaglio sessione
 
+
+close(); ?> diff --git a/utenti/modutenti.php b/utenti/modutenti.php index 6f7ecdf..297bf06 100755 --- a/utenti/modutenti.php +++ b/utenti/modutenti.php @@ -75,39 +75,28 @@ if (isset($_GET['id'])) { "; } +$tabella = new html (0,"90%", array (0)); +$tabella->riga(); + + if (mysql_query( $query, $DB_ID ) && ((!is_null ($query2) && mysql_query( $query2, $DB_ID )) || (is_null ($query2)))) { + } else { + $testo = "Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: ".mysql_error(); + } ?> - - - + - - - - - - - - - -
+
- -
- -Non e' stato possibile eseguire l'operazione richiesta a causa di un errore:
-
- -
close(); } else { $bottone = "Aggiungi"; $modifica = 0; } -?> - +if (($modifica == 0 || $modifica == 1) && !isset($_GET['rm'])) { ?> @@ -155,7 +144,6 @@ $(document).ready(function() }, - // the errorPlacement has to take the table layout into account errorPlacement: function(error, element) { error.prependTo( element.parent().next() ); }, @@ -173,48 +161,51 @@ $(document).ready(function()
- - + - + + - + - +riga(); ?> - + + - + - +riga(); ?> - + - + - + - +riga(); ?> - - - - - - -
Attivo > Admin >  
- + - + - - - + + + +riga(); ?> - - - - - + + + + + + - -
+
+
 
@@ -222,21 +213,22 @@ $(document).ready(function()
+close(); ?>
+riga(); ?> +
    @@ -245,10 +237,10 @@ $(document).ready(function()
+riga(); +$tabella->close(); +?>
- - - + diff --git a/utenti/permessiutenti.php b/utenti/permessiutenti.php index f7161aa..e094109 100755 --- a/utenti/permessiutenti.php +++ b/utenti/permessiutenti.php @@ -50,11 +50,15 @@ $res = mysql_query( $query, $DB_ID ); $dato = mysql_fetch_array ($res); $livelli = get_levels(); -//$livelli = array(0=>"Negato", 5=>"Utente", 10=>"Admin"); ?> - + + + @@ -62,13 +66,16 @@ $livelli = get_levels(); - -
+ +
AdminUtente
- - - - +close(); ?> + + +riga(); ?> + + - - - -
+
@@ -79,12 +86,14 @@ $livelli = get_levels();
- - +riga(); +} +$tabella2->close(); +?> + + +close(); ?>