Viewing file: legis4a.php (8.26 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Legislación Ambiental Colombiana</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.textopequeno {
font-family: "Times New Roman", Times, serif;
font-size: 10px;
color: #333333;
}
select {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
background-color: #FFFFF9;
}
.in1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
background-color: #FFFFF9;
}
.in1Copia {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
background-color: #B9E7FD;
}
.textopequenoCopia {
font-family: "Times New Roman", Times, serif;
font-size: 11px;
color: #333333;
}
a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #006699;
text-decoration: none;
}
a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #006699;
text-decoration: underline;
}
.txu {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
background-color: #FFCC00;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
<script language="Javascript1.2">
//Directory must end with a '/'
//Examples:
// AK_editor_url = "TextAreaPro/";
AK_editor_url = "";
document.write('<scr' + 'ipt src="' + AK_editor_url+ 'wysiwyg.js" language="Javascript1.2"></scr' + 'ipt>');
</script>
</head>
<body topmargin="0">
<table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td width="20%"> </td>
<td width="60%" colspan="2"><div align="center"><img src="legis.gif" width="550" height="150"></div></td>
<td width="20%"> </td>
</tr>
<tr>
<td> </td>
<td bordercolor="#CCCCCC" bgcolor="#F2F2F2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <div align="center"><a href="#" onClick="MM_callJS('history.back()')">Regresar...</a></div></td>
</tr>
</table></td>
<td bordercolor="#CCCCCC" bgcolor="#FFFFF9"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <div align="center"><font color="#FFFFF9">Agregar Normas...</font></div></td>
</tr>
</table>
</td>
<td> </td>
</tr>
<tr>
<td width="20%"> </td>
<?php
require('conexion3.php');
$consul = "SELECT *
FROM legis where id=$id";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$numero = $myrow["numero"];
$fecha = $myrow["fecha"];
$entidad = $myrow["entidad"];
$tipo = $myrow["tipo"];
$etiqueta = $myrow["etiqueta"];
$texto = $myrow["texto"];
$titulo = $myrow["titulo"];
$link = $myrow["link"];
$mes = $myrow["mes"];
$regid = $myrow["regid"];
}
$prese= $tipo . " " . $numero . " de " . $fecha;
//$str = "realización de planes";
$textd = str_replace ("\r", "<br>", $texto);
if ($en == 0) {
$stra = "<span class=\"txu\">" . $str . "</span>";
$textd = str_replace ($str, $stra, $textd);
}else{
$trozos = explode (" ", $str);
foreach ($trozos as $v) {
if ($v == "las") {
}
if ($v == "s" or $v == "ss" or $v == "ass" or $v == "lass" or $v == "class" or $v == "las" or $v == "la") {
}else{
$stra = "<span class=\"txu\">" . $v . "</span>";
$textd = str_replace ($v, $stra, $textd);
}}}
$paero = substr_count($texto,"<P>");
$paero1 = substr_count($texto,"<p>");
$p = $paero + $paero1;
//echo $paero;
If ($p != 0) {
$txt = $texto;
}else{
$txt = $textd;
}
?>
<td width="60%" colspan="2" bordercolor="#CCCCCC" bgcolor="#FFFFF9"> <p><font size="5"><strong><font size="2">>></font>
<?php echo $prese; ?>...</strong></font></p>
<p><font color="#006699"><?php echo $titulo; ?></font><font color="#0066CC"><br>
<strong>Del: <font color="#0066CC">
<?php
if ($entidad != "") {
require('conexion3.php');
$consul = "SELECT *
FROM entidad where id=$entidad";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
if ($num_filas != 0) {
while ($myrow = mysql_fetch_array($result))
{
$entiname = $myrow["nomen"];
}
}else{
$entiname = "Indeterminada...";
}
echo $entiname;
}
?>
<br>
<font color="#CCCCCC">----------------------------------------------------------------------------------------------------------------</font><br>
Reglamenta:
<?php
if ($regid != "") {
require('conexion3.php');
$consul = "SELECT *
FROM legis where id=$regid";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
if ($num_filas != 0) {
echo "<br>";
while ($myrow = mysql_fetch_array($result))
{
$regid = $myrow["id"];
$regnumero = $myrow["numero"];
$regtipo = $myrow["tipo"];
$regfecha = $myrow["fecha"];
$regetitulo = $myrow["titulo"];
echo "<b>--</b> $regtipo, $regnumero de $regfecha: <a href=\"reqlegis4.php?id=$regid&str=&en=1\">$regetitulo</a><br>";
}
}else{
echo "No reglamenta otras normas...";
}
}else{
echo "No reglamenta otras normas...";
}
?>
<br>
<font color="#CCCCCC">----------------------------------------------------------------------------------------------------------------</font><br>
Reglamentado por:</font></strong>
<?php
require('conexion3.php');
$consul = "SELECT *
FROM legis where regid=$id";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
if ($num_filas != 0) {
echo "<br>";
while ($myrow = mysql_fetch_array($result))
{
$regid = $myrow["id"];
$regnumero = $myrow["numero"];
$regtipo = $myrow["tipo"];
$regfecha = $myrow["fecha"];
$regetitulo = $myrow["titulo"];
echo "<b>--</b> $regtipo, $regnumero de $regfecha: <a href=\"reqlegis4.php?id=$regid&str=&en=1\">$regetitulo</a><br>";
}
}else{
echo "No está reglamentado por otras normas...";
}
?>
<br>
<strong><font color="#0066CC"><font color="#CCCCCC">----------------------------------------------------------------------------------------------------------------</font></font></strong>
</font></p>
<p align="center"><strong>Barra de Herramientas:<br>
</strong> <font size="2">Use los botones para guardar como o imprimir
su norma...</font><strong><br>
<textarea cols="70" rows="20" name="MyTextAreaName">
<?php echo $txt; ?>
</textarea>
<script language="JavaScript">
//comment any button that you want to hide
var AK_DisplayedButtons = Array(
'SaveAs',
'Print'
//the last one has NO comma
);
var AK_width = 600;
var AK_height = 1;
// All fields are optional. Place "null" where you don't want to specify.
//ak_wysiwyg_generator(width, height, "TextAreaName", DisplayedButtonList);
ak_wysiwyg_generator(AK_width, AK_height, "MyTextAreaName", AK_DisplayedButtons);
//Examples:
// ak_wysiwyg_generator(null, null, "MyTextAreaName", AK_DisplayedButtons);
// ak_wysiwyg_generator(AK_width, AK_height, null, AK_DisplayedButtons);
// ak_wysiwyg_generator(AK_width, AK_height, "MyTextAreaName", null);
// It can be no parameter at all
// ak_wysiwyg_generator();
</script>
</strong></p>
<p><font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $txt; ?></font><strong>
</strong></p>
</td>
<td width="20%"> </td>
</tr>
<tr>
<td width="20%"> </td>
<td width="60%" colspan="2"><div align="center"><img src="legis2.gif" width="550" height="30">
<br>
<span class="textopequeno">© Copyright, DAMA 2003. Todos los Derechos
Reservados para<br>
El Departamento Técnico Administrativo del Medio Ambiente</span></div></td>
<td width="20%"> </td>
</tr>
</table>
</body>
</html>
|