コード例 #1
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
?>

<table width=100%><tr><td><div class="subheading">Reviews/Comments</div></td></tr>
<tr><td><div class="bodytext">
<?php 
$comments = $md->getComments();
$total = $md->getNumberComments();
if ($total == 0) {
    echo "There are no comments on this map.";
} else {
    $count = 0;
    while ($count < $total) {
        $current = $comments[$count];
        echo "<i><a href='playerinfo.php?name=" . urlencode($current->getName()) . "'>" . $current->getName() . "</a> at " . gmdate("D M d, Y g:i a", $current->getTime()) . "</i> ";
        if ($current->getRating() > 0) {
            echo mcPrepareRatingStars($current->getRating());
        }
        echo "<P>" . htmlspecialchars($current->getComment()) . "<br>";
        echo "<hr>";
        $count++;
    }
}
?>
<P>
</td>
</tr>
</table>
コード例 #2
0
<BR>
		<B>Mines:</B> <?php 
echo $info->getHiddenMines();
?>
<BR>
		<B>Brains:</B> <?php 
echo $info->getAi();
?>
<BR>
		<B>Pass worded:</B> <?php 
echo $info->getPassword();
?>
<BR>
		<B>Ratings:</B> <?php 
if ($info->getLogNumRatings() > 0) {
    echo mcPrepareRatingStars($info->getLogRating()) . "(" . $info->getLogRating() . "/10 from " . $info->getLogNumRatings() . " ratings.)";
} else {
    echo "No ratings yet.";
}
?>
		<BR>
		<B>Start Time:</B> <?php 
echo date("D M j G:i:s T Y", $info->getStartTime());
?>
<BR>
		<B>Last Heard:</B> <?php 
echo date("D M j G:i:s T Y", $info->getLastHeard());
?>
<BR>
		<P>
	  </td>
コード例 #3
0
<b>Path: </b><?php 
$parents = $md->getParents();
$count = sizeof($parents) - 1;
while ($count >= 0) {
    $current = $parents[$count];
    $id = $current->getId();
    $name = htmlspecialchars($current->getName());
    echo "<a href='mapcollection.php?id={$id}'>{$name}</a>";
    if ($count > 0) {
        echo " / ";
    }
    $count--;
}
echo "<br><b>Rating: </b>";
if ($md->getNumRatings() > 0) {
    echo mcPrepareRatingStars($md->getRating()) . "(" . $md->getRating() . "/10 from " . $md->getNumRatings() . " ratings.)";
} else {
    echo "No ratings yet";
}
?>
<br>
<b>Bases: </b><?php 
echo $md->getNumBases();
?>
<br>
<b>Pills: </b><?php 
echo $md->getNumPills();
?>
<br>
<b>Starts: </b><?php 
echo $md->getNumStarts();
コード例 #4
0
?>

<div class="subheading"><b>Maps</b></div>
<div class="bodytext">The following maps are available.<p>
<center>
<table width="100%" border=0><tr>
<?php 
$maps = $mc->getMaps();
$count = 0;
$total = sizeof($maps);
while ($count < $total) {
    $current = $maps[$count];
    $id = $current->getId();
    $name = htmlspecialchars($current->getName());
    echo "<td align='center' class='bodytext'><a href='mapcollectiondownload.php?id={$id}'><img src='mapcollectionview.php?id={$id}'><br>{$name}</a> - <a href='mapcollectioninfo.php?id={$id}'>Info</a>";
    if ($current->getRatings() > 0) {
        echo " - " . mcPrepareRatingStars($current->getRatings());
    }
    echo "</td>";
    $count++;
    if ($count % 2 == 0) {
        echo "</tr><tr>";
    }
}
?>
</tr></table>
</center>
<P>