14-10-2010, 08:57 PM
|
#1 (permalink)
|
|
Membro - Sargento
Registrado em: Jul 2010
Posts: 30
Agradecido 7 Vezes em 3 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
|
Modificacão no site
Opa galera, estava querendo fazer uma modificacao no meu site, atualmente ele mostra apenas a ultima noticia postada e cria uma rolagem abaixo com o restante, eu queria que essa rolagem nao existise, e aparece o link das 10 ultimas postadas ou sei la, todas que jah foram postadas.
Atualmente ele esta assim:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Queria alterar para ficar assim:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
O codigo do site onde fik as noticias é este:
<?php
/*================================
Autor: Jorge Luiz Oliveira Borba
Email: jorge.borba@gmail.com
================================*/
?>
<?php include("includes/header.php");?>
<?php
$objNoticia = new Noticia();
if(is_numeric($_GET["id_noticia"]))
{
$objNoticia->SelectById($_GET["id_noticia"]);
}else{
$objNoticia->SelectUltima();
}
if($objNoticia->id_noticia != "")
{
?>
<table width="511" height="29" border="0" cellpadding="0" cellspacing="0" background="_images/titulo_bg.gif">
<tr>
<td align="center" class="titulo"><?php echo LG_HOME;?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="conteudo">
<?php echo LG_POSTED_BY;?>
<span class="azul">
<?php echo $objNoticia->autor;?>
</span><br>
<?php echo LG_DATE;?>
: <span class="azul">
<?php echo $objNoticia->data_cadastro;?>
</span>
<br> <h1><?php echo $objNoticia->titulo;?></h1>
<?php
if($objNoticia->imagem != "")
{
?>
<div id="jquery-image-zoom-example">
<table width="200" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="conteudo">
<tr>
<td><a href="arquivos/imagens/<?php echo $objNoticia->imagem;?>"><img src="thumbnail.php?w=200&img=arquivos/imagens/<?php echo $objNoticia->imagem;?>" hspace="4" border="0"></a></td>
</tr>
<tr>
<td align="center"><?php echo LG_CLICK_ZOOM;?></td>
</tr>
</table>
</div>
<?php
}
?>
<?php echo $objNoticia->noticia;?>
</td>
</tr>
<tr>
<td height="30"> </td>
</tr>
<tr>
<td>
<h2><?php echo LG_MORE_NEWS;?></h2>
<div class="newsticker-jcarousellite">
<ul>
<?php
$objNoticia = new Noticia();
$objNoticia->status_noticia = "1";
$objNoticia->LoadLista("id_noticia DESC limit 10");
while($rs = $objNoticia->Rs())
{
?>
<li>
<div class="info">
<span class="azul"><?php echo $rs["data_cadastro"];?></span>
<a href="index.php?id_noticia=<?php echo $rs["id_noticia"];?>"><?php echo $rs["titulo"];?></a>
</div>
<div class="thumbnail">
<?php echo $rs["chamada"];?>
</div>
<div class="clear"></div>
</li>
<?php
}
?>
</ul>
</div>
</td>
</tr>
</table>
<?php
}
?>
<?php include("includes/footer.php");?>
|
|
|