-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignType.php
More file actions
24 lines (24 loc) · 830 Bytes
/
assignType.php
File metadata and controls
24 lines (24 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
//INCLUDES
include_once('header.php');
$values=array('itemId' => (int) $_GET['itemId']);
$types=getTypes();
$result = query("selectitemshort",$config,$values,$sort);
$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) { ?>
<a href='processItems.php?itemId=<?php
echo $values['itemId'];
?>&action=changeType&type=<?php
echo $key;
if (!empty($_GET['referrer']))
echo "&referrer=",$_GET['referrer'];
?>'><?php echo $val; ?></a>
<?php } ?>
</div>
<?php include('footer.php') ?>