Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.32 KB | None | 0 0
  1. <?php
  2. require_once('auth.php');
  3. include("gm_cnst.php");
  4. ?><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
  5. <!--
  6. body,td,th {
  7. color: #4D576A;
  8. }
  9. -->
  10. </style>
  11. <!--Link the CSS style sheet that styles the tabbed panel-->
  12.  
  13. <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
  14. <!--Link the Spry TabbedPanels JavaScript library-->
  15. <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
  16. </head>
  17. <body bgcolor="#000000">
  18.  
  19. <table width="765" border="0">
  20. <tr>
  21. <th width="537" align="left" scope="col"><h1><?php echo $user['leader'];?> of <?PHP echo $user ['kingdom'];?></h1></th>
  22. <th width="70" scope="col">Forum</th>
  23. <th width="70" scope="col">Chat</th>
  24. <th width="70" scope="col"><a href="logout.php">Logout</a></th>
  25. </tr>
  26. </table>
  27.  
  28. <!--Create the Tabbed Panel widget and assign classes to each element-->
  29. <div class="TabbedPanels" id="TabbedPanels1">
  30. <ul class="TabbedPanelsTabGroup">
  31. <li class="TabbedPanelsTab">Kingdom</li>
  32. <li class="TabbedPanelsTab">Market</li>
  33. <li class="TabbedPanelsTab">Vaults</li>
  34. <li class="TabbedPanelsTab">Tomes</li>
  35. <li class="TabbedPanelsTab">Barracks</li>
  36. <li class="TabbedPanelsTab">Construction</li>
  37. <li class="TabbedPanelsTab">Exploration</li>
  38. <li class="TabbedPanelsTab">Allies</li>
  39. <li class="TabbedPanelsTab">Enemies</li>
  40. <li class="TabbedPanelsTab">News</li>
  41. </ul>
  42. <div class="TabbedPanelsContentGroup">
  43. <div class="TabbedPanelsContent">
  44. <div class="info_table">
  45. <table width="100%" border="1">
  46. <tr align="left">
  47. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  48. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  49. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  50. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  51. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  52. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  53. </tr>
  54. </table>
  55. </div>
  56. <table width="200" border="0">
  57. <tr>
  58. <td scope="col">Level:</td>
  59. <th scope="col">&nbsp;</th>
  60. </tr>
  61. <tr>
  62. <td scope="col">XP:</td>
  63. <th scope="col"><?PHP echo $user['XP'] ?></th>
  64. </tr>
  65. <tr>
  66. <td scope="col">XP to next level:</td>
  67. <th scope="col">&nbsp;</th>
  68. </tr>
  69. <tr>
  70. <td width="100" scope="col">Score:</td>
  71. <th width="90" scope="col"><?PHP echo $score ?></th>
  72. </tr>
  73. <tr>
  74. <td>Race:</td>
  75. <td><?PHP echo $race['name'] ?></td>
  76. </tr>
  77. <tr>
  78. <td>Battles won:</td>
  79. <td><?PHP echo $user['wins'] ?></td>
  80. </tr>
  81. <tr>
  82. <td>Battles lost:</td>
  83. <td><?PHP echo $user['losses'] ?></td>
  84. </tr>
  85. <tr>
  86. <td>Alliance:</td>
  87. <td>&nbsp;</td>
  88. </tr>
  89. </table></div>
  90. <div class="TabbedPanelsContent">
  91. <div class="info_table">
  92. <table width="100%" border="1">
  93. <tr align="left">
  94. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  95. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  96. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  97. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  98. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  99. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  100. </tr>
  101. </table>
  102. </div>
  103. </div>
  104. <div class="TabbedPanelsContent">
  105. <div class="info_table">
  106. <table width="100%" border="1">
  107. <tr align="left">
  108. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  109. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  110. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  111. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  112. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  113. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  114. </tr>
  115. </table>
  116. </div>
  117.  
  118. </div>
  119. <div class="TabbedPanelsContent">
  120. <div class="info_table">
  121. <table width="100%" border="1">
  122. <tr align="left">
  123. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  124. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  125. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  126. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  127. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  128. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  129. </tr>
  130. </table>
  131. </div>
  132. </div>
  133.  
  134. <div class="TabbedPanelsContent">
  135. <div class="info_table">
  136. <table width="100%" border="1">
  137. <tr align="left">
  138. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  139. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  140. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  141. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  142. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  143. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  144. </tr>
  145. </table>
  146. </div>
  147. <?PHP
  148. if (isset($_POST['submit'])) {
  149.  
  150. $fighters_buy=$_POST['fighters'];
  151. $rangers_buy=$_POST['rangers'];
  152. $clerics_buy=$_POST['clerics'];
  153. $mages_buy=$_POST['mages'];
  154. $rogues_buy=$_POST['rogues'];
  155. $assassins_buy=$_POST['assassins'];
  156. $monks_buy=$_POST['monks'];
  157. $engineers_buy=$_POST['engineers'];
  158. $siege_buy=$_POST['siege'];
  159. $cotg_buy=$_POST['cotg'];
  160.  
  161. if(!is_numeric($_POST['fighters'])) {
  162. die("Please insert a number");}
  163.  
  164.  
  165.  
  166. $gold_spent=
  167. ($fighters_buy * $config[fighters]) +
  168. ($rangers_buy * $config[rangers]) +
  169. ($clerics_buy * $config[clerics]) +
  170. ($mages_buy * $config[mages]) +
  171. ($rogues_buy * $config[rogues]) +
  172. ($assassins_buy * $config[assassins]) +
  173. ($monks_buy * $config[monks]) +
  174. ($engineers_buy * $config[engineers]) +
  175. ($siege_buy * $config[siege]) +
  176. ($cotg_buy * $config[cotg]);
  177.  
  178. if($gold_spent > $user['gold'])
  179. {
  180. echo "Sorry,you do not have enough gold to purchase those troops.";
  181. }
  182. else
  183. {
  184. $new_gold=$user['gold']-gold_spent;
  185. $new_fighters=$user['fighters']+$fighter_buy;
  186. $new_rangers=$user['rangers']+$rangers_buy;
  187. $new_clerics=$user['clerics']+$clerics_buy;
  188. $new_mages=$user['mages']+$mages_buy;
  189. $new_rogues=$user['rogues']+$rogues_buy;
  190. $new_assassins=$user['assassins']+$assassins_buy;
  191. $new_monks=$user['monks']+$monks_buy;
  192. $new_engineers=$user['engineers']+$engineers_buy;
  193. $new_siege=$user['siege']+$siege_buy;
  194. $new_cotg=$user['cotg']+$cotg_buy;
  195.  
  196. //Update DB
  197. $query= "UPDATE members SET
  198. fighters='".$new_fighters."',
  199. rangers='".$new_rangers."',
  200. clerics='".$new_clerics."',
  201. mages='".$new_mages."',
  202. rogues='".$new_rogues."',
  203. assassins='".$new_assassins."',
  204. monks='".$new_monks."',
  205. engineers='".$new_engineers."',
  206. siege='".$new_siege."',
  207. cotg='".$new_cotg."',
  208. gold='".$new_gold."' WHERE leader = '".($_SESSION['SESS_LEADER_NAME'])."'";
  209. echo $query;
  210. $test = mysql_query("SELECT * FROM members");
  211. echo '<br>Num Rows:';
  212. echo mysql_num_rows($test);
  213. echo '<br>';
  214. $result = mysql_query($query);
  215. if($result) { echo 'it worked'; } else { echo ' it did not'; echo mysql_error(); }
  216.  
  217. }
  218. }
  219. ?>
  220. <form action="<?PHP $_SERVER['PHP_SELF'] ?>" method="post">
  221. <table width="100%">
  222. <tr align="left" valign="middle">
  223. <th width="16%" bgcolor="#333333" scope="col">On Hand</th>
  224. <th width="34%" valign="middle" bgcolor="#333333" scope="col">Unit</th>
  225. <th width="19%" bgcolor="#333333" scope="col">Hire Price</th>
  226. <th width="11%" align="left" valign="middle" bgcolor="#333333" scope="col">Amount </th>
  227. <th width="20%" align="left" valign="middle" bgcolor="#333333" scope="col">&nbsp;</th>
  228. </tr>
  229. <tr>
  230. <td><?PHP echo $user['fighters'] ?></td>
  231. <td align="left" valign="middle">Fighters</td>
  232. <td>$<?PHP echo $config[fighters] ?></td>
  233. <td align="left" valign="middle" nowrap>
  234. <input type="text" size="10" name="fighters">
  235. <input type="submit" value="Hire" name="submit">
  236. </td>
  237. <td align="left" valign="middle" nowrap>
  238. <input type="submit" name="button5" id="button5" value="Dismiss"></td>
  239. </tr>
  240. <tr>
  241. <td><?PHP echo $user['rangers'] ?></td>
  242. <td align="left" valign="middle">Rangers</td>
  243. <td>$<?PHP echo $config[rangers] ?></td>
  244. <td align="left" valign="middle">
  245. <input name="rangers" type="text" size="10">
  246. <input type="submit" value="Hire" name="submit">
  247. </td>
  248. <td align="left" valign="middle">&nbsp;</td>
  249. </tr>
  250. <tr>
  251. <td><?PHP echo $user['clerics'] ?></td>
  252. <td align="left" valign="middle">Clerics</td>
  253. <td>$<?PHP echo $config[clerics] ?></td>
  254. <td align="left" valign="middle">
  255. <input name="clerics" type="text" size="10">
  256. <input type="submit" value="Hire" name="submit">
  257. </td>
  258. <td align="left" valign="middle">&nbsp;</td>
  259. </tr>
  260. <tr>
  261. <td><?PHP echo $user['mages'] ?></td>
  262. <td align="left" valign="middle">Mages</td>
  263. <td>$<?PHP echo $config[mages] ?></td>
  264. <td align="left" valign="middle">
  265. <input name="mages" type="text" size="10">
  266. <input type="submit" value="Hire" name="submit">
  267. </td>
  268. <td align="left" valign="middle">&nbsp;</td>
  269. </tr>
  270. <tr>
  271. <td><?PHP echo $user['rogues'] ?></td>
  272. <td align="left" valign="middle">Rogues</td>
  273. <td>$<?PHP echo number_format($config[rogues]) ?></td>
  274. <td align="left" valign="middle">
  275. <input name="rogues" type="text" size="10">
  276. <input type="submit" value="Hire" name="submit">
  277. </td>
  278. <td align="left" valign="middle">&nbsp;</td>
  279. </tr>
  280. <tr>
  281. <td><?PHP echo $user['assassins'] ?></td>
  282. <td align="left" valign="middle">Assassins</td>
  283. <td>$<?PHP echo number_format ($config[assassins]) ?></td>
  284. <td align="left" valign="middle">
  285. <input name="assassins" type="text" size="10">
  286. <input type="submit" value="Hire" name="submit">
  287. </td>
  288. <td align="left" valign="middle">&nbsp;</td>
  289. </tr>
  290. <tr>
  291. <td><?PHP echo $user['monks'] ?></td>
  292. <td align="left" valign="middle">Monks</td>
  293. <td>$<?PHP echo number_format ($config[monks]) ?></td>
  294. <td align="left" valign="middle">
  295. <input name="monks" type="text" size="10">
  296. <input type="submit" value="Hire" name="submit">
  297. </td>
  298. <td align="left" valign="middle">&nbsp;</td>
  299. </tr>
  300. <tr>
  301. <td><?PHP echo $user['engineers'] ?></td>
  302. <td align="left" valign="middle">Engineers</td>
  303. <td>$<?PHP echo number_format ($config[engineers]) ?></td>
  304. <td align="left" valign="middle">
  305. <input name="engineers" type="text" size="10">
  306. <input type="submit" value="Hire" name="submit">
  307. </td>
  308. <td align="left" valign="middle">&nbsp;</td>
  309. </tr>
  310. <tr>
  311. <td><?PHP echo $user['siege'] ?></td>
  312. <td align="left" valign="middle">Siege Equipment</td>
  313. <td>$<?PHP echo number_format ($config[siege]) ?></td>
  314. <td align="left" valign="middle" nowrap>
  315. <input name="siege" type="text" size="10">
  316. <input type="submit" value="Hire" name="submit">
  317. </td>
  318. <td align="left" valign="middle">&nbsp;</td>
  319. </tr>
  320. <tr>
  321. <td><?PHP echo $user['cotg'] ?></td>
  322. <td align="left" valign="middle">Captain of the Gaurd</td>
  323. <td>$<?PHP echo number_format ($config[cotg]) ?></td>
  324. <td align="left" valign="middle">
  325. <input name="cotg" type="text" size="10">
  326. <input type="submit" value="Hire" name="submit">
  327. </td>
  328. <td align="left" valign="middle">&nbsp;</td>
  329. </tr>
  330. </table>
  331. </form>
  332.  
  333. </div>
  334. <div class="TabbedPanelsContent">
  335. <div class="info_table">
  336. <table width="100%" border="1">
  337. <tr align="left">
  338. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  339. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  340. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  341. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  342. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  343. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  344. </tr>
  345. </table>
  346. </div>
  347. <form name="form24" method="post" action="">
  348. <table width="100%" border="0">
  349. <tr align="left">
  350. <th nowrap scope="col">On Hand</th>
  351. <th nowrap scope="col">Building</th>
  352. <th nowrap scope="col">Amount to Build</th>
  353. <th nowrap scope="col">On Hand</th>
  354. <th nowrap scope="col">Building</th>
  355. <th nowrap scope="col">Amount to Build</th>
  356. <th nowrap scope="col">On Hand</th>
  357. <th nowrap scope="col">Castle Pieces</th>
  358. <th nowrap scope="col">Amount to Build</th>
  359. </tr>
  360. <tr>
  361. <td><?PHP echo $user['farm'] ?></td>
  362. <td>Farm</td>
  363. <td>
  364. <input name="farm_input" type="text" id="farm_input" size="10">
  365. <input type="submit" name="button" id="button" value="Build">
  366. </td>
  367. <td><?PHP echo $user['barracks'] ?></td>
  368. <td>Barracks</td>
  369. <td>
  370. <input name="barracks_input" type="text" id="barracks_input" size="10">
  371. <input type="submit" name="button2" id="button2" value="Build">
  372. </td>
  373.  
  374. <td><?PHP echo $user['tower'] ?></td>
  375. <td>Tower</td>
  376. <td>
  377.  
  378. <input name="tower_input" type="text" id="textfield2" size="10">
  379. <input type="submit" name="button3" id="button3" value="Build">
  380. </td>
  381. </tr>
  382. <tr>
  383. <td><?PHP echo $user['hut'] ?></td>
  384. <td>Hut</td>
  385. <td>
  386. <input name="hut_input" type="text" id="hut_input" size="10">
  387. <input type="submit" name="button" id="button" value="Build">
  388. </td>
  389. <td><?PHP echo $user['stable'] ?></td>
  390. <td>Stable</td>
  391. <td>
  392. <input name="stable_input" type="text" id="stable_input" size="10">
  393. <input type="submit" name="button" id="button" value="Build">
  394. </td>
  395. <td><?PHP echo $user['moat'] ?></td>
  396. <td>Moat</td>
  397. <td>
  398. <input name="moat_input" type="text" id="moat_input" size="10">
  399. <input type="submit" name="button" id="button" value="Build">
  400. </td> </tr>
  401. <tr>
  402. <td><?PHP echo $user['cottage'] ?></td>
  403. <td>Cottage</td>
  404. <td>
  405. <input name="cottage_input" type="text" id="cottage_input" size="10">
  406. <input type="submit" name="button" id="button" value="Build">
  407. </td>
  408. <td><?PHP echo $user['gaurdhouse'] ?></td>
  409. <td>Gaurdhouse</td>
  410. <td>
  411. <input name="gaurdhouse_input" type="text" id="gaurdhouse_input" size="10">
  412. <input type="submit" name="button" id="button" value="Build">
  413. </td>
  414. <td><?PHP echo $user['drawbridge'] ?></td>
  415. <td>Drawbridge</td>
  416. <td>
  417. <input name="drawbridge_input" type="text" id="drawbridge_input" size="10">
  418. <input type="submit" name="button" id="button" value="Build">
  419. </td> </tr>
  420. <tr>
  421. <td><?PHP echo $user['mansion'] ?></td>
  422. <td>Mansion</td>
  423. <td>
  424. <input name="mansion_input" type="text" id="mansion_input" size="10">
  425. <input type="submit" name="button" id="button" value="Build">
  426. </td>
  427. <td><?PHP echo $user['scout_tower'] ?></td>
  428. <td>Scout Tower</td>
  429. <td>
  430. <input name="scouttower_input" type="text" id="scouttower_input" size="10">
  431. <input type="submit" name="button" id="button" value="Build">
  432. </td>
  433. <td><?PHP echo $user['walls'] ?></td>
  434. <td>Walls</td>
  435. <td>
  436. <input name="walls_input" type="text" id="walls_input" size="10">
  437. <input type="submit" name="button" id="button" value="Build">
  438. </td> </tr>
  439. <tr>
  440. <td><?PHP echo $user['marketplace'] ?></td>
  441. <td>Marketplace</td>
  442. <td>
  443. <input name="marketplace_input" type="text" id="marketplace_input" size="10">
  444. <input type="submit" name="button" id="button" value="Build">
  445. </td>
  446. <td><?PHP echo $user['gaurd_tower'] ?></td>
  447. <td>Gaurd Tower</td>
  448. <td>
  449. <input name="gaurdtower_input" type="text" id="gaurdtower_input" size="10">
  450. <input type="submit" name="button" id="button" value="Build">
  451. </td> <td>&nbsp;</td>
  452. <td>&nbsp;</td>
  453. <td>&nbsp;</td>
  454. </tr>
  455. <tr>
  456. <td><?PHP echo $user['bank'] ?></td>
  457. <td>Bank</td>
  458. <td>
  459. <input name="bank_input" type="text" id="bank_input" size="10">
  460. <input type="submit" name="button" id="button" value="Build">
  461. </td>
  462. <td><?PHP echo $user['outpost'] ?></td>
  463. <td>Outpost</td>
  464. <td>
  465. <input name="outpost_input" type="text" id="outpost_input" size="10">
  466. <input type="submit" name="button" id="button" value="Build">
  467. </td>
  468. <td><?PHP echo $user['townhall'] ?></td>
  469. <td>Town Hall</td>
  470. <td>
  471. <input name="townhall_input" type="text" id="townhall_input" size="10">
  472. <input type="submit" name="button" id="button" value="Build">
  473. </td> </tr>
  474. <tr>
  475. <td><?PHP echo $user['brewery'] ?></td>
  476. <td>Brewery</td>
  477. <td>
  478. <input name="brewery_input" type="text" id="brewery_input" size="10">
  479. <input type="submit" name="button" id="button" value="Build">
  480. </td>
  481. <td><?PHP echo $user['church'] ?></td>
  482. <td>Church</td>
  483. <td>
  484. <input name="church_input" type="text" id="church_input" size="10">
  485. <input type="submit" name="button" id="button" value="Build">
  486. </td>
  487. <td><?PHP echo $user['keep'] ?></td>
  488. <td>Keep</td>
  489. <td>
  490. <input name="keep_input" type="text" id="keep_input" size="10">
  491. <input type="submit" name="button" id="button" value="Build">
  492. </td> </tr>
  493. <tr>
  494. <td><?PHP echo $user['tavern'] ?></td>
  495. <td>Tavern</td>
  496. <td>
  497. <input name="tavern_input" type="text" id="tavern_input" size="10">
  498. <input type="submit" name="button" id="button" value="Build">
  499. </td>
  500. <td><?PHP echo $user['cathedral'] ?></td>
  501. <td>Cathedral</td>
  502. <td>
  503. <input name="cathedral_input" type="text" id="cathedral_input" size="10">
  504. <input type="submit" name="button" id="button" value="Build">
  505. </td>
  506. <td><?PHP echo $user['castle'] ?></td>
  507. <td>Castle</td>
  508. <td>
  509. <input name="castle_input" type="text" id="castle_input" size="10">
  510. <input type="submit" name="button" id="button" value="Build">
  511. </td> </tr>
  512. <tr>
  513. <td><?PHP echo $user['library'] ?></td>
  514. <td>Library</td>
  515. <td>
  516. <input name="library_input" type="text" id="library_input" size="10">
  517. <input type="submit" name="button" id="button" value="Build">
  518. </td>
  519. <td><?PHP echo $user['theater'] ?></td>
  520. <td>Theater</td>
  521. <td>
  522. <input name="theater_input" type="text" id="theater_input" size="10">
  523. <input type="submit" name="button" id="button" value="Build">
  524. </td> <td>&nbsp;</td>
  525. <td>&nbsp;</td>
  526. <td>&nbsp;</td>
  527. </tr>
  528. <tr>
  529. <td><?PHP echo $user['school'] ?></td>
  530. <td>School</td>
  531. <td>
  532. <input name="school_input" type="text" id="school_input" size="10">
  533. <input type="submit" name="button" id="button" value="Build">
  534. </td>
  535. <td><?PHP echo $user['coliseum'] ?></td>
  536. <td>Coliseum</td>
  537. <td>
  538. <input name="coliseum_input" type="text" id="coliseum_input" size="10">
  539. <input type="submit" name="button" id="button" value="Build">
  540. </td> <td>&nbsp;</td>
  541. <td>&nbsp;</td>
  542. <td>&nbsp;</td>
  543. </tr>
  544. <tr>
  545. <td><?PHP echo $user['university'] ?></td>
  546. <td>University</td>
  547. <td>
  548. <input name="university_input" type="text" id="university_input" size="10">
  549. <input type="submit" name="button" id="button" value="Build">
  550. </td>
  551. <td><?PHP echo $user['jousting'] ?></td>
  552. <td>Jousting Arena</td>
  553. <td>
  554. <input name="jousting_input" type="text" id="jousting_input" size="10">
  555. <input type="submit" name="button" id="button" value="Build">
  556. </td> <td>&nbsp;</td>
  557. <td>&nbsp;</td>
  558. <td>&nbsp;</td>
  559. </tr>
  560. <tr>
  561. <td><?PHP echo $user['foundry'] ?></td>
  562. <td>Foundry</td>
  563. <td>
  564. <input name="foundry_input" type="text" id="foundry_input" size="10">
  565. <input type="submit" name="button" id="button" value="Build">
  566. </td>
  567. <td><?PHP echo $user['ballroom'] ?></td>
  568. <td>Ballroom</td>
  569. <td>
  570. <input name="ballroom_input" type="text" id="ballroom_input" size="10">
  571. <input type="submit" name="button" id="button" value="Build">
  572. </td> <td>&nbsp;</td>
  573. <td>&nbsp;</td>
  574. <td>&nbsp;</td>
  575.  
  576. </tr>
  577. <tr>
  578. <td><?PHP echo $user['blacksmith'] ?></td>
  579. <td>Blacksmith</td>
  580. <td>
  581. <input name="blacksmith_input" type="text" id="blacksmith_input" size="10">
  582. <input type="submit" name="button" id="button" value="Build">
  583. </td>
  584. <td><?PHP echo $user['garden'] ?></td>
  585. <td>Garden</td>
  586. <td>
  587. <input name="garden_input" type="text" id="garden_input" size="10">
  588. <input type="submit" name="button" id="button" value="Build">
  589. </td> <td>&nbsp;</td>
  590. <td>&nbsp;</td>
  591. <td>&nbsp;</td>
  592. </tr>
  593. <tr>
  594. <td><?PHP echo $user['workshop'] ?></td>
  595. <td>Workshop</td>
  596. <td>
  597. <input name="workshop_input" type="text" id="workshop_input" size="10">
  598. <input type="submit" name="button" id="button" value="Build">
  599. </td>
  600. <td><?PHP echo $user['zoo'] ?></td>
  601. <td>Zoo</td>
  602. <td>
  603. <input name="zoo_input" type="text" id="zoo_input" size="10">
  604. <input type="submit" name="button" id="button" value="Build">
  605. </td> <td>&nbsp;</td>
  606. <td>&nbsp;</td>
  607. <td>&nbsp;</td>
  608. </tr>
  609. </table>
  610. </form>
  611. </div>
  612. <div class="TabbedPanelsContent">
  613. <div class="info_table">
  614. <table width="100%" border="1">
  615. <tr align="left">
  616. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  617. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  618. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  619. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  620. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  621. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  622. </tr>
  623. </table>
  624. </div>
  625. </div>
  626. <div class="TabbedPanelsContent">
  627. <div class="info_table">
  628. <table width="100%" border="1">
  629. <tr align="left">
  630. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  631. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  632. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  633. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  634. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  635. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  636. </tr>
  637. </table>
  638. </div>
  639. </div>
  640. <div class="TabbedPanelsContent">
  641. <div class="info_table">
  642. <table width="100%" border="1">
  643. <tr align="left">
  644. <th width="100" scope="col">Turns: <?PHP echo $user['turns'] ?></th>
  645. <th scope="col">Gold: <?PHP echo $user['gold'] ?></th>
  646. <th scope="col">Food: <?PHP echo $user['food'] ?></th>
  647. <th scope="col">Mana: <?PHP echo $user['mana'] ?></th>
  648. <th scope="col">Land: <?PHP echo $user['land'] ?></th>
  649. <th scope="col">Peasants: <?PHP echo $user['pop'] ?></th>
  650. </tr>
  651. </table>
  652. </div>
  653. <table width="200" border="0">
  654. <tr>
  655. <td scope="col">Level:</td>
  656. <th scope="col">&nbsp;</th>
  657. </tr>
  658.  
  659. <tr>
  660. <td width="100" scope="col">Score:</td>
  661. <th width="90" scope="col">&nbsp;</th>
  662. </tr>
  663. <tr>
  664. <td>Race:</td>
  665. <td>&nbsp;</td>
  666. </tr>
  667. <tr>
  668. <td>Battles won:</td>
  669. <td>&nbsp;</td>
  670. </tr>
  671. <tr>
  672. <td>Battles lost:</td>
  673. <td>&nbsp;</td>
  674. </tr>
  675. <tr>
  676. <td>Alliance:</td>
  677. <td>&nbsp;</td>
  678. </tr>
  679. </table>
  680. <table width="200" border="0">
  681. <tr>
  682. <th width="95" align="left" scope="col"><form id="form1" name="form1" method="post" action="">
  683. <input type="submit" name="attack" id="attack" value="Attack" />
  684. </form></th>
  685. <th width="95" align="left" scope="col"><form id="form5" name="form5" method="post" action="">
  686. <input type="submit" name="spy" id="spy" value="Spy" />
  687. </form></th>
  688. </tr>
  689. <tr>
  690. <td align="left"><form id="form2" name="form2" method="post" action="">
  691. <input type="submit" name="spell" id="spell" value="Spell" />
  692. </form></td>
  693. <td align="left"><form id="form6" name="form6" method="post" action="">
  694. <input type="submit" name="sabotage" id="sabotage" value="Sabotage" />
  695. </form></td>
  696. </tr>
  697. <tr>
  698. <td align="left"><form id="form3" name="form3" method="post" action="">
  699. <input type="submit" name="loot" id="loot" value="Loot" />
  700. </form></td>
  701. <td align="left"><form id="form7" name="form7" method="post" action="">
  702. <input type="submit" name="trade" id="trade" value="Trade" />
  703. </form></td>
  704. </tr>
  705. <tr>
  706. <td align="left"><form id="form4" name="form4" method="post" action="">
  707. <input type="submit" name="assassinate" id="assassinate" value="Assassinate" />
  708. </form></td>
  709. <td align="left"><form id="form8" name="form8" method="post" action="">
  710. <input type="submit" name="alliance" id="alliance" value="Form alliance" />
  711. </form></td>
  712. </tr>
  713. </table>
  714. </div>
  715. <div class="TabbedPanelsContent">News Content</div>
  716. </div>
  717. </div>
  718. <!--Initialize the Tabbed Panel widget object-->
  719. <script type="text/javascript">
  720. var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
  721. </script>
  722. </body>
  723. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement