Пример #1
0
            <th width="8%" align="right" class="subh">Attacks</th>
            <th width="15%" align="right" class="subh">Enemy Losses</th>
            <th width="13%" align="right" class="subh">Your Losses</th>
            <th width="16%" align="right" class="subh">Enemy Damage</th>
            <th width="14%" align="right" class="subh">Your Damage</th>
            <th width="9%" align="center" class="subh">Report</th>
          </tr>
          <?
if (!$cgi['page2']) {
	$cgi['page2'] = 1;
}
$atackA2 = getAttackByAttacker($user->ID, $cgi['page2']);
for ($i = 0;$i < count($atackA2);$i++) {
?>
          <tr> 
            <td colspan="2" align="right"><? echo vDate($atackA2[$i]->time); ?></td>
            <td align="left"> 
              <?
	$tus = getUserDetails($atackA2[$i]->toUserID, "userName,active");
	if ($tus->active == 1) {
		echo "<a href='stats.php?id={$atackA2[$i]->toUserID}'>" . $tus->userName . "</a>";
	} else {
		echo "{" . $tus->userName . "}";
	}
?>
            </td>
            <td align="right"> 
              <?
	if ($atackA2[$i]->type == 1) {
		echo "<b>Nuke</b>";
	} else {
Пример #2
0
				echo $sentUser->userName; ?>
            </a>             
            <?
			} else {
				echo "All Officers";
			} ?></td>
          <td> <a href="messages.php?box=outbox&amp;id=<?php 
echo $messages[$i]->ID;
?>
&amp;type=view" title="view message">
            <?php 
echo $messages[$i]->subject;
?>
            </a></td>
          <td><?php 
echo vDate($messages[$i]->date);
?>
</td>
          <td><a href="messages.php?box=outbox&amp;id=<?php 
echo $messages[$i]->ID;
?>
&amp;type=delete">delete</a></td>
        </tr>
        <?
		}
	} else {
?>
        <tr> 
          <td colspan="3" align="center">No Messages</td>
        </tr>
        <?