Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 23 lines (22 sloc) 0.789 kb
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']
            ,"&amp;action=changeType&amp;type=",$key
            ,"&amp;oldtype=",$type
            ,(empty($_REQUEST['referrer']))?'':"&amp;referrer={$_REQUEST['referrer']}"
            ,"'>$val</a>";
    ?>
</div>
<?php include 'footer.inc.php'; ?>
Something went wrong with that request. Please try again.