示例#1
0
	
		if (toc && toggleLink && toc.style.display == \'none\') {
			changeText(toggleLink, tocHideText);
			toc.style.display = \'block\';
		} else {
			changeText(toggleLink, tocShowText);
			toc.style.display = \'none\';
		}
	}
}

var tocShowText = "' . _('show') . '";
var tocHideText = "' . _('hide') . '";

</script>';
$entry_log = getEntryLog($entry['entry_id'], true);
echo '<br><br><table>' . chr(10);
echo ' <tr>' . chr(10);
echo '  <td><b>' . _('Revision') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Time') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Action') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Who') . '</b></td>' . chr(10);
echo '  <td><b>' . _('What') . '</b></td>' . chr(10);
echo ' </tr>' . chr(10);
foreach ($entry_log as $thislog) {
    echo ' <tr>' . chr(10);
    echo '  <td><b>' . $thislog['rev_num'] . '</td>' . chr(10);
    echo '  <td>' . str_replace(" ", "&nbsp;", date('Y-m-d H:i:s', $thislog['log_time'])) . '</td>' . chr(10);
    // Action
    echo '  <td>' . str_replace(" ", "&nbsp;", printEntryLog($thislog, false, true)) . '</td>' . chr(10);
    // Who
示例#2
0
echo ' <tr>' . chr(10);
echo '  <td><b>' . _('Entry id') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Entry name') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Last change') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Changed by') . '</b></td>' . chr(10);
echo '  <td><b>' . _('Last action') . '</b></td>' . chr(10);
echo ' </tr>' . chr(10);
while ($R_entry = mysql_fetch_assoc($Q_entries)) {
    // Getting last change
    $Q_log = mysql_query("select log_id from `entry_log` where entry_id = '" . $R_entry['entry_id'] . "' order by `rev_num` desc limit 1");
    if (mysql_num_rows($Q_log)) {
        $log_id = mysql_result($Q_log, 0, 'log_id');
    } else {
        $log_id = 0;
    }
    $log = getEntryLog($log_id);
    $user = getUser($R_entry['user_last_edit']);
    if (!isset($user['user_name'])) {
        $user['user_name'] = _('Not found');
    }
    // Seen all?
    if (isset($_GET['seen_all'])) {
        readEntry($R_entry['entry_id'], $R_entry['rev_num']);
    }
    // Checking if you have read the entry
    $Q_read = mysql_query("select read_id from `entry_read` where user_id = '" . $login['user_id'] . "' and entry_id = '" . $R_entry['entry_id'] . "' and rev_num = '" . $R_entry['rev_num'] . "'");
    if (mysql_num_rows($Q_read)) {
        $color = 'black';
        $color2 = 'white';
    } elseif (count($log) && $log['log_action'] == 'edit') {
        $color = 'white';