Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Prezados colegas,
Estou tendo dificuldades em meu código para colocar as mensagens mais recentes no topo da página. Trata-se de um fórum dinâmico. No entanto, apenas encontro tal dificuldade na hora de BUSCAR determinado tópico.
OBS.: Detalhe importante: A ordem não deverá seguir apenas a data em que o tópico foi criado, mas a data da última postagem, ou seja, um tópico de data 04/01/2010 às 15:30h poderá estar acima de um postado dia 05/01/2010 às 11:40h, caso possua uma resposta ao tópico no dia 05/01/2010 às 09:40h. Então, dependerá SEMPRE da última mensagem postada em cada tópico.
Se puderem me ajudar, ficarei muito grata!
Seguem códigos abaixo:
<<Esse aqui está correto, o tópico aparece no topo da página, caso tenha sido respondido mais recentemente:>>
<?
session_start();
@include("config/config.php");
if(!($_SESSION['lusu_codigo'] and $_SESSION['lusu_login'])) {
echo "<script> location.href='../login.php?erro=1'</script>";
exit();
}
$lusu_codigo = $_SESSION['lusu_codigo'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http-~~-//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http-~~-//www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<? if ($lusu_codigo <> 1129) { ?>
<meta http-equiv="REFRESH" content="480; URL=forum.php">
<? } else { ?>
<meta http-equiv="REFRESH" content="3600; URL=forum.php">
<? } ?>
<title><?=$title?></title>
<?=$meta?>
<link rel="stylesheet" href="estilo.css" type="text/css" />
<link rel="stylesheet" href="../blog.css" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(img/fundo_site.jpg);
background-repeat: repeat-x;
background-position:top;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.forums {
BORDER-RIGHT: 1px #FFFFFF solid;
BORDER-TOP: 1px #FFFFFF solid;
BORDER-LEFT: 1px #FFFFFF solid;
BORDER-BOTTOM: 1px #FFFFFF solid;
FONT-SIZE: 11px;
padding-left: 2px;
COLOR: #9CBE59;
FONT-STYLE: normal;
FONT-FAMILY: tahoma;
BACKGROUND-COLOR: #FFFFFF;
text-align: left;
width: 100px;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><? include("topo.php"); ?></div></td>
</tr>
<tr>
<td><div align="center">
<table width="990" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"> </td>
<td width="238" valign="top"><div align="right"><? include("menu_forum.php"); ?></div></td>
<td width="714" valign="top"><table width="714" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="54" colspan="2" valign="top" background="img/lay1_33.jpg" style="background-image:url(img/lay1_27.jpg); background-repeat:no-repeat; background-position:top left"><div align="right" style="margin-top:30px; margin-right:10px;" class="txt_banner">FÓRUM</div></td>
</tr>
<tr>
<td height="6" colspan="2" background="img/lay1_31.jpg"></td>
</tr>
<tr>
<td width="15" valign="top" style="background-image:url(img/lay1_33.jpg); background-position:top; background-repeat:no-repeat;"> </td>
<td><table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="480" valign="top"><table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="699" valign="top"><div align="left">
<script language="Javascript" type="text/javascript">
function valida_campo()
{
var check = this.document.fff;
if (check.bq_busca.value =="")
{
alert('Digite a informação para busca!');
check.bq_busca.focus();
return false;
}
check.submit();
}
function habilitacad(Cod){
document.getElementById("msg"+Cod).innerHTML = document.getElementById("IDresposta").innerHTML
}
</script>
<form action="forum_buscar.php?sit=1" style="MARGIN: 0pt" method="post" name="fff" id="fff" onsubmit="return valida_campo(this)" >
<div id="IDresposta" style="display:none">
<form action="forum_envio.php" method="post" enctype="multipart/form-data" name="form_tickets"
id="form_tickets"
style="MARGIN: 0pt" onsubmit="return valida_comentario(this)">
<input name="mfrm_usuario" readonly="readonly"
type="hidden" class="Form_textfixo" id="mfrm_usuario"
value="<?=$_SESSION['lusu_login']?>" size="50"
style="width:278px;" />
<input name="mfrm_cod_usuario" type="hidden"
class="Form_edit" id="mfrm_cod_usuario"
value="<?=$_SESSION['lusu_codigo']?>" />
<input name="mfrm_tipo" type="hidden"
class="Form_edit" id="mfrm_tipo"
value="1" />
<br />
<table width="500" border="0" align="center"
cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td style="padding-bottom: 5px;" valign="top"><div align="left"><span class="txt_descricaodetalhes"> Mensagem:</span><br />
<textarea name="mfrm_detalhes" id="mfrm_detalhes" class="Form_edit" style="height: 40px; width:350px;"></textarea>
</td>
</tr>
<tr>
<td height="10" valign="top"><div align="left"></div></td>
</tr>
<tr>
<td valign="top" style="padding-bottom: 5px;"><div align="left"><span class="txt_descricaodetalhes">Imagem:</span><br />
<input name='IMAGEM' id="IMAGEM" type='file' class='Form_textedit' size='30'/>
</div></td>
</tr>
<tr>
<td height="10" valign="top"><div align="left"></div></td>
</tr>
<tr>
<td valign="top" style="padding-bottom: 5px;"><div align="left"><span class="txt_descricaodetalhes">Arquivo:</span><br />
<input name='ARQUIVO' id="ARQUIVO" type='file' class='Form_textedit' size='30'/>
</div></td>
</tr>
<tr>
<td height="30"><div align="right"> <br />
<input type="image" src="img/bt_enviar.jpg"
border="0" name="B2" />
</div></td>
</tr>
<tr>
<td height="20"> </td>
</tr>
</tbody>
</table>
</form>
</div>
<table width='699' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td height='33' valign="top" background='img/fbq_01.jpg'><div align="left" style="margin-right:80px; margin-top:15px;">
<div align="right"><a href="javascript:pop('legenda_forum.php',209,185);" class="linkrod">Legenda</a> </div>
</div></td>
</tr>
<tr>
<td height="28">
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="28" background='img/fbq_02.jpg'> </td>
<td width="123"><a href="forum.php"><img src="img/fbq_03.jpg" width="123" height="28" border="0" /></a></td>
<td width="29" background='img/fbq_04.jpg'> </td>
<td width="130"><a href="forum_cad.php"><img src="img/fbq_05.jpg" width="130" height="28" border="0" /></a></td>
<td width="82" background='img/fbq_06.jpg'> </td>
<td width="183" background='img/fbq_07.jpg'><div align="left">
<input name="bq_busca" type="text" class="forums" id="bq_busca" maxlength="100" style="width:160px;" />
</div></td>
<td width="16" background='img/fbq_08.jpg'> </td>
<td width="62" background="img/fbq_09.jpg"><div align="center"><span style="margin-right:37px;">
<input name='submit' type='submit' class='busca_form' value='BUSCAR' />
</span></div></td>
<td width="31" background='img/fbq_10.jpg'> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height='16' background='img/fbq_11.jpg'></td>
</tr>
</table>
</form>
<?
@include("config/conecta.php");
$sql_posts = "SELECT * FROM mensagens_forum
WHERE mfrm_status=0 AND mfrm_mens_pai=0 AND mfrm_assunto<>'' AND mfrm_detalhes<>'' ORDER BY mfrm_data_atualizacao DESC";
$pagina = $_GET['pagina'];
if ($pagina == "") {
$pagina = 1;
}
$registrosPorPagina = 10;
if (empty($pagina)): $pc = 1; else: $pc = $pagina; endif;
$inicio = $pc - 1;
$inicio = $inicio * $registrosPorPagina;
$limite = mysql_query("$sql_posts LIMIT $inicio,$registrosPorPagina");
$totalRegistros = mysql_num_rows(mysql_query("$sql_posts"));
$numPaginas = $totalRegistros / $registrosPorPagina;
if ($totalRegistros == 0) {
?>
<table width='699' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td height='13' background='img/blogs3_01.jpg'></td>
</tr>
<tr>
<td height="40" background='img/blogs3_02.jpg'><div align='right' class='txt_creditos_comentarios'
style='margin-bottom:6px; margin-top:6px;'>
<div align="center" class="txt_normal">Não existem mensagens cadastradas até o momento!</div>
</div></td>
</tr>
<tr>
<td height='9' background='img/blogs3_03.jpg'></td>
</tr>
</table>
<?
} else {
?>
<div align="right">
<span class="text_comentarios">Página(s):</span>
<?
//página atual = $pagina
//número de páginas total= $numPaginas
//contador = $ct
if ($pagina > 1) {
if ($pagina <= 4) {
$ctt = 1;
} else {
$ctt = $pagina - 4;
}
for ($ct = $ctt; $ct < $pagina; $ct++) {
?>
<a href="?pagina=<?=$ct?>" class="link_creditos"><?=$ct?></a> |
<?
}
}
if ($pagina < $numPaginas) {
/*echo "<script> alert('PÁGINA = $pagina NUM = $numPaginas'); </script>";*/
if ($numPaginas > 9) {
$ctt = $pagina + 4;
} else {
$ctt = $numPaginas;
}
for ($ct = $pagina; $ct <= $ctt; $ct++){
if ($pagina == $ct) {
?>
<span class="forums"><?=$ct?></span> |
<?
} else {
?>
<a href="?pagina=<?=$ct?>" class="link_creditos"><?=$ct?></a> |
<?
}
}
}
?>
</div>
<?
while ($linha = mysql_fetch_array($limite)){
$mfrm_codigo = $linha["mfrm_codigo"];
$mfrm_cod_usuario = $linha["mfrm_cod_usuario"];
//
$sql_usuario = mysql_query("SELECT usu_login, usu_email, usu_medalha_ouro, usu_membro_futura FROM usuarios
WHERE usu_codigo='$mfrm_cod_usuario'") or die (mysql_error());
if (mysql_num_rows($sql_usuario) == 1) {
$mt_usuario = mysql_fetch_array($sql_usuario);
$mfrm_usuario = stripslashes($mt_usuario['usu_login']);
$musu_email = $mt_usuario['usu_email'];
$usu_medalha_ouro = $mt_usuario['usu_medalha_ouro'];
//
if ($usu_medalha_ouro == 0) {
$destaque = "<img src='img/fcp_12.jpg' />";
} elseif ($usu_medalha_ouro == 1) {
$destaque = "<img src='img/fcp_09.jpg' alt='Medalha Ouro'
title='Medalha Ouro' />";
} elseif ($usu_medalha_ouro == 2) {
$destaque = "<img src='img/md2_09.jpg' alt='Medalha Prata'
title='Medalha Prata' />";
} elseif ($usu_medalha_ouro == 3) {
$destaque = "<img src='img/md_09.jpg' alt='Medalha Bronze'
title='Medalha Bronze' />";
}
//
$usu_membro_futura = $mt_usuario['usu_membro_futura'];
//
if ($usu_membro_futura <> 0) {
$membro = "<img src='img/fcp_10.jpg' alt='Equipe Futura' title='Equipe Futura' />";
$mfrm_usuario = "<a href='mailto:$musu_email' class='linkrod'>$mfrm_usuario</a>";
} else {
$membro = "<img src='img/fcp_11.jpg' />";
}
//
} else {
$mfrm_usuario = "Não informado";
$membro = "<img src='img/fcp_11.jpg' />";
$destaque = "<img src='img/fcp_12.jpg' />";
}
//
$mfrm_data_cadastro = $linha["mfrm_data_cadastro"];
//
$m = substr($mfrm_data_cadastro,5,2);
if ($m == 1) {
$m = "JAN";
} elseif ($m == 2) {
$m = "FEV";
} elseif ($m == 3) {
$m = "MAR";
} elseif ($m == 4) {
$m = "ABR";
} elseif ($m == 5) {
$m = "MAI";
} elseif ($m == 6) {
$m = "JUN";
} elseif ($m == 7) {
$m = "JUL";
} elseif ($m == 8) {
$m = "AGO";
} elseif ($m == 9) {
$m = "SET";
} elseif ($m == 10) {
$m = "OUT";
} elseif ($m == 11) {
$m = "NOV";
} elseif ($m == 12) {
$m = "DEZ";
}
$d = substr($mfrm_data_cadastro,8,2);
$a = substr($mfrm_data_cadastro,0,4);
$h = substr($mfrm_data_cadastro,10,10);
//
$mfrm_data_atualizacao = $linha["mfrm_data_atualizacao"];
$mfrm_assunto = strip_tags(stripslashes($linha["mfrm_assunto"]));
$mfrm_assunto = str_replace(". ",".<br>",$mfrm_assunto);
$mfrm_assunto = str_replace('**','"',$mfrm_assunto);
$mfrm_detalhes = stripslashes($linha["mfrm_detalhes"]);
$mfrm_detalhes = str_replace(". ",".<br>",$mfrm_detalhes);
$mfrm_detalhes = str_replace('**','"',$mfrm_detalhes);
$mfrm_detalhes = str_replace("href","target='_blank' class='link_lerpost' href",$mfrm_detalhes);
$mfrm_imagem = $linha["mfrm_imagem"];
//
if ($mfrm_imagem <> "") {
$tamanhos2 = getimagesize("../uploads/imagens/$mfrm_imagem");
$largura = $tamanhos2[0];
$altura = $tamanhos2[1];
if ($largura < 200) {
$comp_imagem = "<img src='../uploads/imagens/$mfrm_imagem'
hspace='5' vspace='0' class='bordas_imagens2' border='0'><br><br>";
} else {
$umlp = $largura / 100;
$umap = $altura / 100;
$x = 200 / $umlp;
$lp_new = $umlp * $x;
$ap_new = $umap * $x;
$comp_imagem = "<a href='../uploads/imagens/$mfrm_imagem' target='_blank' class='linkrod'><img src='../uploads/imagens/$mfrm_imagem' width='$lp_new' height='$ap_new' class='bordas_imagens2' border='0'><br>Visualizar em tamanho maior</a><br><br>";
}
} else {
$comp_imagem = "";
}
//
$mfrm_arquivo = $linha["mfrm_arquivo"];
//
if ($mfrm_arquivo <> ""){
$comp_arquivo = "<div align='center' style='margin-right:17px;'>
<a href='../uploads/arquivos/$mfrm_arquivo'
target='_blank' class='linkrod'>Visualizar Arquivo</a></div>";
} else {
$comp_arquivo = "";
}
//
$mfrm_video = $linha["mfrm_video"];
$mfrm_mens_pai = $linha["mfrm_mens_pai"];
$mfrm_status = $linha["mfrm_status"];
/////////////////////////
$tamanhomaximo = 90; //tamanho maximo de cada palavra
$mfrm_detalhes = wordwrap( $mfrm_detalhes, $tamanhomaximo, "\n", 1);
/////////////////////////
?>
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8" background="img/fcp_01.jpg"></td>
</tr>
<tr>
<td background="img/fcp_14.jpg"><div align="left">
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" height="41" rowspan="2" background="img/fcp_02.jpg"> </td>
<td width="64" height="72" rowspan="2" valign="top" background="img/fcp_03.jpg"><div align="center" style="margin-left:5px; margin-right:5px; margin-top:12px;"
class="dia">
<?=$d?>
</div>
<div align="center" style="margin-left:5px; margin-right:5px;
margin-top:6px;" class="mes">
<?=$m?>
</div>
<div align="center" style="margin-left:5px;
margin-right:5px;" class="ano">
<?=$a?>
</div></td>
<td width="627" height="41" valign="top" background="img/fcp_04.jpg"><div align="left" class="txt_subtitulos" style="margin-left:20px; margin-top:5px; margin-right:20px;"><?=$mfrm_assunto?></div></td>
</tr>
<tr>
<td valign="top"><table width="627" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27" height="31" background="img/fcp_06.jpg"> </td>
<td width="90" background="img/fcp_07.jpg"><div align="left" class="txt_data_cursos" style="margin-left:3px;"><?=$h?></div></td>
<td width="458" background="img/fcp_07.jpg"><div align="right" class="txt_data_cursos" style="margin-right:3px;">
<div align="right"><strong>Por:</strong> <?=$mfrm_usuario?></div>
</div> </td>
<td width="39" background="img/fcp_07.jpg"><div align="left"><?=$membro?><?=$destaque?></div></td>
<td width="13" height="31" background="img/fcp_13.jpg"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td background="img/fcp_14.jpg"><div align="left" class="txt_descricaodetalhes" style="margin-left:22px; margin-right:22px; margin-bottom:10px; margin-top:10px;">
<?=$mfrm_detalhes?></div><div style="margin-left:35px;"><?=$comp_imagem?><?=$comp_arquivo?></div></td>
</tr>
<tr>
<td><table width="699" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="607" height="25" background="img/fcp_16.jpg"> </td>
<td width="79"><a href="javascript:habilitacad('<?=$mfrm_codigo?>')" ><img src="img/fcp_17.jpg" width="79" height="25" border="0" /></a></td>
<td width="13" background="img/fcp_18.jpg"> </td>
</tr>
<tr>
<td width="607" colspan="3" ><div id="msg<?=$mfrm_codigo?>"></div></td>
</tr>
</table></td>
</tr>
<?
$sql_resp = "SELECT * FROM mensagens_forum
WHERE mfrm_mens_pai = '$mfrm_codigo'
AND mfrm_assunto<>'' AND mfrm_detalhes<>'' ORDER BY mfrm_data_atualizacao ASC";
$sql_resp = mysql_query($sql_resp) or die ("Erro na instrução!");
$total_resp = mysql_num_rows($sql_resp);
$cont_resp = 0;
if ($total_resp > 0) {
while ($mont = mysql_fetch_array($sql_resp)) {
$rmfrm_codigo = $mont["mfrm_codigo"];
$rmfrm_cod_usuario = $mont["mfrm_cod_usuario"];
//
$sql_usuario = mysql_query("SELECT usu_login, usu_email,
usu_medalha_ouro, usu_membro_futura FROM usuarios
WHERE usu_codigo='$rmfrm_cod_usuario'") or die (mysql_error());
if (mysql_num_rows($sql_usuario) == 1) {
$mt_usuario = mysql_fetch_array($sql_usuario);
$rmfrm_usuario = stripslashes($mt_usuario['usu_login']);
$rusu_email = $mt_usuario['usu_email'];
$usu_medalha_ouro = $mt_usuario['usu_medalha_ouro'];
//
if ($usu_medalha_ouro == 0) {
$rdestaque = "<img src='img/fcp_29.jpg' />";
} elseif ($usu_medalha_ouro == 1) {
$rdestaque = "<img src='img/fcp_26.jpg' alt='Medalha Ouro'
title='Medalha Ouro' />";
} elseif ($usu_medalha_ouro == 2) {
$rdestaque = "<img src='img/md2_26.jpg' alt='Medalha Prata'
title='Medalha Prata' />";
} elseif ($usu_medalha_ouro == 3) {
$rdestaque = "<img src='img/md_26.jpg' alt='Medalha Bronze'
title='Medalha Bronze' />";
}
//
$usu_membro_futura = $mt_usuario['usu_membro_futura'];
//
if ($usu_membro_futura <> 0) {
$rmembro = "<img src='img/fcp_27.jpg' alt='Equipe Futura' title='Equipe Futura' />";
$rmfrm_usuario = "<a href='mailto:$rusu_email' class='linkrod'>$rmfrm_usuario</a>";
} else {
$rmembro = "<img src='img/fcp_28.jpg' />";
}
//
} else {
$rmfrm_usuario = "Não informado";
$rdestaque = "<img src='img/fcp_29.jpg' />";
$rmembro = "<img src='img/fcp_28.jpg' />";
}
//
$rmfrm_data_cadastro = $mont["mfrm_data_cadastro"];
//
//
$rmfrm_data_atualizacao = $mont["mfrm_data_atualizacao"];
//
$m = substr($rmfrm_data_atualizacao,5,2);
if ($m == 1) {
$m = "JAN";
} elseif ($m == 2) {
$m = "FEV";
} elseif ($m == 3) {
$m = "MAR";
} elseif ($m == 4) {
$m = "ABR";
} elseif ($m == 5) {
$m = "MAI";
} elseif ($m == 6) {
$m = "JUN";
} elseif ($m == 7) {
$m = "JUL";
} elseif ($m == 8) {
$m = "AGO";
} elseif ($m == 9) {
$m = "SET";
} elseif ($m == 10) {
$m = "OUT";
} elseif ($m == 11) {
$m = "NOV";
} elseif ($m == 12) {
$m = "DEZ";
}
$d = substr($rmfrm_data_atualizacao,8,2);
$a = substr($rmfrm_data_atualizacao,0,4);
$h = substr($rmfrm_data_atualizacao,10,10);
//
$rmfrm_assunto = strip_tags(stripslashes($mont["mfrm_assunto"]));
$rmfrm_assunto = str_replace(". ",".<br>",$rmfrm_assunto);
$rmfrm_assunto = str_replace('**','"',$rmfrm_assunto);
$rmfrm_detalhes = stripslashes($mont["mfrm_detalhes"]);
$rmfrm_detalhes = str_replace(". ",".<br>",$rmfrm_detalhes);
$rmfrm_detalhes = str_replace('**','"',$rmfrm_detalhes);
$rmfrm_detalhes = str_replace("href","target='_blank' class='link_lerpost' href",$rmfrm_detalhes);
$rmfrm_imagem = $mont["mfrm_imagem"];
//
if ($rmfrm_imagem <> "") {
$tamanhos2 = getimagesize("../uploads/imagens/$rmfrm_imagem");
$largura = $tamanhos2[0];
$altura = $tamanhos2[1];
if ($largura < 200) {
$rcomp_imagem = "<img src='../uploads/imagens/$rmfrm_imagem'
hspace='5' vspace='0' class='bordas_imagens2' border='0'><br><br>";
} else {
$umlp = $largura / 100;
$umap = $altura / 100;
$x = 200 / $umlp;
$lp_new = $umlp * $x;
$ap_new = $umap * $x;
$rcomp_imagem = "<a href='../uploads/imagens/$rmfrm_imagem' target='_blank' class='linkrod'><img src='../uploads/imagens/$rmfrm_imagem' width='$lp_new' height='$ap_new' class='bordas_imagens2' border='0'><br>Visualizar em tamanho maior</a><br><br>";
}
} else {
$rcomp_imagem = "";
}
//
$rmfrm_arquivo = $mont["mfrm_arquivo"];
//
if ($rmfrm_arquivo <> ""){
$rcomp_arquivo = "<div align='center' style='margin-right:17px;'>
<a href='../uploads/arquivos/$rmfrm_arquivo'
target='_blank' class='linkrod'>Visualizar Arquivo</a></div>";
} else {
$rcomp_arquivo = "";
}
//
$rmfrm_video = $linha["mfrm_video"];
$rmfrm_mens_pai = $linha["mfrm_mens_pai"];
$rmfrm_status = $linha["mfrm_status"];
$cont_resp = $cont_resp + 1;
/////////////////////////
$tamanhomaximo = 90; //tamanho maximo de cada palavra
$rmfrm_detalhes = wordwrap( $rmfrm_detalhes, $tamanhomaximo, "\n", 1);
/////////////////////////
?>
<tr>
<td height="5" background="img/fcp_19.jpg"></td>
</tr>
<tr>
<td background="img/fcp_31.jpg"><div align="left">
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" height="41" rowspan="2"> </td>
<td width="64" height="71" rowspan="2" valign="top" background="img/fcp_21.jpg"><div align="center" style="margin-left:5px; margin-right:5px; margin-top:12px;"
class="dia">
<?=$d?>
</div>
<div align="center" style="margin-left:5px; margin-right:5px;
margin-top:6px;" class="mes">
<?=$m?>
</div>
<div align="center" style="margin-left:5px;
margin-right:5px;" class="ano">
<?=$a?>
</div></td>
<td width="627" height="42" valign="top" background="img/fcp_22.jpg"><div align="left" class="txt_subtitulos" style="margin-left:42px; margin-top:5px; margin-right:20px;">
<?=$mfrm_assunto?>
</div></td>
</tr>
<tr>
<td valign="top"><table width="627" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27" height="29" background="img/fcp_23.jpg"> </td>
<td width="90" background="img/fcp_24.jpg"><div align="left" class="txt_data_cursos" style="margin-left:3px;">
<?=$h?>
</div></td>
<td width="458" background="img/fcp_24.jpg"><div align="right" class="txt_data_cursos" style="margin-right:3px;">
<div align="right"><strong>Por:</strong>
<?=$rmfrm_usuario?>
</div>
</div></td>
<td width="39" background="img/fcp_24.jpg"><div align="left"><?=$rmembro?><?=$rdestaque?></div></td>
<td width="13" height="31"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td background="img/fcp_31.jpg"><div align="left" class="txt_descricaodetalhes" style="margin-left:22px; margin-right:22px; margin-bottom:10px; margin-top:10px;">
<?=$rmfrm_detalhes?></div><div style="margin-left:35px;"><?=$rcomp_imagem?><?=$rcomp_arquivo?></div></td>
</tr>
<?
if ($cont_resp == $total_resp) {
?>
<tr>
<td><table width="699" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="607" height="25" background="img/fcp2_15.jpg"> </td>
<td width="76"><a href="forum_resp.php?mfrm_codigo=<?=$mfrm_codigo?>"><img src="img/fcp2_16.jpg" width="76" height="25" border="0" /></a></td>
<td width="16" background="img/fcp2_17.jpg"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="11" background="img/fcp_33.jpg"></td>
</tr>
<?
} else {
?>
<tr>
<td height="6" background="img/fcp_32.jpg"></td>
</tr>
<?
}
}
}
?>
</table>
<?
}
}
?>
</div>
<div align="right" style="margin-right:10px; margin-top:15px;">
<span class="text_comentarios">Página(s):</span>
<?
//página atual = $pagina
//número de páginas total= $numPaginas
//contador = $ct
if ($pagina > 1) {
if ($pagina <= 4) {
$ctt = 1;
} else {
$ctt = $pagina - 4;
}
for ($ct = $ctt; $ct < $pagina; $ct++) {
?>
<a href="?pagina=<?=$ct?>" class="link_creditos"><?=$ct?></a> |
<?
}
}
if ($pagina < $numPaginas) {
/*echo "<script> alert('PÁGINA = $pagina NUM = $numPaginas'); </script>";*/
if ($numPaginas > 9) {
$ctt = $pagina + 4;
} else {
$ctt = $numPaginas;
}
for ($ct = $pagina; $ct <= $ctt; $ct++){
if ($pagina == $ct) {
?>
<span class="forums"><?=$ct?></span> |
<?
} else {
?>
<a href="?pagina=<?=$ct?>" class="link_creditos"><?=$ct?></a> |
<?
}
}
}
?>
<br /><br />
<?
$anterior = $pc - 1;
$proximo = $pc + 1;
if ($pc>1): echo "<a href='?pagina=$anterior' class='link_creditos'>« Mensagens Anteriores</a>"; endif;
if ($pc<$numPaginas): echo " <a href='?pagina=$proximo' class='link_creditos'>» Próximas Mensagens</a>"; endif;
?>
</div>
<div align="right" style="margin-right:10px; margin-top:15px;"><a href="javascript:history.go(-1)" class="link_voltar">.:: voltar</a> <a href="#topo" class="link_voltar">.::topo</a> </div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="32" valign="top" style="background-image:url(img/lay1_28.jpg); background-position:top; background-repeat:no-repeat;"></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td><div align="center"><? include("rodape.php"); ?></div></td>
</tr>
</table>
</body>
</html>
[b]<<O erro se encontra nesse abaixo:>>[/b]
<?
session_start();
@include("config/config.php");
if(!($_SESSION['lusu_codigo'] and $_SESSION['lusu_login'])) {
echo "<script> location.href='../login.php?erro=1'</script>";
exit();
}$tipo = $_SESSION['lusu_tipo_usuario'];
if ($tipo < 2) {
echo "<script> location.href='mensagem.php?sit=2'</script>";
exit;
}$lusu_codigo = $_SESSION['lusu_codigo'];
?><html xmlns="http-~~-//www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<? if ($lusu_codigo <> 1129) {
?>
<meta http-equiv="REFRESH" content="480; URL=forum.php">?>
<meta http-equiv="REFRESH" content="3600; URL=forum.php">
<? } ?>
<title><?=$title?></title>
<?=$meta?>
<link rel="stylesheet" href="estilo.css" type="text/css" />
<link rel="stylesheet" href="../blog.css" type="text/css">
<style type="text/css">background-image: url(img/fundo_site.jpg);
background-repeat: repeat-x;
background-position:top;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.forums {
BORDER-RIGHT: 1px #FFFFFF solid;
BORDER-TOP: 1px #FFFFFF solid;
BORDER-LEFT: 1px #FFFFFF solid;
BORDER-BOTTOM: 1px #FFFFFF solid;
FONT-SIZE: 11px;
padding-left: 2px;
COLOR: #9CBE59;
FONT-STYLE: normal;
FONT-FAMILY: tahoma;
BACKGROUND-COLOR: #FFFFFF;
text-align: left;
width: 100px;
}</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><? include("topo.php"); ?></div></td>
</tr>
<tr>
<td><div align="center">
<table width="990" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"> </td>
<td width="238" valign="top"><div align="right"><? include("menu_forum.php"); ?></div></td>
<td width="714" valign="top"><table width="714" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="54" colspan="2" valign="top" background="img/lay1_33.jpg" style="background-image:url(img/lay1_27.jpg); background-repeat:no-repeat; background-position:top left"><div align="right" style="margin-top:30px; margin-right:10px;" class="txt_banner">FÓRUM</div></td>
</tr>
<tr>
<td height="6" colspan="2" background="img/lay1_31.jpg"></td>
</tr>
<tr>
<td width="15" valign="top" style="background-image:url(img/lay1_33.jpg); background-position:top; background-repeat:no-repeat;"> </td>
<td><table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="480" valign="top"><table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="699" valign="top"><div align="left">
<script language="Javascript" type="text/javascript">
function valida_campo()var check = this.document.fff;
if (check.bq_busca.value =="")alert('Digite a informação para busca!');
check.bq_busca.focus();
return false;
}
check.submit();
}
</script>
<form action="forum_buscar.php?sit=1" style="MARGIN: 0pt" method="post" name="fff" id="fff" onsubmit="return valida_campo(this)" >
<table width='699' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td height='33' background='img/fbq_01.jpg'></td>
</tr>
<tr>
<td height="28">
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="28" background='img/fbq_02.jpg'> </td>
<td width="123"><a href="forum.php"><img src="img/fbq_03.jpg" width="123" height="28" border="0" /></a></td>
<td width="29" background='img/fbq_04.jpg'> </td>
<td width="130"><a href="forum_cad.php"><img src="img/fbq_05.jpg" width="130" height="28" border="0" /></a></td>
<td width="82" background='img/fbq_06.jpg'> </td>
<td width="183" background='img/fbq_07.jpg'><div align="left">
<input name="bq_busca" type="text" class="forums" id="bq_busca" maxlength="100" style="width:160px;" />
</div></td>
<td width="16" background='img/fbq_08.jpg'> </td>
<td width="62" background="img/fbq_09.jpg"><div align="center"><span style="margin-right:37px;">
<input name='submit' type='submit' class='busca_form' value='BUSCAR' />
</span></div></td>
<td width="31" background='img/fbq_10.jpg'> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height='16' background='img/fbq_11.jpg'></td>
</tr>
</table>
</form> $sit = $_GET['sit'];
if ($sit == 1) {
$bq_busca = $_POST['bq_busca'];
} else {
$bq_busca = $_GET['bq_busca'];
}
function lower ($str) {
$LATIN_LC_CHARS = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝ";
$LATIN_UC_CHARS = "àáâãäåæçèéêëìíîïðñòóôõöøùúûüý";
$str = strtr ($str, $LATIN_LC_CHARS, $LATIN_UC_CHARS);
$str = strtolower($str);
return $str;
}
$busca_conv = lower($bq_busca);
@include("config/conecta.php");
$sql_posts = "SELECT * FROM mensagens_forum WHERE mfrm_status=0 AND mfrm_mens_pai=0
AND LOWER(mfrm_assunto) LIKE '%".$busca_conv."%' ORDER BY mfrm_data_atualizacao DESC LIMIT 10";
/*$pagina = $_GET['pagina'];
$registrosPorPagina = 10;
if (empty($pagina)): $pc = 1; else: $pc = $pagina; endif;
$inicio = $pc - 1;
$inicio = $inicio * $registrosPorPagina;
$limite = mysql_query("$sql_posts LIMIT $inicio,$registrosPorPagina");
$totalRegistros = mysql_num_rows(mysql_query("$sql_posts")); $limite = mysql_query("$sql_posts");
$totalRegistros = mysql_num_rows(mysql_query("$sql_posts"));
if ($totalRegistros == 0) {
?>
<table width='699' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td height='13' background='img/blogs3_01.jpg'></td>
</tr>
<tr>
<td height="40" background='img/blogs3_02.jpg'><div align='right' class='txt_creditos_comentarios'
style='margin-bottom:6px; margin-top:6px;'>
<div align="center" class="txt_normal">Não existem mensagens cadastradas até o momento!</div>
</div></td>
</tr>
<tr>
<td height='9' background='img/blogs3_03.jpg'></td>
</tr>
</table>
<?
} else {
while ($linha = mysql_fetch_array($limite)){
$mfrm_codigo = $linha["mfrm_codigo"];
$mfrm_cod_usuario = $linha["mfrm_cod_usuario"];
//
$sql_usuario = mysql_query("SELECT usu_login, usu_email, usu_medalha_ouro, usu_membro_futura FROM usuarios
WHERE usu_codigo='$mfrm_cod_usuario'") or die (mysql_error());
if (mysql_num_rows($sql_usuario) == 1) {
$mt_usuario = mysql_fetch_array($sql_usuario);
$mfrm_usuario = strtolower(stripslashes($mt_usuario['usu_login']));
$musu_email = $mt_usuario['usu_email'];
$usu_medalha_ouro = $mt_usuario['usu_medalha_ouro'];
//
if ($usu_medalha_ouro <> 0) {
$destaque = "<img src='img/fru_11.jpg' alt='Usuário destacado' title='Usuário destacado' width='14' height='29' />";
} else {
$destaque = "<img src='img/fru2_11.jpg' width='14' height='29' />";
}
//
$usu_membro_futura = $mt_usuario['usu_membro_futura'];
//
if ($usu_membro_futura <> 0) {
$membro = "<img src='img/fru_10.jpg' alt='Equipe Futura' title='Equipe Futura' width='18' height='29' />";
$mfrm_usuario = "<a href='mailto:$musu_email'>$mfrm_usuario";
} else {
$membro = "<img src='img/fru2_10.jpg' width='18' height='29' />";
}
//
} else {
$mfrm_usuario = "Não informado";
}
//
$mfrm_data_cadastro = $linha["mfrm_data_cadastro"];
//
$m = substr($mfrm_data_cadastro,5,2);
if ($m == 1) {
$m = "JAN";
} elseif ($m == 2) {
$m = "FEV";
} elseif ($m == 3) {
$m = "MAR";
} elseif ($m == 4) {
$m = "ABR";
} elseif ($m == 5) {
$m = "MAI";
} elseif ($m == 6) {
$m = "JUN";
} elseif ($m == 7) {
$m = "JUL";
} elseif ($m == 8) {
$m = "AGO";
} elseif ($m == 9) {
$m = "SET";
} elseif ($m == 10) {
$m = "OUT";
} elseif ($m == 11) {
$m = "NOV";
} elseif ($m == 12) {
$m = "DEZ";
}
$d = substr($mfrm_data_cadastro,8,2);
$a = substr($mfrm_data_cadastro,0,4);
$h = substr($mfrm_data_cadastro,10,10);
//
$mfrm_data_atualizacao = $linha["mfrm_data_atualizacao"];
//
//
$mfrm_assunto = strip_tags(stripslashes($linha["mfrm_assunto"]));
$mfrm_assunto = str_replace(". ",".<br>",$mfrm_assunto);
$mfrm_detalhes = strip_tags(stripslashes($linha["mfrm_detalhes"]));
$mfrm_detalhes = str_replace(". ",".<br>",$mfrm_detalhes);
$mfrm_imagem = $linha["mfrm_imagem"];
//
if ($mfrm_imagem <> "") {
$tamanhos = getimagesize("../uploads/imagens/$mfrm_imagem");
$largura = $tamanhos[0];
$altura = $tamanhos[1];
if ($largura < 200) {
$comp_imagem = "<img src='../uploads/imagens/$mfrm_imagem' hspace='5' vspace='0' class='bordas_imagens2' border='0'><br><br>"; $umlp = $largura / 100;
$umap = $altura / 100;
$x = 200 / $umlp;
$lp_new = $umlp * $x;
$ap_new = $umap * $x;
$comp_imagem = "<a href='../uploads/imagens/$mfrm_imagem' target='_blank' class='linkrod'>
<img src='../uploads/imagens/$mfrm_imagem' width='$lp_new' height='$ap_new' class='bordas_imagens2' border='0'><br>Visualizar em tamanho maior</a><br><br>";
}$comp_imagem = "";
} $mfrm_arquivo = $linha["mfrm_arquivo"];
/*echo "<script>alert('ARQ = $mfrm_arquivo');</script>";*/if ($mfrm_arquivo <> ""){
$comp_arquivo = "<div align='center'><a href='../uploads/arquivos/$mfrm_arquivo'
target='_blank' class='linkrod'>Visualizar Arquivo</a></div>";$comp_arquivo = "";
} $mfrm_video = $linha["mfrm_video"];
$mfrm_mens_pai = $linha["mfrm_mens_pai"];
$mfrm_status = $linha["mfrm_status"];
/////////////////////////
$tamanhomaximo = 90; //tamanho maximo de cada palavra
$mfrm_detalhes = wordwrap( $mfrm_detalhes, $tamanhomaximo, "\n", 1);
/////////////////////////
?>
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8" background="img/fcp_01.jpg"></td>
</tr>
<tr>
<td background="img/fcp_14.jpg"><div align="left">
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" height="41" rowspan="2" background="img/fcp_02.jpg"> </td>
<td width="64" height="72" rowspan="2" valign="top" background="img/fcp_03.jpg"><div align="center" style="margin-left:5px; margin-right:5px; margin-top:12px;"<?=$d?>
</div>
<div align="center" style="margin-left:5px; margin-right:5px;<?=$m?>
</div>
<div align="center" style="margin-left:5px;<?=$a?>
</div></td>
<td width="627" height="41" valign="top" background="img/fcp_04.jpg"><div align="left" class="txt_subtitulos" style="margin-left:20px; margin-top:5px; margin-right:20px;"><?=$mfrm_assunto?></div></td>
</tr>
<tr>
<td valign="top"><table width="627" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27" height="31" background="img/fcp_06.jpg"> </td>
<td width="90" background="img/fcp_07.jpg"><div align="left" class="txt_data_cursos" style="margin-left:3px;"><?=$h?></div></td>
<td width="458" background="img/fcp_07.jpg"><div align="right" class="txt_data_cursos" style="margin-right:3px;"><div align="right"><strong>Por:</strong> <?=$mfrm_usuario?></div>
</div> </td>
<td width="39" background="img/fcp_07.jpg"><div align="left"><?=$membro?><?=$destaque?></div></td>
<td width="13" height="31" background="img/fcp_13.jpg"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td background="img/fcp_14.jpg"><div align="left" class="txt_descricaodetalhes" style="margin-left:22px; margin-right:22px; margin-bottom:10px; margin-top:10px;">
<?=$mfrm_detalhes?></div><div style="margin-left:35px;"><?=$comp_imagem?><?=$comp_arquivo?></div></td>
</tr>
<tr>
<td><table width="699" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="607" height="25" background="img/fcp_16.jpg"> </td>
<td width="79"><a href="forum_resp.php?mfrm_codigo=<?=$mfrm_codigo?>"><img src="img/fcp_17.jpg" width="79" height="25" border="0" /></a></td>
<td width="13" background="img/fcp_18.jpg"> </td>
</tr>
</table></td>
</tr>
<?
$sql_resp = "SELECT * FROM mensagens_forum
WHERE mfrm_mens_pai = '$mfrm_codigo'
AND mfrm_assunto<>'' AND mfrm_detalhes<>'' ORDER BY mfrm_data_atualizacao ASC";
$sql_resp = mysql_query($sql_resp) or die ("Erro na instrução!");
$total_resp = mysql_num_rows($sql_resp);
$cont_resp = 0;
if ($total_resp > 0) {
while ($mont = mysql_fetch_array($sql_resp)) {
$rmfrm_codigo = $mont["mfrm_codigo"];
$rmfrm_cod_usuario = $mont["mfrm_cod_usuario"];
//
$sql_usuario = mysql_query("SELECT usu_login, usu_email,
usu_medalha_ouro, usu_membro_futura FROM usuarios
WHERE usu_codigo='$rmfrm_cod_usuario'") or die (mysql_error());
if (mysql_num_rows($sql_usuario) == 1) {
$mt_usuario = mysql_fetch_array($sql_usuario);
$rmfrm_usuario = stripslashes($mt_usuario['usu_login']);
$rusu_email = $mt_usuario['usu_email'];
$usu_medalha_ouro = $mt_usuario['usu_medalha_ouro'];
//
if ($usu_medalha_ouro <> 0) {
$rdestaque = "<img src='img/fcp_26.jpg' alt='Usuário destacado' title='Usuário destacado' />";
} else {
$rdestaque = "<img src='img/fcp_29.jpg' />";
}
//
$usu_membro_futura = $mt_usuario['usu_membro_futura'];
//
if ($usu_membro_futura <> 0) {
$rmembro = "<img src='img/fcp_27.jpg' alt='Equipe Futura' title='Equipe Futura' />";
$rmfrm_usuario = "<a href='mailto:$rusu_email'>$rmfrm_usuario</a>";
} else {
$rmembro = "<img src='img/fcp_28.jpg' />";
}
//
} else {
$rmfrm_usuario = "Não informado";
$rdestaque = "<img src='img/fcp_29.jpg' />";
$rmembro = "<img src='img/fcp_28.jpg' />";
}
//
$rmfrm_data_cadastro = $mont["mfrm_data_cadastro"];
//
//
$rmfrm_data_atualizacao = $mont["mfrm_data_atualizacao"];
//
$m = substr($rmfrm_data_atualizacao,5,2);
if ($m == 1) {
$m = "JAN";
} elseif ($m == 2) {
$m = "FEV";
} elseif ($m == 3) {
$m = "MAR";
} elseif ($m == 4) {
$m = "ABR";
} elseif ($m == 5) {
$m = "MAI";
} elseif ($m == 6) {
$m = "JUN";
} elseif ($m == 7) {
$m = "JUL";
} elseif ($m == 8) {
$m = "AGO";
} elseif ($m == 9) {
$m = "SET";
} elseif ($m == 10) {
$m = "OUT";
} elseif ($m == 11) {
$m = "NOV";
} elseif ($m == 12) {
$m = "DEZ";
}
$d = substr($rmfrm_data_atualizacao,8,2);
$a = substr($rmfrm_data_atualizacao,0,4);
$h = substr($rmfrm_data_atualizacao,10,10);
//
$rmfrm_assunto = strip_tags(stripslashes($mont["mfrm_assunto"]));
$rmfrm_assunto = str_replace(". ",".<br>",$rmfrm_assunto);
$rmfrm_assunto = str_replace('**','"',$rmfrm_assunto);
$rmfrm_detalhes = stripslashes($mont["mfrm_detalhes"]);
$rmfrm_detalhes = str_replace(". ",".<br>",$rmfrm_detalhes);
$rmfrm_detalhes = str_replace('**','"',$rmfrm_detalhes);
$rmfrm_detalhes = str_replace("href","target='_blank' class='link_lerpost' href",$rmfrm_detalhes);
$rmfrm_imagem = $mont["mfrm_imagem"];
//
if ($rmfrm_imagem <> "") {
$tamanhos2 = getimagesize("../uploads/imagens/$rmfrm_imagem");
$largura = $tamanhos2[0];
$altura = $tamanhos2[1];
if ($largura < 200) {
$rcomp_imagem = "<img src='../uploads/imagens/$rmfrm_imagem'
hspace='5' vspace='0' class='bordas_imagens2' border='0'><br><br>";
} else {
$umlp = $largura / 100;
$umap = $altura / 100;
$x = 200 / $umlp;
$lp_new = $umlp * $x;
$ap_new = $umap * $x;
$rcomp_imagem = "<a href='../uploads/imagens/$rmfrm_imagem' target='_blank' class='linkrod'><img src='../uploads/imagens/$rmfrm_imagem' width='$lp_new' height='$ap_new' class='bordas_imagens2' border='0'><br>Visualizar em tamanho maior</a><br><br>";
}
} else {
$rcomp_imagem = "";
}
//
$rmfrm_arquivo = $mont["mfrm_arquivo"];
/*echo "<script>alert('ARQ = $rmfrm_arquivo');</script>";*/
//
if ($rmfrm_arquivo <> ""){
$rcomp_arquivo = "<div align='center' style='margin-right:17px;'>
<a href='../uploads/arquivos/$rmfrm_arquivo'
target='_blank' class='linkrod'>Visualizar Arquivo</a></div>";
} else {
$rcomp_arquivo = "";
}
//
$rmfrm_video = $linha["mfrm_video"];
$rmfrm_mens_pai = $linha["mfrm_mens_pai"];
$rmfrm_status = $linha["mfrm_status"];
$cont_resp = $cont_resp + 1;
/////////////////////////
$tamanhomaximo = 90; //tamanho maximo de cada palavra
$rmfrm_detalhes = wordwrap( $rmfrm_detalhes, $tamanhomaximo, "\n", 1);
/////////////////////////
?>
<tr>
<td height="5" background="img/fcp_19.jpg"></td>
</tr>
<tr>
<td background="img/fcp_31.jpg"><div align="left">
<table width="699" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" height="41" rowspan="2"> </td>
<td width="64" height="71" rowspan="2" valign="top" background="img/fcp_21.jpg"><div align="center" style="margin-left:5px; margin-right:5px; margin-top:12px;"<?=$d?>
</div>
<div align="center" style="margin-left:5px; margin-right:5px;<?=$m?>
</div>
<div align="center" style="margin-left:5px;<?=$a?>
</div></td>
<td width="627" height="42" valign="top" background="img/fcp_22.jpg"><div align="left" class="txt_subtitulos" style="margin-left:42px; margin-top:5px; margin-right:20px;">
<?=$mfrm_assunto?>
</div></td>
</tr>
<tr>
<td valign="top"><table width="627" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27" height="29" background="img/fcp_23.jpg"> </td>
<td width="90" background="img/fcp_24.jpg"><div align="left" class="txt_data_cursos" style="margin-left:3px;">
<?=$h?>
</div></td>
<td width="458" background="img/fcp_24.jpg"><div align="right" class="txt_data_cursos" style="margin-right:3px;">
<div align="right"><strong>Por:</strong>
<?=$rmfrm_usuario?>
</div>
</div></td>
<td width="39" background="img/fcp_24.jpg"><div align="left"><?=$rmembro?><?=$rdestaque?></div></td>
<td width="13" height="31"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td background="img/fcp_31.jpg"><div align="left" class="txt_descricaodetalhes" style="margin-left:22px; margin-right:22px; margin-bottom:10px; margin-top:10px;">
<?=$rmfrm_detalhes?></div><div style="margin-left:35px;"><?=$rcomp_imagem?><?=$rcomp_arquivo?></div></td>
</tr>
<tr>
<td height="6" background="img/fcp_32.jpg"></td>
</tr>
<?
if ($cont_resp == $total_resp) {
?>
<tr>
<td height="11" background="img/fcp_33.jpg"></td>
</tr>
<?
}
}
}
?>
</table>
<?
}
}
?>
</div>
<div align="right" style="margin-right:10px; margin-top:15px;">/*$anterior = $pc - 1;
$proximo = $pc + 1;
if ($pc>1): echo "<a href='?pagina=$anterior&sit=$sit&bq_busca=$bq_busca' class='link_creditos'>« Mensagens Anteriores</a>"; endif;
if ($pc<$numPaginas): echo " <a href='?pagina=$proximo&sit=$sit&bq_busca=$bq_busca' class='link_creditos'>» Próximas Mensagens</a>"; endif;*/
?>
</div>
<div align="right" style="margin-right:10px; margin-top:15px;"><a href="javascript:history.go(-1)" class="link_voltar">.:: voltar</a> <a href="#topo" class="link_voltar">.::topo</a> </div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="32" valign="top" style="background-image:url(img/lay1_28.jpg); background-position:top; background-repeat:no-repeat;"></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td><div align="center"><? include("rodape.php"); ?></div></td>
</tr>
</table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https-~~-//ssl." : "http-~~-//www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2983196-10");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
Grata! http://forum.imasters.com.br/public/style_emoticons/default/natal_biggrin.gif http://forum.imasters.com.br/public/style_emoticons/default/natal_biggrin.gif:)
Não reparem o "bolo doido"... Ser estagiário dá nisso. Mas iremos modificar e deixá-lo mais limpo.
Carregando comentários...