Added Research lab queue manager.

Updated page display for shipyard, defenses and buildings.
Moved legacy template files.
Added install/migration.mysql to report changes to the database on testing environments.

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-07-29 08:09:04 +02:00
commit ddfb36efa5
341 changed files with 4238 additions and 3259 deletions

View file

@ -0,0 +1,20 @@
<div class="shipyard">
<h1><?php echo $this->__('Buildings')?></h1>
<form action="<?php echo $this->getUrl('buildings.php')?>" method="post">
<dl>
<?php echo $this->getPartial('item-list.items')->render()?>
</dl>
<input type="submit" value="<?php echo $this->__('Build')?>">
</form>
<script type="text/javascript">
/*<![CDATA[*/
(function($){
$(document).ready(function(){
$('.shipyard .buy .max').click(function(){
$('#' + this.rel).val($('#' + this.rel + ':max').val());
});
});
})(jQuery);
/*]]>*/
</script>
</div>

View file

@ -0,0 +1,18 @@
<?php /** @var Legacies_Core_Block_Template $this */?>
<dt>
<h2><a href="<?php echo $this->getItemInfoUrl()?>"><?php echo $this->escape($this->getName())?></a> (<?php echo $this->renderNumber($this->getLevel())?>)</h2>
</dt>
<dd>
<a href="<?php echo $this->getItemInfoUrl()?>" class="image"><img src="<?php echo $this->getItemImageUrl()?>" alt="" width="120" height="120" /></a>
<div class="details">
<p><?php echo $this->getDescription()?></p>
<ul>
<?php foreach ($this->getResourcesNeeded() as $resourceId => $resourceValue):?>
<li><span class="resource"><?php echo $this->getResourceName($resourceId)?></span><span class="cost"><?php echo $this->renderNumber($resourceValue)?></span></li>
<?php endforeach?>
</ul>
</div>
<div class="buy">
<p><a class="build" href="<?php echo $this->getUrl('buildings.php', array('building' => $this->getItemId()))?>"><?php echo $this->__('Build next level (%s)', $this->renderNumber($this->getLevel() + 1))?></a></p>
</div>
</dd>

View file

@ -0,0 +1,20 @@
<div class="shipyard">
<h1><?php echo $this->__('Shipyard')?></h1>
<form action="<?php echo $this->getUrl('buildings.php', array('mode' => 'fleets'))?>" method="post">
<dl>
<?php echo $this->getPartial('item-list.items')->render()?>
</dl>
<input type="submit" value="<?php echo $this->__('Build')?>">
</form>
<script type="text/javascript">
/*<![CDATA[*/
(function($){
$(document).ready(function(){
$('.shipyard .buy .max').click(function(){
$('#' + this.rel).val($('#' + this.rel + ':max').val());
});
});
})(jQuery);
/*]]>*/
</script>
</div>

View file

@ -0,0 +1,20 @@
<?php /** @var Legacies_Core_Block_Template $this */?>
<dt>
<h2><a href="<?php echo $this->getItemInfoUrl()?>"><?php echo $this->escape($this->getName())?></a> (<?php echo $this->renderNumber($this->getQty())?>)</h2>
</dt>
<dd>
<a href="<?php echo $this->getItemInfoUrl()?>" class="image"><img src="<?php echo $this->getItemImageUrl()?>" alt="" width="120" height="120" /></a>
<div class="details">
<p><?php echo $this->getDescription()?></p>
<ul>
<?php foreach ($this->getResourcesNeeded() as $resourceId => $resourceValue):?>
<li><span class="resource"><?php echo $this->getResourceName($resourceId)?></span><span class="cost"><?php echo $this->renderNumber($resourceValue)?></span></li>
<?php endforeach?>
</ul>
</div>
<div class="buy">
<p><input type="text" name="ship[<?php echo $this->getItemId()?>]" id="ship:<?php echo $this->getItemId()?>" /></p>
<input type="hidden" id="ship:<?php echo $this->getItemId()?>:max" value="<?php echo $this->escape($this->getMaximumBuildableElementsCount())?>" />
<p><a class="max" rel="ship:<?php echo $this->getItemId()?>"><?php echo $this->__('Max (%s)', $this->renderNumber($this->getMaximumBuildableElementsCount()))?></a></p>
</div>
</dd>