| 26 | if (isset($_GET['view']) == 'FixSlot'){ |
| 27 | $smarty->assign('fixSlot', 'true'); |
| 28 | } |
| 29 | |
| 30 | if ($page->isAdmin()) |
| 31 | { |
| 32 | if (isset($_GET['view']) == 'FixSlot'){ |
| 33 | $smarty->assign('fixSlot', 'true'); |
| 34 | } |
| 35 | |
| 36 | |
| 37 | $smarty->assign('admin', 'true'); |
| 38 | if (isset($_POST['submit']) == 'UpdateSlot') |
| 39 | { |
| 40 | $IID = $_POST['IID']; |
| 41 | $KID = $_POST['KID']; |
| 42 | $Val = $_POST[$IID]; |
| 43 | $table = $_POST['TYPE']; |
| 44 | $old = $_POST['OLDSLOT']; |
| 45 | $qry = new DBQuery(); |
| 46 | $qry->execute("UPDATE kb3_items_".$table." SET itd_itl_id ='".$Val."' WHERE itd_itm_id=".$IID." AND itd_kll_id = ".$KID." AND itd_itl_id = ".$old); |
| 47 | //echo "UPDATE kb3_items_".$table." itd_itl_id ='".$Val."' WHERE itd_itm_id=".$IID." AND itd_kll_id = ".$KID." AND itd_itl_id = ".$old; |
| 48 | } |
| 49 | } |
| 50 | |
163 | | $dest_array[$destroyed->getLocationID()]['items'][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $destroyed->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID()); |
| 189 | $dest_array[$destroyed->getLocationID()]['items'][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $destroyed->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID(),'slotID' => $destroyed->getLocationID()); |
186 | | $drop_array[$dropped->getLocationID()]['items'][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $dropped->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID()); |
| 212 | $drop_array[$dropped->getLocationID()]['items'][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $dropped->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID(),'slotID' => $dropped->getLocationID()); |