Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Problem z tabelą
#1
Mam taki problem że tabele którą mam w require rozszerza mi się mniej więcej o 1/4 tej tabeli, na innych stronach tak nie mam tylko na tych na których mam umieszczone formularze. I choć tutaj usunąłem formularz tabela nadal mi się rozszerza.

strona.php
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">

a{  text-decoration: none;  color: #000000; }

a:hover { text-decoration: underline; color: #0066FF; }
</style>
<script type="text/javascript" src=".."></script>
<script type="text/javascript">
// <![CDATA[
function pokaz_ukryj(pokaz, ukryj) {
    document.getElementById(pokaz).style.display = "block";
    document.getElementById(ukryj).style.display = "none";
}
//]]
</script>
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<link rel="SHORTCUT ICON" href=".." />
<title>Oceny</title>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
// -->
</script>
</head>

<body background="..">
<center>


<center>
<div align="center">
<center>



<div style="padding:0px;font-size:2;font-family:Arial;text-align:center;"><center>

<?php require ('../tabela.php');
?>
    <table class="tabelka" border="0" cellspacing="0" width="924" height="10" background="..">
    <tbody>
    <tr align="center">
      <td align="center" valign="top" width="922" height="10">

</td>
    </tr>
</tbody></table>

    <table class="tabelka" border="0" cellspacing="0" width="924" height="595" background="..">
    <tbody>
    <tr align="center">
      <td align="center" valign="top" width="320" height="595">

<td align="center" valign="top" width="601" height="595">

    <table class="tabelka" border="0" cellspacing="0" width="576" height="593">
    <tbody>
    <td align="center" valign="top" width="574" height="593">
<p align="left"><font face="Verdana"><b>Oceny<br>
&nbsp;</b></font></p>
    </tbody></table>

        </tr>
</tbody></table>


<center>
<div align="center">

  <center>

</center></div>
</center></div></div>




</center></div>



</center>

</body>

</html>

sory, trochę pokręcony kod

Proszę o pomoc Big Grin
Odpowiedz
#2
Co to znaczy rozszerza? Która tabela?

Niezłe g*wno wyprodukowałeś...
Odpowiedz
#3
Ta którą dodaje w require. Robi się 2 razy dłuższa. Ale tylko na tych stronach gdzie mam formularze a tutaj usunąłem formularz a i tak robi się dłuższa.
Odpowiedz
#4
1. Nie pokazałeś jej...
2. Masz tam taki syf, że nic innego prócz: "przepisz to jak należy", Ci nie powiem.
Odpowiedz
#5
tabela.php
Kod:
<table border="0" width="924" height="157" background="..">
    <tr>
        <td height="2" width="418"></td>
        <td height="2"></td>
    </tr>
    <tr>
        <td width="418" height="18"></td>
        <td height="18">
        <p align="center"><font face="Arial" size="2" color="#FFFFFF">Dziś jest:<script language=JavaScript>

<!-- Hide it

// Returns today's date in a string with full day and month names

// by Roger C. Scudder Jr. on 10-2-98


DayName = new Array(7)

DayName[0] = "niedziela"

DayName[1] = "poniedziałek"

DayName[2] = "wtorek"

DayName[3] = "środa"

DayName[4] = "czwartek"

DayName[5] = "piątek"

DayName[6] = "sobota"



MonthName = new Array(12)

MonthName[0] = "stycznia"

MonthName[1] = "lutego"

MonthName[2] = "marca"

MonthName[3] = "kwietnia"

MonthName[4] = "maja"

MonthName[5] = "czerwca"

MonthName[6] = "lipca"

MonthName[7] = "sierpnia"

MonthName[8] = "września"

MonthName[9] = "października"

MonthName[10] = "listopada"

MonthName[11] = "grudnia"



function getDateStr(){

    var Today = new Date()

    var WeekDay = Today.getDay()

    var Month = Today.getMonth()

    var Day = Today.getDate()

    var Year = Today.getYear()



    if(Year <= 600)

    Year += 1900



    return DayName[WeekDay] + "," + " " + Day + " " + MonthName[Month] + " "+ Year

}

//-->

</script>
            <script>document.write(getDateStr() + " r.")</script>
        <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>
        online:<b><?
$plik = "online.txt";
$czas = 30; # CZAS ONLINE
$t = time();
$ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
$u = explode("n", str_replace("r", "", @join("", @file($plik))));
foreach($u as $i => $v) {$e = explode("|", $v);
if($e[0] == $ip || $e[1] < $t) unset($u[$i]);
}
$u[] = $ip . "|" . ($t + $czas);
$fp = fopen($plik, "w");
flock($fp, 2);
fputs($fp, join("n", $u));
flock($fp, 3);
fclose($fp);
echo ' '.count($u);
?></b></font></td>
    </tr>
    <tr>
        <td width="418"></td>
        <td></td>
    </tr>
    <tr>
        <td width="418" height="26"></td>
        <td height="26">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font face="Arial" size="2" color="#FFFFFF">pozostało: <b> <SCRIPT LANGUAGE="JavaScript">
<!-- // (c) Henryk Gajewski
var urodz = new Date("June 22, 2011");
var now = new Date();
var ile = urodz.getTime() - now.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
if (dni > 1)
   document.write(" " + dni +" dni!")
else if (dni == 1)
     document.write(" ")
else if (dni == 0)
     document.write(" ")
else
    document.write(" ");
// -->
</SCRIPT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</b>
        <a href="#" onclick="window.open('kalendarium.php', 'Nowe_okno', 'height=489,width=400');"><font color="#FFFFFF">kalendarium</font></a></td>
    </tr>
    <tr>
        <td width="418" height="3"></td>
        <td height="3"></td>
    </tr>
    <tr>
        <td width="418" height="20"></td>
        <td height="20">
        <p align="center">

<font face="Arial" size="2"><b>&nbsp; &nbsp;&nbsp; Jutro: </b>Blablabla</font></td>
    </tr>
    <tr>
        <td width="418" height="30"></td>
        <td height="30"></td>
    </tr>
</table>

<table border="0" width="912" height="90" background="..">
    <tr>
        <td width="130">
<dl id="menu0">
<dt><font color="#FFFFFF"><br>
</font><font color="#FFFFFF" size="4" face="Verdana">Tekst</font></dt>
<dd><font face="Arial" size="2" color="#FFFFFF">
<a href=".."><font color="#FFFFFF">Tekst</font></a></font></dd>
</dl>
<script type="text/javascript">
// <![CDATA[
new Menu('menu0');
// ]]>
</script>
</td>
        <td width="130">
<dl id="menu1">
<dt><font color="#FFFFFF"><br>
</font><font color="#FFFFFF" size="4" face="Verdana">Tekst</font></dt>
<dd><font face="Arial" size="2" color="#FFFFFF">
<a href=".."><font color="#FFFFFF">Tekst</font></a></font></dd>
<dd><font face="Arial" size="2" color="#FFFFFF">
<a href=".."><font color="#FFFFFF">Tekst</font></a></font></dd>
</dl>
<script type="text/javascript">
// <![CDATA[
new Menu('menu1');
// ]]>
</script></td>
        <td width="130">
<dl id="menu2">
<dt><font color="#FFFFFF"><br><font size="4" face="Verdana">Tekst</font></font></dt>
<dd><a href="..">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd>
<dd><a href="..">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd></a></dd>
<dd><a href="..">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd>
<dd><a href="..">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd>
</dl>
<script type="text/javascript">
// <![CDATA[
new Menu('menu2');
// ]]>
</script></td>
        <td width="130">
<dl id="menu3">
<dt><font color="#FFFFFF"><br>
<font size="4" face="Verdana">Tekst</font></font></dt>
<dd><a href="http://www.klasab123.mojeforum.com">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd>
<dd><a href="galera/galeria.php">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd></a></dd></dd>
<dd><a href="gry/gry.php">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd></a></dd></dd>
</dl>
<script type="text/javascript">
// <![CDATA[
new Menu('menu3');
// ]]>
</script></td>
        <td width="129">
<dl id="menu4">
<dt><font color="#FFFFFF"><br>
<font size="4" face="Verdana">Tekst</font></font></dt>
<dd><a href="..">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd>
<dd><a href="..">
<font face="Arial" size="2" color="#FFFFFF">Tekst</font></a></dd></a></dd></dd>
</dl>
<script type="text/javascript">
// <![CDATA[
new Menu('menu4');
// ]]>
</script></td>
        <td width="237">
    <!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE border="0"><tr><td>
<INPUT TYPE=text name=q size=18 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Wyszukaj">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google --></td>
    </tr>
</table>
Odpowiedz
#6
WTF.
Odpowiedz
#7
Odpowiedz
#8
Ja to bym stawiał na te &nbsp;&nbsp;&nbsp;
ale równie dobrze to może być zupelnie co innego, bo kod jest kiepski.
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Tabela polecamy irlan007 11 8,317 26-09-2014, 20:08
Ostatni post: Snake_
  tabela - pomoc plimplan 15 9,667 21-12-2011, 20:59
Ostatni post: Kartofelek
  HTML/CSS Tabela - problem z szerokością komórek hghormone 0 2,096 08-05-2011, 12:00
Ostatni post: hghormone
  tabela dotted szczurinio1 9 6,259 19-12-2010, 14:34
Ostatni post: szczurinio1
  Tabela - html dawix111 1 2,898 11-11-2010, 04:40
Ostatni post: www.skrypty.pro

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl