Пример #1
0
function addmineral($id, $name, $class)
{
    global $minerals;
    $m['id'] = $id;
    $m['name'] = $name;
    $m['class'] = $class;
    $m['sell'] = getSell($id);
    $m['buy'] = getBuy($id);
    $minerals[] = $m;
}
Пример #2
0
							<th class="text-right">Sell (per unit)</th>
							<th class="text-right">Buy (per unit)</th>
							<th class="text-right">10</th>
							<th class="text-right">20</th>
							<th class="text-right">40</th>
						</tr>
					</thead>
					
					<?php 
$blocks = array(array("name" => "Amarr Fuel Block", "id" => 4247), array("name" => "Gallente Fuel Block", "id" => 4312), array("name" => "Minmatar Fuel Block", "id" => 4246), array("name" => "Caldari Fuel Block", "id" => 4051));
?>
					<tbody>
						<?php 
foreach ($blocks as $block) {
    $sell = getSell($block['id']);
    $buy = getBuy($block['id']);
    ?>
						<tr>
							<td style="background: url('https://image.eveonline.com/Type/<?php 
    echo $block['id'];
    ?>
_32.png') no-repeat 4px 4px; width: 42px;">&nbsp</td>
							<td><?php 
    echo $block['name'];
    ?>
</td>
							<td class="text-right"><?php 
    echo isk($sell);
    ?>
</td>
							<td class="text-right"><?php