示例#1
0
function GetTongItemLog($var, $gm)
{
    global $tbl_sys_msg, $page_main, $tbl_tong_depot_log, $tbl_tong_pos;
    $server_id = $var["serverid"];
    $tong_name = $var["tong_name"];
    LastLogTime();
    $qs = "select t_uId from tbl_tong where t_sName = '{$tong_name}'";
    $rs = MySQLQuery($qs, "Game", $server_id);
    if ($row = mysql_fetch_row($rs)) {
        $tong_id = $row[0];
    } else {
        PrintNotice($tbl_sys_msg["nobody"]);
        return false;
    }
    echo "<table class='list_table'>\n";
    printf("<tr><th style='width:120px;'>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th></tr>\n", $tbl_sys_msg["time"], $page_main["type"], $page_main["item"], $page_main["number"], $page_main["role_name"] . "(" . $page_main["position"] . ")");
    $qs = "select le.le_dtDateTime, ltd.ltd_uType, lis.lis_sName, ltd.ltd_uExecutorId, ltd.ltd_uExecutorPosition, count(*) ";
    $qs .= "from tbl_log_tong_depot ltd, tbl_log_event le, tbl_log_item_static lis ";
    $qs .= "where ltd.le_uId = le.le_uId and ltd.lis_uId = lis.lis_uId and ";
    $qs .= "lts_uId = {$tong_id}" . getDateLimit($var, $server_id) . " ";
    $qs .= "group by le.le_dtDateTime, lis.lis_sName, ltd.ltd_uExecutorId";
    $result = MySQLQuery($qs, "Log", $server_id);
    while ($row = mysql_fetch_row($result)) {
        if ($row[3] == 0) {
            $role_name = $tbl_sys_msg["admin"];
        } else {
            $role_name = GetRoleName($row[3], $server_id);
        }
        if ($row[4] == 0) {
            $position = $tbl_sys_msg["admin"];
        } else {
            $position = $tbl_tong_pos[$row[4]];
        }
        printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $row[0], $tbl_tong_depot_log[$row[1]], Lan_Item_GetDisplayName(Local2UTF8($row[2])), $row[5], $role_name . "(" . $position . ")");
    }
    echo "</table>\n";
    return true;
}
示例#2
0
function GetTongLog_Boss($var, $gm)
{
    global $tbl_sys_msg, $page_main, $tbl_tong_msg;
    $boss_name = $var["boss_name"];
    $serverid = $var["serverid"];
    LastLogTime();
    $query = "select le.le_dtDateTime, lpt.lcs_uId from tbl_log_event le, tbl_log_jifenpoint lj, tbl_log_player_taker lpt, tbl_log_event_type let where le.le_uId = lpt.le_uId and le.le_uId = lj.le_uId and le.le_uId = let.le_uId and let.let_uEventType = 137 and lj.lj_uPoint = {$boss_name} " . getDateLimit($var, $serverid);
    $rs = MySQLQuery($query, "Log", $serverid);
    echo "<table class='list_table'>\n";
    printf("<tr><th>%s</th><th>%s</th></tr>\n", $tbl_sys_msg["time"], $page_main["role_name"]);
    while ($row = mysql_fetch_row($rs)) {
        $role_name = GetRoleName($row[1], $serverid);
        printf("<tr><td>%s</td><td>%s</td></tr>\n", $row[0], $role_name);
    }
    echo "</table>\n";
    return true;
}
示例#3
0
function ShowPlayerLatency($var, $gm)
{
    LastLogTime();
    eachServer($var, $gm, "ShowPlayerLatency_fun");
    return true;
}