forked from devsam/core
list 일부 수정. tfoot 안에 tr td없는거 수정
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ $db = DB::db();
|
||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||
$connect=$db->get();
|
||||
|
||||
list($turntime, $tnmt_time) = $gameStor->getValuesAsArray(['turntime','tnmt_time']);
|
||||
[$turntime, $tnmt_time] = $gameStor->getValuesAsArray(['turntime','tnmt_time']);
|
||||
|
||||
$query = "select plock from plock";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
|
||||
@@ -99,7 +99,7 @@ switch($btn) {
|
||||
], '`no` IN %li', $genlist);
|
||||
break;
|
||||
case "특기 부여":
|
||||
list($year, $month) = $gameStor->getValuesAsArray(['year', 'month']);
|
||||
[$year, $month] = $gameStor->getValuesAsArray(['year', 'month']);
|
||||
$text = "특기 부여!";
|
||||
|
||||
foreach($db->query("SELECT `no`,leader,power,intel,dex0,dex10,dex20,dex30,dex40 FROM general WHERE `no` IN %li", $genlist) as $general){
|
||||
|
||||
+2
-2
@@ -45,11 +45,11 @@ for($i=0; $i < $nationcount; $i++) {
|
||||
}
|
||||
|
||||
$realConflict = [];
|
||||
foreach ($db->queryAllLists('SELECT city, `name`, conflict FROM city WHERE conflict!=%s', '{}') as list(
|
||||
foreach ($db->queryAllLists('SELECT city, `name`, conflict FROM city WHERE conflict!=%s', '{}') as [
|
||||
$cityID,
|
||||
$cityName,
|
||||
$rawConflict
|
||||
))
|
||||
])
|
||||
{
|
||||
$conflict = Json::decode($rawConflict);
|
||||
if (count($conflict)<2) {
|
||||
|
||||
+2
-3
@@ -125,12 +125,11 @@ for($i=0; $i < $troopcount; $i++) {
|
||||
echo "
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align=center><font size=2>【턴】".substr($turntime, 14)."</font></td><td align=center><font size=1>$name</font></td></tr>
|
||||
<tr><td colspan=5>";
|
||||
<tr><td align=center><font size=2>【턴】".substr($turntime, 14)."</font></td><td align=center><font size=1>$name</font></td></tr>";
|
||||
}
|
||||
}
|
||||
echo "</tbody>
|
||||
<tfoot>";
|
||||
<tfoot><tr><td>";
|
||||
if ($troopcount == 0) {
|
||||
}
|
||||
else if($me['troop'] == 0) {
|
||||
|
||||
@@ -186,7 +186,7 @@ class CityConst{
|
||||
}
|
||||
|
||||
foreach(static::$initCity as $rawCity){
|
||||
list(
|
||||
[
|
||||
$id,
|
||||
$name,
|
||||
$level,
|
||||
@@ -198,7 +198,7 @@ class CityConst{
|
||||
$wall,
|
||||
$region,
|
||||
$path
|
||||
) = $rawCity;
|
||||
] = $rawCity;
|
||||
|
||||
$level = static::$levelMap[$level];
|
||||
$population *= 100;
|
||||
|
||||
@@ -300,7 +300,7 @@ class Diplomacy{
|
||||
$chk = $this->checkValidNation();
|
||||
$chk = $this->checkNonAggressionTreaty($chk);
|
||||
|
||||
list($result, $reason) = $chk;
|
||||
[$result, $reason] = $chk;
|
||||
if($result !== DiplomaticMessage::ACCEPTED){
|
||||
return $chk;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ class Diplomacy{
|
||||
$chk = $this->checkValidNation();
|
||||
$chk = $this->checkInWar($chk);
|
||||
|
||||
list($result, $reason) = $chk;
|
||||
[$result, $reason] = $chk;
|
||||
if($result !== DiplomaticMessage::ACCEPTED){
|
||||
return $chk;
|
||||
}
|
||||
|
||||
@@ -37,12 +37,12 @@ class Personnel{
|
||||
$this->nation = $nation;
|
||||
$this->valid = true;
|
||||
|
||||
list(
|
||||
[
|
||||
$this->startYear,
|
||||
$this->year,
|
||||
$this->month,
|
||||
$this->killturn
|
||||
) = $gameStor->getValuesAsArray(['startyear', 'year', 'month', 'killturn']);
|
||||
] = $gameStor->getValuesAsArray(['startyear', 'year', 'month', 'killturn']);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ class ResetHelper{
|
||||
$year = $startyear;
|
||||
} else {
|
||||
// 현재 시간과 동기화
|
||||
list($starttime, $yearPulled, $month) = cutDay($turntime, $turnterm);
|
||||
[$starttime, $yearPulled, $month] = cutDay($turntime, $turnterm);
|
||||
if($yearPulled){
|
||||
$year = $startyear-1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user