window opened with '_blank' name to prevent win reuse during reload, reload managed...
[brisk.git] / web / moderation.php
index cddc0d8..50f320a 100644 (file)
@@ -1,8 +1,25 @@
+<?php
+$G_base = "./";
+
+require_once($G_base."Obj/brisk.phh");
+?>
 <html>
 <head>
 <title>Moderation</title>
 <script type="text/javascript"><!--
 window.is_loaded = false;
+
+function showroom_update(obj)
+{
+    //    if (typeof(window.anc) != 'undefined') {
+    //    window.anc.showroom_update();
+    //}
+}
+
+function onlytable_update(obj)
+{
+}
+
 window.onload = function() {
     window.is_loaded = true;     
 }
@@ -17,13 +34,27 @@ window.onbeforeunload = function() {
 <link rel="stylesheet" type="text/css" href="moderation.css">
 </head>
 <body>
-<?php
-  // sleep(10);
-?>
 <div id="mainbody">
     <div class="moder_tabanc">
-        <table id="moder_tab"></table>
+    <table id="moder_tab"></table>
+    </div>
+    <div>
+    <table>
+    <tr><th>Room</th><th>Tavolo</th></tr>
+    <tr>
+    <td><input type="checkbox" name="showroom" onclick="showroom_update(this);">Show room<td>
+    <td><select name="onlytable" onchange="onlytable_update(this);">
+    <option selected>Tutti</option>
+    <?php
+
+    for ($i = 0 ; $i < TABLES_N ; $i++) {
+        printf("<option>%d</option>", $i);
+    }
+    ?>
+    </select></td>
+    </tr>
+    </table>
+    </div>
     </div>
-</div>
 </body>
 </html>