Ejemplo n.º 1
0
				<div style="float:right;margin-top:12px; margin-right:15px"><label for="quickSummary">Quick Summary By UPC:</label><input type="number" id="quickSummary" name="quickSummary"><input type="button" value="Go" onClick="window.location.assign('/upcsummary/'+$('#quickSummary').val())"></div>
			</div>
		<div id="content">
			<?php 
$wine = new Wine($dbh);
$wine->fetchWineByUPC($_GET['upc']);
?>
			<div id="edit" style="display:none">
			<h2>Edit: <span id="editUPC"><?php 
echo $_GET['upc'];
?>
</span></h2>
			<form id="form" name="form">
			<input type="hidden" id="function" name="function" value="updateWine">
			<input type="hidden" id="wine_id" name="wine_id" value="<?php 
echo $wine->getID();
?>
">
			<label for="name">UPC/EAN:</label><input type="text" style="width:400px" id="upc" name="upc" value="<?php 
echo $wine->getUPC();
?>
"><br>
			<label for="name">Type:</label><select class="select" id="type" name="type">
			<option value="Chardonnay" <?php 
echo strtoupper($wine->getType()) == 'CHARDONNAY' ? 'selected' : '';
?>
>Chardonnay</option>
			<option value="Fume/Sauvignon Blanc" <?php 
echo strtoupper($wine->getType()) == 'FUME/SAUVIGNON BLANC' ? 'selected' : '';
?>
>Fume/Sauvignon Blanc</option>