|
زائر
رقـم العضويــة:
تاريخ التسجيل:
المشـــاركـات: n/a
الأوسمة
لتفعيل المواقع الإجتماعية قم بتعديل بياناتك
|
|
village2.phtml
كود PHP:
<?php
require_once(LANG_UI_PATH . "village2.php");
echo "<h1>";
echo $this->data['village_name'];
echo "</h1>\r\r<map name=\"map1\" id=\"map1\">\r\t<area href=\"build.php?id=40\" ";
echo $this->getBuildingTitle(40);
echo " coords=\"325,225,180\" shape=\"circle\">\r\t<area href=\"build.php?id=40\" ";
echo $this->getBuildingTitle(40);
echo " coords=\"220,230,185\" shape=\"circle\">\r</map>\r<map name=\"map2\" id=\"map2\">\r\t";
if ($this->data['is_special_village']) {
echo "<area href=\"build.php?id=25\" ";
echo $this->getBuildingTitle(25);
echo " coords=\"180,160,80\" shape=\"circle\">";
}
echo "\t\r\t<area href=\"build.php?id=19\" ";
echo $this->getBuildingTitle(19);
echo " coords=\"53,91,53,37,128,37,128,91,91,112\" shape=\"poly\">\r\t<area href=\"build.php?id=20\" ";
echo $this->getBuildingTitle(20);
echo " coords=\"136,66,136,12,211,12,211,66,174,87\" shape=\"poly\">\r\t<area href=\"build.php?id=21\" ";
echo $this->getBuildingTitle(21);
echo " coords=\"196,56,196,2,271,2,271,56,234,77\" shape=\"poly\">\r\t<area href=\"build.php?id=22\" ";
echo $this->getBuildingTitle(22);
echo " coords=\"270,69,270,15,345,15,345,69,308,90\" shape=\"poly\">\r\t<area href=\"build.php?id=23\" ";
echo $this->getBuildingTitle(23);
echo " coords=\"327,117,327,63,402,63,402,117,365,138\" shape=\"poly\">\r\t<area href=\"build.php?id=24\" ";
echo $this->getBuildingTitle(24);
echo " coords=\"14,129,14,75,89,75,89,129,52,150\" shape=\"poly\">\r\t";
if (!$this->data['is_special_village']) {
echo "<area href=\"build.php?id=25\" ";
echo $this->getBuildingTitle(25);
echo " coords=\"97,137,97,83,172,83,172,137,135,158\" shape=\"poly\">";
}
echo "\t";
if (!$this->data['is_special_village']) {
echo "<area href=\"build.php?id=26\" ";
echo $this->getBuildingTitle(26);
echo " coords=\"182,119,182,65,257,65,257,119,220,140\" shape=\"poly\">";
}
echo "\t<area href=\"build.php?id=27\" ";
echo $this->getBuildingTitle(27);
echo " coords=\"337,156,375,136,411,156,375,177\" shape=\"poly\">\r\t<area href=\"build.php?id=28\" ";
echo $this->getBuildingTitle(28);
echo " coords=\"2,199,2,145,77,145,77,199,40,220\" shape=\"poly\">\r\t";
if (!$this->data['is_special_village']) {
echo "<area href=\"build.php?id=29\" ";
echo $this->getBuildingTitle(29);
echo " coords=\"129,164,129,110,204,110,204,164,167,185\" shape=\"poly\">";
}
echo "\t";
if (!$this->data['is_special_village']) {
echo "<area href=\"build.php?id=30\" ";
echo $this->getBuildingTitle(30);
echo " coords=\"92,189,92,135,167,135,167,189,130,210\" shape=\"poly\">";
}
echo "\t<area href=\"build.php?id=31\" ";
echo $this->getBuildingTitle(31);
echo " coords=\"342,216,380,196,416,216,380,237\" shape=\"poly\">\r\t<area href=\"build.php?id=32\" ";
echo $this->getBuildingTitle(32);
echo " coords=\"22,238,60,218,96,238,60,259\" shape=\"poly\">\r\t";
if (!$this->data['is_special_village']) {
echo "<area href=\"build.php?id=33\" ";
echo $this->getBuildingTitle(33);
echo " coords=\"167,232,205,212,241,232,205,253\" shape=\"poly\">";
}
echo "\t<area href=\"build.php?id=34\" ";
echo $this->getBuildingTitle(34);
echo " coords=\"290,251,328,231,364,251,328,272\" shape=\"poly\">\r\t<area href=\"build.php?id=35\" ";
echo $this->getBuildingTitle(35);
echo " coords=\"95,273,133,253,169,273,133,294\" shape=\"poly\">\r\t<area href=\"build.php?id=36\" ";
echo $this->getBuildingTitle(36);
echo " coords=\"222,284,260,264,296,284,260,305\" shape=\"poly\">\r\t<area href=\"build.php?id=37\" ";
echo $this->getBuildingTitle(37);
echo " coords=\"80,306,118,286,154,306,118,327\" shape=\"poly\">\r\t<area href=\"build.php?id=38\" ";
echo $this->getBuildingTitle(38);
echo " coords=\"199,316,237,296,273,316,237,337\" shape=\"poly\">\r\t<area href=\"build.php?id=39\" ";
echo $this->getBuildingTitle(39);
echo " coords=\"270,158,303,135,316,155,318,178,304,211,288,227,263,238,250,215\" shape=\"poly\">\r\t<area href=\"build.php?id=40\" ";
echo $this->getBuildingTitle(40);
echo " coords=\"312,338,347,338,377,320,406,288,421,262,421,222,396,275,360,311\" shape=\"poly\">\r\t<area href=\"build.php?id=40\" ";
echo $this->getBuildingTitle(40);
echo " coords=\"49,338,0,274,0,240,33,286,88,338\" shape=\"poly\">\r\t<area href=\"build.php?id=40\" ";
echo $this->getBuildingTitle(40);
echo " coords=\"0,144,34,88,93,39,181,15,252,15,305,31,358,63,402,106,421,151,421,93,378,47,280,0,175,0,78,28,0,92\" shape=\"poly\">\r</map>\r\r<div id=\"village_map\" class=\"";
echo $this->getWallCssName();
echo "\">\r\t";
if ($this->data['is_special_village'] && $this->buildings[25]['item_id'] == 40) {
echo "<img src=\"assets/x.gif\" class=\"";
echo $this->getBuildingTitleClass(25);
echo "\" style=\"position:absolute; z-index:20; left:161px;\" width=\"214\">";
}
echo "\t\r\t<img src=\"assets/x.gif\" class=\"building d1 ";
echo $this->getBuildingTitleClass(19);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d2 ";
echo $this->getBuildingTitleClass(20);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d3 ";
echo $this->getBuildingTitleClass(21);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d4 ";
echo $this->getBuildingTitleClass(22);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d5 ";
echo $this->getBuildingTitleClass(23);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d6 ";
echo $this->getBuildingTitleClass(24);
echo "\">\r\t";
if (!$this->data['is_special_village']) {
echo "<img src=\"assets/x.gif\" class=\"building d7 ";
echo $this->getBuildingTitleClass(25);
echo "\">";
}
echo "\t";
if (!$this->data['is_special_village']) {
echo "<img src=\"assets/x.gif\" class=\"building d8 ";
echo $this->getBuildingTitleClass(26);
echo "\">";
}
echo "\t<img src=\"assets/x.gif\" class=\"building d9 ";
echo $this->getBuildingTitleClass(27);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d10 ";
echo $this->getBuildingTitleClass(28);
echo "\">\r\t";
if (!$this->data['is_special_village']) {
echo "<img src=\"assets/x.gif\" class=\"building d11 ";
echo $this->getBuildingTitleClass(29);
echo "\">";
}
echo "\t";
if (!$this->data['is_special_village']) {
echo "<img src=\"assets/x.gif\" class=\"building d12 ";
echo $this->getBuildingTitleClass(30);
echo "\">";
}
echo "\t<img src=\"assets/x.gif\" class=\"building d13 ";
echo $this->getBuildingTitleClass(31);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d14 ";
echo $this->getBuildingTitleClass(32);
echo "\">\r\t";
if (!$this->data['is_special_village']) {
echo "<img src=\"assets/x.gif\" class=\"building d15 ";
echo $this->getBuildingTitleClass(33);
echo "\">";
}
echo "\t<img src=\"assets/x.gif\" class=\"building d16 ";
echo $this->getBuildingTitleClass(34);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d17 ";
echo $this->getBuildingTitleClass(35);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d18 ";
echo $this->getBuildingTitleClass(36);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d19 ";
echo $this->getBuildingTitleClass(37);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"building d20 ";
echo $this->getBuildingTitleClass(38);
echo "\">\r\t<img src=\"assets/x.gif\" class=\"dx1 ";
echo $this->getBuildingTitleClass(39);
echo "\">\r\t<div id=\"levels\" class=\"";
echo $this->showLevelsStr;
echo "\">\r\t";
$i = 0;
foreach ($this->buildings as $id => $build) {
if ($id < 19) {
continue;
}
++$i;
if ($this->data['is_special_village'] && ($id == 25 || $id == 26 || $id == 29 || $id == 30 || $id == 33)) {
continue;
}
if (0 < $build['level'] || 0 < $build['update_state']) {
$cssClass = $id == 39 || $id == 40 ? "l" . $id : "d" . $i;
echo "<div class=\"" . $cssClass . "\">" . $build['level'] . "</div>";
}
}
echo "\t</div>\r\t<img class=\"map1\" usemap=\"#map1\" src=\"assets/x.gif\" alt=\"\">\r\t<img class=\"map2\" usemap=\"#map2\" src=\"assets/x.gif\" alt=\"\">\r</div>\r<img src=\"assets/x.gif\" id=\"lswitch\" class=\"";
echo $this->showLevelsStr;
echo "\" onclick=\"toggleLevels()\" alt=\"\">\r";
if (isset($this->queueModel->tasksInQueue[QS_BUILD_CREATEUPGRADE])) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"building_contract\">\r\t<thead>\r\t\t<tr><th colspan=\"3\">\r\t\t\t";
echo LANGUI_VIL2_T3;
echo ":\r\t\t\t";
if (!$this->data['is_special_village'] && $this->gameMetadata['plusTable'][5]['cost'] <= $this->data['gold_num']) {
echo "\t\t\t<a href=\"village2.php?bfs&k=";
echo $this->data['update_key'];
echo "\" title=\"";
echo LANGUI_VIL2_T1;
echo "\">\r\t\t\t<img class=\"clock\" alt=\"";
echo LANGUI_VIL2_T1;
echo "\" src=\"assets/x.gif\"></a>\r\t\t\t";
}
echo "\t\t</th></tr>\r\t</thead>\r\t<tbody>\r\t\t";
$tmpBuilding = array();
foreach ($this->queueModel->tasksInQueue[QS_BUILD_CREATEUPGRADE] as $qtask) {
$index = $qtask['proc_params'];
$itemId = $qtask['building_id'];
if (!isset($tmpBuilding[$index])) {
$tmpBuilding[$index] = 0;
}
++$tmpBuilding[$index];
$level = $this->buildings[$index]['level'] + $tmpBuilding[$index];
echo "\t\t<tr>\r\t\t\t<td class=\"ico\"><a href=\"?id=";
echo $qtask['id'];
echo "&d&k=";
echo $this->data['update_key'];
echo "\"><img src=\"assets/x.gif\" class=\"del\" title=\"";
echo LANGUI_VIL2_T2;
echo "\" alt=\"";
echo LANGUI_VIL2_T2;
echo "\"></a></td>\r\t\t\t<td>";
echo constant("item_" . $itemId);
echo " (";
echo level_lang;
echo " ";
echo $level;
echo ")</td>\r\t\t\t<td>";
echo time_remain_lang;
echo " ";
echo "<s";
echo "pan id=\"timer1\">";
echo WebHelper::secondstostring($qtask['remainingSeconds']);
echo "</span> ";
echo time_hour_lang;
echo "</td>\r\t\t</tr>\r\t\t";
}
unset($tmpBuilding);
echo "\t</tbody>\r</table>\r";
}
echo "<p></p><p></p>";
?>
village3.phtml
كود PHP:
<?php
require_once(LANG_UI_PATH . "village3.php");
if ($this->pageState == 1) {
echo "<h1>";
echo LANGUI_VIL3_T1;
echo " (";
echo $this->mapItemData['rel_x'];
echo "|";
echo $this->mapItemData['rel_y'];
echo ")</h1>\r";
$mdist = $this->setupMetadata['field_maps_summary'][$this->mapItemData['field_maps_id']];
$mdistArray = explode("-", $mdist);
echo "<img src=\"assets/x.gif\" id=\"detailed_map\" class=\"f";
echo $this->mapItemData['field_maps_id'];
echo "\" alt=\"";
echo $mdist;
echo "\" title=\"";
echo $mdist;
echo "\">\r<div id=\"map_details\">\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"distribution\" class=\"tableNone\">\r\t\t<thead>\r\t\t\t<tr><th colspan=\"3\">";
echo LANGUI_VIL3_T2;
echo ":</th></tr>\r\t\t</thead>\r\t\t<tbody>\r\t\t\t<tr>\r\t\t\t\t<td class=\"ico\"><img class=\"r1\" src=\"assets/x.gif\" alt=\"";
echo item_title_1;
echo "\" title=\"";
echo item_title_1;
echo "\"></td>\r\t\t\t\t<td class=\"val\">";
echo $mdistArray[0];
echo "</td>\r\t\t\t\t<td class=\"desc\">";
echo LANGUI_VIL3_T3;
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<td class=\"ico\"><img class=\"r2\" src=\"assets/x.gif\" alt=\"";
echo item_title_2;
echo "\" title=\"";
echo item_title_2;
echo "\"></td>\r\t\t\t\t<td class=\"val\">";
echo $mdistArray[1];
echo "</td>\r\t\t\t\t<td class=\"desc\">";
echo LANGUI_VIL3_T4;
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<td class=\"ico\"><img class=\"r3\" src=\"assets/x.gif\" alt=\"";
echo item_title_3;
echo "\" title=\"";
echo item_title_3;
echo "\"></td>\r\t\t\t\t<td class=\"val\">";
echo $mdistArray[2];
echo "</td>\r\t\t\t\t<td class=\"desc\">";
echo LANGUI_VIL3_T5;
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<td class=\"ico\"><img class=\"r4\" src=\"assets/x.gif\" alt=\"";
echo item_title_4;
echo "\" title=\"";
echo item_title_4;
echo "\"></td>\r\t\t\t\t<td class=\"val\">";
echo $mdistArray[3];
echo "</td>\r\t\t\t\t<td class=\"desc\">";
echo LANGUI_VIL3_T6;
echo "</td>\r\t\t\t</tr>\r\t\t</tbody>\r\t</table>\r</div>\r\r<table cellpadding=\"1\" cellspacing=\"1\" id=\"options\" class=\"tableNone\">\r\t<thead>\r\t\t<tr><th>";
echo LANGUI_VIL3_T7;
echo ":</th></tr>\r\t</thead>\r\t<tbody>\r\t\t<tr><td><a href=\"map.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T8;
echo "</a></td></tr>\r";
$builderTroopId = 10;
switch ($this->data['tribe_id']) {
case 2:
$builderTroopId = 20;
break;
case 3:
$builderTroopId = 30;
break;
case 6:
$builderTroopId = 60;
break;
case 7:
$builderTroopId = 109;
}
if ($this->itemTroops[$builderTroopId] < 3) {
echo "\t\t<tr><td class=\"none\">";
echo LANGUI_VIL3_T9;
echo " (";
echo $this->itemTroops[$builderTroopId];
echo LANGUI_VIL3_T10;
echo ")</td></tr>\r";
} else {
echo "\t\t<tr><td><a href=\"v2v.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T9;
echo "</a></td></tr>\r";
}
echo "\t</tbody>\r</table>\r";
} else if ($this->pageState == 2) {
echo "<h1><div>";
echo $this->mapItemData['village_name'];
echo "</div> (";
echo $this->mapItemData['rel_x'];
echo "|";
echo $this->mapItemData['rel_y'];
echo ")</h1>\r";
if ($this->mapItemData['is_capital']) {
echo "<div id=\"dmain\">(";
echo LANGUI_VIL3_T11;
echo ")</div>";
}
$mdist = $this->setupMetadata['field_maps_summary'][$this->mapItemData['field_maps_id']];
$mdistArray = explode("-", $mdist);
echo "<img src=\"assets/x.gif\" id=\"detailed_map\" class=\"f";
echo $this->mapItemData['field_maps_id'];
echo "\" alt=\"";
echo $mdist;
echo "\" title=\"";
echo $mdist;
echo "\">\r\r<div id=\"map_details\">\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"village_info\" class=\"tableNone\">\r\t\t<tbody>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T12;
echo ":</th>\r\t\t\t\t<td>";
echo constant("tribe_" . $this->mapItemData['tribe_id']);
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T13;
echo ":</th>\r\t\t\t\t<td>";
if (0 < intval($this->mapItemData['alliance_id'])) {
echo "<a href=\"alliance.php?id=";
echo $this->mapItemData['alliance_id'];
echo "\">";
echo $this->mapItemData['alliance_name'];
echo "</a>";
}
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T14;
echo ":</th>\r\t\t\t\t<td><a href=\"profile.php?uid=";
echo $this->mapItemData['player_id'];
echo "\">";
echo $this->mapItemData['player_name'];
echo "</a></td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T15;
echo ":</th>\r\t\t\t\t<td>";
echo $this->mapItemData['people_count'];
echo "</td>\r\t\t\t</tr>\r\t\t</tbody>\r\t</table>\r\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"troop_info\" class=\"tableNone rep\">\r\t\t<thead>\r\t\t\t<tr><th>";
echo LANGUI_VIL3_T16;
echo ":</th></tr>\r\t\t</thead>\r\t\t<tbody>\r\t\t";
$c = 0;
while ($this->lastReport != NULL && $this->lastReport->next()) {
++$c;
$isAttack = $this->lastReport->row['isAttack'];
$rptRelativeResult = ReportHelper::getreportresultrelative($this->lastReport->row['rpt_result'], $isAttack);
$btext = ReportHelper::getreportresulttext($rptRelativeResult);
$_rptResultCss = $rptRelativeResult == 100 ? 10 : $rptRelativeResult;
echo "\t\t<tr><td><img src=\"assets/x.gif\" class=\"iReport iReport";
echo $_rptResultCss;
echo "\" alt=\"";
echo $btext;
echo "\" title=\"";
echo $btext;
echo "\"> <a href=\"report.php?id=";
echo $this->lastReport->row['id'];
echo "\" title=\"";
echo $this->lastReport->row['mtime'];
echo "\">";
echo $this->lastReport->row['mdate'];
echo "</a></td></tr>\r\t\t";
}
if ($c == 0) {
echo "\t\t<tr><td>";
echo LANGUI_VIL3_T17;
echo "</td></tr>\r\t\t";
}
echo "\t\t</tbody>\r\t</table>\r</div>\r\r<table cellpadding=\"1\" cellspacing=\"1\" id=\"options\" class=\"tableNone\">\r\t<thead>\r\t\t<tr><th>";
echo LANGUI_VIL3_T7;
echo ":</th></tr>\r\t</thead>\r\t<tbody>\r\t\t<tr><td><a href=\"map.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T8;
echo "</a></td></tr>\r";
if ($this->mapItemData['id'] != $this->data['selected_village_id']) {
echo "\t\t";
if ($this->hasRallyPoint) {
echo "\t\t<tr>";
if ($this->mapItemData['playerType'] == PLAYERTYPE_ADMIN) {
echo "<td class=\"none\">";
echo LANGUI_VIL3_T18;
} else {
echo "<td><a href=\"v2v.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T19;
echo "</a>";
}
echo "</td></tr>\r\t\t";
} else {
echo "\t\t<tr><td class=\"none\">";
echo LANGUI_VIL3_T20;
echo "</td></tr>\r\t\t";
}
echo "\t\t";
if ($this->hasMarketplace) {
echo "\t\t<tr>";
if ($this->mapItemData['playerType'] == PLAYERTYPE_ADMIN) {
echo "<td class=\"none\">";
echo LANGUI_VIL3_T21;
} else {
echo "<td><a class=\"\" href=\"build.php?bid=17&vid2=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T22;
echo "</a>";
}
echo "</td></tr>\r\t\t";
} else {
echo "\t\t<tr><td class=\"none\">";
echo LANGUI_VIL3_T23;
echo "</td></tr>\r\t\t";
}
}
echo "\t</tbody>\r</table>\r";
} else if ($this->pageState == 3) {
echo "<h1>";
echo LANGUI_VIL3_T24;
echo " (";
echo $this->mapItemData['rel_x'];
echo "|";
echo $this->mapItemData['rel_y'];
echo ")";
if ($this->mapItemData['player_id'] == $this->player->playerId && $this->mapItemData['allegiance_percent'] < 100) {
echo "<div id=\"loyality\" class=\"";
echo $this->mapItemData['allegiance_percent'] <= 60 ? "re" : "gr";
echo "\">";
echo LANGUI_VIL3_T25;
echo " ";
echo $this->mapItemData['allegiance_percent'];
echo "%</div>";
}
echo "</h1>\r";
$oid = $this->setupMetadata['oasis'][$this->mapItemData['image_num']];
$str = "";
foreach ($oid as $k => $v) {
if ($str != "") {
$str .= PHP_EOL . " " . text_and_lang . " ";
}
$str .= LANGUI_VIL3_T26 . " " . constant("item_title_" . $k) . " " . $v . "%";
}
$str .= " " . LANGUI_VIL3_T27;
echo "<img src=\"assets/x.gif\" id=\"detailed_map\" class=\"w";
echo $this->mapItemData['image_num'];
echo "\" alt=\"";
echo $str;
echo "\" title=\"";
echo $str;
echo "\">\r\r<div id=\"map_details\">\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"village_info\" class=\"tableNone\">\r\t\t<tbody>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T12;
echo ":</th>\r\t\t\t\t<td>";
echo constant("tribe_" . $this->mapItemData['tribe_id']);
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T13;
echo ":</th>\r\t\t\t\t<td>";
if (0 < intval($this->mapItemData['alliance_id'])) {
echo "<a href=\"alliance.php?id=";
echo $this->mapItemData['alliance_id'];
echo "\">";
echo $this->mapItemData['alliance_name'];
echo "</a>";
}
echo "</td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T14;
echo ":</th>\r\t\t\t\t<td><a href=\"profile.php?uid=";
echo $this->mapItemData['player_id'];
echo "\">";
echo $this->mapItemData['player_name'];
echo "</a></td>\r\t\t\t</tr>\r\t\t\t<tr>\r\t\t\t\t<th>";
echo LANGUI_VIL3_T28;
echo ":</th>\r\t\t\t\t<td><a href=\"village3.php?id=";
echo $this->mapItemData['parent_id'];
echo "\">";
echo $this->mapItemData['village_name'];
echo "</a></td>\r\t\t\t</tr>\r\t\t</tbody>\r\t</table>\r\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"troop_info\" class=\"tableNone rep\">\r\t\t<thead>\r\t\t\t<tr><th>";
echo LANGUI_VIL3_T16;
echo ":</th></tr>\r\t\t</thead>\r\t\t<tbody>\r\t\t";
$c = 0;
while ($this->lastReport != NULL && $this->lastReport->next()) {
++$c;
$isAttack = $this->lastReport->row['isAttack'];
$rptRelativeResult = ReportHelper::getreportresultrelative($this->lastReport->row['rpt_result'], $isAttack);
$btext = ReportHelper::getreportresulttext($rptRelativeResult);
$_rptResultCss = $rptRelativeResult == 100 ? 10 : $rptRelativeResult;
echo "\t\t<tr><td><img src=\"assets/x.gif\" class=\"iReport iReport";
echo $_rptResultCss;
echo "\" alt=\"";
echo $btext;
echo "\" title=\"";
echo $btext;
echo "\"> <a href=\"report.php?id=";
echo $this->lastReport->row['id'];
echo "\" title=\"";
echo $this->lastReport->row['mtime'];
echo "\">";
echo $this->lastReport->row['mdate'];
echo "</a></td></tr>\r\t\t";
}
if ($c == 0) {
echo "\t\t<tr><td>";
echo LANGUI_VIL3_T17;
echo "</td></tr>\r\t\t";
}
echo "\t\t</tbody>\r\t</table>\r</div>\r\r<table cellpadding=\"1\" cellspacing=\"1\" id=\"options\" class=\"tableNone\">\r\t<thead>\r\t\t<tr><th>";
echo LANGUI_VIL3_T7;
echo ":</th></tr>\r\t</thead>\r\t<tbody>\r\t\t<tr><td><a href=\"map.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T8;
echo "</a></td></tr>\r\t\t";
if ($this->hasRallyPoint) {
echo "\t\t<tr>";
if ($this->mapItemData['playerType'] == PLAYERTYPE_ADMIN) {
echo "<td class=\"none\">";
echo LANGUI_VIL3_T18;
} else {
echo "<td><a href=\"v2v.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T19;
echo "</a>";
}
echo "</td></tr>\r\t\t";
} else {
echo "\t\t<tr><td class=\"none\">";
echo LANGUI_VIL3_T20;
echo "</td></tr>\r\t\t";
}
echo "\t</tbody>\r</table>\r";
} else if ($this->pageState == 4) {
echo "<h1>";
echo LANGUI_VIL3_T29;
echo " (";
echo $this->mapItemData['rel_x'];
echo "|";
echo $this->mapItemData['rel_y'];
echo ")</h1>\r";
$oid = $this->setupMetadata['oasis'][$this->mapItemData['image_num']];
$str = "";
$formatedString = "";
foreach ($oid as $k => $v) {
if ($str != "") {
$str .= PHP_EOL . " " . text_and_lang . " ";
}
$curString = LANGUI_VIL3_T26 . " " . constant("item_title_" . $k) . " " . $v . "%";
$str .= $curString;
$formatedString .= "<li>" . $curString . " " . LANGUI_VIL3_T27 . "</li>";
}
$str .= " " . LANGUI_VIL3_T27;
$formatedString = "<ul>" . $formatedString . "</ul>";
echo "<img src=\"assets/x.gif\" id=\"detailed_map\" class=\"w";
echo $this->mapItemData['image_num'];
echo "\" alt=\"";
echo $str;
echo "\" title=\"";
echo $str;
echo "\">\r\r<div id=\"map_details\">\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"troop_info\" class=\"tableNone\">\r\t\t<thead>\r\t\t\t<tr><th colspan=\"3\">";
echo LANGUI_VIL3_T30;
echo ":</th></tr>\r\t\t</thead>\r\t\t<tbody>\r\t\t\t";
$_c = 0;
foreach ($this->itemTroops as $k => $v) {
if ($v <= 0) {
continue;
}
++$_c;
echo "\t\t\t<tr>\r\t\t\t\t<td class=\"ico\"><img class=\"unit u";
echo $k;
echo "\" src=\"assets/x.gif\" alt=\"";
echo htmlspecialchars(constant("troop_" . $k));
echo "\" title=\"";
echo htmlspecialchars(constant("troop_" . $k));
echo "\"></td>\r\t\t\t\t<td class=\"val\">";
echo $v;
echo "</td>\r\t\t\t\t<td class=\"desc\">";
echo constant("troop_" . $k);
echo "</td>\r\t\t\t</tr>\r\t\t\t";
}
echo "\t\t\t";
if ($_c == 0) {
echo "\t\t\t\t<tr><td>";
echo LANGUI_VIL3_T31;
echo "</td></tr>\r\t\t\t";
}
echo "\t\t</tbody>\r\t</table>\r\t\r\t<table cellpadding=\"1\" cellspacing=\"1\" id=\"troop_info\" class=\"tableNone\">\r\t\t<thead>\r\t\t\t<tr><th>";
echo LANGUI_VIL3_T32;
echo ":</th></tr>\r\t\t</thead>\r\t\t<tbody>\r\t\t\t<tr><td>";
echo $formatedString;
echo "</td></tr>\r\t\t</tbody>\r\t</table>\r</div>\r\r<table cellpadding=\"1\" cellspacing=\"1\" id=\"options\" class=\"tableNone\">\r\t<thead>\r\t\t<tr><th>";
echo LANGUI_VIL3_T7;
echo ":</th></tr>\r\t</thead>\r\t<tbody>\r\t\t<tr><td><a href=\"map.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T8;
echo "</a></td></tr>\r\t\t";
if ($this->hasRallyPoint) {
echo "\t\t<tr><td><a href=\"v2v.php?id=";
echo $this->mapItemData['id'];
echo "\">";
echo LANGUI_VIL3_T33;
echo "</a></td></tr>\r\t\t";
} else {
echo "\t\t<tr><td class=\"none\">";
echo LANGUI_VIL3_T34;
echo "</td></tr>\r\t\t";
}
echo "\t\t\r\t</tbody>\r</table>\r";
}
?>
training.phtml
كود PHP:
<?php
echo "";
require_once(LANG_UI_PATH . "training.php");
echo "<link rel=stylesheet type=\"text/css\" href=\"assets/un_main2_";
echo $this->appConfig['system']['lang'];
echo ".css";
echo $this->getAssetVersion();
echo "\"/>\r\n<br/><br/>\r\n<div id=\"lmid1\"> \r\n\t\t<div id=\"lmid2\"><div class=\"headline\"><h1>";
echo LANGUI_TRAINING_T23;
echo "</h1></div>\r\n\r\n";
if (!isset($_GET['t'])) {
echo "<div class=\"wholebox\"><h2>";
echo LANGUI_TRAINING_T24;
echo "</h2></div>\r\n<div class=\"wholebox\">\r\n\t<table id=\"tut_img\"><tr>\r\n\t<td><img src=\"assets/default/img/tut/dorf_klein.jpg\" width=\"200\" height=\"170\" alt=\"\"><br>";
echo LANGUI_TRAINING_T1;
echo "</td>\r\n\t<td><img src=\"assets/default/img/tut/dorf_gross.jpg\" width=\"200\" height=\"170\" alt=\"\"><br>";
echo LANGUI_TRAINING_T2;
echo "</td>\r\n\t</tr></table>\r\n\t<table id=\"tut_txt\"><tr>\r\n\t<td colspan=\"2\"><br>";
echo LANGUI_TRAINING_T3;
echo "</td>\r\n\t</tr></table>\r\n</div>\r\n<div class=\"wholebox\">\r\n\t<div id=\"tut_left\"><a href=\"index.php\">« ";
echo LANGUI_TRAINING_T4;
echo "</a></div>\r\n\t<div id=\"tut_right\"><a href=\"training.php?t=1\">";
echo LANGUI_TRAINING_T5;
echo " »</a></div>\r\n</div>\r\n\r\n";
} else if ($_GET['t'] == 1) {
echo "<div class=\"wholebox\"><h2>";
echo LANGUI_TRAINING_T25;
echo "</h2></div>\r\n<div class=\"wholebox\">\r\n\t<table id=\"tut_img\"><tr>\r\n\t\t<td><img src=\"assets/default/img/tut/rohstofffeld.gif\" width=\"200\" height=\"183\" alt=\"\"><br>";
echo LANGUI_TRAINING_T6;
echo "</td>\r\n\t\t<td><img src=\"assets/default/img/tut/rohstofffeld2.gif\" width=\"200\" height=\"183\" alt=\"\"><br>";
echo LANGUI_TRAINING_T7;
echo "</td>\r\n\t</tr></table>\r\n\t<table id=\"tut_txt\"><tr>\r\n\t\t<td colspan=\"2\"><br>";
echo LANGUI_TRAINING_T8;
echo "</td>\r\n\t</tr></table>\r\n</div>\r\n<div class=\"wholebox\">\r\n\t<div id=\"tut_left\"><a href=\"training.php\">« ";
echo LANGUI_TRAINING_T4;
echo "</a></div>\r\n\t<div id=\"tut_right\"><a href=\"training.php?t=2\">";
echo LANGUI_TRAINING_T5;
echo " »</a></div>\r\n</div>\r\n\r\n";
} else if ($_GET['t'] == 2) {
echo "<div class=\"wholebox\"><h2>";
echo LANGUI_TRAINING_T26;
echo "</h2></div>\r\n<div class=\"wholebox\">\r\n\t<table id=\"tut_img\"><tr>\r\n\t\t<td><img src=\"assets/default/img/tut/dorfzentrum1.gif\" width=\"200\" height=\"183\" alt=\"\"><br>";
echo LANGUI_TRAINING_T9;
echo "</td>\r\n\t\t<td><img src=\"assets/default/img/tut/dorfzentrum2.gif\" width=\"200\" height=\"183\" alt=\"\"><br>";
echo LANGUI_TRAINING_T10;
echo "</td>\r\n\t</tr></table>\r\n\t<table id=\"tut_txt\"><tr>\r\n\t\t<td colspan=\"2\"><br>";
echo LANGUI_TRAINING_T11;
echo "</td>\r\n\t</tr></table>\r\n</div>\r\n<div class=\"wholebox\">\r\n\t<div id=\"tut_left\"><a href=\"training.php?t=1\">« ";
echo LANGUI_TRAINING_T4;
echo "</a></div>\r\n\t<div id=\"tut_right\"><a href=\"training.php?t=3\">";
echo LANGUI_TRAINING_T5;
echo " »</a></div>\r\n</div>\r\n\r\n";
} else if ($_GET['t'] == 3) {
echo "<div class=\"wholebox\"><h2>";
echo LANGUI_TRAINING_T27;
echo "</h2></div>\r\n<div class=\"wholebox\">\r\n\t<table id=\"tut_img\"><tr>\r\n\t\t<td><img src=\"assets/default/img/tut/karte.jpg\" width=\"468\" height=\"200\" alt=\"\"><br>";
echo LANGUI_TRAINING_T12;
echo "</td>\r\n\t</tr></table>\r\n\t<table id=\"tut_txt\"><tr>\r\n\t\t<td colspan=\"2\">";
echo LANGUI_TRAINING_T13;
echo "</td>\r\n\t</tr></table>\r\n</div>\r\n<div class=\"wholebox\">\r\n\t<div id=\"tut_left\"><a href=\"training.php?t=2\">« ";
echo LANGUI_TRAINING_T4;
echo "</a></div>\r\n\t<div id=\"tut_right\"><a href=\"training.php?t=4\">";
echo LANGUI_TRAINING_T5;
echo " »</a></div>\r\n</div>\r\n\r\n";
} else if ($_GET['t'] == 4) {
echo "<div class=\"wholebox\"><h2>";
echo LANGUI_TRAINING_T28;
echo "</h2></div>\r\n<div class=\"wholebox\">\r\n\t<table id=\"tut_img\" style=\"height:40px;\"><tr>\r\n\t\t<td colspan=\"2\"><img src=\"assets/default/img/tut/navi.jpg\" width=\"468\" height=\"100\" alt=\"\"><br>";
echo LANGUI_TRAINING_T14;
echo "</td>\r\n\t</tr></table>\r\n\t<table id=\"tut_txt\"><tr>\r\n\t\t<td colspan=\"2\">\r\n\t\t\t<ol start=\"1\" type=\"1\" class=\"f10\">\r\n\t\t\t\t<li>";
echo LANGUI_TRAINING_T15;
echo "</li> \r\n\t\t\t\t<li>";
echo LANGUI_TRAINING_T16;
echo "</li> \r\n\t\t\t\t<li>";
echo LANGUI_TRAINING_T17;
echo "</li> \r\n\t\t\t\t<li>";
echo LANGUI_TRAINING_T18;
echo "</li> \r\n\t\t\t\t<li>";
echo LANGUI_TRAINING_T19;
echo "</li> \r\n\t\t\t\t<li>";
echo LANGUI_TRAINING_T20;
echo "</li>\r\n\t\t\t</ol>\r\n\t\t\t";
echo LANGUI_TRAINING_T21;
echo "</td>\r\n\t</tr></table>\r\n</div>\r\n<div class=\"wholebox\">\r\n\t<div id=\"tut_left\"><a href=\"training.php?t=3\">« ";
echo LANGUI_TRAINING_T4;
echo "</a></div>\r\n\t<div id=\"tut_right\"><a href=\"register.php\" id=\"link2\">";
echo LANGUI_TRAINING_T22;
echo " »</a></div>\r\n</div>\r\n";
}
echo "\r\n<div style=\"clear:both;\"></div>\r\n</div></div>";
?>
statistics.phtml
كود PHP:
<?php
require_once(LANG_UI_PATH . "statistics.php");
echo "<h1>";
echo LANGUI_STAT_T1;
echo "</h1>\r\n\r\n<div id=\"textmenu\">\r\n <a href=\"statistics.php\"";
if ($this->selectedTabIndex == 0 || $this->selectedTabIndex == 5 || $this->selectedTabIndex == 6 || $this->selectedTabIndex == 7) {
echo " class=\"selected\"";
}
echo ">";
echo LANGUI_STAT_T2;
echo "</a>\r\n | <a href=\"statistics.php?t=1\"";
if ($this->selectedTabIndex == 1 || $this->selectedTabIndex == 8 || $this->selectedTabIndex == 9 || $this->selectedTabIndex == 10) {
echo " class=\"selected\"";
}
echo ">";
echo LANGUI_STAT_T3;
echo "</a>\r\n | <a href=\"statistics.php?t=2\"";
if ($this->selectedTabIndex == 2) {
echo " class=\"selected\"";
}
echo ">";
echo LANGUI_STAT_T4;
echo "</a>\r\n | <a href=\"statistics.php?t=3\"";
if ($this->selectedTabIndex == 3) {
echo " class=\"selected\"";
}
echo ">";
echo LANGUI_STAT_T5;
echo "</a>\r\n ";
if ($this->tatarRaised) {
echo "| <a href=\"statistics.php?t=11\"";
if ($this->selectedTabIndex == 11) {
echo " class=\"selected\"";
}
echo ">";
echo LANGUI_STAT_T6;
echo "</a>";
}
echo " | <a href=\"statistics.php?t=4\"";
if ($this->selectedTabIndex == 4) {
echo " class=\"selected\"";
}
echo ">";
echo LANGUI_STAT_T7;
echo "</a>\r\n</div>\r\n";
if ($this->selectedTabIndex == 0) {
echo "\r\n";
if ($this->isAdmin) {
echo "<s";
echo "cript type=\"text/javascript\">\r\nfunction confirmDel (p) { return confirm (\"";
echo LANGUI_STAT_T8;
echo "\\n[\" + p + \"]\"); }\r\n\r\nfunction setGold(id) {\r\n\tvar txt = _(\"_g\" + id);\r\n\tif (txt != null) { window.location = \"statistics.php?_gd=\" + id + \"&_g=\" + txt.value ";
if (0 < $this->_tb) {
echo " + \"&tb=" . $this->_tb . "\"";
}
if (0 < $this->pageIndex) {
echo " + \"&p=" . $this->pageIndex . "\"";
}
echo "; }\r\n}\r\n</script>\r\n";
}
echo "\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"player\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"";
echo $this->isAdmin ? 8 : 5;
echo "\">\r\n\t\t\t";
echo LANGUI_STAT_T9;
echo " ";
if (0 < $this->_tb) {
echo constant("tribe_" . $this->_tb);
}
echo "\t\t\t<div id=\"submenu\">\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T10;
echo "\" href=\"statistics.php?t=5\"><img class=\"btn_top10\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T10;
echo "\"></a><a title=\"";
echo LANGUI_STAT_T11;
echo "\" href=\"statistics.php?t=6\"><img class=\"btn_def\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T11;
echo "\"></a><a title=\"";
echo LANGUI_STAT_T12;
echo "\" href=\"statistics.php?t=7\"><img class=\"btn_off\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t\t<div id=\"submenu2\">\r\n\t\t\t\t<a title=\"";
echo tribe_6;
echo "\" href=\"";
echo $this->_tb != 6 ? "?tb=6" : "?";
echo "\"><img class=\"";
if ($this->_tb == 6) {
echo "active ";
}
echo "btn_v6\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_7;
echo "\" href=\"";
echo $this->_tb != 7 ? "?tb=7" : "?";
echo "\"><img class=\"";
if ($this->_tb == 7) {
echo "active ";
}
echo "btn_v7\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_1;
echo "\" href=\"";
echo $this->_tb != 1 ? "?tb=1" : "?";
echo "\"><img class=\"";
if ($this->_tb == 1) {
echo "active ";
}
echo "btn_v1\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_2;
echo "\" href=\"";
echo $this->_tb != 2 ? "?tb=2" : "?";
echo "\"><img class=\"";
if ($this->_tb == 2) {
echo "active ";
}
echo "btn_v2\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_3;
echo "\" href=\"";
echo $this->_tb != 3 ? "?tb=3" : "?";
echo "\"><img class=\"";
if ($this->_tb == 3) {
echo "active ";
}
echo "btn_v3\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td><td>";
echo LANGUI_STAT_T2;
echo "</td><td>";
echo LANGUI_STAT_T13;
echo "</td><td>";
echo LANGUI_STAT_T14;
echo "</td><td>";
echo LANGUI_STAT_T4;
echo "</td>";
if ($this->isAdmin) {
echo "<td><img src=\"assets/x.gif\" class=\"gold\" alt=\"";
echo LANGUI_STAT_T16;
echo "\" title=\"";
echo LANGUI_STAT_T16;
echo "\"> ";
echo LANGUI_STAT_T15;
echo "</td><td></td><td></td>";
}
echo "\t\t</tr>\r\n\t\t";
if ($this->adminActionMessage != "") {
echo "<tr><td colspan=\"8\"><div class=\"error\"><b>";
echo $this->adminActionMessage;
echo "</b></div></td><tr>";
}
echo "\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
$rank = $rowIndex + $this->pageIndex * $this->pageSize;
echo "\t\t<tr";
if ($this->selectedRank == $rank) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t <td class=\"ra\">";
echo $rank;
echo ".</td>\r\n\t\t <td class=\"pla\"><a href=\"profile.php?uid=";
echo $this->dataList->row['id'];
echo "\">\r\n\t\t ";
if ($this->dataList->row['player_type'] == PLAYERTYPE_ADMIN) {
echo "<span style=\"color:#0000ff;\" title=\"" . LANGUI_STAT_T17 . "\" alt=\"" . LANGUI_STAT_T17 . "\">";
}
echo "\t\t ";
echo $this->dataList->row['name'];
echo "\t\t ";
if ($this->dataList->row['player_type'] == PLAYERTYPE_ADMIN) {
echo "</span>";
}
echo "\t\t </a> </td>\r\n\t\t <td class=\"al\">";
if (0 < intval($this->dataList->row['alliance_id'])) {
echo "<a href=\"alliance.php?id=";
echo $this->dataList->row['alliance_id'];
echo "\">";
echo $this->dataList->row['alliance_name'];
echo "</a>";
}
echo "</td>\r\n\t\t <td class=\"pop\">";
echo $this->dataList->row['total_people_count'];
echo "</td>\r\n\t\t <td class=\"vil\">";
echo $this->dataList->row['villages_count'];
echo "</td>\r\n\t\t ";
if ($this->isAdmin) {
echo "\t\t <td><input type=\"text\" style=\"width:25px;\" id=\"_g";
echo $this->dataList->row['id'];
echo "\" name=\"g";
echo $this->dataList->row['id'];
echo "\" value=\"";
echo $this->dataList->row['gold_num'];
echo "\" maxlength=\"8\" class=\"text year\"> <a href=\"javascript:setGold('";
echo $this->dataList->row['id'];
echo "')\"><img src=\"assets/x.gif\" class=\"gold\" alt=\"";
echo LANGUI_STAT_T18;
echo "\" title=\"";
echo LANGUI_STAT_T18;
echo "\"></a></td>\r\n\t\t <td>";
if ($this->dataList->row['player_type'] == PLAYERTYPE_NORMAL) {
echo "<a href=\"statistics.php?_cs=";
echo $this->dataList->row['id'] . (0 < $this->_tb ? "&tb=" . $this->_tb : "") . (0 < $this->pageIndex ? "&p=" . $this->pageIndex : "");
echo "\"><img class=\"online";
echo $this->dataList->row['is_blocked'] ? 4 : 2;
echo "\" src=\"assets/x.gif\" alt=\"";
echo $this->dataList->row['is_blocked'] ? LANGUI_STAT_T51 : LANGUI_STAT_T52;
echo "\" title=\"";
echo $this->dataList->row['is_blocked'] ? LANGUI_STAT_T51 : LANGUI_STAT_T52;
echo "\"></a>";
}
echo "</td>\r\n\t\t <td>";
if ($this->dataList->row['player_type'] == PLAYERTYPE_NORMAL) {
echo "<a onclick=\"return confirmDel('";
echo htmlspecialchars(str_replace("'", "`", $this->dataList->row['name']));
echo "');\" href=\"statistics.php?_dp=";
echo $this->dataList->row['id'] . (0 < $this->_tb ? "&tb=" . $this->_tb : "") . (0 < $this->pageIndex ? "&p=" . $this->pageIndex : "");
echo "\"><img class=\"del\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T19;
echo "\" title=\"";
echo LANGUI_STAT_T19;
echo "\"></a>";
}
echo "</td>\r\n\t\t ";
}
echo "\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"search_navi\">\r\n\t<tbody>\r\n\t\t<tr>\t\t\t\t\t\t\r\n\t\t\t<td>\r\n\t\t\t<form method=\"post\" action=\"statistics.php";
if (0 < $this->selectedTabIndex) {
echo "?t=" . $this->selectedTabIndex;
} else if (0 < $this->_tb) {
echo "?tb=" . $this->_tb;
}
echo "\">\r\n\t\t\t\t<div class=\"search\">\r\n\t\t\t\t\t";
echo "<s";
echo "pan>:";
echo LANGUI_STAT_T20;
echo "<input type=\"text\" class=\"text ra\" maxlength=\"5\" name=\"rank\" value=\"";
if (0 < $this->selectedRank) {
echo $this->selectedRank;
}
echo "\"></span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan class=\"or\">";
echo text_or_lang;
echo "</span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan>";
echo LANGUI_STAT_T21;
echo "<input type=\"text\" class=\"text name\" maxlength=\"20\" name=\"name\" value=\"\"></span>\r\n\t\t\t\t\t<input type=\"image\" value=\"submit\" name=\"submit\" id=\"btn_ok\" class=\"dynamic_img\" src=\"assets/x.gif\" alt=\"";
echo text_okdone_lang;
echo "\">\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t\t<div class=\"navi\">";
echo $this->getPreviousLink();
echo "|";
echo $this->getNextLink();
echo "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 1) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"alliance\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"4\">";
echo LANGUI_STAT_T22;
echo "<div id=\"submenu\"><a title=\"";
echo LANGUI_STAT_T10;
echo "\" href=\"statistics.php?t=8\"><img class=\"btn_top10\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T10;
echo "\"></a><a title=\"";
echo LANGUI_STAT_T11;
echo "\" href=\"statistics.php?t=9\"><img class=\"btn_def\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T11;
echo "\"></a><a title=\"";
echo LANGUI_STAT_T12;
echo "\" href=\"statistics.php?t=10\"><img class=\"btn_off\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a></div></th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td><td>";
echo LANGUI_STAT_T13;
echo "</td><td>";
echo LANGUI_STAT_T2;
echo "</td><td>";
echo LANGUI_STAT_T23;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
$rank = $rowIndex + $this->pageIndex * $this->pageSize;
echo "\t\t<tr";
if ($this->selectedRank == $rank) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t <td class=\"ra\">";
echo $rank;
echo ".</td>\r\n\t\t <td class=\"al\"><a href=\"alliance.php?id=";
echo $this->dataList->row['id'];
echo "\">";
echo $this->dataList->row['name'];
echo "</a></td>\r\n\t\t <td class=\"pla\">";
echo $this->dataList->row['player_count'];
echo "</td>\r\n\t\t <td class=\"po\">";
echo $this->dataList->row['rating'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"search_navi\">\r\n\t<tbody>\r\n\t\t<tr>\t\t\t\t\t\t\r\n\t\t\t<td>\r\n\t\t\t<form method=\"post\" action=\"statistics.php";
if (0 < $this->selectedTabIndex) {
echo "?t=" . $this->selectedTabIndex;
}
echo "\">\r\n\t\t\t\t<div class=\"search\">\r\n\t\t\t\t\t";
echo "<s";
echo "pan>:";
echo LANGUI_STAT_T20;
echo "<input type=\"text\" class=\"text ra\" maxlength=\"5\" name=\"rank\" value=\"";
if (0 < $this->selectedRank) {
echo $this->selectedRank;
}
echo "\"></span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan class=\"or\">";
echo text_or_lang;
echo "</span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan>";
echo LANGUI_STAT_T21;
echo "<input type=\"text\" class=\"text name\" maxlength=\"20\" name=\"name\" value=\"\"></span>\r\n\t\t\t\t\t<input type=\"image\" value=\"submit\" name=\"submit\" id=\"btn_ok\" class=\"dynamic_img\" src=\"assets/x.gif\" alt=\"";
echo text_okdone_lang;
echo "\">\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t\t<div class=\"navi\">";
echo $this->getPreviousLink();
echo "|";
echo $this->getNextLink();
echo "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 2) {
if ($this->isAdmin) {
echo "<s";
echo "cript type=\"text/javascript\">\r\nfunction openResourceSet(vid) {\r\n\tp = document.getElementById(\"ce\");\r\n\tif (p!=null) {\r\n\t\tp.innerHTML = '<div id=\"_pwin\" class=\"popup3\"><div id=\"drag\" onmousedown=\"dragStart(event, \\'_pwin\\')\"></div><a href=\"#\" onClick=\"hideManual(); return false;\"><img src=\"assets/x.gif\" border=\"1\" class=\"popup4\" alt=\"Move\"></a><iframe frameborder=\"0\" id=\"Frame\" src=\"resources.php?avid='+vi";
echo "d+'\" width=\"412\" height=\"440\" border=\"0\"></iframe></div>';\r\n\t}\r\n\r\n\treturn false;\r\n}\r\n</script>\r\n";
}
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"villages\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"";
echo $this->isAdmin ? "6" : "5";
echo "\">";
echo LANGUI_STAT_T24;
echo "</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td><td>";
echo LANGUI_STAT_T25;
echo "</td><td>";
echo LANGUI_STAT_T2;
echo "</td><td>";
echo LANGUI_STAT_T14;
echo "</td><td>";
echo LANGUI_STAT_T26;
echo "</td>\r\n\t\t\t";
if ($this->isAdmin) {
echo "<td> </td>";
}
echo "\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
$rank = $rowIndex + $this->pageIndex * $this->pageSize;
echo "\t\t<tr";
if ($this->selectedRank == $rank) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t <td class=\"ra\">";
echo $rank;
echo ".</td>\r\n\t\t <td class=\"vil\"><a href=\"village3.php?id=";
echo $this->dataList->row['id'];
echo "\">";
echo $this->dataList->row['village_name'];
echo "</a> </td>\r\n\t\t <td class=\"pla\"><a href=\"profile.php?uid=";
echo $this->dataList->row['player_id'];
echo "\">";
echo $this->dataList->row['player_name'];
echo "</a></td>\r\n\t\t <td class=\"hab\">";
echo $this->dataList->row['people_count'];
echo "</td>\r\n\t\t <td class=\"aligned_coords \"><div class=\"cox\">(";
echo $this->dataList->row['rel_x'];
echo "</div><div class=\"pi\">|</div><div class=\"coy\">";
echo $this->dataList->row['rel_y'];
echo ")</div></td>\r\n\t\t ";
if ($this->isAdmin) {
echo "<td class=\"ra\"><a href=\"#\" onclick=\"return openResourceSet(";
echo $this->dataList->row['id'];
echo ");\"><img src=\"assets/x.gif\" class=\"r4\" alt=\"";
echo LANGUI_STAT_T27;
echo "\" title=\"";
echo LANGUI_STAT_T27;
echo "\"></a></td>";
}
echo "\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"search_navi\">\r\n\t<tbody>\r\n\t\t<tr>\t\t\t\t\t\t\r\n\t\t\t<td>\r\n\t\t\t<form method=\"post\" action=\"statistics.php";
if (0 < $this->selectedTabIndex) {
echo "?t=" . $this->selectedTabIndex;
}
echo "\">\r\n\t\t\t\t<div class=\"search\">\r\n\t\t\t\t\t";
echo "<s";
echo "pan>:";
echo LANGUI_STAT_T20;
echo "<input type=\"text\" class=\"text ra\" maxlength=\"5\" name=\"rank\" value=\"";
if (0 < $this->selectedRank) {
echo $this->selectedRank;
}
echo "\"></span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan class=\"or\">";
echo text_or_lang;
echo "</span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan>";
echo LANGUI_STAT_T21;
echo "<input type=\"text\" class=\"text name\" maxlength=\"20\" name=\"name\" value=\"\"></span>\r\n\t\t\t\t\t<input type=\"image\" value=\"submit\" name=\"submit\" id=\"btn_ok\" class=\"dynamic_img\" src=\"assets/x.gif\" alt=\"";
echo text_okdone_lang;
echo "\">\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t\t<div class=\"navi\">";
echo $this->getPreviousLink();
echo "|";
echo $this->getNextLink();
echo "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 3) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"heroes\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"5\">";
echo LANGUI_STAT_T28;
echo "</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td><td>";
echo LANGUI_STAT_T29;
echo "</td><td>";
echo LANGUI_STAT_T2;
echo "</td><td>";
echo level_lang2;
echo "</td><td>";
echo LANGUI_STAT_T30;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
$rank = $rowIndex + $this->pageIndex * $this->pageSize;
echo "\t\t<tr";
if ($this->selectedRank == $rank) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t <td class=\"ra\">";
echo $rank;
echo ".</td>\r\n\t\t <td class=\"hero\"><img class=\"unit u";
echo $this->dataList->row['hero_troop_id'];
echo "\" alt=\"";
echo constant("troop_" . $this->dataList->row['hero_troop_id']);
echo "\" title=\"";
echo constant("troop_" . $this->dataList->row['hero_troop_id']);
echo "\" src=\"assets/x.gif\"> ";
echo $this->dataList->row['hero_name'];
echo "</td>\r\n\t\t <td class=\"pla\"><a href=\"profile.php?uid=";
echo $this->dataList->row['id'];
echo "\">";
echo $this->dataList->row['name'];
echo "</a></td>\r\n\t\t <td class=\"lev\">";
echo $this->dataList->row['hero_level'];
echo "</td>\r\n\t\t <td class=\"xp\">";
echo $this->dataList->row['hero_points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"search_navi\">\r\n\t<tbody>\r\n\t\t<tr>\t\t\t\t\t\t\r\n\t\t\t<td>\r\n\t\t\t<form method=\"post\" action=\"statistics.php";
if (0 < $this->selectedTabIndex) {
echo "?t=" . $this->selectedTabIndex;
}
echo "\">\r\n\t\t\t\t<div class=\"search\">\r\n\t\t\t\t\t";
echo "<s";
echo "pan>:";
echo LANGUI_STAT_T20;
echo "<input type=\"text\" class=\"text ra\" maxlength=\"5\" name=\"rank\" value=\"";
if (0 < $this->selectedRank) {
echo $this->selectedRank;
}
echo "\"></span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan class=\"or\">";
echo text_or_lang;
echo "</span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan>";
echo LANGUI_STAT_T21;
echo "<input type=\"text\" class=\"text name\" maxlength=\"20\" name=\"name\" value=\"\"></span>\r\n\t\t\t\t\t<input type=\"image\" value=\"submit\" name=\"submit\" id=\"btn_ok\" class=\"dynamic_img\" src=\"assets/x.gif\" alt=\"";
echo text_okdone_lang;
echo "\">\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t\t<div class=\"navi\">";
echo $this->getPreviousLink();
echo "|";
echo $this->getNextLink();
echo "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 11) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"villages\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"5\">";
echo LANGUI_STAT_T24;
echo "</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T2;
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T25;
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T13;
echo "</td>\r\n\t\t\t<td>";
echo level_lang;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
echo "\t\t<tr>\r\n\t\t <td class=\"ra\">";
echo $rowIndex;
echo ".</td>\r\n\t\t <td class=\"pla\"><a href=\"profile.php?uid=";
echo $this->dataList->row['player_id'];
echo "\">";
echo $this->dataList->row['player_name'];
echo "</a></td>\r\n\t\t <td class=\"vil\"><a href=\"village3.php?id=";
echo $this->dataList->row['id'];
echo "\">";
echo $this->dataList->row['village_name'];
echo "</a> </td>\r\n\t\t <td class=\"vil\">";
if (0 < intval($this->dataList->row['alliance_id'])) {
echo "<a href=\"alliance.php?id=";
echo $this->dataList->row['alliance_id'];
echo "\">";
echo $this->dataList->row['alliance_name'];
echo "</a>";
}
echo "</td>\r\n\t\t <td class=\"ra\" style=\"text-align:center;\">";
echo $this->getWonderLandLevel($this->dataList->row['buildings']);
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 4) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"world_player\" class=\"world\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"2\">";
echo LANGUI_STAT_T2;
echo "</th></tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t<tr>\r\n\t\t\t<th>";
echo LANGUI_STAT_T31;
echo "</th>\r\n\t\t\t<td>";
echo $this->generalData['players_count'];
echo "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th>";
echo LANGUI_STAT_T32;
echo "</th>\r\n\t\t\t<td>";
echo $this->generalData['active_players_count'];
echo "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th>";
echo LANGUI_STAT_T33;
echo "</th>\r\n\t\t\t<td>";
echo $this->generalData['online_players_count'];
echo "</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"world_tribes\" class=\"world\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"3\">";
echo LANGUI_STAT_T34;
echo "</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo LANGUI_STAT_T49;
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T35;
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T36;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo tribe_6;
echo "</td>\r\n\t\t\t<td>";
echo $this->generalData['Dboor_players_count'];
echo "</td>\r\n\t\t\t<td>";
echo round($this->generalData['Dboor_players_count'] / $this->generalData['players_count'] * 100, 2);
echo "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo tribe_7;
echo "</td>\r\n\t\t\t<td>";
echo $this->generalData['Arab_players_count'];
echo "</td>\r\n\t\t\t<td>";
echo round($this->generalData['Arab_players_count'] / $this->generalData['players_count'] * 100, 2);
echo "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo tribe_1;
echo "</td>\r\n\t\t\t<td>";
echo $this->generalData['Roman_players_count'];
echo "</td>\r\n\t\t\t<td>";
echo round($this->generalData['Roman_players_count'] / $this->generalData['players_count'] * 100, 2);
echo "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo tribe_2;
echo "</td>\r\n\t\t\t<td>";
echo $this->generalData['Teutonic_players_count'];
echo "</td>\r\n\t\t\t<td>";
echo round($this->generalData['Teutonic_players_count'] / $this->generalData['players_count'] * 100, 2);
echo "</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo tribe_3;
echo "</td>\r\n\t\t\t<td>";
echo $this->generalData['Gallic_players_count'];
echo "</td>\r\n\t\t\t<td>";
echo round($this->generalData['Gallic_players_count'] / $this->generalData['players_count'] * 100, 2);
echo "</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 6 || $this->selectedTabIndex == 7) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"player_off\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"5\">";
if ($this->selectedTabIndex == 6) {
echo LANGUI_STAT_T37;
} else {
echo LANGUI_STAT_T38;
}
echo "\t\t\t<div id=\"submenu\">\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T10;
echo "\" href=\"statistics.php?t=5\"><img class=\"btn_top10\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T10;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T11;
echo "\" href=\"statistics.php";
echo $this->selectedTabIndex == 6 ? "" : "?t=6";
echo "\"><img class=\"";
echo $this->selectedTabIndex == 6 ? "active btn_def" : "btn_def";
echo "\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T11;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T12;
echo "\" href=\"statistics.php";
echo $this->selectedTabIndex == 7 ? "" : "?t=7";
echo "\"><img class=\"";
echo $this->selectedTabIndex == 7 ? "active btn_off" : "btn_off";
echo "\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t\t<div id=\"submenu2\">\r\n\t\t\t\t<a title=\"";
echo tribe_6;
echo "\" href=\"";
echo $this->_tb != 6 ? "?tb=6" : "?";
echo "\"><img class=\"";
if ($this->_tb == 6) {
echo "active ";
}
echo "btn_v6\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_7;
echo "\" href=\"";
echo $this->_tb != 7 ? "?tb=7" : "?";
echo "\"><img class=\"";
if ($this->_tb == 7) {
echo "active ";
}
echo "btn_v7\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_1;
echo "\" href=\"";
echo $this->_tb != 1 ? "?tb=1" : "?";
echo "\"><img class=\"";
if ($this->_tb == 1) {
echo "active ";
}
echo "btn_v1\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_2;
echo "\" href=\"";
echo $this->_tb != 2 ? "?tb=2" : "?";
echo "\"><img class=\"";
if ($this->_tb == 2) {
echo "active ";
}
echo "btn_v2\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_3;
echo "\" href=\"";
echo $this->_tb != 3 ? "?tb=3" : "?";
echo "\"><img class=\"";
if ($this->_tb == 3) {
echo "active ";
}
echo "btn_v3\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td><td>";
echo LANGUI_STAT_T2;
echo "</td><td>";
echo LANGUI_STAT_T14;
echo "</td><td>";
echo LANGUI_STAT_T4;
echo "</td><td>";
echo LANGUI_STAT_T23;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
$rank = $rowIndex + $this->pageIndex * $this->pageSize;
echo "\t\t<tr";
if ($this->selectedRank == $rank) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t <td class=\"ra\">";
echo $rank;
echo ".</td>\r\n\t\t <td class=\"pla\"><a href=\"profile.php?uid=";
echo $this->dataList->row['id'];
echo "\">";
echo $this->dataList->row['name'];
echo "</a> </td>\r\n\t\t <td class=\"pop\">";
echo $this->dataList->row['total_people_count'];
echo "</td>\r\n\t\t <td class=\"vil\">";
echo $this->dataList->row['villages_count'];
echo "</td>\r\n\t\t <td class=\"po\">";
echo $this->dataList->row['points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"search_navi\">\r\n\t<tbody>\r\n\t\t<tr>\t\t\t\t\t\t\r\n\t\t\t<td>\r\n\t\t\t<form method=\"post\" action=\"statistics.php";
if (0 < $this->selectedTabIndex) {
echo "?t=" . $this->selectedTabIndex;
}
echo "\">\r\n\t\t\t\t<div class=\"search\">\r\n\t\t\t\t\t";
echo "<s";
echo "pan>:";
echo LANGUI_STAT_T20;
echo "<input type=\"text\" class=\"text ra\" maxlength=\"5\" name=\"rank\" value=\"";
if (0 < $this->selectedRank) {
echo $this->selectedRank;
}
echo "\"></span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan class=\"or\">";
echo text_or_lang;
echo "</span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan>";
echo LANGUI_STAT_T21;
echo "<input type=\"text\" class=\"text name\" maxlength=\"20\" name=\"name\" value=\"\"></span>\r\n\t\t\t\t\t<input type=\"image\" value=\"submit\" name=\"submit\" id=\"btn_ok\" class=\"dynamic_img\" src=\"assets/x.gif\" alt=\"";
echo text_okdone_lang;
echo "\">\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t\t<div class=\"navi\">";
echo $this->getPreviousLink();
echo "|";
echo $this->getNextLink();
echo "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 9 || $this->selectedTabIndex == 10) {
echo "<table cellpadding=\"1\" cellspacing=\"1\" id=\"alliance\" class=\"row_table_data\">\r\n\t<thead>\r\n\t\t<tr><th colspan=\"4\">";
if ($this->selectedTabIndex == 9) {
echo LANGUI_STAT_T39;
} else {
echo LANGUI_STAT_T40;
}
echo "\t\t\t<div id=\"submenu\">\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T10;
echo "\" href=\"statistics.php?t=8\"><img class=\"btn_top10\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T10;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T11;
echo "\" href=\"statistics.php?";
echo $this->selectedTabIndex == 9 ? "t=1" : "t=9";
echo "\"><img class=\"";
if ($this->selectedTabIndex == 9) {
echo "active ";
}
echo "btn_def\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T11;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T12;
echo "\" href=\"statistics.php?";
echo $this->selectedTabIndex == 10 ? "t=1" : "t=10";
echo "\"><img class=\"";
if ($this->selectedTabIndex == 10) {
echo "active ";
}
echo "btn_off\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t</th></tr>\r\n\t\t<tr>\r\n\t\t\t<td></td><td>";
echo LANGUI_STAT_T13;
echo "</td><td>";
echo LANGUI_STAT_T2;
echo "</td><td>";
echo LANGUI_STAT_T23;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$rowIndex = 0;
while ($this->dataList->next()) {
++$rowIndex;
$rank = $rowIndex + $this->pageIndex * $this->pageSize;
echo "\t\t<tr";
if ($this->selectedRank == $rank) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t <td class=\"ra\">";
echo $rank;
echo ".</td>\r\n\t\t <td class=\"al\"><a href=\"alliance.php?id=";
echo $this->dataList->row['id'];
echo "\">";
echo $this->dataList->row['name'];
echo "</a></td>\r\n\t\t <td class=\"pla\">";
echo $this->dataList->row['player_count'];
echo "</td>\r\n\t\t <td class=\"po\">";
echo $this->dataList->row['points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo " </tbody>\r\n</table>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"search_navi\">\r\n\t<tbody>\r\n\t\t<tr>\t\t\t\t\t\t\r\n\t\t\t<td>\r\n\t\t\t<form method=\"post\" action=\"statistics.php";
if (0 < $this->selectedTabIndex) {
echo "?t=" . $this->selectedTabIndex;
}
echo "\">\r\n\t\t\t\t<div class=\"search\">\r\n\t\t\t\t\t";
echo "<s";
echo "pan>:";
echo LANGUI_STAT_T20;
echo "<input type=\"text\" class=\"text ra\" maxlength=\"5\" name=\"rank\" value=\"";
if (0 < $this->selectedRank) {
echo $this->selectedRank;
}
echo "\"></span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan class=\"or\">";
echo text_or_lang;
echo "</span>\r\n\t\t\t\t\t";
echo "<s";
echo "pan>";
echo LANGUI_STAT_T21;
echo "<input type=\"text\" class=\"text name\" maxlength=\"20\" name=\"name\" value=\"\"></span>\r\n\t\t\t\t\t<input type=\"image\" value=\"submit\" name=\"submit\" id=\"btn_ok\" class=\"dynamic_img\" src=\"assets/x.gif\" alt=\"";
echo text_okdone_lang;
echo "\">\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t\t<div class=\"navi\">";
echo $this->getPreviousLink();
echo "|";
echo $this->getNextLink();
echo "</div>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
} else if ($this->selectedTabIndex == 5 || $this->selectedTabIndex == 8) {
echo "<table cellpadding=\"1\" cellspacing=\"1\">\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th>";
if ($this->selectedTabIndex == 5) {
echo LANGUI_STAT_T41;
} else {
echo LANGUI_STAT_T42;
}
echo "\t\t\t\r\n\t\t\t<div id=\"submenu\">\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T10;
echo "\" href=\"statistics.php";
echo $this->selectedTabIndex == 5 ? "" : "?t=1";
echo "\"><img class=\"active btn_top10\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T10;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T11;
echo "\" href=\"statistics.php?t=";
echo $this->selectedTabIndex == 5 ? 6 : 9;
echo "\"><img class=\"btn_def\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T11;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo LANGUI_STAT_T12;
echo "\" href=\"statistics.php?t=";
echo $this->selectedTabIndex == 5 ? 7 : 10;
echo "\"><img class=\"btn_off\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t\t";
if ($this->selectedTabIndex == 5) {
echo "\t\t\t<div id=\"submenu2\">\r\n\t\t\t\t<a title=\"";
echo tribe_6;
echo "\" href=\"";
echo $this->_tb != 6 ? "?tb=6" : "?";
echo "\"><img class=\"";
if ($this->_tb == 6) {
echo "active ";
}
echo "btn_v6\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_7;
echo "\" href=\"";
echo $this->_tb != 7 ? "?tb=7" : "?";
echo "\"><img class=\"";
if ($this->_tb == 7) {
echo "active ";
}
echo "btn_v7\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_1;
echo "\" href=\"";
echo $this->_tb != 1 ? "?tb=1" : "?";
echo "\"><img class=\"";
if ($this->_tb == 1) {
echo "active ";
}
echo "btn_v1\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_2;
echo "\" href=\"";
echo $this->_tb != 2 ? "?tb=2" : "?";
echo "\"><img class=\"";
if ($this->_tb == 2) {
echo "active ";
}
echo "btn_v2\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t\t<a title=\"";
echo tribe_3;
echo "\" href=\"";
echo $this->_tb != 3 ? "?tb=3" : "?";
echo "\"><img class=\"";
if ($this->_tb == 3) {
echo "active ";
}
echo "btn_v3\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T12;
echo "\"></a>\r\n\t\t\t</div>\r\n\t\t\t";
}
echo "\t\t\t</th>\r\n\t\t</tr>\r\n\t</thead>\r\n</table>\r\n\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"top10_offs\" class=\"top10 row_table_data\">\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th><a href=\"#\" onclick=\"return showManual(6,";
echo $this->selectedTabIndex == 5 ? 0 : 1;
echo ");\"><img class=\"help\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T43;
echo "\" title=\"";
echo LANGUI_STAT_T43;
echo "\"></a></th>\r\n\t\t\t<th colspan=\"2\">";
echo LANGUI_STAT_T44;
echo "</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo LANGUI_STAT_T20;
echo "</td>\r\n\t\t\t<td>";
if ($this->selectedTabIndex == 5) {
echo LANGUI_STAT_T2;
} else {
echo LANGUI_STAT_T13;
}
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T23;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$_c = 0;
while ($this->top10Result['ATTACK']->next()) {
++$_c;
echo "\t\t<tr";
if ($this->top10Result['TARGETID'] == $this->top10Result['ATTACK']->row['id']) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t\t<td class=\"ra fc\">";
echo $_c;
echo ". </td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['ATTACK']->row['id'];
echo "\">";
echo $this->top10Result['ATTACK']->row['name'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['ATTACK']->row['points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo "\t\t <tr>\r\n\t\t\t<td colspan=\"3\" class=\"empty\"></td>\r\n\t\t</tr>\r\n\t \t <tr class=\"own hl\">\r\n\t\t\t<td class=\"ra fc\">?</td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['TARGETID'];
echo "\">";
echo $this->top10Result['TARGETNAME'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['TARGEPOINT_ATTACK'];
echo "</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"top10_defs\" class=\"top10 row_table_data\">\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th><a href=\"#\" onclick=\"return showManual(6,";
echo $this->selectedTabIndex == 5 ? 0 : 1;
echo ");\"><img class=\"help\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T43;
echo "\" title=\"";
echo LANGUI_STAT_T43;
echo "\"></a></th>\r\n\t\t\t<th colspan=\"2\">";
echo LANGUI_STAT_T45;
echo "</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo LANGUI_STAT_T20;
echo "</td>\r\n\t\t\t<td>";
if ($this->selectedTabIndex == 5) {
echo LANGUI_STAT_T2;
} else {
echo LANGUI_STAT_T13;
}
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T23;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$_c = 0;
while ($this->top10Result['DEFENSE']->next()) {
++$_c;
echo "\t\t<tr";
if ($this->top10Result['TARGETID'] == $this->top10Result['DEFENSE']->row['id']) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t\t<td class=\"ra fc\">";
echo $_c;
echo ". </td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['DEFENSE']->row['id'];
echo "\">";
echo $this->top10Result['DEFENSE']->row['name'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['DEFENSE']->row['points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo "\t\t <tr>\r\n\t\t\t<td colspan=\"3\" class=\"empty\"></td>\r\n\t\t</tr>\r\n\t \t <tr class=\"own hl\">\r\n\t\t\t<td class=\"ra fc\">?</td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['TARGETID'];
echo "\">";
echo $this->top10Result['TARGETNAME'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['TARGEPOINT_DEFENSE'];
echo "</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n<div class=\"clear\"></div>\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"top10_climbers\" class=\"top10 row_table_data\">\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th><a href=\"#\" onclick=\"return showManual(6,";
echo $this->selectedTabIndex == 5 ? 0 : 1;
echo ");\"><img class=\"help\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T43;
echo "\" title=\"";
echo LANGUI_STAT_T43;
echo "\"></a></th>\r\n\t\t\t<th colspan=\"2\">";
echo LANGUI_STAT_T46;
echo "</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo LANGUI_STAT_T20;
echo "</td>\r\n\t\t\t<td>";
if ($this->selectedTabIndex == 5) {
echo LANGUI_STAT_T2;
} else {
echo LANGUI_STAT_T13;
}
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T50;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$_c = 0;
while ($this->top10Result['DEV']->next()) {
++$_c;
echo "\t\t<tr";
if ($this->top10Result['TARGETID'] == $this->top10Result['DEV']->row['id']) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t\t<td class=\"ra fc\">";
echo $_c;
echo ". </td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['DEV']->row['id'];
echo "\">";
echo $this->top10Result['DEV']->row['name'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['DEV']->row['points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo "\t\t <tr>\r\n\t\t\t<td colspan=\"3\" class=\"empty\"></td>\r\n\t\t</tr>\r\n\t \t <tr class=\"own hl\">\r\n\t\t\t<td class=\"ra fc\">?</td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['TARGETID'];
echo "\">";
echo $this->top10Result['TARGETNAME'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['TARGEPOINT_DEV'];
echo "</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n\r\n<table cellpadding=\"1\" cellspacing=\"1\" id=\"top10_raiders\" class=\"top10 row_table_data\">\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th><a href=\"#\" onclick=\"return showManual(6,";
echo $this->selectedTabIndex == 5 ? 0 : 1;
echo ");\"><img class=\"help\" src=\"assets/x.gif\" alt=\"";
echo LANGUI_STAT_T43;
echo "\" title=\"";
echo LANGUI_STAT_T43;
echo "\"></a></th>\r\n\t\t\t<th colspan=\"2\">";
echo LANGUI_STAT_T47;
echo "</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>";
echo LANGUI_STAT_T20;
echo "</td>\r\n\t\t\t<td>";
if ($this->selectedTabIndex == 5) {
echo LANGUI_STAT_T2;
} else {
echo LANGUI_STAT_T13;
}
echo "</td>\r\n\t\t\t<td>";
echo LANGUI_STAT_T48;
echo "</td>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t";
$_c = 0;
while ($this->top10Result['THIEF']->next()) {
++$_c;
echo "\t\t<tr";
if ($this->top10Result['TARGETID'] == $this->top10Result['THIEF']->row['id']) {
echo " class=\"hl\"";
}
echo ">\r\n\t\t\t<td class=\"ra fc\">";
echo $_c;
echo ". </td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['THIEF']->row['id'];
echo "\">";
echo $this->top10Result['THIEF']->row['name'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['THIEF']->row['points'];
echo "</td>\r\n\t\t</tr>\r\n\t\t";
}
echo "\t\t <tr>\r\n\t\t\t<td colspan=\"3\" class=\"empty\"></td>\r\n\t\t</tr>\r\n\t \t <tr class=\"own hl\">\r\n\t\t\t<td class=\"ra fc\">?</td>\r\n\t\t\t<td class=\"pla\"><a href=\"";
echo $this->top10Result['URL'] . $this->top10Result['TARGETID'];
echo "\">";
echo $this->top10Result['TARGETNAME'];
echo "</a></td>\r\n\t\t\t<td class=\"val lc\">";
echo $this->top10Result['TARGEPOINT_THIEF'];
echo "</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n";
}
?>
|