summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-09-19 22:25:11 -0700
committerArun Persaud <arun@nubati.net>2012-09-19 22:25:11 -0700
commitf3069376c510ac7dfd57d801004c5657a07fdca6 (patch)
tree46ca2059140797abddbee0d0db3fd3fb36551d20 /include/output.php
parent3f1dad2b194db78c5e8e4f72d22eb7310022a999 (diff)
downloade-DoKo-f3069376c510ac7dfd57d801004c5657a07fdca6.tar.gz
e-DoKo-f3069376c510ac7dfd57d801004c5657a07fdca6.tar.bz2
e-DoKo-f3069376c510ac7dfd57d801004c5657a07fdca6.zip
BUGFIX: css index prevented user from selecting a radio button and minor tweaks
* fixed in sickness screen * removed unnessecary questions * pre-selected yes for starting a game * some minor css tweaks
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/output.php b/include/output.php
index c2a644b..0b18e00 100644
--- a/include/output.php
+++ b/include/output.php
@@ -280,61 +280,61 @@ function output_check_for_sickness($me,$mycards)
echo ' </select>';
echo ' <br />';
- echo _('Wedding?');
if(check_wedding($mycards))
{
+ echo _('Do you want to call Wedding?');
echo ' '._('yes')."<input type=\"radio\" name=\"wedding\" value=\"yes\" checked=\"checked\" />";
echo ' '._('no')." <input type=\"radio\" name=\"wedding\" value=\"no\" /> <br />\n";
}
else
{
- echo ' '._('no')." <input type=\"hidden\" name=\"wedding\" value=\"no\" /> <br />\n";
+ echo " <input type=\"hidden\" name=\"wedding\" value=\"no\" />\n";
};
- echo _('Do you have poverty?');
if(count_trump($mycards)<4)
{
+ echo _('Do you want to call poverty?');
echo ' '._('yes')."<input type=\"radio\" name=\"poverty\" value=\"yes\" checked=\"checked\" />";
echo ' '._('no')." <input type=\"radio\" name=\"poverty\" value=\"no\" /> <br />\n";
}
else
{
- echo ' '._('no')." <input type=\"hidden\" name=\"poverty\" value=\"no\" /> <br />\n";
+ echo " <input type=\"hidden\" name=\"poverty\" value=\"no\" />\n";
};
- echo _('Do you have too many nines?');
if(count_nines($mycards)>4)
{
+ echo _('Do you want to call too many nines?');
echo ' '._('yes')."<input type=\"radio\" name=\"nines\" value=\"yes\" checked=\"checked\" />";
echo ' '._('no')." <input type=\"radio\" name=\"nines\" value=\"no\" /> <br />\n";
}
else
{
- echo ' '._('no')." <input type=\"hidden\" name=\"nines\" value=\"no\" /> <br />\n";
+ echo " <input type=\"hidden\" name=\"nines\" value=\"no\" />\n";
};
if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty')
{
- if($RULES['lowtrump']=='cancel')
- echo _('Do you have low trump (cancel game)?');
- else
- echo _('Do you have low trump (poverty)?');
-
if(check_low_trump($mycards))
{
+ if($RULES['lowtrump']=='cancel')
+ echo _('Do you want to call low trump (cancel game)?');
+ else
+ echo _('Do you want to call low trump (poverty)?');
+
echo ' '._('yes')."<input type=\"radio\" name=\"lowtrump\" value=\"yes\" checked=\"checked\" />";
echo ' '._('no')." <input type=\"radio\" name=\"lowtrump\" value=\"no\" /> <br />\n";
}
else
{
- echo ' '._('no')." <input type=\"hidden\" name=\"lowtrump\" value=\"no\" /> <br />\n";
+ echo " <input type=\"hidden\" name=\"lowtrump\" value=\"no\" />\n";
};
}
else
- echo "<input type=\"hidden\" name=\"lowtrump\" value=\"no\" />";
+ echo " <input type=\"hidden\" name=\"lowtrump\" value=\"no\" />";
echo "<input type=\"hidden\" name=\"me\" value=\"$me\" />\n";
- echo "<input type=\"submit\" value=\""._('count me in')."\" />\n";
+ echo "<br /><input type=\"submit\" value=\""._('count me in')."\" />\n";
echo "</div>\n";
@@ -404,7 +404,7 @@ function output_check_want_to_play($me)
{
echo ' <div class="joingame">';
echo ' '._('Do you want to play a game of DoKo?').' <br />';
- echo ' '._('yes').'<input type="radio" name="in" value="yes" />';
+ echo ' '._('yes').'<input type="radio" name="in" value="yes" checked="checked" />';
echo ' '._('no').'<input type="radio" name="in" value="no" /> <br />';
echo "<input type=\"hidden\" name=\"me\" value=\"$me\" />\n";
echo "\n";