summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-01-15 18:50:56 -0800
committerArun Persaud <arun@nubati.net>2009-01-15 18:50:56 -0800
commit9ea0c1fc3eb689bc8e0223595d42d2e3ecae4192 (patch)
treed7ee9da715a48b396c3e99db2a41631ec927a337 /include/output.php
parentd39212226664baf71e5af60da3d9cbb0c2990356 (diff)
downloade-DoKo-9ea0c1fc3eb689bc8e0223595d42d2e3ecae4192.tar.gz
e-DoKo-9ea0c1fc3eb689bc8e0223595d42d2e3ecae4192.tar.bz2
e-DoKo-9ea0c1fc3eb689bc8e0223595d42d2e3ecae4192.zip
NEW FEATURE: only show re or contra for calls
makes it clear what you can call in a silent solo. Fixes issue #41.
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/output.php b/include/output.php
index dc6f793..f694c5b 100644
--- a/include/output.php
+++ b/include/output.php
@@ -221,11 +221,18 @@ function output_check_for_sickness($me,$mycards)
return;
}
-function output_form_calls($me)
+function output_form_calls($me,$myparty)
{
if( can_call(120,$me) )
- echo " re/contra (120):".
- " <input type=\"radio\" name=\"call\" value=\"120\" /> <br />";
+ {
+ if($myparty=='re')
+ echo "re (120):";
+ else if ($myparty=='contra')
+ echo "contra (120):";
+ else
+ echo " re/contra (120):";
+ echo " <input type=\"radio\" name=\"call\" value=\"120\" /> <br />";
+ }
if( can_call(90,$me) )
echo " 90:".
" <input type=\"radio\" name=\"call\" value=\"90\" /> <br />";