Source for file example4.tpl.php
Documentation is available at example4.tpl.php
* This is part of Example 5.
* This file handles the display of information gathered in example5.php
$results = $template['results'];
foreach ($results as $result):
$status = $result['status'];
<td colspan="4">Server did not reply to request</td>
<td> <?php echo $result['meta']['gametitle']; ?></td>
<td> <?php echo $status['hostname']; ?></td>
<td> <?php echo $status['map']; ?></td>
<td> <?php echo (int) $status['numplayers']; ?> / <?php echo (int) $status['maxplayers']; ?></td>
Documentation generated on Mon, 11 Mar 2019 15:39:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|