The first release of the refactored version

It's still a work in progress, there are a lot of things that will
change in the final release
This commit is contained in:
iopietro
2018-09-16 17:22:39 +02:00
parent f032523e1c
commit 62d6e19ee9
3503 changed files with 90956 additions and 35819 deletions
+4
View File
@@ -0,0 +1,4 @@
<Files ~ "\.tpl$">
Order allow,deny
Deny from all
</Files>
+125
View File
@@ -0,0 +1,125 @@
<div id="raidList">
{include file=$smarty.const.TEMPLATES_DIR|cat:'error.tpl'}
<form action="build.php?id={$parameters['id']}&t=3" method="post" name="msg">
{foreach $villageFarmLists as $farmList}
<div class="openedClosedSwitch switchOpened"></div>
<div class="clear"></div>
<div class="listContent ">
<div class="detail">
<table id="raidList" cellpadding="1" cellspacing="1">
<thead>
<tr>
<td colspan="7">
<a href="build.php?id={$parameters['id']}&t=3&delFarmList={$farmList.id}">
<img class="del" src="assets/img/x.gif" alt="delete" title="delete">
</a>
<b>{$farmList.fromVillageName} - {$farmList.name}</b>
</td>
</tr>
<tr>
<td></td>
<td>{$smarty.const.VILLAGE}</td>
<td>{$smarty.const.POP}</td>
<td>{$smarty.const.DISTANCE}</td>
<td>{$smarty.const.TROOPS}</td>
<td>{$smarty.const.LAST_RAID}</td>
<td></td>
</tr>
</thead>
<tbody>
{if !empty($farmList.raidsList)}
{foreach $farmList.raidsList as $raid}
<tr class="slotRow">
<td class="checkbox">
<input id="slot" name="slot[]" value="{$raid.id}" type="checkbox" class="markSlot">
</td>
<td class="village">
{if $raid.isBeingRaided}
<img class="att2" src="assets/img/x.gif" title="{$smarty.const.OWN_ATTACKING_TROOPS}" />
{/if}
<label for="slot{$raid.id}">
<span class="coordinates coordinatesWithText">
<span class="coordText">{$raid.toVillageName}</span>
<span class="coordinatesWrapper">
<span class="coordinateY">({$raid.toVillageCoordinates['x']}</span>
<span class="coordinatePipe">|</span>
<span class="coordinateX">{$raid.toVillageCoordinates['y']})</span>
</span>
</span>
<span class="clear"></span>
</label>
</td>
<td class="ew">
{if isset($raid.toVillagePop)}
{$raid.toVillagePop}
{else}
-
{/if}
</td>
<td class="distance">{$raid.toVillageDistance}</td>
<td class="troops">
{foreach $raid.units as $type => $unit}
{if $unit.amount > 0}
<div class="troopIcon">
<img class="unit u{($tribe - 1) * 10 + $type}" title="{$unit.name}" src="assets/img/x.gif">
<span class="troopIconAmount">{$unit.amount}</span>
</div>
{/if}
{/foreach}
</td>
<td class="lastRaid">
{if !empty($raid.lastReport)}
<img src="assets/img/x.gif" class="iReport iReport{$raid.lastReport.type}" title="{$raid.lastReport.topic}">
<img title="{$raid.lastReport.robbedResources}/{$raid.lastReport.maxCarry}" src="assets/img/x.gif" class="carry"/>
<a href="berichte.php?id={$raid.lastReport.id}">{$raid.lastReport.time[0]} {$raid.lastReport.time[1]}</a>
<div class="clear"></div>
{else}
-
{/if}
</td>
<td class="action">
<a class="arrow" href="build.php?id={$parameters['id']}&t=3&raidList={$raid.id}&lid={$farmList.id}">{$smarty.const.EDIT}</a>
</td>
</tr>
{/foreach}
{else}
<td class="noData" colspan="7">{$smarty.const.NO_VILLAGES}</td>
{/if}
</tbody>
</table>
<div class="clear"></div>
<br />
<div class="troopSelection">
<div class="clear"></div>
</div>
</div>
</div>
{/foreach}
{if !empty($villageFarmLists)}
<div class="markAll">
<input type="checkbox" id="raidListMarkAll" name="s10" class="markAll" onclick="Allmsg(this.form);">
<label for="raidListMarkAll">{$smarty.const.SELECT_ALL}</label>
</div>
<br />
<div class="addSlot">
<button name="action" value="addFarmListRaid" type="submit" class="trav_buttons">{$smarty.const.ADD_RAID}</button>
<button name="action" value="startFarmListRaids" type="submit" class="trav_buttons">{$smarty.const.START_RAIDS}</button>
</div>
<br />
{/if}
<div class="options">
<button name="action" value="addFarmList" type="submit" class="trav_buttons">{$smarty.const.CREATE_NEW_LIST}</button>
</div>
</form>
</div>
+44
View File
@@ -0,0 +1,44 @@
<div id="raidListCreate">
<h4>{$smarty.const.CREATE_NEW_LIST}</h4>
{include file=$smarty.const.TEMPLATES_DIR|cat:'error.tpl'}
<form action="build.php?id={$parameters['id']}&t=3" method="post">
<div class="boxes boxesColor gray">
<div class="boxes-tl"></div>
<div class="boxes-tr"></div>
<div class="boxes-tc"></div>
<div class="boxes-ml"></div>
<div class="boxes-mr"></div>
<div class="boxes-mc"></div>
<div class="boxes-bl"></div>
<div class="boxes-br"></div>
<div class="boxes-bc"></div>
<div class="boxes-contents cf">
<input type="hidden" name="action" value="addList">
<table cellpadding="1" cellspacing="1" class="transparent"
id="raidList">
<tbody>
<tr>
<th>{$smarty.const.NAME}:</th>
<td>
<input class="text" id="name" name="name" type="text" maxLength="30">
</td>
</tr>
<tr>
<th>{$smarty.const.VILLAGE}:</th>
<td>
<select id="did" name="fromVref">
{foreach $villages as $village}
<option value="{$village.villageVref}" {if $village.villageVref == $villageVref}selected="selected"{/if}>{$village.villageName}</option>
{/foreach}
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<button class="trav_buttons" type="submit" value="createFarmList" name="action">{$smarty.const.CREATE}</button>
</form>
</div>
+10
View File
@@ -0,0 +1,10 @@
<div id="raidListSlot">
<h4>{$smarty.const.ADD_RAID}</h4>
{include file=$smarty.const.TEMPLATES_DIR|cat:'error.tpl'}
<form action="build.php?id={$parameters['id']}&t=3" method="post">
{include file=$smarty.const.TEMPLATES_DIR|cat:'goldClub/farmListRaid.tpl'}
<button type="submit" value="createFarmListRaid" name="action" id="save" class="trav_buttons">{$smarty.const.CREATE}</button>
</form>
</div>
+11
View File
@@ -0,0 +1,11 @@
<div id="raidListSlot">
<h4>{$smarty.const.EDIT_RAID}</h4>
{include file=$smarty.const.TEMPLATES_DIR|cat:'error.tpl'}
<form action="build.php?id={$parameters['id']}&t=3" method="post">
{include file=$smarty.const.TEMPLATES_DIR|cat:'goldClub/farmListRaid.tpl'}
<button type="submit" value="updateFarmListRaid" name="action" id="save" class="trav_buttons">{$smarty.const.SAVE}</button>
<button type="submit" value="deleteFarmListRaid" name="action" id="delete" class="trav_buttons">{$smarty.const.DELETE}</button>
</form>
</div>
+57
View File
@@ -0,0 +1,57 @@
<div class="boxes boxesColor gray">
<div class="boxes-tl"></div>
<div class="boxes-tr"></div>
<div class="boxes-tc"></div>
<div class="boxes-ml"></div>
<div class="boxes-mr"></div>
<div class="boxes-mc"></div>
<div class="boxes-bl"></div>
<div class="boxes-br"></div>
<div class="boxes-bc"></div>
<div class="boxes-contents cf">
<input type="hidden" name="raidList" value="{$raidList}">
<table cellpadding="1" cellspacing="1" class="transparent" id="raidList">
<tbody>
<tr>
<th>{$smarty.const.LIST_NAME}:</th>
<td>
<select name="lid">
{foreach $villageFarmLists as $farmList}
<option {if $lid == $farmList.id}selected="selected"{/if} value="{$farmList.id}">{$farmList.fromVillageName} - {$farmList.name}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<th>{$smarty.const.TARGET_VILLAGE}:</th>
<td class="target">
<div class="coordinatesInput">
<div class="xCoord">
<label for="xCoordInput">{$smarty.const.X}:</label>
<input value="{$x}" name="x" id="xCoordInput" class="text coordinates x" maxLength="4">
</div>
<br />
<div class="yCoord">
<label for="yCoordInput">{$smarty.const.Y}:</label>
<input value="{$y}" name="y" id="yCoordInput" class="text coordinates y" maxLength="4">
</div>
<div class="clear"></div>
</div>
<br />
<div class="targetSelect">
<label class="lastTargets">{$smarty.const.LAST_TARGETS}:</label>
<select name="lastTarget">
{foreach $villageLastAttackedTargets as $targetVref => $target}
<option {if $lastTarget == $targetVref}selected="selected"{/if} value="{$targetVref}">{$target.villageName} ({$target.villageCoordinates['x']}|{$target.villageCoordinates['y']})</option>
{/foreach}
</select>
</div>
<div class="clear"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
{include file=$smarty.const.TEMPLATES_DIR|cat:'goldClub/unitsList.tpl'}
<br />
+17
View File
@@ -0,0 +1,17 @@
<table class="transparent" id="raidList" cellspacing="1" cellpadding="1">
<tr>
{foreach $units as $type => $unit}
<td>
<label for="u{$type}">
<img class="unit u{($tribe - 1) * 10 + $type}" title="{$unit.name}" src="assets/img/x.gif"></label>
</td>
{/foreach}
</tr>
<tr>
{foreach $units as $type => $unit}
<td>
<input class="text" id="u{$type}" type="text" name="units[{$type}]" value="{$unit.amount}" maxLength="6">
</td>
{/foreach}
</tr>
</table>