<?php require_once('../Connections/pastauovo.php'); ?>
<?php
session_start();
require_once('../Connections/pastauovo.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_pastauovo, $pastauovo);
$query_Rs_aperitivi = "SELECT aperitivi FROM preventivi";
$Rs_aperitivi = mysql_query($query_Rs_aperitivi, $pastauovo) or die(mysql_error());
$row_Rs_aperitivi = mysql_fetch_assoc($Rs_aperitivi);
$totalRows_Rs_aperitivi = mysql_num_rows($Rs_aperitivi);
mysql_select_db($database_pastauovo, $pastauovo);
$query_Rs_antipasti_carne = "SELECT antipasti_carne FROM preventivi";
$Rs_antipasti_carne = mysql_query($query_Rs_antipasti_carne, $pastauovo) or die(mysql_error());
$row_Rs_antipasti_carne = mysql_fetch_assoc($Rs_antipasti_carne);
$totalRows_Rs_antipasti_carne = mysql_num_rows($Rs_antipasti_carne);
mysql_select_db($database_pastauovo, $pastauovo);
$query_Rs_antipasti_pesce = "SELECT antipasti_pesce FROM preventivi";
$Rs_antipasti_pesce = mysql_query($query_Rs_antipasti_pesce, $pastauovo) or die(mysql_error());
$row_Rs_antipasti_pesce = mysql_fetch_assoc($Rs_antipasti_pesce);
$totalRows_Rs_antipasti_pesce = mysql_num_rows($Rs_antipasti_pesce);
mysql_select_db($database_pastauovo, $pastauovo);
$query_Rs_primi_carne = "SELECT primi_carne FROM preventivi";
$Rs_primi_carne = mysql_query($query_Rs_primi_carne, $pastauovo) or die(mysql_error());
$row_Rs_primi_carne = mysql_fetch_assoc($Rs_primi_carne);
$totalRows_Rs_primi_carne = mysql_num_rows($Rs_primi_carne);
mysql_select_db($database_pastauovo, $pastauovo);
$query_Rs_primi_pesce = "SELECT primi_pesce FROM preventivi";
$Rs_primi_pesce = mysql_query($query_Rs_primi_pesce, $pastauovo) or die(mysql_error());
$row_Rs_primi_pesce = mysql_fetch_assoc($Rs_primi_pesce);
$totalRows_Rs_primi_pesce = mysql_num_rows($Rs_primi_pesce);
mysql_select_db($database_pastauovo, $pastauovo);
$query_Rs_secondi_carne = "SELECT secondi_carne FROM preventivi";
$Rs_secondi_carne = mysql_query($query_Rs_secondi_carne, $pastauovo) or die(mysql_error());
$row_Rs_secondi_carne = mysql_fetch_assoc($Rs_secondi_carne);
$totalRows_Rs_secondi_carne = mysql_num_rows($Rs_secondi_carne);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/7evennighte.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Documento senza titolo</title>
<!-- InstanceEndEditable -->
<link href="../blogger/css/master_7evennighte.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script src="../blogger/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../blogger/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-color: #F3F3F3;
}
a:link {
color: #333;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #333;
}
a:hover {
text-decoration: underline;
color: #999;
}
a:active {
text-decoration: none;
color: #333;
}
</style>
</head>
<body>
<div class="container">
<div id="header"></div>
<div id="menu">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="../blogger/index.php">HOME</a> </li>
<li><a href="../blogger/computers.php">COMPUTERS</a></li>
<li><a href="../blogger/internet.php">INTERNET</a> </li>
<li><a href="../blogger/develomper.php">DEVELOMPER</a></li>
<li><a href="../blogger/grafica.php">GRAFICA</a></li>
<li><a href="../blogger/contatti.php">CONTATTI</a></li>
</ul>
</div>
<div id="content"><!-- InstanceBeginEditable name="content" -->
<form action="preventivo.php" method="post">
<h4>Aperitivi </h4>
<?php do { ?>
<div id="aperitivi">
<?php echo $row_Rs_aperitivi['aperitivi']; ?>
<input <?php if (!(strcmp($row_Rs_aperitivi['aperitivi'],"yes"))) {echo "checked=\"checked\"";} ?> name="myCheck[<?php $_SESSION['myCheck']=$row_Rs_aperitivi['aperitivi']; ?>]" type="checkbox" value="<?php echo $row_Rs_aperitivi['aperitivi']; ?>" />
</div>
<?php } while ($row_Rs_aperitivi = mysql_fetch_assoc($Rs_aperitivi)); ?>
<h4>Antipasti di Carne </h4>
<?php do { ?>
<div id="antipasti_carne">
<?php echo $row_Rs_antipasti_carne['antipasti_carne']; ?>
<input <?php if (!(strcmp($row_Rs_antipasti_carne['antipasti_carne'],"yes"))) {echo "checked=\"checked\"";} ?> name="myCheck[<?php $_SESSION['myCheck']= $row_Rs_antipasti_carne['antipasti_carne']; ?>]" type="checkbox" value="<?php echo $row_Rs_antipasti_carne['antipasti_carne']; ?>" />
</div>
<?php } while ($row_Rs_antipasti_carne = mysql_fetch_assoc($Rs_antipasti_carne)); ?>
<h4>Antipasti di Pesce </h4>
<?php do { ?>
<div id="antipasti_pesce"> <?php echo $row_Rs_antipasti_pesce['antipasti_pesce']; ?>
<input <?php if (!(strcmp($row_Rs_antipasti_pesce['antipasti_pesce'],"yes"))) {echo "checked=\"checked\"";} ?> name="myCheck[<?php $_SESSION['myCheck']=$row_Rs_antipasti_pesce['antipasti_pesce']; ?>]" type="checkbox" value="<?php echo $row_Rs_antipasti_pesce['antipasti_pesce']; ?>" />
</div>
<?php } while ($row_Rs_antipasti_pesce = mysql_fetch_assoc($Rs_antipasti_pesce)); ?>
<h4>Primi di Carne </h4>
<div id="primi_carne">
<input name="myCheck[]" type="checkbox" />
</div>
<h4>Primi di Pesce </h4>
<div id="primi_pesce">
<input name="myCheck[]" type="checkbox" />
</div>
<h4>Secondi di Carne </h4>
<div id="secondi_carne">
<input name="myCheck[]" type="checkbox" />
</div>
<h4>Secondi di Pesce </h4>
<div id="secondi_pesce">
<input name="myCheck[]" type="checkbox" />
</div>
<h4>Contorni </h4>
<div id="contorni">
<input name="myCheck[]" type="checkbox" />
</div>
<h4>Dolci </h4>
<div id="dolci">
<input name="myCheck[]" type="checkbox" />
</div>
<h4>Frutta</h4>
<div id="frutta">
<input name="myCheck[]" type="checkbox" />
<p>
<input name="" type="submit" />
</p>
</div>
</form>
<!-- InstanceEndEditable --></div>
<div id="navigation_dx"><!-- InstanceBeginEditable name="navigazione_dx" --><!-- InstanceEndEditable --></div>
<div id="footer"><!-- InstanceBeginEditable name="footer" -->footer<!-- InstanceEndEditable --></div>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../blogger/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../blogger/SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
<!-- InstanceEnd -->
</html>
<?php
mysql_free_result($Rs_aperitivi);
mysql_free_result($Rs_antipasti_carne);
mysql_free_result($Rs_antipasti_pesce);
mysql_free_result($Rs_primi_carne);
mysql_free_result($Rs_primi_pesce);
mysql_free_result($Rs_secondi_carne);
?>