Mini Shell

Direktori : /home/playbengal/www/
Upload File :
Current File : /home/playbengal/www/blog-direita.php

<p class="titulo">Pesquisar</p>
<form method="post" action="" id="frmBusc">
<table>
<tr>
	<td width="98%"><input type="text" name="busca" onkeyup="$('#frmBusc').attr('action','<?=URL()?>/busca/'+this.value)" /></td>
	<td width="1%" nowrap>&nbsp;</td>
	<td width="1%" nowrap><a href="javascript: $('#frmBusc').submit();" class="botao amarelo">Pesquisar</a></td>
</tr>
</table>
</form>

<br /><br />

<p class="titulo">Categorias</p>
<ul class="categorias">
<?
$SQL = mysql_query("SELECT cate, perm FROM blog_categorias ORDER BY cate ASC",$db) or die(mysql_error());
while($row = mysql_fetch_array($SQL)){
	$CATE = $row["cate"];
	$PERM = $row["perm"];
	?><li><a href="<?=URL()?>/categoria/<?=$PERM?>"><?=$CATE?></a></li><?
}
?>
</ul>

<br /><br />

<p class="titulo">Artigos recentes</p>
<table>
<?
$SQL = mysql_query("SELECT data, foto, titu, perm FROM blog WHERE ativ = 'S' ORDER BY data DESC LIMIT 2",$db) or die(mysql_error());
while($row = mysql_fetch_array($SQL)){
	$DATA = MP($row["data"]);
	$FOTO = $row["foto"];
	$TITU = $row["titu"];
	$PERM = $row["perm"];
	?>
	<tr>
		<td width="1%" valign="top"><a href="<?=URL()?>/blog/<?=$PERM?>"><img src="<?=URL()?>/imagens/blog/<?=$FOTO?>" alt="<?=$TITU?>" class="blog-direita" /></a></td>
		<td width="1%">&nbsp;</td>
		<td width="98%" valign="top">
			<a href="<?=URL()?>/blog/<?=$PERM?>" style="text-decoration:none;">
				<?=$DATA?>
				<h2><?=$TITU?></h2>
			</a>
		</td>
	</tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<?
}
?>
</table>

Zerion Mini Shell 1.0