Refactored to 2 namespaces: Wootook & Legacies
Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
cfeb6aca6d
commit
ec7e40e1aa
1004 changed files with 4808 additions and 2971 deletions
|
|
@ -0,0 +1,47 @@
|
|||
<script type="text/javascript" >
|
||||
function calcul() {
|
||||
var Metal = document.forms['marchand'].elements['metal'].value;
|
||||
var Deuterium = document.forms['marchand'].elements['deut'].value;
|
||||
|
||||
Metal = Metal * <?php echo $this->getData('mod_ma_res_a')?>;
|
||||
Deuterium = Deuterium * <?php echo $this->getData('mod_ma_res_b')?>;
|
||||
|
||||
var Cristal = Metal + Deuterium;
|
||||
document.getElementById("cristal").innerHTML=Cristal;
|
||||
|
||||
if (isNaN(document.forms['marchand'].elements['metal'].value)) {
|
||||
document.getElementById("cristal").innerHTML="<?php echo $this->getData('mod_ma_nbre')?>";
|
||||
}
|
||||
if (isNaN(document.forms['marchand'].elements['deut'].value)) {
|
||||
document.getElementById("cristal").innerHTML="<?php echo $this->getData('mod_ma_nbre')?>";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<br>
|
||||
<center>
|
||||
<form id="marchand" action="marchand.php" method="post">
|
||||
<input type="hidden" name="ress" value="cristal">
|
||||
<table width="569">
|
||||
<tr>
|
||||
<td class="c" colspan="5"><b><?php echo $this->getData('mod_ma_buton')?></b></td>
|
||||
</tr><tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><?php echo $this->getData('mod_ma_cours')?></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('Crystal')?></th>
|
||||
<th><span id='cristal'></span></th>
|
||||
<th><?php echo $this->getData('mod_ma_res')?></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('Metal')?></th>
|
||||
<th><input name="metal" type="text" value="0" onkeyup="calcul()"/></th>
|
||||
<th><?php echo $this->getData('mod_ma_res_a')?></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('Deuterium')?></th>
|
||||
<th><input name="deut" type="text" value="0" onkeyup="calcul()"/></th>
|
||||
<th><?php echo $this->getData('mod_ma_res_b')?></th>
|
||||
</tr><tr>
|
||||
<th colspan="6"><input type="submit" value="<?php echo $this->getData('mod_ma_excha')?>" /></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
Loading…
Reference in a new issue