Viewing file: midama3_a.php (23.44 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// 1. Acceso por usuario
$usuario = isset($user);
if ($usuario == false) {
$user = "guest";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>mi DAMA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
body {
background-color: #333333;
}
.Estilo5 {
color: #FFFFFF;
font-weight: bold;
}
a:link {
color: #333333;
text-decoration: none;
}
a:visited {
color: #333333;
text-decoration: none;
}
a:active {
color: #FF3300;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.Highlight {background-color:#999999}
.Normal{background-color:#666666}
.Estilo48 {font-size: 18}
.Estilo49 {font-size: 12px}
.Estilo54 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo55 {font-size: 12}
.style1 {color: #999999}
.style2 {
color: #FFFFFF;
font-size: 20px;
}
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #666666;
background-color: #F3F3F3;
border: 1px solid #33CCFF;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.tabla1 {
border: 1px none #CCCCCC;
}
-->
</style>
</head>
<body onload="MM_preloadImages('../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/sinestesia/MiDAMA_RO_002.jpg','../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/sinestesia/BogBann_E05b.jpg','../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/sinestesia/Intra_dam01b.jpg','../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/madam/mima/atardecercosmico_02b.jpg','../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/madam/mima/atardecercosmico_03b.jpg','../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/madam/mima/atardecercosmico_04b.jpg','../../../Documents%20and%20Settings/nicrey/Desktop/Nicolas%20Rey%20G/Intranet/madam/mima/BogBann_D02.jpg','imadam/inicio7.jpg')">
<div align="center"> </div>
<p align="center"><a href="reqintranet.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','imadam/inicio7.jpg',1)"><img src="imadam/inicio000.jpg" alt="el ambiente no es un contenedor es un proceso" name="Image3" width="760" height="100" border="0"></a>
<div align="center">
<table width="760" border="0" cellpadding="1" cellspacing="0">
<tr bgcolor="#666666">
<td width="65" bgcolor="#FFCC00"><div align="center" class="Estilo56">INICIO</div></td>
<td width="75" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'">
<div align="center"><a href="reqnoticias2.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">NOTICIAS</font></span></a></div></td>
<td width="78" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqsistemasform2.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">SOPORTE</font></span></a></div></td>
<td width="102" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqlegis.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">LEGISLACIÓN</font></span></a></div></td>
<td width="90" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqdamaweb.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">DAMA SDA</font> </span></a></div></td>
<td width="81" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqlinks.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">LINKS</font>
</span></a></div></td>
<td width="81" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqrediseno.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">REDISEÑO</font></span></a></div></td>
<td width="72" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqparticipate.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">PARTICIPE</font></span></a></div></td>
<td width="78" bgcolor="#666666" class="Normal" onmouseover="this.className='Highlight'" onmouseout="this.className='Normal'"><div align="center"><a href="reqindice.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">INDICE</font></span></a></div></td>
</tr>
</table>
</div>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFCC00"> </td>
</tr>
</tbody>
</table>
<table width="760" height="276" border="0" align="center" cellpadding="0" cellspacing="20" bgcolor="#FFCC00">
<tr>
<td width="511" valign="top" bordercolor="#FFCC00" bgcolor="#FFFFFF">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="511">
<tbody>
<tr>
<td height="200" valign="bottom" width="511"><a href="http://192.168.10.3/portel_dama/libreria/php/decide.php?patron=00."><img src="b.gif" alt="Vista preliminar de la página Web, participe ya..." width="518" height="200" border="1"></a></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="8" cellspacing="0" width="100%">
<tbody>
<?php
require('conexion3.php');
$hora = getdate();
$yr = $hora["year"];
$mo = $hora["mon"];
$dy = $hora["mday"];
$mo = $mo * 100;
$yr = $yr - 2000;
$yr = $yr * 10000;
$fc = $mo + $yr;
$fc1 = $fc + 100;
//$fc = $mo + $yr + $dy;
$consul = "SELECT *
FROM news where cat=9"
. " order by fecha DESC, id DESC limit 0,2";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$idacc1 = $myrow["id"];
$descriacc1 = $myrow["descri"];
$descriacc1 = str_replace("\n", "<br>", $descriacc1);
$catacc1 = $myrow["cat"];
$files = $myrow["fichero"];
$titularacc1 = $myrow["titular"];
$foro = $myrow["comments"];
$veri1 = substr_count($titularacc1, "(f)");
if ($veri1 == 1) {
// Función de Compresión de la Imagen
$opend = 'c:\maps\tumbs';
@$opend_result = mkdir ($opend , 0777);
$v1 = $files;
// Extrae el verdadero nombre del archivo
$pos = strrpos($v1, "/");
$rest = substr($v1, $pos+1);
$sz = 100;
$size = GetImageSize("c:/maps/tumbs/".$rest);
$an = $size[0];
$la = $size[1];
$ty = $size[2];
$an1 = round($an);
$la1 = round($la);
if ($an > $la) {
$la = $la * $sz;
$la = $la / $an;
$an = $sz;
}
if ($la > $an) {
$fc = $an / $sz;
$an = $sz;
$la = $la / $fc;
}
if ($la == $an) {
$an = $sz;
$la = $sz;
}
$pos = strpos($v1, "/");
$n_file = substr($v1, $pos);
$copyfile = "c:/maps/tumbs/images/".$rest;
$original_file ="c:/maps/tumbs/".$rest;
copy($original_file , $copyfile);
$dest = "c:\maps\\recipiente.jpg";
if ($ty == 1) {
$img_src=imagecreatefromgif("c:/maps/tumbs/".$rest);
}
if ($ty == 2) {
$img_src=imagecreatefromjpeg("c:/maps/tumbs/".$rest);
}
$img_dst=imagecreatetruecolor($an,$la);
imagecopyresampled($img_dst, $img_src, 0, 0, 0, 0, $an, $la, $an1, $la1);
$dest = "c:/maps/tumbs/images/".$rest.".jpg";
imagejpeg($img_dst, $dest, 100);
// Fin de la Función de Compresión de la Imagen
?>
<tr>
<td width="22%" valign="top" bgcolor="#FFFFFF"> <div align="center"><img src="images2/<?php echo $rest; ?>.jpg"></div></td>
<td width="78%" valign="top" bgcolor="#ffffff"> <p align="justify"><a href="requirenew3.php?id=<?php echo $idacc1; ?>&user=<?php echo $user; ?>"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><?php echo $titularacc1; ?></strong></font></a><strong>
</strong></p>
<p align="left"><?php echo $descriacc1; ?></p>
<?php if ($foro == 1) { ?>
<p align="left"><font color="#666666"><a href="requirenew3.php?id=<?php echo $idacc1; ?>&user=<?php echo $user; ?>#uno">Comentar
este tema...</a></font> <font face="Arial, Helvetica, sans-serif">I</font>
<font color="#666666"><a href="requirenew3.php?id=<?php echo $idacc1; ?>&user=<?php echo $user; ?>#dos">Comentarios
sobre este tema...</a></font></p>
<?php } ?>
</td>
</tr>
<?php }else{ ?>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="left"><a href="requirenew3.php?id=<?php echo $idacc1; ?>&user=<?php echo $user; ?>"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><?php echo $titularacc1; ?></strong></font></a><strong>
</strong></div>
<p align="left"><?php echo $descriacc1; ?></p>
<?php if ($foro == 1) { ?>
<p align="left"><font color="#666666"><a href="requirenew3.php?id=<?php echo $idacc1; ?>&user=<?php echo $user; ?>#uno">Comentar
este tema...</a></font> <font face="Arial, Helvetica, sans-serif">I</font>
<font color="#666666"><a href="requirenew3.php?id=<?php echo $idacc1; ?>&user=<?php echo $user; ?>#dos">Comentarios
sobre este tema...</a></font></p>
<?php } ?>
</td>
</tr>
<?php }} ?>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr align="left" bgcolor="#FFFF99">
<td colspan="3"><div align="center"><strong><font size="2">CARTELERA
INFORMATIVA DEL DAMA</font></strong></div></td>
</tr>
<tr align="left" valign="top">
<td><div align="center"><strong>Nuevo Subdirector en el DAMA</strong></div></td>
<td><div align="center"><a href="repre/diju.doc"><strong>Baja
de Elementos del DAMA</strong></a></div></td>
<td><div align="center"><strong>Nuevo Subdirector en el DAMA</strong></div></td>
</tr>
<tr align="left" valign="top">
<td width="33%"> <p><a href="repre/Bajas.pdf"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">El
Dr. <strong>EDWARD RAÚL GASCA BUELVAS</strong>
se posesiono como Subdirector Administrativo y Finaciero
del DAMA.<br>
</font></a>Ingeniero Industrial de la Universidad Católica
de Colombia, especializado en Control Interno en al Universidad
Militar Nueva Granada. Alcalde de la localidad de los
Mártires en el periodo comprendido entre abril-agosto
de 2005. Auditor Interno de la Secretaría de Gobierno
Distrital.<br>
</p></td>
<td width="33%"><a href="repre/Bajas.pdf"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Mediante
la <strong>resolución 2648 de 2005</strong>. se procedio
a dar de baja elementos inservibles del DAMA, anexo encontrara
el respectivo listado de elementos dados de baja.</font></a></td>
<td width="33%"><a href="repre/Bajas.pdf"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">El
Dr. <strong>GUSTAVO ADOLFO GUERRERO</strong> se posesiono
como Subdirector Jurídico de la Entidad.<br>
Abogado de la Universidad Externado de Colombia y especialista
en Derecho Comercial de la Universidad de los Andes.</font><br>
</a> </td>
</tr>
</table></td>
</tr>
</tbody>
</table>
</div></td>
<td width="180" valign="top" bordercolor="#FFCC00" bgcolor="#CCCC99">
<div align="center">
<form name="form1" method="post" action="requireval1.php">
<table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr bgcolor="#99CCCC">
<td> <div align="left"><font color="#000000"><span class="Estilo48">APLICACIONES</span></font><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="Estilo48">
<strong>
<?php if ($user != "guest") { echo $user; } ?>
</strong></span></font></div></td>
</tr>
<tr align="left">
<td>
<?php if ($user == "guest") { ?>
<div id="Layer2" style="position:absolute; width:170px; height:99px; z-index:2">
<form name="form1" method="post" action="requireval1.php">
<table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
<td><font color="#333333">Usuario:</font></td>
<td><input name="user" type="text" id="user" size="15"></td>
</tr>
<tr>
<td><font color="#333333">Clave:</font></td>
<td><input name="pass" type="password" id="pass2" size="10">
<input type="submit" name="Submit" value="Ir..."></td>
</tr>
</table>
</form>
</div>
<p> </p>
<p> </p>
<p></p><?php } ?>
<?php
// 1. Si el usuario no es validado no muestre la capa
$user = strtolower($user);
if ($user != "guest") {
?>
<div id="Layer1" style="position:absolute; width:170px; height:55px; z-index:1; overflow: auto; background-color: #CCCC99; layer-background-color: #CCCC99; border: 1px none #000000; visibility: visible;">
<strong>
<?php
require('conexion.php');
$consul = "SELECT *
FROM usrs where user='$user'"
. " order by aplyid";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$aaply = $myrow["aplyid"];
$consula = "SELECT *
FROM aplica where id='$aaply'";
$resulta = mysql_query($consula,$db);
$num_filasa = mysql_num_rows($resulta);
while ($myrowa = mysql_fetch_array($resulta))
{
$one = $myrowa["nombre"];
$dos = $myrowa["label"];
$tre = $myrowa["link"];
}
$xsi = $one . "/" . $dos;
$user = strtoupper($user);
?>
</strong>
<strong><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="<?php echo $tre; ?>?user=<?php echo $user; ?>"><font color="#666666">>
<?php echo $dos; ?></font></a></font><br>
<?php
}
?>
</strong></div>
<p> </p>
<p> </p>
<p></p>
<?php } ?>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
<td align="left" bgcolor="#FFFFCC">DIRECCIÓN INFORMA (<a href="../phpbb/index.php">Foro</a>)</td>
</tr>
<tr>
<td align="left" bgcolor="#CCCC99"><a href="reqinforma11.php?user=<?php echo $user; ?>"><strong>Edición
No. 11, <em>Abril 25-05</em></strong></a><br>
Aspectos en la rendición de cuentas.</td>
</tr>
<tr>
<td bgcolor="#FFFF99"> <div align="left"><a href="reqnove.php?user=<?php echo $user; ?>">NUEVO
EN DAMA.GOV.CO</a></div></td>
</tr>
<tr>
<?php
require('conexion3.php');
$consul = "SELECT *
FROM novedades order by id DESC limit 0,1";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$tid = $myrow["id"];
$tit = $myrow["titulo"];
$tex = $myrow["texto"];
$tli = $myrow["link"];
$fec = $myrow["fecha"];
?>
<td> <div align="left"><a href="<?php echo $tli; ?>"><font color="#333333"><?php echo $tit; ?></font></a></div></td>
<?php } ?>
</tr>
<tr>
<td bgcolor="#FFCC99"> <div align="left"><a href="reqintranetclasi.php?user=<?php echo $user; ?>"><font color="#000000">CARTELERA
Y CLASIFICADOS</font></a></div></td>
</tr>
<?php
require('conexion3.php');
$consul = "SELECT *
FROM clasificados order by fecha DESC limit 0,2";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$tid = $myrow["id"];
$tit = $myrow["titulo"];
$tex = $myrow["texto"];
$fec = $myrow["fecha"];
?>
<tr>
<td><table width="100%" border="0" cellpadding="4" cellspacing="0" class="tabla1">
<tr>
<td bgcolor="#ddCC99"> <div align="left"><font color="#934900"><strong><?php echo $tit; ?></strong></font>
<font color="#666666">(<?php echo $fec; ?>)</font> <br>
<font color="#333333"><?php echo $tex; ?></font></div></td>
</tr>
</table></td>
</tr>
<?php } ?>
<tr>
<td><div align="right"><a href="reqintranetclasi.php?user=<?php echo $user; ?>"><font color="#FFFFFF">Ver
más clasificados >></font></a></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody>
<tr bgcolor="#003399">
<td width="544" bgcolor="#FFCC00"><div class="Estilo14 style1" align="center">diseño:
alvaro moreno - desarrollo: nicolás rey </div></td>
<td bgcolor="#fee415" width="216"><div align="center">
<p><img src="midama3_files/bogsin1yellow_sml.jpg" width="120" height="44"></p>
</div></td>
</tr>
</tbody>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody>
<tr bgcolor="#003399">
<td bgcolor="#ffcc00" width="545"><div align="center"></div></td>
<td bgcolor="#CC0000" width="215"> </td>
</tr>
</tbody>
</table>
<table width="760" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#666666">
<tr bgcolor="#2656A2">
<td width="65" bgcolor="#FFCC00"><div align="center" class="Estilo56"><a href="#">INICIO</a></div></td>
<td width="75" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqnoticias2.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">NOTICIAS</font></span></a></div></td>
<td width="78" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqsistemasform2.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">SOPORTE</font></span></a></div></td>
<td width="102" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqlegis.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">LEGISLACIÓN</font></span></a></div></td>
<td width="90" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqdamaweb.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">DAMA SDA</font> </span></a></div></td>
<td width="81" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqlinks.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">LINKS</font>
</span></a></div></td>
<td width="81" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqrediseno.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">REDISEÑO</font></span></a></div></td>
<td width="72" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqparticipate.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">PARTICIPE</font></span></a></div></td>
<td width="78" bgcolor="#2656A2" class="Estilo56" onmouseover="this.className='Highlight'" onmouseout="this.className='Estilo56'"><div align="center"><a href="reqindice.php?user=<?php echo $user; ?>"><span class="Estilo56"><font color="#FFFFFF">INDICE</font></span></a></div></td>
</tr>
</table>
<p> </p>
</body></html>
|