All pastes #329549 Raw Edit

Stepes

public text v1 · immutable
#329549 ·published 2007-01-26 21:02 UTC
rendered paste body
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function createCookie(num,value) {
	alert("Got in function "+num+","+value+" ");
	if (1) {
		var date = new Date();
		date.setTime(date.getTime()+(1*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	alert("Got in function "+num+","+value+" ");
	var text=value+"."+num+",";
	var old=readCookie("cart");
	text=old+text;
	document.cookie = "cart="+text+expires+"; path=/";
	return 1;
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>E-Commerce</title>
<style type="text/css" media="all">@import "layout1.css";</style>
</head>
<style type="text/css">
body {
	background-color: #FFFFCC;
}
</style>
<body>
<div id="Header"><a href="main2.php" title="E-Commerce Home">E-Commerce User Control-Panel </a></div><div id="Content">
	<h1><center>Products in Category food</center></h1><style type="text/css">
body {
	background-color: #FFFFCC;
}

</style><table border="1" width="60%" align="center">
	  <tr>
		  <th>PID</th>
		  <th>Name</th>
		  <th>Company</th>
		  <th>Price</th>
		  <th>Quantity</th>

	<th>Buy</th>
	  </tr>
	  <form id="form0" name="form0" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>1</center></td>
	<td><center>tyropita</center></td>
	<td><center>Serraios</center></td>
	<td><center>1.5</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form1" name="form1" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>2</center></td>
	<td><center>mpougatsa</center></td>
	<td><center>Serraios</center></td>
	<td><center>1.6</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form2" name="form2" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>4</center></td>
	<td><center>souvlaki</center></td>
	<td><center>Smyrni</center></td>
	<td><center>2.4</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form3" name="form3" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>5</center></td>
	<td><center>gyros merida</center></td>
	<td><center>To pyrino</center></td>
	<td><center>15</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form4" name="form4" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>6</center></td>
	<td><center>gyros pita</center></td>
	<td><center>To pyrino</center></td>
	<td><center>23</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form5" name="form5" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>7</center></td>
	<td><center>kotopoulo</center></td>
	<td><center>To pyrino</center></td>
	<td><center>8</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form6" name="form6" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>8</center></td>
	<td><center>krouasan sokolatas</center></td>
	<td><center>Savoidakis</center></td>
	<td><center>1.5</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form7" name="form7" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>9</center></td>
	<td><center>Gala</center></td>
	<td><center>Fage</center></td>
	<td><center>.3</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form8" name="form8" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>11</center></td>
	<td><center>sokolatina</center></td>
	<td><center>Gloria</center></td>
	<td><center>1.5</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form><form id="form9" name="form9" action="#" method="post" onsubmit="createCookie('1','aha!');"><tr>
	<td><center>12</center></td>
	<td><center>galaktompoureko</center></td>
	<td><center>Gloria</center></td>
	<td><center>1.4</center></td>

	<td><center><input name="p1" type="text" id="p1" size="4" maxlength="10" /></center></td>
	<td><label><center><input type="submit" name="Buy" value="Buy"></center></label></td>
	</tr></form></div><div id="Menu">
	<a href="sendOrder.php">&Alpha;&pi;&omicron;&sigma;&tau;&omicron;&lambda;&#942; &Pi;&alpha;&rho;&alpha;&gamma;&gamma;&epsilon;&lambda;&#943;&alpha;&sigmaf;</a><br><br>
	<a href="searchCategory.html">&Alpha;&nu;&alpha;&zeta;&#942;&tau;&eta;&sigma;&eta; &Kappa;&alpha;&tau;&eta;&gamma;&omicron;&rho;&#943;&alpha;&sigmaf; </a><br><br>
	<a href="searchCompany.html">&Alpha;&nu;&alpha;&zeta;&#942;&tau;&eta;&sigma;&eta; &Epsilon;&tau;&alpha;&iota;&rho;&#943;&alpha;&sigmaf;</a><br> <br>

	<a href="searchProduct.html">&Alpha;&nu;&alpha;&zeta;&#942;&tau;&eta;&sigma;&eta; &Pi;&rho;&omicron;&#970;&#972;&nu;&tau;&omicron;&sigmaf;</a><br><br>
	<a href="preCancel.html">&Alpha;&kappa;&#973;&rho;&omega;&sigma;&eta; &Pi;&alpha;&rho;&alpha;&gamma;&gamma;&epsilon;&lambda;&#943;&alpha;&sigmaf;</a>
	<br />
</div></body>
</html>