Aggiunta associazione
This commit is contained in:
78
associazione/materiale_lista.php
Executable file
78
associazione/materiale_lista.php
Executable file
@@ -0,0 +1,78 @@
|
||||
<?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,30,2,20,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="materiale_edit.php"><img src="<?php print $CONF['base_url'] ?>/img/addresource.png"></a></td>
|
||||
<td colspan=11 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tabella->riga();
|
||||
$query = " SELECT
|
||||
wf_materiale.id,
|
||||
wf_materiale.attivo,
|
||||
wf_materiale.nome,
|
||||
wf_materiale.taglie,
|
||||
wf_materiale.nota,
|
||||
wf_materiale.vendita,
|
||||
wf_materiale.categoria,
|
||||
wf_materiale.produttore
|
||||
FROM
|
||||
wf_materiale
|
||||
ORDER BY
|
||||
wf_materiale.attivo desc,
|
||||
wf_materiale.categoria,
|
||||
wf_materiale.produttore,
|
||||
wf_materiale.nome
|
||||
";
|
||||
|
||||
$res = mysql_query( $query, $DB_ID );
|
||||
$tabella->intestazione (array("", "", "", "Articolo", "", "Produttore", "", "Taglie", "","Nota", "", "Vendita", ""));
|
||||
$tabella->riga();
|
||||
$artold = "";
|
||||
while ($dato = mysql_fetch_array ( $res )) {
|
||||
|
||||
if ($artold != $dato['categoria']) {
|
||||
if ($artold != "") $tabella->riga();
|
||||
?>
|
||||
<tr>
|
||||
<td class="spazioh" colspan="3"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="colipb" colspan="10"><?php print $dato['categoria'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<?php
|
||||
if ($dato['attivo']) {
|
||||
?>
|
||||
<td class="col3btn"><a href="wf_gest.php?azione=wf_art_off&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Articolo attivo" TITLE="Articolo attivo"></a></td>
|
||||
<?php } else { ?>
|
||||
<td class="col3btn"><a href="wf_gest.php?azione=wf_art_on&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Articolo non attivo" TITLE="Articolo non attivo"></a></td>
|
||||
<?php } ?>
|
||||
<td class="col3btn"><a href="materiale_edit.php?id=<?php print $dato['id'] ?>"><img src="<?php print $CONF['base_url'] ?>/img/modify.gif" ALT="Modifica articolo" TITLE="Modifica articolo"></a></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['produttore'] ?></td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="colip"><?php print $dato['taglie'] ?></td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="colip"><?php print $dato['nota'] ?></td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="colip"><?php print $dato['vendita'] ?> €</td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$artold = $dato['categoria'];
|
||||
}
|
||||
$tabella->close();
|
||||
?>
|
||||
</form>
|
||||
<?php view_footer(); ?>
|
||||
Reference in New Issue
Block a user