$valor) { $$chave = $valor; } include ("db/conecta_mysql.php"); $resultado=mysql_query("select * FROM Noticias1 where id=$w_id"); $nr=mysql_num_rows($resultado); $titulo =mysql_result($resultado,0,'titulo'); //echo "$titulo"; $prioridade =mysql_result($resultado,0,"prioridade"); $data =mysql_result($resultado,0,"data"); $dia=substr($data,8,2); $mes=substr($data,5,2); $ano=substr($data,0,4); $gif_novo =mysql_result($resultado,0,"gif_novo"); if ($gif_novo=="S") $gif_novo='"checkbox" checked'; else $gif_novo='"checkbox"'; $publica =mysql_result($resultado,0,"publica"); if ($publica=="S") $publica='"checkbox" checked'; else $publica='"checkbox"'; //$imagem_type=mysql_result($resultado,0,"imagem_tipo"); //$imagem_temp=mysql_result($resultado,0,"imagem_dados"); $noticia =mysql_result($resultado,0,"noticia"); $not_envia=substr($noticia,0,80);//serve para quem quer enviar a noticia para um e-mail $not_envia.=' ...'; $id =mysql_result($resultado,0,"id"); //Header("Content-Type:".mysql_result($resultado,0,"imagem_tipo")); //verifica as imagens $w_img_dir =mysql_result($resultado,0,"imagem_diretorio"); $w_im_1_nome =mysql_result($resultado,0,"imagem_1_nome"); $w_im_2_nome =mysql_result($resultado,0,"imagem_2_nome"); $w_im_3_nome =mysql_result($resultado,0,"imagem_3_nome"); $w_im_4_nome =mysql_result($resultado,0,"imagem_4_nome"); $w_im_5_nome =mysql_result($resultado,0,"imagem_5_nome"); $w_im_6_nome =mysql_result($resultado,0,"imagem_6_nome"); $w_im_1_legenda =mysql_result($resultado,0,"legenda_1"); $w_im_2_legenda =mysql_result($resultado,0,"legenda_2"); $w_im_3_legenda =mysql_result($resultado,0,"legenda_3"); $w_im_4_legenda =mysql_result($resultado,0,"legenda_4"); $w_im_5_legenda =mysql_result($resultado,0,"legenda_5"); $w_im_6_legenda =mysql_result($resultado,0,"legenda_6"); $imagem_temp1=''; $retrato1="N"; $original1="N"; $pos = strpos($w_im_1_nome,"r"); if (!$pos===false) {$retrato1="S";} $pos = strpos($w_im_1_nome,"w"); if (!$pos===false) {$original1="S";} $arq_img=$w_img_dir.'/'.$w_im_1_nome; if ($w_im_1_nome<>''){$imagem_temp1=$arq_img;} $imagem_temp2=''; $retrato2="N"; $original2="N"; $pos = strpos($w_im_2_nome,"r"); if (!$pos === false) {$retrato2="S";} $pos = strpos($w_im_2_nome,"w"); if (!$pos === false) {$original2="S";} $arq_img=$w_img_dir.'/'.$w_im_2_nome; if ($w_im_2_nome<>''){$imagem_temp2=$arq_img;} $imagem_temp3=''; $retrato3="N"; $original3="N"; $pos = strpos($w_im_3_nome,"r"); if (!$pos === false) {$retrato3="S";} $pos = strpos($w_im_3_nome,"w"); if (!$pos === false) {$original3="S";} $arq_img=$w_img_dir.'/'.$w_im_3_nome; if ($w_im_3_nome<>''){$imagem_temp3=$arq_img;} $imagem_temp4=''; $retrato4="N"; $original4="N"; $pos = strpos($w_im_4_nome,"r"); if (!$pos === false) {$retrato4="S";} $pos = strpos($w_im_4_nome,"w"); if (!$pos === false) {$original4="S";} $arq_img=$w_img_dir.'/'.$w_im_4_nome; if ($w_im_4_nome<>''){$imagem_temp4=$arq_img;} $imagem_temp5=''; $retrato5="N"; $original5="N"; $pos = strpos($w_im_5_nome,"r"); if (!$pos === false) {$retrato5="S";} $pos = strpos($w_im_5_nome,"w"); if (!$pos === false) {$original5="S";} $arq_img=$w_img_dir.'/'.$w_im_5_nome; if ($w_im_5_nome<>''){$imagem_temp5=$arq_img;} $imagem_temp6=''; $retrato6="N"; $original6="N"; $pos = strpos($w_im_6_nome,"r"); if (!$pos === false) {$retrato6="S";} $pos = strpos($w_im_6_nome,"w"); if (!$pos === false) {$original6="S";} $arq_img=$w_img_dir.'/'.$w_im_6_nome; if ($w_im_6_nome<>''){$imagem_temp6=$arq_img;} //if (file_exists($arq_img)){$imagem_temp6=$arq_img;} //echo mysql_result($resultado,0,"imagem_dados"); //echo $imagem_type; mysql_close($conexao); ?> AMB - Associação Médica Brasileira
   
'; echo ''; if (($imagem_temp1<>"") and ($retrato1=="N") and ($original1=="N")) { echo '' ; } elseif (($imagem_temp1<>"") and ($retrato1=="S")) { echo '' ; } elseif (($imagem_temp1<>"") and ($original1=="S")) { echo '' ; } if (($imagem_temp2<>"") and ($retrato2=="N") and ($original2=="N")) { echo '' ; } elseif (($imagem_temp2<>"") and ($retrato2=="S")) { echo '' ; } elseif (($imagem_temp2<>"") and ($original2=="S")) { echo '' ; } echo ''; // coloca as legendas echo ''; if ($imagem_temp1<>""){echo '';} if ($imagem_temp2<>""){echo '';} echo ''; } if (($imagem_temp3<>"") or ($imagem_temp4<>"")) { echo ''; echo ''; if (($imagem_temp3<>"") and ($retrato3=="N") and ($original3=="N")) {echo ' ' ;} elseif (($imagem_temp3<>"") and ($retrato3=="S")) {echo ' ' ;} elseif (($imagem_temp3<>"") and ($original3=="S")) {echo '' ;} if (($imagem_temp4<>"") and ($retrato4=="N") and ($original4=="N")) {echo '' ;} elseif (($imagem_temp4<>"") and ($retrato4=="S")) {echo '' ;} elseif (($imagem_temp4<>"") and ($original4=="S")) {echo '' ;} echo ''; // coloca as legendas echo ''; if ($imagem_temp3<>""){echo '';} if ($imagem_temp4<>""){echo '';} echo ''; } if (($imagem_temp5<>"") or ($imagem_temp6<>"")) { echo ''; echo ''; if (($imagem_temp5<>"") and ($retrato5=="N") and ($original5=="N")) echo ' ' ; elseif (($imagem_temp5<>"") and ($retrato5=="S")) echo ' ' ; elseif (($imagem_temp5<>"") and ($original5=="S")) {echo '' ;} if (($imagem_temp6<>"") and ($retrato6=="N") and ($original6=="N")) echo '' ; else if (($imagem_temp6=="") and ($retrato6=="S")) echo '' ; elseif (($imagem_temp6<>"") and ($original6=="S")) {echo '' ;} echo ''; // coloca as legendas echo ''; if ($imagem_temp5<>""){echo '';} if ($imagem_temp6<>""){echo '';} echo ''; } echo ''; echo ''; echo '' ?>
"") or ($imagem_temp2<>"")) { echo '
'.$w_im_1_legenda.' '.$w_im_2_legenda.'
 
'.$w_im_3_legenda.' '.$w_im_4_legenda.'
 
'.$w_im_5_legenda.' '.$w_im_6_legenda.'
'.$titulo.'
'.$noticia.'
'.$dia?>//
 

Clique aqui para retornar

ou

aqui"?> para enviar esta notícia