Location: PHPKode > projects > PMbyAS - Gestione Attivita > versione_4_1/pmbyas_4_1_script/PMbyAS-4-0/rplst_lv.php
<?php
/*******************************************************************************
 *  filename    : rplst_lv.php
 *  last change : 2006 - 08 - 08
 *
 *  http://www.avesan.it/
 *  Copyright 2006 Alberto Santoro
 *
 *  PMbyAS is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 ******************************************************************************/
$pgm="rplst_lv.php";
// --------------- connessione
require_once "./_fcom/fconn.php";
// --------------- sessione
require_once "./_fcom/fsess.php";
// --------------- dati di sessione
require_once "./_fcom/fperiodo.php";
// inclusione della testata HTML
require_once "./_fcom/doctype_p.php";

// --------------- Intestazione  standard 
$oggi = getdate();
$rptitle="Tabella &nbsp; Tipo Attività &nbsp; al {$oggi['mday']} {$oggi['mon']} {$oggi['year']}";
$len=280;
require_once "./_fcom/rptesta.php";

$query = "SELECT * FROM tb_lav ORDER BY LvCod"; 
$stok = mysqli_query($connessione,$query) or die("Query ute fallita");

// -------------------------- Testata tabella
print "<table  width=\"280\" class=\"tbnb\"><tr>";
print "\n<th class=\"t8n\" width=\"20\">&nbsp;</th>";
print "\n<th class=\"t8s\" width=\"40\">&nbsp;codice</th>";
print "\n<th class=\"t8s\" width=\"200\">&nbsp;Descrizione</th>";
print "\n</tr>";

while ($rg = mysqli_fetch_assoc($stok))     
 {print "\n<tr>";
  print "\n<td>&nbsp;</td>";
  print "\n<td class=\"c8c\">&nbsp;{$rg["LvCod"]}</td>"; 
  print "\n<td class=\"c8s\">&nbsp;{$rg["LvDex"]}</td>";
 }  

print "\n</tr></table>";

?>
</body>
</html> 
Return current item: PMbyAS - Gestione Attivita