summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--css/standard.css6
-rw-r--r--index.php61
-rw-r--r--pics/button/0_button.pngbin0 -> 4845 bytes
-rw-r--r--pics/button/30_button.pngbin0 -> 7009 bytes
-rw-r--r--pics/button/60_button.pngbin0 -> 7175 bytes
-rw-r--r--pics/button/90_button.pngbin0 -> 7130 bytes
-rw-r--r--pics/button/clubsolo_button.pngbin0 -> 6179 bytes
-rw-r--r--pics/button/contra_button.pngbin0 -> 6580 bytes
-rw-r--r--pics/button/diamondsolo_button.pngbin0 -> 5265 bytes
-rw-r--r--pics/button/heartsolo_button.pngbin0 -> 5670 bytes
-rw-r--r--pics/button/jacksolo_button.pngbin0 -> 13527 bytes
-rw-r--r--pics/button/notrumpsolo_button.pngbin0 -> 9130 bytes
-rw-r--r--pics/button/poverty2_notrump_button.pngbin0 -> 8431 bytes
-rw-r--r--pics/button/poverty2_partner_button.pngbin0 -> 8107 bytes
-rw-r--r--pics/button/poverty2_trump_button.pngbin0 -> 8210 bytes
-rw-r--r--pics/button/poverty_notrump_button.pngbin0 -> 8374 bytes
-rw-r--r--pics/button/poverty_partner_button.pngbin0 -> 8142 bytes
-rw-r--r--pics/button/poverty_trump_button.pngbin0 -> 8170 bytes
-rw-r--r--pics/button/queensolo_button.pngbin0 -> 13181 bytes
-rw-r--r--pics/button/re_button.pngbin0 -> 5368 bytes
-rw-r--r--pics/button/spadesolo_button.pngbin0 -> 10210 bytes
-rw-r--r--pics/button/wedding_button.pngbin0 -> 13717 bytes
-rw-r--r--pics/button/wedding_partner_button.pngbin0 -> 14060 bytes
23 files changed, 54 insertions, 13 deletions
diff --git a/css/standard.css b/css/standard.css
index a54d165..988f74b 100644
--- a/css/standard.css
+++ b/css/standard.css
@@ -304,4 +304,10 @@ ul.tricks li div div.card3 span{
.cardinput:hover{
background-color:red;
+}
+
+div span img.button {
+ height: 2em;
+ width: 2em;
+
} \ No newline at end of file
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 "<img src=\"pics/button/poverty_trump_button.png\" class=\"button\" alt=\"poverty < trump back\" />";
else
- echo "(poverty <)";
+ echo "<img src=\"pics/button/poverty_notrump_button.png\" class=\"button\" alt=\"poverty <\" />";
}
else
- echo "(poverty >)";
+ echo "<img src=\"pics/button/poverty_partner_button.png\" class=\"button\" alt=\"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 "<img src=\"pics/button/poverty_trump_button.png\" class=\"button\" alt=\"poverty < trump back\" />";
else
- echo "(poverty A <)";
+ echo "<img src=\"pics/button/poverty_notrump_button.png\" class=\"button\" alt=\"poverty <\" />";
}
else
- echo "(poverty A >)";
+ echo "<img src=\"pics/button/poverty_partner_button.png\" class=\"button\" alt=\"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 "<img src=\"pics/button/poverty2_trump_button.png\" class=\"button\" alt=\"poverty2 < trump back\" />";
else
- echo "(poverty B <)";
+ echo "<img src=\"pics/button/poverty2_notrump_button.png\" class=\"button\" alt=\"poverty2 <\" />";
}
else
- echo "(poverty B >)";
+ echo "<img src=\"pics/button/poverty2_partner_button.png\" class=\"button\" alt=\"poverty2 >\" />";
if($GT=="wedding" && $party=="re")
if($sickness=="wedding")
- echo "(wedding +)";
+ echo "<img src=\"pics/button/wedding_button.png\" class=\"button\" alt=\"wedding\" />";
else
- echo "(wedding)";
+ echo "<img src=\"pics/button/wedding_partner_button.png\" class=\"button\" alt=\"wedding partner\" />";
if(ereg("solo",$GT) && $party=="re")
- echo "($GT)";
+ {
+ if(ereg("queen",$GT))
+ echo "<img src=\"pics/button/queensolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ else if(ereg("jack",$GT))
+ echo "<img src=\"pics/button/jacksolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ else if(ereg("club",$GT))
+ echo "<img src=\"pics/button/clubsolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ else if(ereg("spade",$GT))
+ echo "<img src=\"pics/button/spadesolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ else if(ereg("heart",$GT))
+ echo "<img src=\"pics/button/heartsolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ else if(ereg("trumpless",$GT))
+ echo "<img src=\"pics/button/notrumpsolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ else if(ereg("trump",$GT))
+ echo "<img src=\"pics/button/diamandsolo_button.png\" class=\"button\" alt=\"$GT\" />";
+ }
/* add point calls */
if($call!=NULL)
- echo " $party $call ";
+ {
+ if($party=="re")
+ echo "<img src=\"pics/button/re_button.png\" class=\"button\" alt=\"re\" />";
+ else
+ echo "<img src=\"pics/button/contra_button.png\" class=\"button\" alt=\"contra\" />";
+ switch($call)
+ {
+ case "0":
+ echo "<img src=\"pics/button/0_button.png\" class=\"button\" alt=\"0\" />";
+ break;
+ case "30":
+ echo "<img src=\"pics/button/30_button.png\" class=\"button\" alt=\"30\" />";
+ break;
+ case "60":
+ echo "<img src=\"pics/button/60_button.png\" class=\"button\" alt=\"60\" />";
+ break;
+ case "90":
+ echo "<img src=\"pics/button/90_button.png\" class=\"button\" alt=\"90\" />";
+ break;
+ }
+ }
echo "<br />\n";
echo " local time: ".date("Y-m-d H:i:s")."<br />\n";
diff --git a/pics/button/0_button.png b/pics/button/0_button.png
new file mode 100644
index 0000000..12e10d5
--- /dev/null
+++ b/pics/button/0_button.png
Binary files differ
diff --git a/pics/button/30_button.png b/pics/button/30_button.png
new file mode 100644
index 0000000..d6a211e
--- /dev/null
+++ b/pics/button/30_button.png
Binary files differ
diff --git a/pics/button/60_button.png b/pics/button/60_button.png
new file mode 100644
index 0000000..7a89859
--- /dev/null
+++ b/pics/button/60_button.png
Binary files differ
diff --git a/pics/button/90_button.png b/pics/button/90_button.png
new file mode 100644
index 0000000..98f7099
--- /dev/null
+++ b/pics/button/90_button.png
Binary files differ
diff --git a/pics/button/clubsolo_button.png b/pics/button/clubsolo_button.png
new file mode 100644
index 0000000..4613198
--- /dev/null
+++ b/pics/button/clubsolo_button.png
Binary files differ
diff --git a/pics/button/contra_button.png b/pics/button/contra_button.png
new file mode 100644
index 0000000..e9b0d58
--- /dev/null
+++ b/pics/button/contra_button.png
Binary files differ
diff --git a/pics/button/diamondsolo_button.png b/pics/button/diamondsolo_button.png
new file mode 100644
index 0000000..2dbd8ee
--- /dev/null
+++ b/pics/button/diamondsolo_button.png
Binary files differ
diff --git a/pics/button/heartsolo_button.png b/pics/button/heartsolo_button.png
new file mode 100644
index 0000000..4cd8cbc
--- /dev/null
+++ b/pics/button/heartsolo_button.png
Binary files differ
diff --git a/pics/button/jacksolo_button.png b/pics/button/jacksolo_button.png
new file mode 100644
index 0000000..ca4bbaf
--- /dev/null
+++ b/pics/button/jacksolo_button.png
Binary files differ
diff --git a/pics/button/notrumpsolo_button.png b/pics/button/notrumpsolo_button.png
new file mode 100644
index 0000000..688524a
--- /dev/null
+++ b/pics/button/notrumpsolo_button.png
Binary files differ
diff --git a/pics/button/poverty2_notrump_button.png b/pics/button/poverty2_notrump_button.png
new file mode 100644
index 0000000..7dec511
--- /dev/null
+++ b/pics/button/poverty2_notrump_button.png
Binary files differ
diff --git a/pics/button/poverty2_partner_button.png b/pics/button/poverty2_partner_button.png
new file mode 100644
index 0000000..06ad3d8
--- /dev/null
+++ b/pics/button/poverty2_partner_button.png
Binary files differ
diff --git a/pics/button/poverty2_trump_button.png b/pics/button/poverty2_trump_button.png
new file mode 100644
index 0000000..b38c4e1
--- /dev/null
+++ b/pics/button/poverty2_trump_button.png
Binary files differ
diff --git a/pics/button/poverty_notrump_button.png b/pics/button/poverty_notrump_button.png
new file mode 100644
index 0000000..d693aa3
--- /dev/null
+++ b/pics/button/poverty_notrump_button.png
Binary files differ
diff --git a/pics/button/poverty_partner_button.png b/pics/button/poverty_partner_button.png
new file mode 100644
index 0000000..0facac2
--- /dev/null
+++ b/pics/button/poverty_partner_button.png
Binary files differ
diff --git a/pics/button/poverty_trump_button.png b/pics/button/poverty_trump_button.png
new file mode 100644
index 0000000..079116d
--- /dev/null
+++ b/pics/button/poverty_trump_button.png
Binary files differ
diff --git a/pics/button/queensolo_button.png b/pics/button/queensolo_button.png
new file mode 100644
index 0000000..9f57641
--- /dev/null
+++ b/pics/button/queensolo_button.png
Binary files differ
diff --git a/pics/button/re_button.png b/pics/button/re_button.png
new file mode 100644
index 0000000..69dcb48
--- /dev/null
+++ b/pics/button/re_button.png
Binary files differ
diff --git a/pics/button/spadesolo_button.png b/pics/button/spadesolo_button.png
new file mode 100644
index 0000000..2326004
--- /dev/null
+++ b/pics/button/spadesolo_button.png
Binary files differ
diff --git a/pics/button/wedding_button.png b/pics/button/wedding_button.png
new file mode 100644
index 0000000..0cadddd
--- /dev/null
+++ b/pics/button/wedding_button.png
Binary files differ
diff --git a/pics/button/wedding_partner_button.png b/pics/button/wedding_partner_button.png
new file mode 100644
index 0000000..d2b110a
--- /dev/null
+++ b/pics/button/wedding_partner_button.png
Binary files differ