summaryrefslogtreecommitdiff
path: root/tdd/tdd-handrecord-tpl.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-11-07 22:08:03 +0100
committeremkael <emkael@tlen.pl>2018-11-07 23:03:32 +0100
commit5f655f3b9fff2f41754b9612ce178b495910f4d4 (patch)
treed0e5371d8b7e8a11b03953325bf98005c3fe824b /tdd/tdd-handrecord-tpl.php
parentf5998c8bad50636ce95567eec4f9f3b837c017cc (diff)
Moving app to separate directory, scanning for PBN files in a separate directory
Fixes #2
Diffstat (limited to 'tdd/tdd-handrecord-tpl.php')
-rw-r--r--tdd/tdd-handrecord-tpl.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/tdd/tdd-handrecord-tpl.php b/tdd/tdd-handrecord-tpl.php
new file mode 100644
index 0000000..65836cf
--- /dev/null
+++ b/tdd/tdd-handrecord-tpl.php
@@ -0,0 +1,56 @@
+<table class="handrecord">
+ <tr>
+ <td>
+ <h4>
+ <?php echo $this->dealer; ?><br>
+ <?php echo $this->vuln; ?>
+ </h4>
+ </td>
+ <td><?php echo $this->format_hand(0); ?></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><?php echo $this->format_hand(3); ?></td>
+ <td><img src="images/<?php echo ($this->deal_num)%16 ? ($this->deal_num)%16 : 16; ?>.gif"
+ alt="<?php echo $this->dealer.'/'.$this->vuln; ?>" /></td>
+ <td><?php echo $this->format_hand(1); ?></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td><?php echo $this->format_hand(2); ?></td>
+ <td>&nbsp;</td>
+ </tr>
+ <?php if($this->ability): ?>
+ <tr><td colspan="5">
+ <small class="sm">Maksymalna liczba lew:</small>
+ <table class="ability" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="an2">&nbsp;</td>
+ <td class="an3"><img src="images/N.gif" alt="NT" /></td>
+ <td class="an3"><img src="images/S.gif" alt="S" /></td>
+ <td class="an3"><img src="images/H.gif" alt="H" /></td>
+ <td class="an3"><img src="images/D.gif" alt="D" /></td>
+ <td class="an3"><img src="images/C.gif" alt="C" /></td>
+ <td>&nbsp;</td>
+ <td class="an2">&nbsp;</td>
+ <td class="an3"><img src="images/N.gif" alt="NT" /></td>
+ <td class="an3"><img src="images/S.gif" alt="S" /></td>
+ <td class="an3"><img src="images/H.gif" alt="H" /></td>
+ <td class="an3"><img src="images/D.gif" alt="D" /></td>
+ <td class="an3"><img src="images/C.gif" alt="C" /></td>
+ </tr>
+ <tr>
+ <?php echo $this->format_ability(0); ?>
+ <td>&nbsp;</td>
+ <?php echo $this->format_ability(1); ?>
+ </tr>
+ <tr>
+ <?php echo $this->format_ability(2); ?>
+ <td>&nbsp;</td>
+ <?php echo $this->format_ability(3); ?>
+ </tr>
+ </table>
+ Minimax: <?php echo $this->format_minimax(); ?>
+ </td></tr>
+ <?php endif; ?>
+</table>