improved jquery on user home page
[e-DoKo.git] / include / output.php
index 9c4316c8c35fdf9485f5433f6164e7d2e692b892..13bc6f78afe7f7b7e20df445f8f25ec1ab2ebfb2 100644 (file)
@@ -293,60 +293,60 @@ function output_check_for_sickness($me,$mycards)
 
 function output_form_calls($me,$myparty)
 {
-  $highstart = "<span class=\"highcall\">";
-  $highend   = "</span>";
+  $highstart = '  <span class="highcall">';
+  $highend   = '</span>';
 
   $tmp = can_call(120,$me);
   if( $tmp )
     {
       if($tmp==2) echo $highstart;
       if($myparty=='re')
-       echo "re (120):";
+       echo '  re (120):';
       else if ($myparty=='contra')
-       echo "contra (120):";
+       echo '  contra (120):';
       else
-       echo " re/contra (120):";
-      echo " <input type=\"radio\" name=\"call\" value=\"120\" />";
+       echo '  re/contra (120):';
+      echo ' <input type="radio" name="call" value="120" />';
       if($tmp==2) echo $highend;
-      echo "<br />\n";
+      echo "\n";
     }
-  $tmp =  can_call(90,$me);
+  $tmp = can_call(90,$me);
   if( $tmp )
     {
       if($tmp==2) echo $highstart;
-      echo " 90:".
-       " <input type=\"radio\" name=\"call\" value=\"90\" />";
+      echo '  90:'.
+       ' <input type="radio" name="call" value="90" />';
       if($tmp==2) echo $highend;
-      echo "<br />\n";
+      echo "\n";
     }
   $tmp = can_call(60,$me);
   if( $tmp )
     {
       if($tmp==2) echo $highstart;
-      echo " 60:".
-       " <input type=\"radio\" name=\"call\" value=\"60\" />";
+      echo '  60:'.
+       ' <input type="radio" name="call" value="60" />';
       if($tmp==2) echo $highend;
-      echo "<br />\n";
+      echo "\n";
     }
   $tmp = can_call(30,$me);
   if( $tmp )
     {
       if($tmp==2) echo $highstart;
-      echo " 30:".
-       " <input type=\"radio\" name=\"call\" value=\"30\" />";
+      echo '  30:'.
+       ' <input type="radio" name="call" value="30" />';
       if($tmp==2) echo $highend;
-      echo "<br />\n";
+      echo "\n";
     }
   $tmp = can_call(0,$me);
   if( $tmp )
     {
       if($tmp==2) echo $highstart;
-      echo " 0:".
-       " <input type=\"radio\" name=\"call\" value=\"0\" />";
+      echo '  0:'.
+       ' <input type="radio" name="call" value="0" />';
       if($tmp==2) echo $highend;
-      echo "<br />\n".
-       " no call:".
-       " <input type=\"radio\" name=\"call\" value=\"no\" /> <br />";
+      echo "\n".
+       '  no call:'.
+       ' <input type="radio" name="call" value="no" />'."\n";
     }
 }
 
@@ -376,14 +376,39 @@ function output_header()
      <title>e-Doko</title>
      <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
      <link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
-     <link rel="stylesheet" type="text/css" href="css/standard023.css" />
-     <script type="text/javascript" src="include/game.js"> </script>
+     <link rel="stylesheet" type="text/css" href="css/standard027.css" />
      <script type="text/javascript" src="include/jquery.js"> </script>
      <script type="text/javascript" src="include/jquery.tablesorter.js"></script>
+     <script type="text/javascript" src="include/game.js"> </script>
      <script type="text/javascript">
         $(document).ready(function()
           {
               $("#ScoreTable").tablesorter({ widgets: ['zebra']});
+
+             $(".gameshidesession").click( function () {
+                 $(this).parent().children(".gamessession").hide(300);
+                 $(this).parent().children(".gamesshowsession").show();
+                 $(this).hide();
+               });
+
+             $(".gamesshowsession").click( function () {
+                 $(this).parent().children(".gamessession").show(300);
+                 $(this).parent().children(".gameshidesession").show();
+                 $(this).hide();
+               });
+
+             $(".gameshowall").click( function () {
+                 $(".gamessession").show(300);
+                 $(".gamesshowsession").hide();
+                 $(".gameshidesession").show();
+               });
+             $(".gamehideall").click( function () {
+                 $(".gamessession").hide(300);
+                 $(".gamesshowsession").show();
+                 $(".gameshidesession").hide();
+               });
+
+
            });
      </script>
   </head>
@@ -401,11 +426,11 @@ function output_header()
 
 function output_footer()
 {
-  global $REV,$PREF;
+  global $REV, $PREF, $INDEX;
 
   echo "</div>\n\n";
   echo "<div class=\"footer\">\n";
-  echo "  <p class=\"left\"> copyright 2006,2007,2008,2009,2010 Arun Persaud, Lance Thornton(graphics),  Jeff Zerger(database support) <br />\n".
+  echo "  <p class=\"left\"> copyright 2006,2007,2008,2009,2010 <a href=\"$INDEX?action=about\">Arun Persaud, et al.</a> <br />\n".
     "  Verwendung der [deutschen] Kartenbilder mit Genehmigung <br />der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger <br />\n".
     "  - ASS Altenburger Spielkarten - Spielkartenfabrik Altenburg GmbH <br />\n".
     "  a Carta Mundi Company Email: info@spielkarten.com Internet: www.spielkarten.com</p>\n";