PageRenderTime 51ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/View/Play.php

https://bitbucket.org/onlinechessportal/onlinechessgameportal
PHP | 569 lines | 481 code | 64 blank | 24 comment | 46 complexity | f7a53a9d2b65eda39e66fd33bcba4dc2 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. require '../Model/Connect.php';
  3. require '../Control/RegisterLogic.php';
  4. require '../Control/LoginLogic.php';
  5. require '../Control/SendNotification.php';
  6. require '../Control/CreateClubLogic.php';
  7. require '../Control/DBCreate.php';
  8. ob_start();
  9. $UserNm=$_SESSION['username'];
  10. $Role = $_SESSION['role'];
  11. if(isset($_GET['id'])) {
  12. $SearchName = $_GET['id'];
  13. $SearchID = GetSearchID($SearchName);
  14. } else {
  15. $SearchID = $UserNm;
  16. }
  17. function GetSearchID($SearchName) {
  18. $GetID = "SELECT mp_username FROM memberprofile WHERE mp_fullname = '".$SearchName."' ";
  19. $ResultID = mysql_query($GetID);
  20. if ($ResultID) {
  21. $rows = mysql_num_rows($ResultID);
  22. while($info = mysql_fetch_assoc( $ResultID)) {
  23. return $info['mp_username'];
  24. }
  25. }
  26. }
  27. function GetPlayerName($PlayerID) {
  28. $Player = mysql_query("SELECT DISTINCT m.mp_fullname FROM memberprofile m,user u WHERE u.us_id = ".$PlayerID." AND u.us_username = m.mp_username");
  29. $ChessPlayer = mysql_result($Player, 0);
  30. return $ChessPlayer;
  31. }
  32. $_SESSION['isSharedPC'] = false;
  33. ?>
  34. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  35. <html xmlns="http://www.w3.org/1999/xhtml">
  36. <head>
  37. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  38. <title>Online Chess Portal :: Play Chess</title>
  39. <!-- CSS Files -->
  40. <link href="css/reset.css" rel="stylesheet" type="text/css" />
  41. <link href="css/Form.css" rel="stylesheet" type="text/css" />
  42. <link href="css/style.css" rel="stylesheet" type="text/css" />
  43. <link href="css/screen.css" rel="stylesheet" type="text/css" />
  44. <link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
  45. <link rel="stylesheet" type="text/css" href="css/jquery.gritter.css" />
  46. <style type="text/css">
  47. .sf-sub-indicator {
  48. behavior: url(css/iepngfix.htc)
  49. }
  50. .accordion {
  51. width: 900%px;
  52. border-bottom: solid 1px #c4c4c4;
  53. }
  54. .accordion h3 {
  55. background: #e9e7e7 url(../images/arrow-square.gif) no-repeat right -51px;
  56. padding: 7px 15px;
  57. margin: 0;
  58. font: bold 120%/100% Arial, Helvetica, sans-serif;
  59. border: solid 1px #c4c4c4;
  60. border-bottom: none;
  61. cursor: pointer;
  62. }
  63. .accordion h3 {
  64. background-color:#f0f0f0;
  65. }
  66. .accordion h3:hover{
  67. background-color:#999;
  68. font:Tahoma, Geneva, sans-serif;
  69. }
  70. .accordion h3.active {
  71. background-position: right 5px;
  72. }
  73. .accordion p {
  74. background: #f7f7f7;
  75. margin: 0;
  76. padding: 10px 15px 20px;
  77. border-left: solid 1px #c4c4c4;
  78. border-right: solid 1px #c4c4c4;
  79. }
  80. table {
  81. border-color: #ccc;
  82. border-spacing: 0px;
  83. border-style: solid;
  84. border-width: 1px;
  85. cell-spacing: 0px;
  86. border-collapse:collapse;
  87. width:700px;
  88. }
  89. td, th {
  90. font-family: Tahoma, Geneva, sans-serif;
  91. font-size: 12px;
  92. padding: 5px;
  93. text-align:center;
  94. /*white-space: nowrap;*/
  95. }
  96. td.numeric {
  97. text-align: right;
  98. }
  99. th {
  100. background-color: #c0c0c0;
  101. text-align:center;
  102. }
  103. th.mainHeader {
  104. background-color: #808080;
  105. color: #fff;
  106. text-align: left;
  107. }
  108. th a {
  109. color: #000080;
  110. text-decoration: none;
  111. }
  112. th a:visited {
  113. color: #000080;
  114. }
  115. th a:active, th a:hover {
  116. color: #800000;
  117. text-decoration: underline;
  118. }
  119. tr.alternateRow {
  120. background-color: #e0e0e0;
  121. }
  122. td.sortedColumn {
  123. background-color: #f0f0f0;
  124. }
  125. th.sortedColumn {
  126. background-color: #b0b0b0;
  127. }
  128. tr.alternateRow td.sortedColumn {
  129. background-color: #d0d0d0;
  130. }
  131. ;
  132. </style>
  133. <!-- End of CSS Files -->
  134. <!-- Javascript Files -->
  135. <script type="text/javascript" src="javascript/jquery1.3.2.js"></script>
  136. <script type="text/javascript" src="javascript/jquery.cycle.all.js"></script>
  137. <script type="text/javascript" src="js/jquery.min.js"></script>
  138. <script type="text/javascript" src="js/jquery.js"></script>
  139. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  140. <script type="text/javascript">google.load('jquery', '1.5');</script>
  141. <script type="text/javascript" src="js/jquery.gritter.js"></script>
  142. <script type="text/javascript">
  143. $(document).ready(function(){
  144. $(".accordion h3:first").addClass("active");
  145. $(".accordion div:not(:first)").hide();
  146. $(".accordion h3").click(function(){
  147. $(this).next("div").slideToggle("slow")
  148. .siblings("div:visible").slideUp("slow");
  149. $(this).toggleClass("active");
  150. $(this).siblings("h3").removeClass("active");
  151. });
  152. });
  153. </script>
  154. <script type="text/javascript">
  155. function RedirectToGame(Id) {
  156. //alert(Id);
  157. if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
  158. xmlhttp=new XMLHttpRequest();
  159. } else {// code for IE6, IE5
  160. xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  161. }
  162. xmlhttp.onreadystatechange=function() {
  163. if (xmlhttp.readyState==4 && xmlhttp.status==200) {
  164. //alert(xmlhttp.responseText);
  165. location.href = "Play.php";
  166. }
  167. }
  168. xmlhttp.open("GET","../Control/AcceptGameRequest.php?Id="+Id,true);
  169. xmlhttp.send();
  170. }
  171. </script>
  172. <script type="text/javascript">
  173. function RejectGameReq(Id) {
  174. //alert(Id);
  175. if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
  176. xmlhttp=new XMLHttpRequest();
  177. } else {// code for IE6, IE5
  178. xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  179. }
  180. xmlhttp.onreadystatechange=function() {
  181. if (xmlhttp.readyState==4 && xmlhttp.status==200) {
  182. //alert(xmlhttp.responseText);
  183. location.href = "Play.php";
  184. }
  185. }
  186. xmlhttp.open("GET","../Control/DeclineGameRequest.php?Id="+Id,true);
  187. xmlhttp.send();
  188. }
  189. </script>
  190. <script type="text/javascript">
  191. function LoadGame(GameID)
  192. {
  193. alert(GameID);
  194. if (document.existingGames.rdoShare[0].checked)
  195. document.existingGames.action = "opponentspassword.php";
  196. document.existingGames.GameID.value = GameID;
  197. document.existingGames.submit();
  198. }
  199. <!--choose opponent-->
  200. var time_interval = setInterval(
  201. function ()
  202. {
  203. $('#opponents').load('../Control/ChooseOpponent.php').fadeIn("slow");
  204. }, 1000); // refresh every 1000 milliseconds
  205. <!--popup-->
  206. var time_interval = setInterval(
  207. function ()
  208. {
  209. $('#popup').load('../Control/Notification.php').fadeIn("slow");
  210. }, 5000); // refresh every 5000 milliseconds
  211. </script>
  212. <!-- End of Javascript Files -->
  213. </head>
  214. <body>
  215. <!-- Wrapper -->
  216. <div id="wrapper">
  217. <div id="topbar">
  218. <img src="images/icon1.png" alt="logo" width="42" height="41" class="logo" id='test' /><img src="images/logo.gif" alt="logo" width="322" height="41" class="logo1" id='test' />
  219. <div id="secnav">
  220. <ul>
  221. <li> <a href="../Control/LogoutLogic.php?Reason=Normal">SIGN OUT</a> </li>
  222. <li class="noimg"></li>
  223. </ul>
  224. </div>
  225. <div class="menu">
  226. <ul class="sf-menu">
  227. <li> <?php if($_SESSION['role'] == 'SiteAdmin') {
  228. ?> <a href="SiteAdminProfile.php">
  229. <?php } else { ?>
  230. <a href="MemberProfile.php">
  231. <?php }
  232. $result = mysql_query("SELECT mp_fullname FROM memberprofile WHERE mp_username='".$_SESSION['username']."' ");
  233. $row = mysql_fetch_array($result);
  234. $Rows = mysql_num_rows($result);
  235. if($_SESSION['role'] == 'SiteAdmin' || $Rows == 0) {
  236. echo 'Profile';
  237. } else {
  238. echo $row['mp_fullname'];
  239. }?></a>
  240. </li>
  241. </ul>
  242. </div> </div><!-- menu end-->
  243. <div id="content_guest">
  244. <div class="froms">
  245. <span id="popup"></span>
  246. <div class="accordion">
  247. <h3>Active Games</h3>
  248. <div class="menu_form_body">&nbsp;&nbsp;&nbsp;&nbsp;
  249. <h1><?php echo gettext("Continue a game in progress");?></h1><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  250. <label class="inputlabel">Select a game by click on the game ID</label>
  251. <form name="existingGames" action="webchs/chess.php" method="post">
  252. <table align="center">
  253. <thead>
  254. <tr><th class="mainHeader" colspan="8"><?php echo gettext("Games in Progress");?></th></tr>
  255. <tr><th style="text-align:left;display:none;"><?php echo gettext("Rank");?></th>
  256. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 1, true);" title="Game Id"><?php echo gettext("Id");?></a></th>
  257. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 2, true);" title="White's handle"><?php echo gettext("White");?></a></th>
  258. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 3, true);" title="Black's handle"><?php echo gettext("Black");?></a></th>
  259. <th><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 4, true);" title="Moves" ><?php echo gettext("Mvs");?></a></th>
  260. <th><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 5, true);" title="Current Turn" ><?php echo gettext("Current Turn");?></a></th>
  261. <th><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 6, true);" title="Start Date of the Game"><?php echo gettext("Start Date");?></a></th>
  262. <th><a href="" onclick="this.blur(); return sortTable('inProgrTblBdy', 7, true);" title="Date of Last Move" ><?php echo gettext("Last Move");?></a></th>
  263. </tr>
  264. </thead>
  265. <tbody id="inProgrTblBdy">
  266. <?php
  267. $tmpGames = mysql_query("SELECT * FROM games WHERE ga_gamemessage = '' AND (ga_whiteplayer =".$_SESSION['playerID']." OR ga_blackplayer = ".$_SESSION['playerID']." ) ORDER BY ga_datecreated");
  268. $OutputRows = mysql_num_rows($tmpGames);
  269. if ($OutputRows == 0) {
  270. echo("<tr><td colspan=\"6\">" . gettext("You do not currently have any games in progress") . "</td></tr>\n");
  271. } else {
  272. $rowNbr = 0;
  273. while($tmpGame = mysql_fetch_array($tmpGames, MYSQL_ASSOC))
  274. {
  275. if($rowNbr %2 == 0) {
  276. echo('<tr class="alternateRow">');
  277. } else {
  278. echo('<tr>');
  279. }
  280. $rowNbr++;
  281. echo ('<td style="display:none;"></td>');
  282. echo('<td>');
  283. echo("<a href=\"javascript:LoadGame(".$tmpGame['ga_gameid'].")\">".$tmpGame['ga_gameid']."</a>");
  284. /* get white's nick */
  285. $WhitePlayer = GetPlayerName($tmpGame['ga_whiteplayer']);
  286. echo ('</td><td>');
  287. echo($WhitePlayer);
  288. /* get black's nick */
  289. $BlackPlayer = GetPlayerName($tmpGame['ga_blackplayer']);
  290. echo ('</td><td>');
  291. echo($BlackPlayer);
  292. /* Your Color */
  293. if ($tmpGame['ga_whiteplayer'] == $_SESSION['username']) {
  294. $tmpColor = "white";
  295. } else {
  296. $tmpColor = "black";
  297. }
  298. /* get number of moves from history */
  299. $tmpNumMoves = mysql_query("SELECT COUNT(hi_gameid) FROM history WHERE hi_gameid = ".$tmpGame['ga_gameid']);
  300. $numMoves = mysql_result($tmpNumMoves,0);
  301. echo ('</td><td class="numeric">');
  302. echo(floor($numMoves / 2));
  303. /* Current Turn */
  304. /* based on number of moves, output current color's turn */
  305. if (($numMoves % 2) == 0)
  306. $tmpCurMove = "white";
  307. else
  308. $tmpCurMove = "black";
  309. echo ("</td><td>");
  310. if ($tmpCurMove == $tmpColor)
  311. echo(gettext("Your move"));
  312. else
  313. echo(gettext("Opponent"));
  314. /* Start Date */
  315. echo ("</td><td>".substr($tmpGame['ga_datecreated'], 0, -3));
  316. /* Last Move */
  317. echo ("</td><td>".substr($tmpGame['ga_lastmove'], 0, -3)."</td></tr>\n");
  318. }
  319. }
  320. ?>
  321. </tbody>
  322. </table><br/>
  323. <div class="inputlabel" style="padding-top:10px;"><?php echo gettext("Will both players play from the same computer?");?></div>
  324. <div class="inputbox">
  325. <div><input name="rdoShare" type="radio" value="" /> <?php echo gettext("Yes");?></div>
  326. <div><input name="rdoShare" type="radio" value="no" checked="checked" /> <?php echo gettext("No");?></div>
  327. </div>
  328. <input type="hidden" name="GameID" value="" />
  329. <input type="hidden" name="sharePC" value="no" />
  330. <input type="hidden" name="pref_theme" value="beholder" />
  331. </form>
  332. </div>
  333. <h3>Pending Chalenges</h3>
  334. <div class="menu_form_body">&nbsp;&nbsp;&nbsp;&nbsp;
  335. <h1><?php echo gettext("Pending challenges");?></h1><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  336. <label class="content" >This is an overview of all your pending challenges. Accept or decline an invitation to a new game or withdraw your invitations to others.</label><br/><br/>
  337. <table align="center"><thead>
  338. <tr><th class="mainHeader" colspan="6"><?php echo gettext("Challenges from other players");?></th></tr>
  339. <tr>
  340. <th style="text-align:left;display:none;"><?php echo gettext("Rank");?></th>
  341. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('respInviteTblBdy', 1, true);" title="Game Id"><?php echo gettext("Id");?></a></th>
  342. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('respInviteTblBdy', 2, true);" title="White's handle"><?php echo gettext("White");?></a></th>
  343. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('respInviteTblBdy', 3, true);" title="Black's handle"><?php echo gettext("Black");?></a></th>
  344. <th><a href="" onclick="this.blur(); return sortTable('respInviteTblBdy', 4, true);" title="Date when the challenge was issued"><?php echo gettext("Issued");?></a></th>
  345. <th style="text-align:center;"><?php echo gettext("Action");?></th>
  346. </tr>
  347. </thead>
  348. <tbody id="respInviteTblBdy">
  349. <?php
  350. $tmpQuery = "SELECT * FROM games WHERE ga_gamemessage = 'playerInvited' AND ((ga_whiteplayer = '".$_SESSION['playerID']."' AND ga_messagefrom = 'black') OR (ga_blackplayer = '".$_SESSION['playerID']."' AND ga_messagefrom = 'white')) ORDER BY ga_datecreated";
  351. $tmpGames = mysql_query($tmpQuery);
  352. $rowNbr = 0;
  353. if (mysql_num_rows($tmpGames) == 0)
  354. echo("<tr><td colspan=\"3\">" . gettext("You are not currently invited to any games") . "</td></tr>\n");
  355. else
  356. while($tmpGame = mysql_fetch_array($tmpGames, MYSQL_ASSOC))
  357. {
  358. if($rowNbr %2 == 0)
  359. echo('<tr class="alternateRow">');
  360. else
  361. echo('<tr>');
  362. $rowNbr++;
  363. echo ('<td style="display:none;"></td>');
  364. echo("<td>");
  365. echo($tmpGame['ga_gameid']);
  366. /* get white's nick */
  367. $WhitePlayer = GetPlayerName($tmpGame['ga_whiteplayer']);
  368. echo ('</td><td>');
  369. echo($WhitePlayer);
  370. /* black's nick */
  371. $BlackPlayer = GetPlayerName($tmpGame['ga_blackplayer']);
  372. echo ('</td><td>');
  373. echo($BlackPlayer);
  374. /* Date issued */
  375. echo ("</td><td>".substr($tmpGame['ga_datecreated'], 0, -3));
  376. /* Response */
  377. echo ("</td><td align='center'>");
  378. echo ("<input class=\"button\" type=\"button\" value=\"" . gettext("Accept") . "\" onclick=\"RedirectToGame(".$tmpGame['ga_gameid'].")\" />");
  379. echo ("<input class=\"button\" type=\"button\" value=\"" . gettext("Decline") . "\" onclick=\"RejectGameReq(".$tmpGame['ga_gameid'].")\" />");
  380. echo("</td></tr>\n");
  381. }
  382. ?>
  383. </tbody>
  384. </table><br/>
  385. <input type="hidden" name="response" value="" />
  386. <input type="hidden" name="messageFrom" value="" />
  387. <input type="hidden" name="gameID" value="" />
  388. </form>
  389. <form name="withdrawRequestForm" action="mainmenu.php" method="post">
  390. <div class="form-block">
  391. <table><thead>
  392. <tr><th class="mainHeader" colspan="7"><?php echo gettext("Pending challenges from you");?></th> </tr>
  393. <tr>
  394. <th style="text-align:left;display:none;"><?php echo gettext("Rank");?></th>
  395. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('inviteTblBdy', 1, true);" title="Game Id"><?php echo gettext("Id");?></a></th>
  396. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('inviteTblBdy', 2, true);" title="White's handle"><?php echo gettext("White");?></a></th>
  397. <th style="text-align:left;"><a href="" onclick="this.blur(); return sortTable('inviteTblBdy', 3, true);" title="Black's handle"><?php echo gettext("Black");?></a></th>
  398. <th><a href="" onclick="this.blur(); return sortTable('inviteTblBdy', 4, true);" title="Status" ><?php echo gettext("Status");?></a></th>
  399. <th><a href="" onclick="this.blur(); return sortTable('inviteTblBdy', 5, true);" title="Date when the challenge was issued"><?php echo gettext("Issued");?></a></th>
  400. <th style="text-align:center;"><?php echo gettext("Action");?></th>
  401. </tr>
  402. </thead>
  403. <tbody id="inviteTblBdy">
  404. <?php
  405. /* if game is marked playerInvited and the invite is from the current player */
  406. $tmpQuery = "SELECT * FROM games WHERE (ga_gamemessage = 'playerInvited' AND ((ga_whiteplayer = '".$_SESSION['username']."' AND ga_messagefrom = 'white') OR ( ga_blackplayer = '".$_SESSION['username']."' AND ga_messagefrom = 'black'))";
  407. /* OR game is marked inviteDeclined and the response is from the opponent */
  408. $tmpQuery .= ") OR (ga_gamemessage = 'inviteDeclined' AND ((ga_whiteplayer = '".$_SESSION['username']."' AND ga_messagefrom = 'black') OR ( ga_blackplayer = '".$_SESSION['username']."' AND ga_messagefrom = 'white'))) ORDER BY ga_datecreated";
  409. $tmpGames = mysql_query($tmpQuery);
  410. $rowNbr = 0;
  411. if (mysql_num_rows($tmpGames) == 0)
  412. echo("<tr><td colspan=\"4\">" . gettext("You have no current unanswered invitations") . "</td></tr>\n");
  413. else
  414. while($tmpGame = mysql_fetch_array($tmpGames, MYSQL_ASSOC))
  415. {
  416. if($rowNbr %2 == 0)
  417. echo('<tr class="alternateRow">');
  418. else
  419. echo('<tr>');
  420. $rowNbr++;
  421. echo ('<td style="display:none;"></td>');
  422. echo("<td>");
  423. echo($tmpGame['ga_ID']);
  424. /* get white's nick */
  425. $WhitePlayer = GetPlayerName($tmpGame['ga_whiteplayer']);
  426. echo ('</td><td>');
  427. echo($WhitePlayer);
  428. /* black's nick */
  429. $BlackPlayer = GetPlayerName($tmpGame['ga_blackplayer']);
  430. echo ('</td><td>');
  431. echo($BlackPlayer);
  432. /* Status */
  433. echo ("</td><td>");
  434. if ($tmpGame['ga_gamemessage'] == 'playerInvited')
  435. echo ("Response pending");
  436. else if ($tmpGame['ga_gamemessage'] == 'inviteDeclined')
  437. echo ("Invitation declined");
  438. /* Date issued */
  439. echo ("</td><td>".substr($tmpGame['ga_datecreated'], 0, -3));
  440. /* Withdraw Request */
  441. echo ("</td><td align=\"center\">");
  442. echo ("<input class=\"button\" type=\"button\" value=\"" . gettext("Withdraw") . "\" onclick=\"withdrawRequest(".$tmpGame['gameID'].")\" />");
  443. echo("</td></tr>\n");
  444. }
  445. ?>
  446. </tbody>
  447. </table><br/>
  448. </div>
  449. <input type="hidden" name="gameID" value="" />
  450. </form>
  451. </div>
  452. <h3>Replay</h3>
  453. <div class="menu_form_body">
  454. </br></br>
  455. </div>
  456. <h3>Challenge Others</h3>
  457. <div class="menu_form_body">
  458. <span id="opponents"></span>
  459. </br></br>
  460. </div>
  461. </div>
  462. </div>
  463. </div>
  464. <!-- topbar-->
  465. <layer>
  466. <ul id="navigation">
  467. <li class="home"><a href="Home_Login.php" title="Home"></a></li>
  468. <li class="play"><a href="Play.php" title="Play Chess"></a></li>
  469. <li class="photos"><a href="Inbox.php" title="Inbox"></a></li>
  470. <li class="club"><a href="SearchClub.php" title="Clubs"></a></li>
  471. <li class="settings"><a href="Settings.php" title="Settings"></a></li>
  472. </ul>
  473. </layer>
  474. <script type="text/javascript">
  475. $(function() {
  476. $('#navigation a').stop().animate({'marginLeft':'-90px'},100);
  477. $('#navigation > li').hover(
  478. function () {
  479. $('a',$(this)).stop().animate({'marginLeft':'-70px'},100);
  480. },
  481. function () {
  482. $('a',$(this)).stop().animate({'marginLeft':'-90px'},100);
  483. }
  484. );
  485. });
  486. </script>
  487. <!--new code end -->
  488. <div class="clear"></div>
  489. <div id="footers">
  490. <div style="float:right"><div class="fotterlast">
  491. <a href="#" title="About Us">About Us</a>
  492. |
  493. <a href="#" title="Terms of Service">Terms of Service</a>
  494. |
  495. <a href="#" title="Privacy Statement">Privacy</a>
  496. |
  497. <a href="#" title="Contact Us">Contact Us</a>
  498. </div></div>
  499. <div style="float:Left"><div class="fotterlastdesing">Designed by SEP_WE_05 Team.</div></div>
  500. </div>
  501. </div>
  502. </div>
  503. </div>
  504. </body>
  505. </html>