Modifiche HTML
This commit is contained in:
@@ -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 () {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user