manage list update (remove too old lines)
[brisk.git] / web / moderation.php
1 <?php
2 $G_base = "./";
3
4 require_once($G_base."Obj/brisk.phh");
5 ?>
6 <html>
7 <head>
8 <title>Moderation</title>
9 <link rel="stylesheet" type="text/css" href="moderation.css">
10 <script type="text/javascript"><!--
11 window.is_loaded = false;
12
13 function room_show_update(obj)
14 {
15     if (typeof(window.anc) != 'undefined') {
16         window.anc.room_show_update(obj);
17     }
18 }
19
20 function table_show_update(obj)
21 {
22     if (typeof(window.anc) != 'undefined') {
23         window.anc.table_show_update(obj);
24     }
25 }
26
27 window.onload = function() {
28     window.is_loaded = true;     
29 }
30
31 window.onbeforeunload = function() {
32     if (typeof(window.anc) != 'undefined') {
33         window.anc.onunload();
34     }
35 }
36 // -->
37 </script>
38 <link rel="stylesheet" type="text/css" href="moderation.css">
39 </head>
40 <body>
41     <div><?php /* phpinfo(); */ ?></div>
42 <div id="mainbody">
43     <div class="moder_tabanc">
44     <table id="moder_tab"></table>
45     </div>
46     <div class="moder_cmdanc">
47     <table>
48     <tr><td> mostra room <input type="checkbox" name="room_show" CHECKED onclick="room_show_update(this);"></td>
49     <td> tavolo: <select name="table_show" onchange="table_show_update(this);">
50     <option selected value="-1">tutti</option>
51     <?php
52
53     for ($i = 0 ; $i < TABLES_N ; $i++) {
54         printf('<option value="%d">%d</option>', $i, $i);
55     }
56     ?>
57     </select>
58     </td></tr>
59     </table>
60     </div>
61     </div>
62 </body>
63 </html>