template/index.html
changeset 2 4d2bbb2f3c4e
child 3 eb11f0116216
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/template/index.html	Wed Sep 02 19:34:48 2009 +0530
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<title>OCR</title>
+<meta name="keywords" content="" />
+<meta name="description" content="" />
+<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
+<script type="text/javascript" language="JavaScript">
+function check(form) {
+  var ext = form.sourcefile;
+  ext = ext.substring(ext.length-3,ext.length);
+  ext = ext.toLowerCase();
+  if(ext != 'txt') {
+    alert('You selected a .'+ext+
+          ' file; please select a .jpg file instead!');
+    return false; }
+  else
+    return true; }
+</script>
+</head>
+<body>
+<div id="header">
+	<div id="logo">
+		<h1><a href="#">OCR</a></h1>
+		<h2><a href="http://www.sarai.net/">By sarai</a></h2>
+	</div>
+	<div id="menu">
+		<ul>
+			<li><a href="#">Home</a></li>
+			<li><a href="#">FAQ</a></li>
+			<li><a href="#">Contribute</a></li>
+			<li><a href="#">About</a></li>
+			<li class="last"><a href="#">Contact</a></li>
+		</ul>
+	</div>
+</div>
+<!-- start page -->
+<div id="page">	
+	<!-- start content -->
+	<div id="content">
+		<p class="center">
+		{% block content %}
+		{% if value %}
+			Mind Your Privacy!<br/>
+			Don't post your confidential data.<br/>			
+			<form class = "center" method="post" action="." enctype="multipart/form-data">			
+				{{form.as_p}}
+				<input type="submit" value="Upload" id="submit"/>
+			</form>
+		{% else %}			
+			You Uploaded:<br/>
+			<form class = "center" method="post" action="/ocr/download/">			
+				{{form.as_p}}				
+				<input type="submit" value="Download Content" id="submit"/>
+			</form>			
+		{% endif %}
+		{% endblock %}
+		</p>
+	</div>
+	<!-- end content -->	
+	<div style="clear: both;">&nbsp;</div>
+</div>
+<!-- end page -->
+<div id="footer">
+	<p class="legal">&copy;2008 All Rights Reserved.</p>
+	<p class="credit">Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
+</div>
+</body>
+</html>