Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom dia colegas,
Estou precisando de ajuda com um include condicional. Ou seja, o codigo só efetuará o include a partir de determinada condição. O código q tenho não tá func. Vejam...
<?php
$area=$_GET['area'];
$modulo=$_GET['modulo'];
$usuario=$_GET['usr'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Área restrita aos Oficiais-de-Dia</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link href="estilos/estilos.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="jscripts/botao.js"></script>
</head>
<body>
<!--CONTEÚDO DA PÁGINA-->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<!--INÍCIO DO CABEÇALHO-->
<?php
include_once("includes/cabecalho.inc.php");
?>
<!--FIM DO CABEÇALHO-->
<tr>
<td>
<!--INÍCIO DO CORPO DA PÁGINA-->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<tr>
<td>
<!--INÍCIO DO CORPO DA PÁGINA-->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<?php
if ($area==2){
echo "<td width=\"133\">";
include_once("includes/menu_consulta.inc.php");
echo "</td>";
}
?>
<!--INÍCIO DO CONTEÚDO-->
<?php
include_once("includes/conteudo.inc.php");
?></tr>
</table>
</td>
</tr><?php
include("includes/rodape.inc.php");
?></table>
</body>
</html>Agradeço de antecipadamente. :rolleyes:Carregando comentários...