コード例 #1
0
	<div id='logoff'>
		<a href="index.php?logoff=1"></a>
	</div>
</div>
<ul>
	<li><a href="view.php">view</a></li>
	<li><a href="edit.php" class='selected'>edit</a></li>
</ul>

</div>
<div class="hline"></div>
<div class="admin-content"><?php 
if ($name) {
    echo "<div class='admin-nav'>\n";
    echo "<H2>Edit asset: <strong>{$name}</strong></H2>\n";
    $records = StaticAsset::getAllStaticAssetsByName($name);
    if ($records) {
        echo "<h3>history:</h3>\n<table>\n";
        $firsttime = true;
        foreach ($records as $StaticAsset) {
            echo "<tr><td class='label'>\n<a href='" . $_SERVER['PHP_SELF'] . "?name={$name}&init=" . $StaticAsset[0] . "'>" . $StaticAsset[2] . "</a></td>\n";
            if ($firsttime) {
                $firsttime = false;
                echo "<td>&nbsp;</td>";
            } else {
                echo "<td><a class='delete' href='" . $_SERVER['PHP_SELF'] . "?name={$name}&delete=" . $StaticAsset[0] . "'></a></td>";
            }
            echo "</tr>\n";
        }
        echo "</table>\n";
    }