echo gettext('Choose which type of log/file you want to view.');
?>
				</td>
			</tr>
			<tr>
				<td width="22%" class="vncell"><?php 
echo gettext('Log/File selection:');
?>
</td>
				<td width="78%" class="vtable">
					<select name="logFile" id="logFile" class="formselect" onChange="loadFile();">
			<?php 
if (isset($pfb_logtypes[$logtypeid]['logs'])) {
    $logs = $pfb_logtypes[$logtypeid]['logs'];
} else {
    $logs = getlogs($pfb_logtypes[$logtypeid]['logdir'], $pfb_logtypes[$logtypeid]['ext']);
}
foreach ($logs as $log) {
    $selected = '';
    if ($log == $pfb_logfilename) {
        $selected = ' selected';
    }
    echo "<option value='" . $pfb_logtypes[$logtypeid]['logdir'] . $log . "'" . $selected . ">" . $log . "</option>\n";
}
?>
					</select>&emsp;<?php 
echo gettext('Choose which log/file you want to view.');
?>
				</td>
			</tr>
			<tr>
Пример #2
0
<?php 
include 'menu.php';
?>
<hr />

<?php 
foreach ($pkglist as $pkg) {
    print_links($pkg);
}
echo "</div>\n";
echo "<div id=\"main\">";
if (isset($_GET['pkg'])) {
    if (!in_array($_GET['pkg'], $pkglist)) {
        echo "<p> Invalid benchmark! </p>\n";
    } else {
        getlogs($_GET['pkg']);
    }
    //  printf("<p><br />IN SUMMARY: <br />TOTAL EXACT FIELD MATCH STRUCTURES: %d OUT OF %d : %0.2f%s<br />", $total_exact_hits, $total_exact, ($total_exact_hits*100.0/$total_exact), "%");
    //  printf("TOTAL NON_OBJECT STRUCTURES: %d OUT OF %d : %0.2f%s<br />", $total_nonobject_hits, $total_nonobject,  ($total_nonobject_hits*100.0/$total_nonobject), "%");
    //  printf("TOTAL OBJECT STRUCTURES: %d OUT OF %d : %0.2f%s<br />", $total_object_hits, $total_object, ($total_object_hits*100.0/$total_object) ,"%");
    echo "<p>TOTAL PACKAGES: ", count($pkglist), "<br /></p>";
} else {
    if (isset($_GET['log'])) {
        print_raw_logs($_GET['log']);
    }
}
echo "</div>";
function print_links($pkg_name)
{
    echo "<a href=\"?pkg=", $pkg_name, "\" >", $pkg_name, "</a><br />\n";
}
Пример #3
0
}
$sql .= " order by id desc limit " . $bgpos . "," . $pagesize;
$result = $db->query($sql);
if ($db->num_rows($result) > 0) {
    while ($rs = $db->fetch_array($result)) {
        echo '
          <tr>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
              <div align="center">';
        echo $rs["id"];
        echo '</div>
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">';
        echo $rs["admin"];
        echo '</span></div></td>      <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">';
        echo getlogs($rs["type"]);
        echo '</span></div></td>     <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">';
        echo $rs["memo"];
        echo '</span></div></td>
             <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">';
        echo date("Y-m-d H:i:s", $rs["addtime"]);
        echo '</span></div></td>
              <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">';
        echo $rs["ip"];
        echo '</span></div></td>
            <!--<td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE4"><a href="?action=del&id=';
        echo $rs["id"];
        echo '&pageno=';
        echo $pageno;
        echo '" onClick="return confirm(\'确定删除?\');">删除</a></span></div></td>-->
          </tr>