\Lang\gettext('Index'),
'Rank' => \Lang\gettext('排名'),
'Name1' => \Lang\gettext('玩家'),
'ID' => \Lang\gettext('ID'),
'ID2' => \Lang\gettext('ID2'),
'Name2' => \Lang\gettext('账号'),
'Type2' => \Lang\gettext('职业'),
'CmpValue' => \Lang\gettext('比较值1'),
'CmpValue2' => \Lang\gettext('比较值2'),
'CmpValue3' => \Lang\gettext('更新时间'),
'Value1' => \Lang\gettext('其他值1'),
'Value2' => \Lang\gettext('其他值2'),
'Value3' => \Lang\gettext('其他值3'),
'Value4' => \Lang\gettext('其他值4'),
'Value5' => \Lang\gettext('其他值5'),
'Value6' => \Lang\gettext('其他值6'),
'Value7' => \Lang\gettext('其他值7'),
'Value8' => \Lang\gettext('其他值8'),
);
$billboardCh = GetbillboardCh();
$bbName = "";
$bbType = null;
$groupList = array();
$dataTotalDict = array();
$resultList = array();
$groupValue1 = null;
$groupValue2 = null;
$dataTotal = null;
$groupValueMark = "";
if ($ResultMsg) {
$bbType = $ResultMsg["billboardType"];
$groupList = $ResultMsg["groupList"];
$dataTotalDict = $ResultMsg["dataTotalDict"];
$resultList = $ResultMsg["billboardInfo"];
$groupValue1 = $ResultMsg["groupValue1"];
$groupValue2 = $ResultMsg["groupValue2"];
$dataTotal = $ResultMsg["dataTotal"];
$billboardKeyChPri = $billboardCh[$bbType];
$billboardKeyChPri = array_key_exists($bbType, $billboardCh) ? $billboardCh[$bbType] : array();
$bbName = $billboardKeyChPri['BBName'];
$groupValueMark = $billboardKeyChPri['GroupValueMark'];
}
$groupCount = count($groupList);
$retCount = count($resultList);
$cmpValue3CalcTime = 3786883200; //2090-01-01 00:00:00 的时间戳,用于存比较值3更新时间的计算值
function cmp($a, $b)
{
if ($a[1] == $b[1]) {
if ($a[2] == $b[2]) {
return 0;
}
return ($a[2] < $b[2]) ? -1 : 1;
}
return ($a[1] < $b[1]) ? -1 : 1;
}
if ($groupList) {
usort($groupList, 'cmp');
}
?>
| " . $keyCh . " | "; } echo "|
| " . ($dataInfo["Index"] ? $dataInfo["Index"] : 0) . " | "; foreach ($billboardKeyCh as $key => $value) { if ($key == "Index") { continue; } // 没有指定要显示的key if (($key == "CmpValue2" or \CommFunc\startsWith($key, "Value")) and !array_key_exists($key, $billboardKeyChPri)) { continue; } $widgetName = "lab" . $key . $i; $tdContent = $dataInfo[$key]; if ($key == "CmpValue3" and !array_key_exists($key, $billboardKeyChPri)) { $updTime = $cmpValue3CalcTime - $tdContent; $tdContent = date("Y-m-d H:i:s", $updTime); // 更新数据时间 } $tdContent = '' . $tdContent . ''; if ($key == "Name1" || $key == "Name2") { $align = "left"; } else { $align = "center"; } echo "" . $tdContent . " | "; } echo "