0241d792bbd00a1b2720dac3a2eb139146c340d3
[brisk.git] / table.php
1 <?php
2 /*
3  *  brisk - table.php
4  *
5  *  Copyright (C) 2006 matteo.nastasi@milug.org
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details. You should have received a
16  * copy of the GNU General Public License along with this program; if
17  * not, write to the Free Software Foundation, Inc, 59 Temple Place -
18  * Suite 330, Boston, MA 02111-1307, USA.
19  *
20  * $Id$
21  *
22  */
23 ?>
24 <html>
25 <head>
26 <title>Brisk - Tavolo</title>
27 <link rel="shortcut icon" href="img/brisk_ico.png">
28 <script type="text/javascript" src="dnd.js"></script>
29 <script type="text/javascript" src="dom-drag.js"></script>
30 <script type="text/javascript" src="commons.js"></script> 
31 <script type="text/javascript" src="xhr.js"></script>
32 <script type="text/javascript" src="preload_img.js"></script>
33 <script type="text/javascript" src="table.js"></script>
34 <link rel="stylesheet" type="text/css" href="brisk.css">
35 </head>
36 <body>
37 <SCRIPT type="text/javascript">
38    var sess;
39    var stat = "table";
40    var subst = "none";
41    var table_pos = "";
42    var myfrom = "table_php";
43
44 var asta_ptr;
45 var area_ptr;
46
47 var gst  = new globst();
48 gst.st = <?php 
49 require_once("brisk.phh");
50
51 log_load($sess, "LOAD: table.php");
52
53 if (isset($laststate) == false) {
54   $laststate = -1;
55 }
56 echo $laststate;
57 ?>;
58
59 var g_imgct= 0;
60 var g_imgtot = g_preload_img_arr.length;
61
62 window.onload = function() {
63   remark_off();
64   table_init();
65   xhr_rd = createXMLHttpRequest();
66   sess = "<?php echo "$sess"; ?>";
67   
68   window.onunload = onunload_cb;  
69
70   setTimeout(xhr_rd_poll, 0, sess); 
71   setTimeout(preload_images, 0, g_preload_img_arr, g_imgct); 
72 }
73 </SCRIPT>
74 <div id="bg" class="area">
75
76 <img id="tableinfo" src="img/reload.png" class="tablereload" onclick = 'act_reload();'>
77 <img id="tableinfo" src="img/info.png" class="tableinfo" onclick = 'act_tableinfo();'>
78 <img id="tableout" src="img/out.png" class="tableout" onclick = 'safelogout();'>
79
80 <div id="remark" class="remark0"></div>
81 <img id="card0" src="img/00.png" class="card">
82 <img id="card1" src="img/01.png" class="card">
83 <img id="card2" src="img/02.png" class="card">
84 <img id="card3" src="img/03.png" class="card">
85 <img id="card4" src="img/04.png" class="card">
86 <img id="card5" src="img/05.png" class="card">
87 <img id="card6" src="img/06.png" class="card">
88 <img id="card7" src="img/07.png" class="card">
89 <img id="takes" src="img/cover.png" class="cover">
90 <img id="card_ne0" src="img/cover.png" class="cover">
91 <img id="card_ne1" src="img/cover.png" class="cover">
92 <img id="card_ne2" src="img/cover.png" class="cover">
93 <img id="card_ne3" src="img/cover.png" class="cover">
94 <img id="card_ne4" src="img/cover.png" class="cover">
95 <img id="card_ne5" src="img/cover.png" class="cover">
96 <img id="card_ne6" src="img/cover.png" class="cover">
97 <img id="card_ne7" src="img/cover.png" class="cover">
98 <img id="takes_ne" src="img/cover.png" class="cover">
99 <img id="card_nw0" src="img/cover.png" class="cover">
100 <img id="card_nw1" src="img/cover.png" class="cover">
101 <img id="card_nw2" src="img/cover.png" class="cover">
102 <img id="card_nw3" src="img/cover.png" class="cover">
103 <img id="card_nw4" src="img/cover.png" class="cover">
104 <img id="card_nw5" src="img/cover.png" class="cover">
105 <img id="card_nw6" src="img/cover.png" class="cover">
106 <img id="card_nw7" src="img/cover.png" class="cover">
107 <img id="takes_nw" src="img/cover.png" class="cover">
108 <img id="card_ea0" src="img/cover_ea.png" class="cover">
109 <img id="card_ea1" src="img/cover_ea.png" class="cover">
110 <img id="card_ea2" src="img/cover_ea.png" class="cover">
111 <img id="card_ea3" src="img/cover_ea.png" class="cover">
112 <img id="card_ea4" src="img/cover_ea.png" class="cover">
113 <img id="card_ea5" src="img/cover_ea.png" class="cover">
114 <img id="card_ea6" src="img/cover_ea.png" class="cover">
115 <img id="card_ea7" src="img/cover_ea.png" class="cover">
116 <img id="takes_ea" src="img/cover_ea.png" class="cover">
117 <img id="card_we0" src="img/cover_we.png" class="cover">
118 <img id="card_we1" src="img/cover_we.png" class="cover">
119 <img id="card_we2" src="img/cover_we.png" class="cover">
120 <img id="card_we3" src="img/cover_we.png" class="cover">
121 <img id="card_we4" src="img/cover_we.png" class="cover">
122 <img id="card_we5" src="img/cover_we.png" class="cover">
123 <img id="card_we6" src="img/cover_we.png" class="cover">
124 <img id="card_we7" src="img/cover_we.png" class="cover">
125 <img id="takes_we" src="img/cover_we.png" class="cover">
126 <div id="asta" class="asta">
127   <img id="asta0" src="img/asta0.png" class="astacard">
128   <img id="asta1" src="img/asta1.png" class="astacard">
129   <img id="asta2" src="img/asta2.png" class="astacard">
130   <img id="asta3" src="img/asta3.png" class="astacard">
131   <img id="asta4" src="img/asta4.png" class="astacard">
132   <img id="asta5" src="img/asta5.png" class="astacard">
133   <img id="asta6" src="img/asta6.png" class="astacard">
134   <img id="asta7" src="img/asta7.png" class="astacard">
135   <img id="asta8" src="img/asta8.png" class="astacard">
136   <img id="asta9" src="img/asta9.png" class="astacard">
137   <div id="astaptdiv" class="punti">
138     <input id="astapt" name="astapt" type="text" maxsize="3" size="3" value="61"> 
139   </div>
140   <img  id="astaptsub" src="img/astaptsub_ro.png" class="astacard">
141   <img  id="astapasso2" src="img/astapasso_ro.png" class="astacard"> 
142 </div>
143 <div id="name" class="pubinfo"></div>
144 <div id="public" class="public">
145    <div class="vert_midfloat">
146        <div id="pubasta" class="vert_innfloat_so">
147            <img id="pubacard" src="img/astapasso_ro.png" class="pubacard"> 
148            <div id="pubapnt"></div>
149        </div>
150    </div>
151 </div>
152 <div id="name_ea" class="pubinfo_ea"></div>
153 <div id="public_ea" class="public_ea">
154    <div class="vert_midfloat">
155       <div id="pubasta_ea" class="vert_innfloat">
156          <img id="pubacard_ea" src="img/astapasso_ro.png" class="pubacard_ea">  
157          <div id="pubapnt_ea"></div>
158       </div>
159    </div>
160 </div>
161 <div id="name_ne" class="pubinfo_ne"></div>
162 <div id="public_ne" class="public_ne">
163    <div class="vert_midfloat">
164       <div id="pubasta_ne" class="vert_innfloat">
165          <img id="pubacard_ne" src="img/astapasso_ro.png" class="pubacard_ne">  
166          <div id="pubapnt_ne"></div>
167       </div>
168    </div>
169 </div>
170 <div id="name_nw" class="pubinfo_nw"></div>
171 <div id="public_nw" class="public_nw">
172    <div class="vert_midfloat">
173       <div id="pubasta_nw" class="vert_innfloat">
174          <img id="pubacard_nw" src="img/astapasso_ro.png" class="pubacard_nw">  
175          <div id="pubapnt_nw"></div>
176       </div>
177    </div>
178 </div>
179 <div id="name_we" class="pubinfo_we"></div>
180 <div id="public_we" class="public_we">
181    <div class="vert_midfloat">
182       <div id="pubasta_we" class="vert_innfloat">
183          <img id="pubacard_we" src="img/astapasso_ro.png" class="pubacard_we">  
184          <div id="pubapnt_we"></div>
185       </div>
186    </div>
187 </div>
188 <div id="chooseed" class="chooseed">
189 Hai vinto l'asta.<br> Scegli il seme:
190 <img id="seed0" src="img/00.png" class="seed0">
191 <img id="seed1" src="img/10.png" class="seed1">
192 <img id="seed2" src="img/20.png" class="seed2">
193 <img id="seed3" src="img/30.png" class="seed3">
194 </div>
195 <div id="caller" class="caller">
196 <div id="callerinfo" class="callerinfo">Info</div>
197 <img id="callerimg" src="img/noimg.png" class="callerimg">
198 </div>
199 </div>
200
201
202 <div class="subarea">
203 <div id="txt" class="chattshort"></div>
204 <table><tr><td><div id="myname" class="txtt"></div></td><td><input id="txt_in" type="text" size="80" maxlength="256" onkeypress="chatt_checksend(this,event);" class="txtt"></td></tr></table>
205 <hr>
206 <div id="heartbit"></div>
207 <hr>
208 <div id="imgct"></div>
209 <hr>
210 <div id="sandbox"></div>
211 <div id="sandbox2"></div>
212 <div id="sandbox3"></div>
213 <pre>
214 <div id="xhrlog"></div>
215 </pre>
216 <div id="xhrdeltalog"></div>
217 </div>
218 </body>
219 </html>