Ejemplo n.º 1
0
>Ports</option>
			<option value="Misc" <?php 
echo strtoupper($wine->getType()) == 'MISC' ? 'selected' : '';
?>
>Misc</option>
			<option value="Pop/Water" <?php 
echo strtoupper($wine->getType()) == 'POP/WATER' ? 'selected' : '';
?>
>Pop/Water</option>
			</select><br>
			<label for="name">Name:</label><input type="text" style="width:400px" id="name" name="name" value="<?php 
echo $wine->getName();
?>
"><br>
			<label for="vintage">Vintage:</label><input type="number" id="vintage" name="vintage" value="<?php 
echo $wine->getVintage();
?>
"><br>
			<label for="cost">Regular Cost:</label><input type="number" id="cost" name="cost" value="<?php 
echo $wine->getCost();
?>
"><br>
			<label for="sell_price">Regular Sell Price:</label><input type="number" id="sell_price" name="sell_price" value="<?php 
echo $wine->getSellPrice();
?>
"><br>
			<input class="submit" type="button" value="Update Wine" onClick="processRequest()">&nbsp;<input class="cancel" type="button" value="Reset" onclick="$('#form')[0].reset();">&nbsp;<input class="cancel" type="button" value="Cancel Edit" onClick="$('#edit').css('display','none');$('#show').css('display','block');">
			</form>
			</div>
			<div id="show" style="display:block">
			<h2>Show: <span id="showUPC"><?php