This repository was archived by the owner on Feb 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbulk_move.php
More file actions
executable file
·48 lines (30 loc) · 1.54 KB
/
bulk_move.php
File metadata and controls
executable file
·48 lines (30 loc) · 1.54 KB
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
<?php
require_once("connect.php");
include ("position_check.php");
if(!session_id()) session_start();
if(!(MD_check())){
die ('You aren\'t allowed to be here!<br>');
}
if(empty($_SESSION['username'])){
die('You need to login first!<br><a href="login.php">Click here to login!</a>');
}
echo "<head><title>WSBF Bulk Move Rotation</title></head>";
echo "<font size = 28>WSBF Bulk Move Rotation</font><br>Type in the CDs you want to move and select where you want to move 'em, or <a href=\"logout.php\">logout!</a>";
echo "<form action='bulk_move_submit.php' method='POST'>";
echo "<textarea name='list' cols=\"65\" rows=\"12\"></textarea>";
$rot_query = "SELECT rotationID, rotation_bin FROM def_rotations";
$rotations = mysql_query($rot_query, $link);
if (!$rotations) {
die ('This is an error message: ' . mysql_error());
}
echo "<br><select name='new_bin'>";
echo "<option value='999'>SELECT NEW BIN</option>";
while ($rot_get = mysql_fetch_array($rotations, MYSQL_NUM)){
$rotID = $rot_get[0];
$bin = $rot_get[1];
echo "<option value='$rotID'>$bin</option>";
}
echo "</select>";
echo "
<input type='submit' value='Move Rotation'/> </form>";
?>