diff options
author | arun <arun@nubati.net> | 2007-03-24 21:31:28 +0000 |
---|---|---|
committer | arun <arun> | 2007-03-24 21:31:28 +0000 |
commit | 72d1c47c36285f1ed7f659e8b8761781caa41c1f (patch) | |
tree | cc4bb9584d391619484358708283f1d2203c94ca /output.php | |
parent | a85c98f05cdf22065914272eb21e97cb8a344036 (diff) | |
download | e-DoKo-72d1c47c36285f1ed7f659e8b8761781caa41c1f.tar.gz e-DoKo-72d1c47c36285f1ed7f659e8b8761781caa41c1f.tar.bz2 e-DoKo-72d1c47c36285f1ed7f659e8b8761781caa41c1f.zip |
Preparation for adding german cards
Diffstat (limited to 'output.php')
-rw-r--r-- | output.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -141,25 +141,25 @@ function output_form_for_new_game($names) <?php } -function display_card($card) +function display_card($card,$dir="english") { /* cards are only availabl for the odd values, e.g. 1.png, 3.png, ... * convert even cards to the matching odd value */ if( $card/2 - (int)($card/2) == 0.5) - echo "<img src=\"cards/".$card.".png\" alt=\"".card_to_name($card)."\" />\n"; + echo "<img src=\"cards/".$dir."/".$card.".png\" alt=\"".card_to_name($card)."\" />\n"; else - echo "<img src=\"cards/".($card-1).".png\" alt=\"".card_to_name($card-1)."\" />\n"; + echo "<img src=\"cards/".$dir."/".($card-1).".png\" alt=\"".card_to_name($card-1)."\" />\n"; return; } -function display_link_card($card) +function display_link_card($card,$dir="english") { if( $card/2 - (int)($card/2) == 0.5) - echo "<input type=\"radio\" name=\"card\" value=\"".$card."\" /><img src=\"cards/".$card.".png\" alt=\"\" />\n"; + echo "<input type=\"radio\" name=\"card\" value=\"".$card."\" /><img src=\"cards/".$dir."/".$card.".png\" alt=\"\" />\n"; else - echo "<input type=\"radio\" name=\"card\" value=\"".$card."\" /><img src=\"cards/".($card-1).".png\" alt=\"\" />\n"; + echo "<input type=\"radio\" name=\"card\" value=\"".$card."\" /><img src=\"cards/".$dir."/".($card-1).".png\" alt=\"\" />\n"; return; } |