diff --git a/Admin/Templates/natars.tpl b/Admin/Templates/natars.tpl index b0d0e593..fb309493 100644 --- a/Admin/Templates/natars.tpl +++ b/Admin/Templates/natars.tpl @@ -1,299 +1,135 @@ -getDeletedArtifacts(); - ?> - - - + + -

WW villages management

+
+
+ +

Natars Management

+
-
- - - - - - - - - - +
+ +
+

🏰 WW Villages

+
+ +
Add WW village(s)
NumberPlayer id
+ + + + + + +
NumberPlayer ID
+
+
+ - - - - - + +
+

✨ Add Artifacts

+
+
+ + + + + + + + + +
IconTypeQtyPlayer
+ +
+
+
+
+ - - - - - - - + +
+

🗑️ Deleted Artifacts

+
+ + + '; } else { foreach($deletedArtifacts as $artifact){ $info=Artifacts::getArtifactInfo($artifact);?> + + + + + + + + + + + +
NameBonusEffectTimeOld OwnerOld Village
No artifacts
getUserField($artifact['owner'],"username",0); echo $u!="[?]"?''.$u.'':''.$u.'';?>getVillageField($artifact['vref'],"name"); echo $v!="[?]"?''.$v.'':''.$v.'';?>
+
+
-

Artifacts management

- -
- - - - - - - - - - - - - - - - -
Add artifact(s)
IconTypeQuantityPlayer id
- - - + + getArtifactsBysize(1); $big=$database->getArtifactsBysize(2); $unique=$database->getArtifactsBysize(3); + if(empty($small)&&empty($big)&&empty($unique)){ echo ''; } + else { $all=array(); if(is_array($small))$all=array_merge($all,$small); if(is_array($big))$all=array_merge($all,$big); if(is_array($unique))$all=array_merge($all,$unique); + foreach($all as $a){ + $player=$database->getUserField($a['owner'],"username",0); + $aid=$database->getUserField($a['owner'],"alliance",0); + $ally=$database->getAllianceName($aid); + echo ' + + + + + + '; +} } - ?> - - - - - - - - - - -
IconNameEffectPlayerAlliance
No artifacts found
'.$a['name'].''.$a['effect'].''.$player.''.$ally.'
- -
- - -

Deleted artifact(s)

- - - - - - - - - - - - - - - - - - - -'; -} else { - - foreach($deletedArtifacts as $artifact){ - $info = Artifacts::getArtifactInfo($artifact); -?> - - - - - - - - - - - - - - - - -
Deleted artifact(s)
NameBonusEffectTimeOld ownerOld village
No artifacts
- - - - - - - getUserField($artifact['owner'], "username", 0); - echo ($u != "[?]") - ? ''.$u.'' - : ''.$u.''; - ?> - - getVillageField($artifact['vref'], "name"); - echo ($v != "[?]") - ? ''.$v.'' - : ''.$v.''; - ?> -
- -

Artifacts overview

- - - - - - - - - - - - - -getArtifactsBysize(1); - -// SAFE CALL 2: large + unique -$big = $database->getArtifactsBysize(2); - -// SAFE CALL 3: unique artifacts (size 3) -$unique = $database->getArtifactsBysize(3); - -if(empty($small) && empty($big) && empty($unique)){ - echo ''; -} else { - - $all = array(); - - if(is_array($small)) $all = array_merge($all, $small); - if(is_array($big)) $all = array_merge($all, $big); - if(is_array($unique)) $all = array_merge($all, $unique); - - foreach($all as $a){ - - $player = $database->getUserField($a['owner'], "username", 0); - $aid = $database->getUserField($a['owner'], "alliance", 0); - $ally = $database->getAllianceName($aid); - - echo ' - - - - - - - - - - '; - } -} -?> - -
IconNameEffectPlayerAlliance
No artifacts found
- - '.$a['name'].''.$a['effect'].' - '.$player.' - - '.$ally.' -
- - + ?> +
+ + +