summaryrefslogtreecommitdiffstats
path: root/output.php
diff options
context:
space:
mode:
Diffstat (limited to 'output.php')
-rw-r--r--output.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/output.php b/output.php
index 55cf0a5..1e747e6 100644
--- a/output.php
+++ b/output.php
@@ -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;
}