Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][html] Błędne wyświetlanie tabeli. :/
marcinvx
post 13.02.2011, 19:22:32
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 11.02.2011

Ostrzeżenie: (0%)
-----


Witam, mam stronę w php i html, próbowałem sam zakodować ale coś mi nie wychodzi.. ;/

Pomoże ktoś ?
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  3. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  4. <meta name="Description" content="gold-racing.pl to nielegalne wyścigi uliczne w formie gry internetowej za darmo! Tuningowane samochody, pojedynki na torze i wiele więcej atrakcji czeka na Ciebie." />
  5. <meta name="Keywords" content="gold-racing, gold, race, gra online, via www, mmorpg, mmo, gra internetowa, wyścigi, wyscigi, gold race, uliczne, tuning, gra" />
  6. <title><?php echo "Gold-Racing.pl - " . $title; ?></title>
  7. <link rel="stylesheet" href="style.css" type="text/css" />
  8. <link rel="Shortcut icon" href="http://gold-racing.pl/favicon.ico" />
  9. <script type="text/javascript">
  10. function noNumbers(e)
  11. {
  12. var keynum;
  13. var keychar;
  14. var numcheck;
  15.  
  16. if(window.event) // IE
  17. {
  18. keynum = e.keyCode;
  19. }
  20. else if(e.which) // Netscape/Firefox/Opera
  21. {
  22. keynum = e.which;
  23. }
  24. keychar = String.fromCharCode(keynum);
  25. numcheck = /\d/;
  26. return !numcheck.test(keychar);
  27. }
  28. <script type="text/javascript">
  29. <!--
  30. var czas;
  31. var jeden = window.document.kontakt.email.value.indexOf("@");
  32. var dwa = window.document.kontakt.email.value.lastIndexOf(".");
  33. function sprawdz(){
  34. if(window.document.kontakt.imie.value == ''){
  35. window.document.kontakt.imie_js.value = "wpisz imie";
  36. }
  37. else if(window.document.kontakt.imie.value.length < 3){
  38. window.document.kontakt.imie_js.value = "minimum 3 znaki";
  39. }
  40. else{
  41. window.document.kontakt.imie_js.value = "OK";
  42. }
  43. if(window.document.kontakt.email.value == ''){
  44. window.document.kontakt.email_js.value = "twój adres email";
  45. }
  46. else if(window.document.kontakt.email.value.length < 5){
  47. window.document.kontakt.email_js.value = "niepoprawny adres email";
  48. }
  49. else if(jeden == -1 || jeden == 0 || dwa == -1 || dwa < jeden+2 || dwa > window.document.kontakt.email.value.length-2){
  50. window.document.kontakt.email_js.value = "niepoprawny adres";
  51. }
  52. else{
  53. window.document.kontakt.email_js.value = "OK";
  54. }
  55. var max = 10000;
  56. var jest = window.document.kontakt.tresc.value.length;
  57. var zostalo = max - jest;
  58. window.document.kontakt.tresc_js.value = zostalo;
  59. czas = setTimeout("sprawdz();", 100);
  60. }
  61. // -->
  62. <script type="text/javascript">
  63.  
  64. <!--
  65. function form1(tekst){
  66. if(tekst=='login'){
  67. window.document.logowanie.login.value='';
  68. }
  69. }
  70. function form2(tekst){
  71. if(tekst=='hasło'){
  72. window.document.logowanie.pass.value='';
  73. }
  74. }
  75. function sprawdzLogowanie(){
  76. var wiadomosc = '';
  77. if(window.document.logowanie.login.value == ''){
  78. wiadomosc = wiadomosc += "wpisz login \n";
  79. }
  80. if(window.document.logowanie.pass.value == ''){
  81.  
  82. wiadomosc = wiadomosc += "wpisz hasło \n"
  83. }
  84. if(wiadomosc != ''){
  85. alert(wiadomosc);
  86. return false;
  87. }
  88. else{
  89. return true;
  90. }
  91. }
  92. // -->
  93. <script type="text/javascript">
  94.  
  95. var _gaq = _gaq || [];
  96. _gaq.push(['_setAccount', 'UA-20637005-1']);
  97. _gaq.push(['_trackPageview']);
  98.  
  99. (function() {
  100. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  101. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  102. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  103. })();
  104.  
  105. </head>
  106. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="tlo.png">
  107. <table id="Tabela_01" width="980" height="119" border="0" cellpadding="0" cellspacing="0">
  108. <tr>
  109. <td width="460" height="119">
  110. <img src="glow/1.png" width="460" height="119"></td>
  111. <td width="520" height="119">
  112. <img src="glow/2.png" width="520" height="119"></td>
  113. </tr>
  114. <table id="Tabela_01" width="980" height="37" border="0" cellpadding="0" cellspacing="0">
  115. <tr>
  116. <td width="133" height="37"><a href="index.php"><img src="buttony/1.png" width="133" height="37" border="0"></a></td>
  117. <td width="97" height="37"><a href="forum/index.php"><img src="buttony/2.png" width="97" height="37" border="0"></a></td>
  118. <td width="92" height="37"><a href="profil.php"><img src="buttony/3.png" width="92" height="37" border="0"></a></td>
  119. <td width="140" height="37"><a href="regulamin.php"><img src="buttony/4.png" width="140" height="37" border="0"></a></td>
  120. <td width="98" height="37"><a href="pomoc.php"><img src="buttony/5.png" width="98" height="37" border="0"></a></td>
  121. <td width="111" height="37"><a href="kontakt.php"><img src="buttony/6.png" width="111" height="37" border="0"></a></td>
  122. <td width="134" height="37"><a href="ranking.php"><img src="buttony/7.png" width="134" height="37" border="0"></a></td>
  123. <td width="175" height="37"><?php
  124. if(isSet($_SESSION['gold-racing'])){
  125. echo "<a href='wyloguj.php'><img src='buttony/9.png' width='175' height='37' border='0' alt='' /></a>";
  126. }
  127. else{
  128. echo "<a href='rejestracja.php'><img src='buttony/8.png' width='175' height='37' border='0' alt='' /></a>";
  129. }
  130. ?></td>
  131.  
  132.  
  133. </tr>
  134. <table id="Tabela_01" width="980" height="48" border="0" cellpadding="0" cellspacing="0">
  135. <tr>
  136. <td width="980" height="17" colspan="3">
  137. <img src="online/1.png" width="980" height="17"></td>
  138. </tr>
  139. <tr>
  140. <td width="86" height="17">
  141. <?php
  142. if(isSet($_SESSION['gold-racing'])){
  143. echo "<img src='online/6.png' width='86' height='17' border='0'>";
  144. }
  145. else{
  146. echo "<img src='online/2.png' width='86' height='17' border='0'>";
  147. }
  148. ?>
  149.  
  150. </td>
  151. <td width="68" height="17" background="online/3.png">
  152. <font size="2.5" color="black">
  153. <?php if(!isSet($_SESSION['gold-racing'])) echo $onlinee; else echo $ranking[0] ?>
  154. </center>
  155. </font>
  156. </td>
  157. <td width="826" height="31" rowspan="2">
  158. <img src="online/4.png" width="826" height="31"></td>
  159. </tr>
  160. <tr>
  161. <td width="154" height="14" colspan="2">
  162.  
  163. <img src='online/5.png' width='154' height='14'>
  164. </td>
  165. </tr>
  166.  
  167. <table width="980px">
  168. <tr>
  169. <td align="center"><br /><?php
  170.  
  171. // ROTATOR BANNERÓW POCZĄTEK
  172. $query = mysql_query("SELECT * FROM rotator WHERE u=0");
  173. $licznik = -1;
  174. while($max = mysql_fetch_assoc($query)){
  175. if(isSet($max)){
  176. $a[] = $max['id'];
  177. $licznik++;
  178. }
  179. }
  180. if(isSet($a[0])){
  181. $rand = rand(0, $licznik);
  182. $baner = mysql_fetch_assoc(mysql_query("SELECT * FROM rotator WHERE id='".$a[$rand]."'"));
  183. mysql_query("UPDATE rotator SET wyswietlen=wyswietlen-1 WHERE id='".$a[$rand]."'");
  184. $zero = mysql_fetch_row(mysql_query("SELECT wyswietlen FROM rotator WHERE id='".$a[$rand]."'"));
  185. if($zero[0] < 1){
  186. mysql_query("UPDATE rotator SET u=1 WHERE id='".$a[$rand]."'");
  187. }
  188. if($baner['rozszerzenie'] == 'jpg' || $baner['rozszerzenie'] == 'gif' || $baner['rozszerzenie'] == 'png'){
  189. echo "<center>
  190. <a target='_blank' href='".$baner['adres']."'><img src='".$baner['banner'].".".$baner['rozszerzenie']."' width='".$baner['dlugosc']."' height='".$baner['wysokosc']."' alt='banner' /></a>
  191. </center>";
  192. }
  193. else if($baner['rozszerzenie'] == 'swf'){
  194. if(empty($baner['clickTag'])){
  195. echo "<center>
  196. classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
  197. codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0'
  198. id='".$baner['adres']."'
  199. width='".$baner['dlugosc']."' height='".$baner['wysokosc']."'>
  200. <param name='movie' value='".$baner['banner'].".".$baner['rozszerzenie']."'>
  201. <param name='bgcolor' value='#FFFFFF'>
  202. <param name='quality' value='high'>
  203. <param name='allowscriptaccess' value='samedomain'>
  204. <embed
  205. type='application/x-shockwave-flash'
  206. pluginspage='http://www.macromedia.com/go/getflashplayer'
  207. name='street_race_pl_01_750x100'
  208. width='".$baner['dlugosc']."' height='".$baner['wysokosc']."'
  209. src='".$baner['banner'].".".$baner['rozszerzenie']."'
  210. bgcolor='#FFFFFF'
  211. quality='high'
  212. swliveconnect='true'
  213. allowscriptaccess='samedomain'>
  214. <noembed>
  215. </noembed>
  216. </embed>
  217. </center>";
  218. }
  219. else{
  220. echo "<center><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='".$baner['dlugosc']."' height='".$baner['wysokosc']."' id='".$baner['adres']."' align='middle' >
  221. <param name='allowScriptAccess' value='sameDomain' />
  222. <param name='movie' value='".$baner['banner'].".".$baner['rozszerzenie']."'>
  223. <param name='quality' value='high' />
  224. <param name='bgcolor' value='#ffffff' />
  225. <param name='flashvars' value='clickTag=".$baner['clickTag']."'>
  226. <embed src='".$baner['banner']."' FlashVars='clickTag=".$baner['clickTag']."' quality='high' bgcolor='#ffffff' width='".$baner['dlugosc']."' height='".$baner['wysokosc']."' name='".$ban['adres']."' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>
  227. </object></center>";
  228. }
  229. }
  230. }
  231. //ROTATOR BANNERÓW KONIEC
  232.  
  233. ?><br /></td>
  234. </tr>
  235. </table>
  236.  
  237. <table id='Tabela_01' width='981' height='593' border='0' cellpadding='0' cellspacing='0'>
  238. <tr>

Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 16:40