aggiunto expires a 2 gg per le immagini
[brisk.git] / web / index.php
index b5d96ed..02e4df5 100644 (file)
@@ -63,7 +63,7 @@ function main()
        $ACTION = "room";
        
        // setcookie ("sess", "", time() + 180);      
-       standup_update(&$bri,&$user);
+       $bri->standup_update(&$user);
        
        if (save_data(&$bri) == FALSE) {
          echo "ERRORE SALVATAGGIO\n";
@@ -112,9 +112,9 @@ function main()
     $tables .= '</table>';
   }
 
-$brisk_header = '<div class="container">
+$brisk_header_form = '<div class="container">
 <!-- =========== header ===========  -->
-<div class="header">
+<div id="header" class="header">
 <img class="nobo" src="img/brisk_logo64.png">
 briscola chiamata in salsa ajax<br><br>
 </div>
@@ -127,7 +127,8 @@ sponsored by:<br><br>
 <a target="_blank" href="http://www.alternativeoutput.it"><img class="nobo" src="img/altout80x15.png"></a><br>
 <a target="_blank" href="http://www.dynamica.it"><img class="nobo" src="img/dynamica.png"></a><br><br>
 supported by:<br><br>
-<a target="_blank" href="http://www.briscolachiamata.it"><img class="nobo" src="img/brichi.png"></a><br><br>
+<a target="_blank" href="http://www.briscolachiamata.it"><img class="nobo" src="img/brichi.png"></a><br><br><br>
+%s
 </div>';
     
   /* Templates. */
@@ -142,6 +143,7 @@ supported by:<br><br>
 <script type="text/javascript" src="commons.js"></script> 
 <script type="text/javascript" src="xhr.js"></script>
 <script type="text/javascript" src="preload_img.js"></script>
+<link rel="stylesheet" type="text/css" href="brisk.css">
 <link rel="stylesheet" type="text/css" href="room.css">
 </head>
 <body>
@@ -151,11 +153,11 @@ supported by:<br><br>
    }
 </SCRIPT>
 <?php
-    echo "$brisk_header";
+    printf($brisk_header_form, '');
 ?> 
 
 <!--  =========== tables ===========  -->
-<div class="tables">
+<div id="tables" class="tables">
 <?php echo "$body"; ?>
 
 <br>
@@ -164,6 +166,7 @@ supported by:<br><br>
 Digita il tuo nickname per accedere ai tavoli della briscola.<br><br>
 <form method="post" action="">
 <input id="nameid" name="name" type="text" size="24" maxlength="12" value="">
+<input id="sub"    value="entra" type="submit" class="button">
 </form>
 </div>
 </div></div>
@@ -194,6 +197,7 @@ Digita il tuo nickname per accedere ai tavoli della briscola.<br><br>
 <script type="text/javascript" src="commons.js"></script> 
 <script type="text/javascript" src="xhr.js"></script>
 <script type="text/javascript" src="preload_img.js"></script>
+<link rel="stylesheet" type="text/css" href="brisk.css">
 <link rel="stylesheet" type="text/css" href="room.css">
 </head>
 <body>
@@ -232,16 +236,16 @@ else {
 
 </SCRIPT>
 <?php
-    echo "$brisk_header";
+    printf($brisk_header_form, '<input type="button" class="button" name="xhelp"  value="Help." onclick="act_help();"><br><br><input type="button" class="button" name="xabout"  value="About." onclick="act_about();">');
 ?> 
 <!--  =========== tables ===========  -->
-<div class="tables">
+<div id="tables" class="tables">
 <input name="sess" type="hidden" value="<?php echo "$user->sess"; ?>">
 <?php echo "$tables"; ?>
 </div>
 
 <!--  =========== bottom ===========  -->
-<div class="bottom">
+<div id="bottom" class="bottom">
 <b>Chat</b>
 <div id="txt" class="chatt">
 </div>