Modifiche HTML
This commit is contained in:
@@ -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();
|
||||
}
|
||||
?>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="10" alt=""><td>
|
||||
<td align="center"><?php print $testo ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if (mysql_query( $query, $DB_ID )) { ?>
|
||||
<?php print $testo ?><br>
|
||||
<?php } else { ?>
|
||||
Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: <?php print mysql_error() ?><br>
|
||||
<?php print $query ?><br>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="button" value="Ok" onclick="location.href = '<?php print $CONF['base_url'] ?>/index.php';"></button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="10" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
<tr><td align="center"><input type="button" value="Ok" onclick="location.href = '<?php print $CONF['base_url'] ?>/index.php';"></td></tr>
|
||||
<?php
|
||||
$tabella->riga();
|
||||
$tabella->close();
|
||||
} else {
|
||||
|
||||
$bottone = "Modifica";
|
||||
@@ -54,11 +45,8 @@ Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: <?p
|
||||
$dato = mysql_fetch_array ( $res );
|
||||
$dato['password'] = "ahg5t!frtb5@u&^!";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (($modifica == 0 || $modifica == 1) && !isset($_GET['rm'])) { ?>
|
||||
|
||||
|
||||
if (($modifica == 0 || $modifica == 1) && !isset($_GET['rm'])) { ?>
|
||||
<script type="text/javascript" src="<?php print $CONF['base_url'] ?>/jquery/jquery.js"></script>
|
||||
<script type="text/javascript" src="<?php print $CONF['base_url'] ?>/jquery/jquery.validate.js"></script>
|
||||
<script type="text/javascript" src="<?php print $CONF['base_url'] ?>/jquery/jquery.validate.password.js"></script>
|
||||
@@ -110,31 +98,34 @@ $(document).ready(function()
|
||||
</script>
|
||||
|
||||
<form action="chkpasswd.php" method="post" id="modulo">
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<?php $tabella = new html (0,"90%", array (2, 20,2,20,0)); ?>
|
||||
<input type="hidden" name="id" value="<?php print $dato['id'] ?>">
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="30" height="1" alt=""></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td>Nome Utente</td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td><?php print $dato['utente']?></td>
|
||||
<td class="status" colspan="6"></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td></tr>
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="30" height="1" alt=""></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="label"><label id="lmail" for="mail">Indirizzo E-Mail</label></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="field"><input id="mail" name="mail" type="text" value="<?php print $dato['mail']?>" maxlength="50" /></td>
|
||||
<td class="status" colspan="6"></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td></tr>
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr>
|
||||
<td class="col1" colspan="9">
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<td class="col1" colspan="5">
|
||||
|
||||
<?php $tabella2 = new html (0,"90%",array(2,10,2,35,40,0)); ?>
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="40" height="50" alt=""></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="label"><label id="lpassword" for="password">Password</label></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="10" height="1" alt=""></td>
|
||||
<td class="field" width="30"><input id="password1" name="password1" type="password" size="30" maxlength="32" value="<?php print $dato['password'] ?>" /></td>
|
||||
<td class="status" width="400">
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="field" width="30"><input id="password1" name="password1" type="password" size="30" maxlength="32" value="<?php print $dato['password'] ?>"/></td>
|
||||
<td class="status">
|
||||
<div class="password-meter">
|
||||
<div class="password-meter-message"> </div>
|
||||
<div class="password-meter-bg">
|
||||
@@ -142,29 +133,33 @@ $(document).ready(function()
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<?php $tabella2->riga(); ?>
|
||||
<tr>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="40" height="50" alt=""></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="label"><label id="lpassword_confirm" for="password_confirm">Password</label></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="10" height="1" alt=""></td>
|
||||
<td class="field" width="30"><input id="password2" name="password2" type="password" size="30" maxlength="32" value="<?php print $dato['password'] ?>" /></td>
|
||||
<td class="status" width="400"></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="field" width="30"><input id="password2" name="password2" type="password" size="30" maxlength="32" value="<?php print $dato['password'] ?>"/></td>
|
||||
<td class="status"> </td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<tr><td colspan="9" class="spaziov"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" alt=""></td></tr>
|
||||
</table>
|
||||
<?php $tabella2->close(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td></tr>
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr><td align="center" colspan="9">
|
||||
<input type="submit" value="<?php print $bottone ?>">
|
||||
|
||||
<input type="button" value="Annulla" onclick="location.href = '<?php print $CONF['base_url'] ?>/index.php';"></button>
|
||||
</td></tr>
|
||||
|
||||
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="10" alt=""></td></tr>
|
||||
</table>
|
||||
<?php
|
||||
$tabella->riga();
|
||||
$tabella->close();
|
||||
?>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<?php view_footer(); ?>
|
||||
<?php
|
||||
}
|
||||
view_footer();
|
||||
?>
|
||||
|
||||
@@ -2,24 +2,22 @@
|
||||
include_once ("config.php");
|
||||
$UTENTE = login();
|
||||
isadmin();
|
||||
|
||||
view_top();
|
||||
?>
|
||||
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<tr><td class="spaziov" colspan=7><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
|
||||
$tabella = new html (0,"90%", array(2,20,2,30,2,40,0));
|
||||
?>
|
||||
<tr>
|
||||
<td width="50"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td width="150" class="campo">Campo</td>
|
||||
<td width="20"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td width="350" class="campo">Valore</td>
|
||||
<td width="20"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td width="350" class="campo">Nota</td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="campo">Campo</td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="campo">Valore</td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="campo">Nota</td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<tr><td class="spaziov" colspan=7><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
|
||||
|
||||
<?php
|
||||
$tabella->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) {
|
||||
?>
|
||||
<tr>
|
||||
<td width="50"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td width="150" class="valoretxt"><a class="menuatt" href="modconf.php?var=<?php print $dato['variabile'] ?>"><?php print $dato['variabile']?></a></td>
|
||||
<td width="20" bgcolor="#f3f3f3"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td width="350" class="valoretxt"><?php print $riga?></td>
|
||||
<td width="20" bgcolor="#f3f3f3"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td width="350" class="valoretxt"><?php print $dato['Commento']?></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="valoretxt"><a class="menuatt" href="modconf.php?var=<?php print $dato['variabile'] ?>"><?php print $dato['variabile']?></a></td>
|
||||
<td bgcolor="#f3f3f3"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="valoretxt"><?php print $riga?></td>
|
||||
<td bgcolor="#f3f3f3"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="valoretxt"><?php print $dato['Commento']?></td>
|
||||
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<tr><td class="spaziov" colspan=7><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
<?php view_footer (); ?>
|
||||
<?php
|
||||
$tabella->riga();
|
||||
}
|
||||
}
|
||||
$tabella->close();
|
||||
view_footer ();
|
||||
?>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<?php
|
||||
$tabella = new html (0, "100%", array (33,34,0));
|
||||
$tabella->riga();
|
||||
?>
|
||||
<tr bgcolor="#FFC350">
|
||||
<td nowrap class="lbottom"> <?php print $CONF['Versione'] ?></td>
|
||||
<td width="500"> </td>
|
||||
@@ -10,7 +13,7 @@
|
||||
<td> </td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php $tabella->close(); ?>
|
||||
</td></tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
@@ -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<count($menu);$i++) { ?>
|
||||
<tr>
|
||||
@@ -403,10 +403,8 @@ function home_moduli () {
|
||||
<td class="campo"><?php print $menu[$i][0] ?></td>
|
||||
<td class="descrizione"><?php print $menu[$i][3] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sep" colspan=3><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<?php }
|
||||
$tabella->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 "<tr>";
|
||||
$somma = 0;
|
||||
foreach ($dati as $riga) {
|
||||
if (!$riga) {
|
||||
$riga = 100 - $somma;
|
||||
} else {
|
||||
$somma += $riga;
|
||||
}
|
||||
?>
|
||||
<td class="sep" width="<?php print $riga ?>%"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<?php }
|
||||
print "</tr>";
|
||||
}
|
||||
$this->conf = $CONF;
|
||||
$this->size = count ($dati);
|
||||
|
||||
function html_intestazione ($dati, $tipo = array ()) {
|
||||
global $CONF;
|
||||
|
||||
print "<tr>";
|
||||
foreach ($dati as $key => $riga) {
|
||||
if ($riga == "") {
|
||||
$riga = " ";
|
||||
if ($align != "") $align = "align=\"$align\"";
|
||||
print "<table cellpadding=\"0\" cellspacing=\"0\" border=\"$bordo\" width=\"$size\" $align>\n";
|
||||
print "\t<tr>\n";
|
||||
$somma = 0;
|
||||
foreach ($dati as $riga) {
|
||||
if (!$riga) {
|
||||
$riga = 100 - $somma;
|
||||
} else {
|
||||
$somma += $riga;
|
||||
}
|
||||
print "\t\t<td class=\"sep\" width=\"$riga%\"><img src=\"".$this->conf['base_url']."/img/spazio.gif\"></td>\n";
|
||||
}
|
||||
print "\t</tr>\n";
|
||||
}
|
||||
|
||||
if (isset ($tipo[$key]) && $tipo[$key] != "") {
|
||||
$classe = $tipo[$key];
|
||||
} else {
|
||||
$classe = "descrizione";
|
||||
public function intestazione ($dati, $tipo = array ()) {
|
||||
|
||||
print "\t<tr>\n";
|
||||
foreach ($dati as $key => $riga) {
|
||||
if ($riga == "") {
|
||||
$riga = " ";
|
||||
}
|
||||
|
||||
if (isset ($tipo[$key]) && $tipo[$key] != "") {
|
||||
$classe = $tipo[$key];
|
||||
} else {
|
||||
$classe = "descrizione";
|
||||
}
|
||||
print "\t\t<td nowrap class=\"$classe\">$riga</td>\n";
|
||||
}
|
||||
?>
|
||||
<td class="<?php print $classe ?>"><?php print $riga ?></td>
|
||||
<?php }
|
||||
print "</tr>";
|
||||
print "\t</tr>\n";
|
||||
}
|
||||
|
||||
public function riga () {
|
||||
print "\t<tr><td class=\"spaziov\" colspan=\"$this->size\"><img src=\"".$this->conf['base_url']."/img/spazio.gif\"></td></tr>\n";
|
||||
}
|
||||
|
||||
public function close () {
|
||||
print "</table>\n";
|
||||
}
|
||||
|
||||
public function td_vuoto () {
|
||||
}
|
||||
|
||||
public function bottoni () {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -6,10 +6,7 @@ view_top();
|
||||
|
||||
<META HTTP-EQUIV="Refresh" CONTENT="30" URL="main.php">
|
||||
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<?php home_moduli () ?>
|
||||
<tr><td class="spaziov" colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
|
||||
</table>
|
||||
|
||||
<img src="img/spazio.gif" width="1" height="20" alt="">
|
||||
<?php view_footer(); ?>
|
||||
|
||||
@@ -14,7 +14,7 @@ if (isset ($_GET['var'])) {
|
||||
<form action="modconf.php" method="post">
|
||||
<input type="hidden" name="variabile" value="<?php print $var ?>">
|
||||
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<?php $tabella = new html (0, "90%", array(2,15,2,50,0)); ?>
|
||||
<tr>
|
||||
<td><img src="img/spazio.gif" width="50" height="1" alt=""></td>
|
||||
<td class="valoretxt" width="150">Variabile</td>
|
||||
@@ -22,8 +22,7 @@ if (isset ($_GET['var'])) {
|
||||
<td class="valore" width="500"><?php print $dato['variabile'] ?></td>
|
||||
<td><img src="img/spazio.gif" width="180" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr><td class="spaziov" colspan="5"><img src="img/spazio.gif"></td></tr>
|
||||
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr>
|
||||
<td><img src="img/spazio.gif" width="50" height="1" alt=""></td>
|
||||
<td class="valoretxt" width="150">Commento</td>
|
||||
@@ -31,8 +30,7 @@ if (isset ($_GET['var'])) {
|
||||
<td class="valore" width="500"><?php print $dato['Commento'] ?></td>
|
||||
<td><img src="img/spazio.gif" width="180" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr><td class="spaziov" colspan="5"><img src="img/spazio.gif"></td></tr>
|
||||
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr>
|
||||
<td><img src="img/spazio.gif" width="50" height="1" alt=""></td>
|
||||
<td class="valoretxt" width="150">Valore</td>
|
||||
@@ -61,16 +59,17 @@ if (isset ($_GET['var'])) {
|
||||
</td>
|
||||
<td><img src="img/spazio.gif" width="180" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr><td class="spaziov" colspan="5"><img src="img/spazio.gif"></td></tr>
|
||||
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr><td colspan="5"><img src="img/spazio.gif" width="1" height="5" alt=""></td></tr>
|
||||
<tr><td align="center" colspan="5">
|
||||
<input type="submit" value="Modifica">
|
||||
|
||||
<input type="button" value="Annulla" onclick="location.href = 'conf.php';"></button>
|
||||
</td></tr>
|
||||
<tr><td colspan="5"><img src="img/spazio.gif" width="1" height="5" alt=""></td></tr>
|
||||
</table>
|
||||
<?php
|
||||
$tabella->riga();
|
||||
$tabella->close();
|
||||
?>
|
||||
</form>
|
||||
|
||||
<?php } else if (isset ($_POST['variabile'])) {
|
||||
@@ -100,20 +99,23 @@ if (isset ($_GET['var'])) {
|
||||
else
|
||||
$testo = "Modifica della variabile $variabile non avvenuta: ".mysql_error();
|
||||
}?>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<?php
|
||||
$tabella = new html (1, "90%", array(0)); ?>
|
||||
<tr><td><img src="img/spazio.gif" width="1" height="10" alt=""><td></tr>
|
||||
<tr><td><?php print $testo ?></td></tr>
|
||||
<tr><td><img src="img/spazio.gif" width="1" height="5" alt=""></td></tr>
|
||||
<tr><td><input type="button" value="Ok" onclick="location.href = 'conf.php';"></button></td></tr>
|
||||
<tr><td><img src="img/spazio.gif" width="1" height="10" alt=""></td></tr>
|
||||
</table>
|
||||
<?php } else { ?>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<?php
|
||||
$tabella->close();
|
||||
} else {
|
||||
$tabella = new html (1, "90%", array(0)); ?>
|
||||
<tr><td><img src="img/spazio.gif" width="1" height="10" alt=""><td></tr>
|
||||
<tr><td>Operazione non permessa</td></tr>
|
||||
<tr><td><input type="button" value="Ok" onclick="location.href = 'main.php';"></button></td></tr>
|
||||
<tr><td><img src="img/spazio.gif" width="1" height="10" alt=""><td></tr>
|
||||
<?php
|
||||
$tabella->close();
|
||||
}
|
||||
view_footer();
|
||||
?>
|
||||
<?php view_footer(); ?>
|
||||
|
||||
@@ -5,18 +5,19 @@
|
||||
</head>
|
||||
<body>
|
||||
<link rel="stylesheet" type="text/css" href="<?php print $CONF['base_url'] ?>/css/stile.css" />
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" width="1000">
|
||||
<?php
|
||||
$tabella_ext = new html (0,"1000", array(0),"center");
|
||||
if ($UTENTE['utente'] != '') { ?>
|
||||
<tr><td>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<?php html_spazi (array(33, 33, 0)); ?>
|
||||
<?php
|
||||
$tabella = new html (0,"100%",array(33, 33, 0));
|
||||
?>
|
||||
<tr bgcolor="#FFC350">
|
||||
<td nowrap class="ltop">Utente: <?php print $_SESSION['username'] ?></td>
|
||||
<td nowrap class="ctop"><?php if ($MODULO['nome'] != "") print "Modulo: ".$MODULO['nome'] ?></td>
|
||||
<td nowrap class="rtop"><a class="rtop" href="<?php print $CONF['base_url'] ?>/core/logout.php">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php $tabella->close(); ?>
|
||||
</td></tr>
|
||||
<tr><td class="spaziov" colspan=2><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
|
||||
<tr><td align="center">
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
<?php view_top(); ?>
|
||||
<form name="login" method="post">
|
||||
<table cellpadding="0" cellspacing="10" border="0" id="login_table">
|
||||
<tr align="center" valign="middle">
|
||||
<td colspan="2"><h4><?php print "Benvenuto" ?></h4></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php print "Utente:"; ?></td>
|
||||
<td><input type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php print "Password:"; ?></td>
|
||||
<td><input type="password" name="fPassword" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center"><input type="submit" name="submit" value="<?php print "Accedi"; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center"<?php print $tMessage; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php $tabella = new html (0,"35%", array(40,2,0)); ?>
|
||||
<tr align="center" valign="middle"><td colspan="3"><h4><?php print "Benvenuto" ?></h4></td></tr>
|
||||
<tr>
|
||||
<td><?php print "Utente"; ?></td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td><input type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php print "Password"; ?></td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td><input type="password" name="fPassword" /></td>
|
||||
</tr>
|
||||
<?php $tabella->riga(); ?>
|
||||
<tr>
|
||||
<td colspan="3" align="center"><input type="submit" name="submit" value="<?php print "Accedi"; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center"<?php print $tMessage; ?></td>
|
||||
</tr>
|
||||
<?php $tabella->close(); ?>
|
||||
</form>
|
||||
<?php view_footer(); ?>
|
||||
|
||||
Reference in New Issue
Block a user