Пример #1
0
}
_header();
?>
<style type="text/css">
table.fleets th,
table.fleets td {
	padding : 3px 8px;
}
</style>

<div class="header">Military</div>

<br />

<?php 
echo getFleetMatrix(PLANET_ID, true);
?>

<br />
<br />

<div class="header">Fleet Management</div>

<br />

I'm guessing you know how it works. If you don't, check <a href="manual.php">the Manual</a><br />
<br />
<form method="post" action="" autocomplete="off">
<table border=0 cellpadding=3 cellspacing=2 width=500 bordercolor=#444444 style='border:none;'>
<tr class="b">
	<td>UNIT TYPE</td>
Пример #2
0
ORDER BY
	d.id ASC;
');
                        $iTotalDefence = 0;
                        $szHTML .= "<table border=0 cellpadding=2 cellspacing=0 width=100% class=\"widecells\">\n";
                        $szHTML .= "<tr><td colspan=\"2\"><center><b>DEFENCE Infiltration Report on " . $arrTarget['rulername'] . " of " . $arrTarget['planetname'] . " (" . $arrTarget['x'] . ":" . $arrTarget['y'] . ":" . $arrTarget['z'] . ")</b></td></tr>";
                        foreach ($arrDefences as $szDefence => $iAmount) {
                            $szHTML .= '<tr class="bt"><td align="right">' . $szDefence . '</td><td>' . $iAmount . '</td></tr>';
                            $iTotalDefence += (int) $iAmount;
                        }
                        $szHTML .= '<tr class="bt"><th align="right" width="50%">Total</th><th align="left">' . nummertje($iTotalDefence) . '</th></tr>';
                        $szHTML .= "</table>\n";
                        break;
                    case 18:
                        // fleet
                        $szHTML .= '<div class="c b" style="padding:4px;">FLEET Infiltration Report on ' . $arrTarget['rulername'] . ' of ' . $arrTarget['planetname'] . ' (' . $arrTarget['x'] . ':' . $arrTarget['y'] . ':' . $arrTarget['z'] . ')</div>' . getFleetMatrix($arrTarget['id'], false) . '';
                        break;
                    case 19:
                        // news
                        $arrNewsItems = db_select('d_news_subjects s, news n', 'n.news_subject_id = s.id AND n.planet_id = ' . (int) $arrTarget['id'] . ' ORDER BY n.id DESC');
                        $szHTML .= '<div align="center" class="c">';
                        if (0 < count($arrNewsItems)) {
                            foreach ($arrNewsItems as $arrItem) {
                                $szHTML .= '<br /><table border="0" cellpadding="3" cellspacing="0" width="450" align="center" style="border:solid 1px #222;border-width:0 1px 1px 0;">';
                                $szHTML .= '<tr>';
                                $szHTML .= '	<td style="padding:0;"><img title="' . $arrItem['name'] . '" alt="' . $arrItem['name'] . '" src="images/' . $arrItem['image'] . '" height="55" width="55" /></td>';
                                $szHTML .= '	<td bgcolor="#222222">' . date('Y-m-d H:i:s', $arrItem['utc_time']) . ', <b>MyT: ' . $arrItem['myt'] . '</b></td>';
                                $szHTML .= '</tr>';
                                $szHTML .= '<tr>';
                                $szHTML .= '	<td></td>';
                                $szHTML .= '	<td colspan=2>' . $arrItem['message'] . '</td>';