problemi con l'impaginazione

  • Creatore Discussione Creatore Discussione hantos
  • Data di inizio Data di inizio

hantos

Nuovo Utente
17 Ott 2008
21
0
1
Chi può darmi una mano ??

ho realizzato alcune pagine di una fotogallery, l'impaginazione ba bene e mi crea le pagine sucessive, quando clicco sulle nuove pagine le foto le trova, pero non mi visualizza il menù che c'è sulla destra che sono dei file che estraggo da un datatbase. dovè l'errore, vi posto il codice della pagina.
:hammer:
<html>

<head>
<link rel="StyleSheet" href="style2.css" type="text/css" >
</head>

<body>
<center>
<div id="container">
<table border="0" width="980" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td><? include('intestazione.inc.php') ?></td>
</tr>
</table>
<table border="0" width="980" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td>
<div id="content">
<? include('lefoto1-centrale.php') ?></div>
</td>
<td width="180">
<div id="navigationdx">

<? include('menudx.inc.php') ?></div> <br><br><br><br></td>
</tr>
</table>
<? include("foot.inc.php"); ?>
</body>

</html>

questi sono gli include della pagina

questa è la pagina

<div id="content">

<table border="0" width="700" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="700">





<table border="0" width="700" id="table3"><tr><td>
<div class="textimage">




<div class="block2">Ollolai >>>


<hr size="1"></div>
</td></tr></table>
</td>
</tr>
</table>
<table border="0" width="739" id="table1">
<tr>
<td width="158" style="border-right-style: outset; border-right-width: 1px">

<!-- Start of NavBar definition -->
<TABLE border="0" cellspacing="0" cellpadding="0">
<tr><td><a href="dovesiamo.php" target="_top" onmouseout="turn_off('i_video_B1')" onmouseover="turn_over('i_video_B1')" ><img name="i_video_B1" src="i_video_B1.gif" alt="Dove siamo" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="ilpaese.php" target="_top" onmouseout="turn_off('i_video_B2')" onmouseover="turn_over('i_video_B2')" ><img name="i_video_B2" src="i_video_B2.gif" alt="Il paese Ollolai" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="festeesagre.php" target="_top" onmouseout="turn_off('i_video_B3')" onmouseover="turn_over('i_video_B3')" ><img name="i_video_B3" src="i_video_B3.gif" alt="Feste e sagre" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="lefoto.php" target="_top" onmouseout="turn_off('i_video_B4')" onmouseover="turn_over('i_video_B4')" ><img name="i_video_B4" src="i_video_B4.gif" alt="Le foto del paese e d'intorni" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="http://it.youtube.com/watch?v=erOMRxspHTM" target="_blank" onmouseout="turn_off('i_video_B5')" onmouseover="turn_over('i_video_B5')" ><img name="i_video_B5" src="i_video_B5.gif" alt="I video su youtube" width="157" height="26" border="0"></a></td></tr>
</TABLE>
<!-- End of NavBar definition -->


<br><br><center>
<img src="Sardegna.gif"></center>
<br><br> <center>
<hr>
<img src="loghi/gemellaggio.jpg">
<img src="loghi/logo-pignola.jpg">
<hr>
</center>
<br>
<a href='http://www.ilmeteo.it/meteo/Sardegna' target='blanck' title='il tempoprevisto in Sardegna'>
<img src='loghi/meteo.jpg' border='0' alt='il tempo previsto in Sardegna'> </a>
<br><br>
</td>
</td><td width="10"></td>
<td width="600">



<div class="block6"> Le foto
<hr color="#0066CC" align="left" size="1" noshade>
</div>

<br><br>
<center>

<table width="600" height='540' border="0"><tr><td>
<font face="times new roman" size="5" color="red"><b><center>FOTOGALLERY </font></b><font face="times new roman" size="2" color="#000000"> (Clicca sulle foto per ingrandirle)<br><br><br>
<table width="400" border="1">

<?

include("datastring.inc.php");

$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
?>
<?
$id=$_GET['id'];
if (!isset($_GET['start']) OR $_GET['start']<0)
{
$start = 0;
}
else
{
$start = $_GET['start'];
}

$step = 6;

$query = "SELECT id,foto1,foto,descrizione FROM fotoantiche ORDER BY id DESC LIMIT $start,$step";
$result = mysql_query($query, $db);
$s=1;
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++;

echo "

<tr>
<td>

</td>
";}
$alt=$s/2;
$alt2=bcdiv($s,2);
$s++;
if($alt!=$alt2){echo"
</tr>";}
echo "<td>
<center><a href='http://www.linea3000.com/$row[foto]' target='_blank'> <img src='http://www.linea3000.com/$row[foto1]' border='0'> </a>
<br>
$row[descrizione]</center>
</td>";


if($alt==$alt2){echo"</tr>";}

}
?>
</table>

<br>
<center>

<table width=300 border=1><tr>
<td width=100>
<?
if ($start>0)
{ $start_back = $start - $step;
echo "<a href=lefoto1.php?a=$a_back>precedenti</a>";
}
?>
</td>
<?

$query = "SELECT count(*) AS tot FROM fotoantiche";

$result = mysql_query($query, $db);
$row = mysql_fetch_array($result);
$pages = intval(($row[tot]-1) / $step)+1;

?>
<td width=60% align=center>
<?
for ($i=0; $i<$pages AND $i<20
; $i++)
{ $start_page = $i * $step;
echo "<a href=lefoto1.php?start=$start_page>" . ($i+1) . "</a> ";
}
?>
</td>

<td width=20%>
<?
if ($start + $step < $row[tot])
{ $start_next = $start + $step;
echo "<a href=lefoto1.php?start=$start_next>successivi</a>";
}
?>
</td>
</tr></table>

<br><br><br>
</td>
</tr></table></center>
</td>
</tr>
</table>

</div>
 
impaginazione

Il codice che utilizzo è il seguente, ed è visibile , soltanto quando clicco sulle pagine successive non si vede.

<div id="navigationdx">
<div class="textimage2">
<?


echo " <div class='block8'>";
$giorni = array( "Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato" );

echo " Oggi è " .$giorni[date("w")];

echo " " . date("d/m/Y")
;

echo "";

?>
<br><br>



<div class="bl">
<div class="br">
<div class="tl">
<div class="tr">
<table bgcolor='#ffffff'><tr><td>

<div class="block2">
<center>-- NEWS -- </center></div>
<marquee direction=up width="148" height="165" loop="infinite" scrolldelay='95' scrollamount='1' ONMOUSEOVER=this.stop() ONMOUSEOUT=this.start() >


<table align="center" width="148" height="165">
<tr align="right">


<?
include("datastring2.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database");

if (!isset($_GET['start']) OR $_GET['start']<0)
{
$start = 0;
}
else
{
$start = $_GET['start'];
}

$step = 4;

$count=0;
$query = "SELECT anteprima,intestazione,data FROM news ORDER BY id LIMIT $start,$step";
$result = mysql_query($query, $db);
$s=1;
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++; echo "";}


$alt=$s/2;
$alt2=bcdiv($s,2);
$s++;
if($alt!=$alt2){echo"";}

echo "<td align='center' width='148'>
<font face='arial' size='2' color='black'>
$row[data]<br></font>

<a href=$row[intestazione]> <div class='block7'> $row[intestazione]</a></div>


<div class='block8'>
$row[anteprima]</div></td></tr>";



if($alt==$alt2){echo"";}

}
?>

</table>
</div></marquee>
</td></tr></table>
</div></div></div></div>



<br><br>
<div class="bl">
<div class="br">
<div class="tl">
<div class="tr">
<table bgcolor='#ffffff' widt='148'><tr><td>

<div class="block2">
<center>-- Visita -- </center></div>



<table width='148' height='165'><tr>


<?
include("datastring2.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database");
if (!isset($start) OR $start<0)
$start=0;
$step = 6;

$count=0;
$query = "SELECT id,titolo,link FROM linkdestra ORDER BY id LIMIT $start,$step";
$result = mysql_query($query, $db);
$s=1;
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++; echo "";}


$alt=$s/2;
$alt2=bcdiv($s,2);
$s++;
if($alt!=$alt2){echo"";}

echo "<td align='center' width='148'>


<div class='block7'>
<a href=$row[link] target='_blanck'> <div class='block7'>
$row[titolo]</a></div></div></td></tr>";



if($alt==$alt2){echo"</td></tr>";}

}
?>

</table>
</div>
</td></tr></table></div></div></div>
</div>

<br><br>
<div class="bl">
<div class="br">
<div class="tl">
<div class="tr">
<table bgcolor='#ffffff' widt='148' height='80'><tr><td>

<div class="block4">
-- Arrivare in Sardegna </div>

<hr>

<table width='148'><tr>


<?
include("datastring2.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database");
if (!isset($start) OR $start<0)
$start=0;
$step = 2;

$count=0;
$query = "SELECT id,titolo,link,logo FROM linkdestra2 ORDER BY id LIMIT $start,$step";
$result = mysql_query($query, $db);
$s=1;
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++; echo "";}


$alt=$s/2;
$alt2=bcdiv($s,2);
$s++;
if($alt!=$alt2){echo"";}

echo "<td align='center' width='148'>


<div class='block7'><a href=$row[link] target='_blanck'> <div class='block7'>


$row[titolo]</a></div></div></td></tr>";



if($alt==$alt2){echo"</td></tr>";}

}
?>

</table>
</div>
</td></tr></table></div></div></div>
</div>
:mad:
 

Discussioni simili