From 1f6dbb2039311c94e7932fac52626442d215d2b5 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Wed, 20 Jun 2007 10:28:04 +0200 Subject: LAYOUT: added icons from Lance re/contra/120...0 and wedding now have icons --- index.php | 61 ++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 13 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 1db07ce..aec7c7d 100644 --- a/index.php +++ b/index.php @@ -1042,12 +1042,12 @@ else if(myisset("me")) $cards = DB_get_all_hand($userhash); $trumpNR = count_trump($cards); if($trumpNR) - echo "(poverty < trump back)"; + echo "\"poverty"; else - echo "(poverty <)"; + echo "\"poverty"; } else - echo "(poverty >)"; + echo "\"poverty\" />"; if($GT=="dpoverty") if($party=="re") @@ -1057,12 +1057,12 @@ else if(myisset("me")) $cards = DB_get_all_hand($userhash); $trumpNR = count_trump($cards); if($trumpNR) - echo "(poverty A < trump back)"; + echo "\"poverty"; else - echo "(poverty A <)"; + echo "\"poverty"; } else - echo "(poverty A >)"; + echo "\"poverty\" />"; else if($sickness=="poverty") { @@ -1070,25 +1070,60 @@ else if(myisset("me")) $cards = DB_get_all_hand($userhash); $trumpNR = count_trump($cards); if($trumpNR) - echo "(poverty B < trump back)"; + echo "\"poverty2"; else - echo "(poverty B <)"; + echo "\"poverty2"; } else - echo "(poverty B >)"; + echo "\"poverty2\" />"; if($GT=="wedding" && $party=="re") if($sickness=="wedding") - echo "(wedding +)"; + echo "\"wedding\""; else - echo "(wedding)"; + echo "\"wedding"; if(ereg("solo",$GT) && $party=="re") - echo "($GT)"; + { + if(ereg("queen",$GT)) + echo "\"$GT\""; + else if(ereg("jack",$GT)) + echo "\"$GT\""; + else if(ereg("club",$GT)) + echo "\"$GT\""; + else if(ereg("spade",$GT)) + echo "\"$GT\""; + else if(ereg("heart",$GT)) + echo "\"$GT\""; + else if(ereg("trumpless",$GT)) + echo "\"$GT\""; + else if(ereg("trump",$GT)) + echo "\"$GT\""; + } /* add point calls */ if($call!=NULL) - echo " $party $call "; + { + if($party=="re") + echo "\"re\""; + else + echo "\"contra\""; + switch($call) + { + case "0": + echo "\"0\""; + break; + case "30": + echo "\"30\""; + break; + case "60": + echo "\"60\""; + break; + case "90": + echo "\"90\""; + break; + } + } echo "
\n"; echo " local time: ".date("Y-m-d H:i:s")."
\n"; -- cgit v1.2.3-18-g5258