-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopyrightnew.php
237 lines (209 loc) · 6.14 KB
/
copyrightnew.php
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php
session_start();
if(isset($_SESSION["user_name"]) && isset($_SESSION["password"]))
{
$id=$_REQUEST["id"];
include'db.php';
$qry="SELECT * FROM user_details WHERE user_id='$id'";
$result=mysqli_query($con,$qry);
$row=mysqli_fetch_array($result);
$qry2="SELECT * FROM `category`";
$all_categories = mysqli_query($con,$qry2);
}
?>
<!Doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Copyright Form</title>
</head>
<body>
<form name="copyrightnew" action="copyrightnew.php" method="post" enctype="multipart/form-data">
<h1>Get Your Copyright from here!!</h1>
<table border="0" cellspacing="1" cellpadding="5">
<!--<tr><td><h2>Personal Details</h2></td></tr>
<tr>
<td>Name:</td>
<td>
<input type="text" name="txtname" value='p echo $row["user_name"]; ?>' >
<input type="hidden" name="txthidden" value='row["user_id"]; ?>' >
</td>
</tr>
<tr>
<td>Date of Birth:</td>
<td>
<input type="date" name="dob" value='row["dob"]; ?>' required>
</td>
</tr>
<tr>
<td>Email Id:</td>
<td>
<input type="email" name="txtemail" value='row["email_id"]; ?>'>
</td>
</tr>
<tr>
<td>Contact Number:</td>
<td>
<input type="tel" name="txttel" value='row["phone"]; ?>'>
</td>
</tr>
<tr>
<td>Gender:</td>
<td>
}
?>
</td>
</tr>
<tr>
<td>Nationality: </td>
<td>
<input type="text" name="txtnationality" value='>
</td>
</tr>
<tr>
<td>Address</td>
<td>
<textarea name="txtaddress" rows="5" cols="20" value=>'></textarea>
</td>
</tr>
-->
<tr><td><h2>Work Details</h2></td></tr>
<tr>
<td>Title: </td>
<td>
<input type="text" name="txttitle" value="" placeholder="Title" required>
</td>
</tr>
<tr>
<td>Category of the ArtWork:</td>
<td>
<select name="category">
<?php
while ($category = mysqli_fetch_array(
$all_categories,MYSQLI_ASSOC)):;
?>
<option value="<?php echo $category["category_name"];?>">
<?php echo $category["category_name"];?>
</option>
<?php
endwhile;
?>
</select>
</td>
</tr>
<tr>
<td>Medium:</td>
<td>
<input type="text" name="txtmedium" value="" placeholder="Medium" required>
</td>
</tr>
<tr>
<td>Description:</td>
<td>
<input type="text" name="txtdesc" value="" placeholder="Description of Artwork" required >
</td>
</tr>
<tr>
<ul>
<td>Art Published(Anywhere): </td>
<td>
<input type="radio" name="published" value="Yes">Yes<br>
<ul>
<li>Area of Publication:</li>
<input type="text" name="txtpubl">
<li>Year of Publication:</li>
<input type="date" name="date">
<li>Publishing Authority:</li>
<input type="text" name="txtaut">
</ul><br>
</ul>
<input type="radio" name="published" value="No" align="left">No<br>
</td>
</tr>
<tr>
<td>Does the Artwork follows THE COPYRIGHT ACT, 1957 ?</td>
<td>
<input type="radio" name="ACT" value="Yes">Yes<br>
<input type="radio" name="ACT" value="No">No
</td>
</tr>
<tr>
<td>Awards(If Any): </td>
<td>
<input type="text" name="txtawd" value="" placeholder="Award Name">
</td>
</tr>
<tr>
<td>Registered under THE DESIGN ACT 2000 ?</td>
<td>
<input type="radio" name="ACT2" value="Yes">Yes
<input type="radio" name="ACT2" value="No">No
</td>
</tr>
<tr><td><h2>Identification Proof</h2></td></tr>
<tr>
<td>Identification: </td>
<td>
<select name="Identification Proof">
<option value="AadharCard">AadharCard</option>
<option value="Pancard">Pancard</option>
<option value="Driving License">Driving License</option>
<option value="Passport">Passport</option>
</select>
</td>
</tr>
<tr>
<td>Enter your Id proof No.</td>
<td>
<input type="text" name="txtiproof" value="" placeholder="Aadhar/Pan/License/Passport No">
</td>
</tr>
<tr>
<td>Upload Image of your Artwork (Only JPEG file)</td>
<td>
<input type="file" name="image" accept=".jpeg" >
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="btnsave" value="Save and Proceed">
<input type="reset" name="clear" value="Clear">
</td>
</tr>
</table>
</form>
<?php
include'db.php';
if(isset($_REQUEST["btnsave"]))
{
$uid=$_REQUEST["txthidden"];
$title=$_REQUEST["txttitle"];
$category=$_REQUEST["category"];
$description=$_REQUEST["txtdesc"];
$medium=$_REQUEST["txtmedium"];
$published=$_REQUEST["published"];
$area=$_REQUEST["txtpubl"];
$year=$_REQUEST["date"];
$authority=$_REQUEST["txtaut"];
$act1957=$_REQUEST["ACT"];
$awards=$_REQUEST["txtawd"];
$act2000=$_REQUEST["ACT2"];
$upload=$_REQUEST["image"];
$qry= "INSERT INTO `copyright`(`title`, `category`, `description`, `medium`, `published`, `area`, `year`, `authority`, `design_act`, `copyright_act`,`awards`,`work_photo`)
VALUES ('$title','$category','$description','$medium','$published','$area','$year','$authority','$act1957','$act2000','$awards','$upload')";
if(mysqli_query($con,$qry))
{
echo"<center><h2>SUCCESSFULLY APPLIED FOR COPYRIGHT!!!</h2></center>";
}
else
{
echo"<center><h2>ERROR OCCURED!!!</h2></center>";
}
}
else{
echo" Page not found!!!!";
}
?>
</body>
</html>