-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinsertfilm.php
34 lines (30 loc) · 1.31 KB
/
insertfilm.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
<?php
/* FilmDB (based on php4flicks) */
// this is used for inserting films only
require_once('config/config.php');
session_start();
// allow title to be passed via GET or POST method
if(isset($_GET['title'])){
$movietitle = $_GET['title'];
} else if(isset($_POST['title'])){
$movietitle = $_POST['title'];
} else {
die('error: no movie title');
}
?>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/edit/k1.png" width="8" height="8" border="0"></td><td background="images/edit/k2.png"></td><td><img src="images/edit/k3.png" width="8" height="8" border="0"></td>
</tr><tr>
<td background="images/edit/k4.png"></td><td background="images/edit/k5.png" bgcolor="#dee3cb">
<div ID="innereditreq"><?= $trans['the_movie'].'<nobr><h4><b>'.$movietitle.'</b></h4></nobr>'.$trans['insert_alert'] ?></div>
</td><td background="images/edit/k6.png"></td>
</tr><tr>
<td><img src="images/edit/k7.png" width="8" height="8" border="0"></td><td background="images/edit/k8.png"></td><td><img src="images/edit/k9.png" width="8" height="8" border="0"></td>
</tr>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<button name="ok" type="button" value="OK" onClick="showRequest(false,'editreq','');"><b><?= $trans['b_ok']?></b></button>
</td></tr>
</table>