template/index.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 03 Sep 2009 00:17:30 +0530
changeset 16 a5bbfbe5feb1
parent 15 2dbb5e797989
child 18 07408d1ced76
permissions -rw-r--r--
Fixed the HTML title.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     2
<html xmlns="http://www.w3.org/1999/xhtml">
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     3
<head>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     4
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
16
a5bbfbe5feb1 Fixed the HTML title.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 15
diff changeset
     5
<title>Spoken Tutorials</title>
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     6
<meta name="keywords" content="" />
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     7
<meta name="description" content="" />
11
ed77b6c62d61 Corrected template loading and css.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 9
diff changeset
     8
<link href="/style.css" rel="stylesheet" type="text/css" media="screen" />
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
<script type="text/javascript" language="JavaScript">
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
function check(form) {
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
  var ext = form.sourcefile;
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
  ext = ext.substring(ext.length-3,ext.length);
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
  ext = ext.toLowerCase();
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
  if(ext != 'txt') {
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
    alert('You selected a .'+ext+
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
          ' file; please select a .jpg file instead!');
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
    return false; }
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
  else
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    19
    return true; }
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    20
</script>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    21
</head>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    22
<body>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    23
<div id="header">
3
eb11f0116216 Removed typo in forms.py.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    24
	<div id="logo">
eb11f0116216 Removed typo in forms.py.
Shantanu <shantanu@fossee.in>
parents: 2
diff changeset
    25
		<h1><a href="#">Spoken Tutorials Competition</a></h1>
14
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    26
		<h2><a href="http://www.iitb.ac.in/">By IITB</a></h2>		
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    27
	</div>	
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    28
</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    29
<!-- start page -->
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    30
<div id="page">	
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    31
	<!-- start content -->
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    32
	<div id="content">
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    33
		<p class="center">
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    34
		{% block content %}
14
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    35
		{% if value %}						
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    36
			<form class = "center" method="post" action="." enctype="multipart/form-data">			
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    37
				{{form.as_p}}
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    38
				<input type="submit" value="Upload" id="submit"/>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    39
			</form>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    40
		{% else %}			
15
2dbb5e797989 Fixed views.py to accommodate form validation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    41
			Your Upload was successful!
2dbb5e797989 Fixed views.py to accommodate form validation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    42
			You will be automatically redirected to the home page in 5 seconds<br/>
14
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    43
			<script type="text/javascript"><!--
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    44
                setTimeout('Redirect()',4000);
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    45
                function Redirect()
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    46
                {
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    47
                  location.href = 'http://www.iitb.ac.in';
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    48
                }
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    49
            // --></script>
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    50
		{% endif %}
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    51
		{% endblock %}
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    52
		</p>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    53
	</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    54
	<!-- end content -->	
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    55
	<div style="clear: both;">&nbsp;</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    56
</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    57
<!-- end page -->
14
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    58
<div id="footer">	
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    59
	<p class="credit">Powered by the <a href="http://fossee.in/">FOSSEE</a> group, IITB</p>
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    60
</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    61
</body>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    62
</html>