#Conexion a la base de datos //$server="localhost"; $user="root"; $pwd="Bdwmpc5"; $db="municanete1"; //$conexion = mysql_connect ($server,$user,$pwd); //$db = mysql_select_db ($db, $conexion); $server="localhost"; $user="root"; $pwd="Bdwmpc5"; $db="municanete1"; $conexion = mysql_connect ($server,$user,$pwd); $db = mysql_select_db ($db, $conexion); //mysql_query("SET NAMES 'utf-8'"); include("functions.php"); #Fin de conexion $moneda = "S/."; $actrpu="0"; if ($actrpu=="1"){ $rutaimg = "http://municanete.gob.pe/"; $rutaurl = "http://municanete.gob.pe/"; $nomdom = "municanete.gob.pe"; $correo = "info@municanete.gob.pe"; }else{ $rutaimg = "http://localhost/"; $rutaurl = "http://localhost/"; $nomdom = "localhost"; $correo = "info@localhost"; } $nomtit = "Municipalidad Provincial de Cañete"; $paises = "Perú"; $actrpu = "1"; $acindex = "index3.php"; #Fin de conexion error_reporting(E_ALL ^ E_NOTICE); ?>
if (isset($_REQUEST['w'])<>""){
$Swich=$_REQUEST['w'];
}else{
$Swich="";
}
if (isset($_REQUEST['n'])<>""){
$cadNX=$_REQUEST['n'];
}else{
$cadNX="";
}
//if ($Swich=="2"){
$cadNXA="intNivelId=".$cadNX;
/*
}else{
$cadNXA="intNivelSuperior=".$cadNX;
}*/
?>
$sql="SELECT * FROM nivel_publi WHERE $cadNXA";
$rs=mysql_query($sql) or die (mysql_error());
$row=mysql_fetch_array($rs);
$superior=$row['intNivelSuperior'];
$NivOrd=$row['intNivelOrden'];
$charNivelUrl=$row['charNivelUrl'];
$varNivelNomW=$row['varNivelNom'];
$varNivelFoto=$row['varNivelFoto'];
$varNivelFoto2=$row['varNivelFoto2'];
$charNivelListado=$row['charNivelListado'];
$charNivelFiltrar=$row['charNivelFiltrar'];
if ($varNivelFoto2==""){
$varNivelFoto2="images/ok.png";
}else{
$varNivelFoto2="registros/fotos/".$row['varNivelFoto2'];
}
?>
if ($charNivelFiltrar==2) { require('calendario.php'); calendar_html(); ?> } ?>
|