Ejemplo n.º 1
0
      <td></td>
      <td>Name</td>
      <td>Cargo</td>
      <td>Civs</td>
      <td>Elin.</td>
      <td>Cylite</td>
      <td>Plexi</td>
      <td></td>
    </tr>';
}
while ($row = mysql_fetch_array($result)) {
    echo '<tr>
      <td></td>
      <td><input type="Radio" name="fleetid" value="' . $row[id] . '"></td>
      <td>' . $row[name] . '</td>
      <td>' . currentCargo($sid, $row[id]) . '/' . maxCargo($sid, $row[id]) . '</td>
      <td>' . $row[civs] . '</td>
      <td>' . $row[steel] . '</td>
      <td>' . $row[cylite] . '</td>
      <td>' . $row[plexi] . '</td>
      <td><a href="./build.php?id=' . $pid . '&u=' . $row[id] . '">Unload All</a></td>
    </tr>';
}
if ($num > 0) {
    echo '
    <tr>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><input type="text" name="rescivs" size=1 value=0></td>
Ejemplo n.º 2
0
function isRoom($amt, $sid, $fid)
{
    $current = currentCargo($sid, $fid);
    if ($current + $amt > maxCargo($sid, $fid)) {
        return false;
    }
    return true;
}