diff options
author | Arun Persaud <arun@nubati.net> | 2007-06-24 11:30:20 +0200 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-06-24 11:30:20 +0200 |
commit | b6d9a4aa79763981c524b3915ab11e449cad4c42 (patch) | |
tree | 5b713bca22f5889fbc859e84043e08565d20e13b /output.php | |
parent | 7405ce4fabf64e905e7b7371764d74dbc4b1b198 (diff) | |
download | e-DoKo-b6d9a4aa79763981c524b3915ab11e449cad4c42.tar.gz e-DoKo-b6d9a4aa79763981c524b3915ab11e449cad4c42.tar.bz2 e-DoKo-b6d9a4aa79763981c524b3915ab11e449cad4c42.zip |
CLEANUP: get card names from the database
Diffstat (limited to 'output.php')
-rw-r--r-- | output.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -179,9 +179,9 @@ function display_card($card,$dir="english") * convert even cards to the matching odd value */ if( $card/2 - (int)($card/2) == 0.5) - echo "<img src=\"cards/".$dir."/".$card.".png\" alt=\"".card_to_name($card)."\" />\n"; + echo "<img src=\"cards/".$dir."/".$card.".png\" alt=\"".DB_get_card_name($card)."\" />\n"; else - echo "<img src=\"cards/".$dir."/".($card-1).".png\" alt=\"".card_to_name($card-1)."\" />\n"; + echo "<img src=\"cards/".$dir."/".($card-1).".png\" alt=\"".DB_get_card_name($card-1)."\" />\n"; return; } @@ -189,9 +189,9 @@ function display_card($card,$dir="english") function display_link_card($card,$dir="english",$type="card") { if( $card/2 - (int)($card/2) == 0.5) - echo "<div class=\"cardinput\"><input type=\"radio\" name=\"".$type."\" value=\"".$card."\" /><img src=\"cards/".$dir."/".$card.".png\" alt=\"\" /></div>\n"; + echo "<div class=\"cardinput\"><input type=\"radio\" name=\"".$type."\" value=\"".$card."\" /><img src=\"cards/".$dir."/".$card.".png\" alt=\"".DB_get_card_name($card)."\" /></div>\n"; else - echo "<div class=\"cardinput\" ><input type=\"radio\" name=\"".$type."\" value=\"".$card."\" /><img src=\"cards/".$dir."/".($card-1).".png\" alt=\"\" /></div>\n"; + echo "<div class=\"cardinput\" ><input type=\"radio\" name=\"".$type."\" value=\"".$card."\" /><img src=\"cards/".$dir."/".($card-1).".png\" alt=\"".DB_get_card_name($card-1)."\" /></div>\n"; return; } |