template/index.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 03 Sep 2009 18:52:01 +0530
changeset 19 6af9056ccac9
parent 18 07408d1ced76
child 21 cc021f43454e
permissions -rw-r--r--
Fixed terms and conditions bug.
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">			
18
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    37
				{{form.as_p}}
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    38
				<p>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    39
				<label for="id_terms">Terms and Conditions:</label>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    40
				<textarea rows="5" cols="30" disabled="disabled">I accept that the copyright ownership of the submitted spoken tutorials will rest with CDEEP, IIT Bombay. CDEEP reserves the right to release the tutorials into the public domain.
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    41
				</textarea>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    42
				</p>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    43
				<p>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    44
				  <input type="checkbox" value="True" name="accept" class="accept"/>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    45
				  <label for="id_terms" class="accept">I accept the terms and condition:</label>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    46
				</p>
07408d1ced76 Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 16
diff changeset
    47
				<br />
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    48
				<input type="submit" value="Upload" id="submit"/>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    49
			</form>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    50
		{% else %}			
15
2dbb5e797989 Fixed views.py to accommodate form validation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    51
			Your Upload was successful!
2dbb5e797989 Fixed views.py to accommodate form validation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    52
			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
    53
			<script type="text/javascript"><!--
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    54
                setTimeout('Redirect()',4000);
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    55
                function Redirect()
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    56
                {
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    57
                  location.href = 'http://www.iitb.ac.in';
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    58
                }
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    59
            // --></script>
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    60
		{% endif %}
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    61
		{% endblock %}
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    62
		</p>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    63
	</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    64
	<!-- end content -->	
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    65
	<div style="clear: both;">&nbsp;</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    66
</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    67
<!-- end page -->
14
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    68
<div id="footer">	
420517bb1a06 Updated index.html for auto-redirect.
Shantanu <shantanu@fossee.in>
parents: 11
diff changeset
    69
	<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
    70
</div>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    71
</body>
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    72
</html>