예제 #1
0
    $links[$title] = "";
}
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
echo HTML::breadcrumb($links, "icon icon_log");
unset($links);
if ($day) {
    LogStats::hourly($table, $year, $month, $day);
} elseif ($month) {
    LogStats::daily($table, $year, $month);
} elseif ($year) {
    LogStats::monthly($table, $year);
} else {
    LogStats::yearly($table);
}
if ($table == 'record') {
    include_once "../model/Query/Page/Record.php";
    $logQ = new Query_Page_Record();
} else {
    include_once "../model/Query/Page/Access.php";
    $logQ = new Query_Page_Access();
    $profiles = array(OPEN_PROFILE_ADMINISTRATOR => _("Administrator"), OPEN_PROFILE_ADMINISTRATIVE => _("Administrative"), OPEN_PROFILE_DOCTOR => _("Doctor"));
}
if (!$logQ->select($year, $month, $day)) {
    $logQ->close();
    echo Msg::info(_("No logs in this date."));
    include_once "../layout/footer.php";
    exit;
}
예제 #2
0
 * @since     0.4
 */
/**
 * Controlling vars
 */
$tab = "admin";
$nav = "logs";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_ADMINISTRATOR, false);
// There are not logs in demo version
/**
 * Show page
 */
$title = _("Log Statistics");
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_log");
unset($links);
echo HTML::section(2, HTML::link(_("Access Logs"), '../admin/log_list.php', array('table' => 'access')), array('class' => 'icon icon_log'));
require_once "../lib/LogStats.php";
LogStats::summary('access');
echo HTML::rule();
echo HTML::section(2, HTML::link(_("Record Logs"), '../admin/log_list.php', array('table' => 'record')), array('class' => 'icon icon_log'));
LogStats::summary('record');
require_once "../layout/footer.php";