~dani.behzi/pfcm/pfcm

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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE HTML>
<!--
        
        Copyright 2011 Danial Behzadi <danialbehzadi@danial-HP>
        
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
        
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
        
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
        MA 02110-1301, USA.
        
        
-->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>FSUG Movie Manager</title>
	<meta name="creator" content="Danial Behzadi" />
	<link rel="stylesheet" type="text/css" href="css.css" />
</head>

<body>
	<script type="text/javascript">
		function validateForm()
		{
			var x=document.forms["insert"]["name"].value;
			if (x==null || x=="")
			{
				alert("Name Field must be filled out");
				return false;
			}
			x=document.forms["insert"]["year"].value;
			if (x==null || x=="")
			{
				alert("Year Field must be filled out");
				return false;
			}
			x=document.forms["insert"]["director"].value;
			if (x==null || x=="")
			{
				alert("Director Field must be filled out");
				return false;
			}
			x=document.forms["insert"]["genre"].value;
			if (x==null || x=="")
			{
				alert("Genre Field must be filled out");
				return false;
			}
		}
	</script>
	<table style="width:100%">
		<tr>
			<th><a href="index.php"><img title="Home" src="media/images/home.png"></a></th>
			<th><a href="search.php?query=ID"><img title="All movies" src="media/images/movies.png"></a></th>
			<th><a href="LISENCE"><img title="Lisence" src="media/images/lisence.png"></a></th>
			<th><a href="about.php"><img title="About…" src="media/images/about.png"></a></th>
		</tr>
	</table>
	
	<h1>Search</h1>
	<form name="search" action="search.php" method="get">
		<table>
			<tr>
				<td>
					By
					<select Name="query">
						<option value="Name">Name</option>
						<option value="Year">Year</option>
						<option value="Director">Director</option>
						<option value="Genre">Genre</option>
						<option value="Tags">Tags</option>
					</select>
					<input type="search" name="phrase" />
				</td>
			</tr>
			<tr>
				<td>
					<p style="text-align:right">
						<input type="submit" value="search" />
					</p>
				</td>
			</tr>
		</table>
	</form>
	<a href="search.php?query=ID">See All…</a>
	<h1>Insert</h1>
	<form name="insert" action="insert.php" method="post" onsubmit="return validateForm()">
		<table>
			<tr>
				<td><font style="color:red">*</font>Name </td>
				<td> <input type="text" name="name" /></td>
			</tr>
			<tr>
				<td><font style="color:red">*</font>Year </td>
				<td> <input type="number" name="year" /> </td>
			</tr>
			<tr>
				<td><font style="color:red">*</font>Director </td>
				<td> <input type="text" name="director" /> </td>
			</tr>
			<tr>
				<td><font style="color:red">*</font>Genre </td>
				<td> <input type="text" name="genre" /> </td>
			</tr>
			<tr>
				<td>Tags </td>
				<td> <input type="text" name="tags" /> </td>
			</tr>
			<tr>
				<td colspan="2">
					<p>
						<input type="submit" value="Add to FSUG Movies" />
					</p>
				</td>
			</tr>
		</table>
</form>
<p style="text-align:right">Copyleft By Danial Behzadi
	<br />All Wrongs reserved :D</p>
</body>

</html>