54 lines
1.8 KiB
Smarty
54 lines
1.8 KiB
Smarty
|
<div id="overview">
|
||
|
<form name="viewlog" method="post">
|
||
|
<select name="fDomain" onChange="this.form.submit()";>
|
||
|
<?php
|
||
|
$count = count($list_domains);
|
||
|
for ($i = 0; $i < $count; $i++) {
|
||
|
if ($fDomain == $list_domains[$i]) {
|
||
|
print "<option value=\"$list_domains[$i]\" selected>$list_domains[$i]</option>\n";
|
||
|
} else {
|
||
|
print "<option value=\"$list_domains[$i]\">$list_domains[$i]</option>\n";
|
||
|
}
|
||
|
}
|
||
|
?>
|
||
|
</select>
|
||
|
<input class="button" type="submit" name="go" value="<?php print $PALANG['pViewlog_button']; ?>" />
|
||
|
</form>
|
||
|
</div>
|
||
|
<?php
|
||
|
if (!empty($tLog)) {
|
||
|
$tLog_count = count($tLog);
|
||
|
if ($tLog_count > 0) {
|
||
|
print "<table id=\"log_table\">\n";
|
||
|
print " <tr>\n";
|
||
|
print " <td colspan=\"5\"><h3>".$PALANG['pViewlog_welcome']." ".$fDomain."</h3></td>\n";
|
||
|
print " </tr>\n";
|
||
|
print " <tr class=\"header\">\n";
|
||
|
print " <td>" . $PALANG['pViewlog_timestamp'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pViewlog_username'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pViewlog_domain'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pViewlog_action'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pViewlog_data'] . "</td>\n";
|
||
|
print " </tr>\n";
|
||
|
|
||
|
for ($i = 0; $i < $tLog_count; $i++) {
|
||
|
if ((is_array($tLog) and $tLog_count > 0)) {
|
||
|
$log_data = $tLog[$i]['data'];
|
||
|
$data_length = strlen($log_data);
|
||
|
if ($data_length > 35) $log_data = substr($log_data, 0, 35) . " ...";
|
||
|
|
||
|
print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
||
|
print " <td nowrap>" . $tLog[$i]['timestamp'] . "</td>\n";
|
||
|
print " <td nowrap>" . $tLog[$i]['username'] . "</td>\n";
|
||
|
print " <td nowrap>" . $tLog[$i]['domain'] . "</td>\n";
|
||
|
print " <td nowrap>" . $tLog[$i]['action'] . "</td>\n";
|
||
|
print " <td nowrap>" . $log_data . "</td>\n";
|
||
|
print " </tr>\n";
|
||
|
}
|
||
|
}
|
||
|
print "</table>\n";
|
||
|
print "<p />\n";
|
||
|
}
|
||
|
}
|
||
|
?>
|