Esempio n. 1
0
        }
        $silokeys = array_keys($silos);
        foreach ($silokeys as $key) {
            $silos[$key]['structure_id'] = $key;
        }
        $args = array('pos_id' => $pos_id, 'silos' => $silos);
        //echo '<pre>';print_r($args);echo '</pre>';exit;
        if ($posmgmt->UpdateAllPosSilos($args)) {
            $eve->SessionSetVar('statusmsg', 'All Silos updated');
            $eve->RedirectUrl('viewpos.php?i=' . $pos_id);
        }
        break;
    case 'Assign As Fuel Tech':
        $newowner = $eve->VarCleanFromInput('newowner');
        $args = array('pos_id' => $pos_id, 'newowner_id' => $newowner);
        $posmgmt->updateOwner($args, $backup = false);
        break;
    case 'Assign As Backup Fuel Tech':
        $newowner = $eve->VarCleanFromInput('newowner');
        $args = array('pos_id' => $pos_id, 'newowner_id' => $newowner);
        $posmgmt->updateOwner($args, $backup = true);
        break;
}
$tower = $posmgmt->GetTowerInfo($pos_id);
if ($tower) {
    $current_fuelblock = $tower['fuelblock'];
    $outpost_id = $tower['outpost_id'];
    $outpost_name = $tower['outpost_name'];
    $current_strontium = $tower['strontium'];
    $current_charters = $tower['charters'];
    $pos_size = $tower['pos_size'];