refresh progetto con stampa!!!

This commit is contained in:
Samuele E. Locatelli (WEB DEV)
2017-01-07 17:53:37 +01:00
parent f4e6ba3732
commit f029464aca
3 changed files with 4 additions and 38 deletions
BIN
View File
Binary file not shown.
+3
View File
@@ -80,6 +80,9 @@ if(!$db){
$db->close();
}
// aggiunta di un button x stampare conto
echo "<a data-role=\"button\" href=\"printspool.php?cID=".$cid."\">STAMPA CONTO</a>";
?>
</form>
+1 -38
View File
@@ -1,38 +1 @@
<!DOCTYPE html>
<html>
<head>
<?php include 'header.php'; ?>
</head>
<body>
<div data-role="page" id="page1">
<?php include 'navbar.php'; ?>
<div data-role="content" style="padding: 5px">
<?php
include 'db.php';
$db = new MyDB();
if(!$db){
echo $db->lastErrorMsg();
} else {
$sql = "SELECT * FROM ARTICOLI WHERE TipoArt = 'Pizze'";
$ret = $db->query($sql);
while($row = $ret->fetchArray(SQLITE3_ASSOC) ){
echo "Tipo = ". $row['TipoArt'] . "</br>";
echo "Articolo = ". $row['Articolo'] . "</br>";
}
$db->close();
}
?>
</div>
<?php include 'footer.php'; ?>
</div>
<script>
//App custom javascript
</script>
</body>
</html>
<?php phpinfo(); ?>