-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathassignType.php
More file actions
22 lines (22 loc) · 789 Bytes
/
assignType.php
File metadata and controls
22 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
//INCLUDES
include_once 'header.inc.php';
$values=array('itemId' => (int) $_GET['itemId']);
$types=getTypes();
$result = query("selectitemshort",$values);
$type=$result[0]['type'];
$typename=getTypes($type);
$title=makeclean($result[0]['title']);
unset($types[$type]);
unset($types['s']);
?><h2>Change the Type of <?php echo "$typename: '$title'"; ?></h2>
<div class='submitbuttons'>
<?php foreach ($types as $key=>$val)
echo "<a href='processItems.php?itemId=",$values['itemId']
,"&action=changeType&type=",$key
,"&oldtype=",$type
,(empty($_REQUEST['referrer']))?'':"&referrer={$_REQUEST['referrer']}"
,"'>$val</a>";
?>
</div>
<?php include 'footer.inc.php'; ?>