function delshop()
{
    global $db, $ir, $c, $h;
    if ($_POST['shop']) {
        $sn = $db->fetch_single($db->query("SELECT shopNAME FROM shops WHERE shopID={$_POST['shop']}"));
        $db->query("DELETE FROM shops WHERE shopID={$_POST['shop']}");
        $db->query("DELETE FROM shopitems WHERE sitemSHOP={$_POST['shop']}");
        print "Shop {$sn} Deleted.";
        stafflog_add("Deleted Shop {$sn}");
    } else {
        print "\n<div class='generalinfo_txt'>\n<div><img src='images/info_left.jpg' alt='' /></div>\n<div class='info_mid'><h2 style='padding-top:10px;'> Delete Shop</h2></div>\n<div><img src='images/info_right.jpg' alt='' /></div> </div>\n<div class='generalinfo_simple'><br> <br><br>\n\n\nDeleting a shop will remove it from the game permanently. Be sure.<form action='staff_shops.php?action=delshop' method='post'>\nShop: " . shop_dropdown($c, "shop") . "<br />\n<input type='submit' STYLE='color: black;  background-color: white;' value='Delete Shop' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
    }
}
function new_stock_form()
{
    global $ir, $c, $h;
    print "<h3>Adding an item to a shop</h3>\n<form action='new_staff.php?action=newstocksub' method='post'>\nShop: " . shop_dropdown($c, "shop") . "<br />\nItem: " . item_dropdown($c, "item") . "<br />\n<input type='submit' value='Add Item To Shop' /></form>";
}