-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchindex.html
116 lines (87 loc) · 3.79 KB
/
searchindex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
{% autoescape true %}
<html>
<head>
<!-- [START css] -->
<link type="text/css" rel="stylesheet" href="/bootstrap/css/bootstrap.css">
<link type="text/css" rel="stylesheet" href="/bootstrap/css/bootstrap-responsive.css">
<!-- [END css] -->
<style type="text/css">
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
blockquote {
margin-bottom: 10px;
border-left-color: #bbb;
}
form {
margin-top: 10px;
}
.form-signin input[type="text"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
}
.row {
margin-left: 0px;
margin-top: 10px;
overflow: scroll;
}
</style>
<center><h1 style="font-size:30px;"><font color=#006600>Search for a movie</font></h1></center>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">Movie Shopping</a>
<div class="nav-collapse collapse pull-right">
<a href=displaycart class="btn">Cart</a>
<a href="{{ url|safe }}" class="btn">{{ url_linktext }}</a>
</div>
</div>
</div>
</div>
<div align=right><h1 style="font-size:20px;"><font color=#006600>Hi {{user}}</font></h1></div>
<h1 style="font-size:20px;">{{Error}}</h1>
<h1 style="font-size:20px;">{{Found}}</h1>
<font size="+1" color=#006666><b> {{status}} </b></font>
<div class="container">
{% for gen in genre %}
<div class="row">
<blockquote>{{ gen.title}}, {{gen.director }}, {{gen.mainactor1}}, {{gen.mainactor2}}, {{gen.yearofrel}}, {{gen.duration}} minutes,{{gen.buy_price}},{{gen.rent_price}}</blockquote>
<a href="addtocart_search?title={{gen.title}}&price={{gen.buy_price}}&user={{user}}&category={{genre_name}}&label=Buy" class = "btn">Buy</a>
<a href="addtocart_search?title={{gen.title}}&price={{gen.rent_price}}&user={{user}}&category={{genre_name}}&label=Rent" class = "btn">Rent</a>
</div>
{% endfor %}
<!-- [END greetings] -->
<form action="/search?genre_name={{ genre_name }}" method="post">
<div><center>
<label for="title">Title:</label><input type = "text" name = "title"><br></center></div>
<div><center><label for="director">Director:</label><input type = "text" name = "director"><br></center></div>
<div><center><label for="mainactor">Main actor:</label> <input type = "text" name = "mainactor"><br></center></div>
<div><center><label for="yearofrel">Year of Release:</label> <input type = "text" name = "yearofrel"><br></center></div>
<center><div><input type="submit" class="btn btn-large btn-primary" value="Search"></div></center>
<hr>
</form>
<form>
<div><center>
<label for="category">Category:</label> <input value = "{{ genre_name }}" type = "text" name = "category"><br>
</center></div>
<center><div><input type="submit" class="btn btn-large btn-primary" value="Submit"></div></center>
</form>
<!--<center><a href="{{ url1|safe }}">{{url_linktext1}}</a></center> -->
<center><a href="/?genre_name={{ genre_name }}">Back to main page</a></center>
<hr>
</div>
</body>
</html>
{% endautoescape %}