Viewing file: modificar0k.php (19.84 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* UserEdit.php
*
* This page is for users to edit their account information
* such as their password, email address, etc. Their
* usernames can not be edited. When changing their
* password, they must first confirm their current password.
*
* Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
* Last Updated: August 26, 2004
*/
include("../usuarios/include/session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="noI firefox" xmlns="http://www.w3.org/1999/xhtml"><head>
<link rel="shortcut icon" href="../../images/favicon.ico">
<title>Modulo Administración</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../index_files/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../../js/popcalendar.js"></script>
<SCRIPT LANGUAGE="JavaScript">
function popup(page) {
window.open(page,'popup','width=800,height=600,toolbar=false,scrollbars=yes,top=0,left=10');
}
</SCRIPT>
<style type="text/css">
<!--
.Estilo2 {font-family: Georgia, "Times New Roman", Times, serif}
.Estilo5 { font-family: Verdana;
font-size: 8pt;
}
-->
</style>
</head>
<!-- CSS -->
<link rel="stylesheet" href="../css/dynamic.css" type="text/css">
<link rel="stylesheet" href="../css/creation.css" type="text/css">
<script type="text/javascript" src="../js/nicEdit-latest.js"></script>
</head><body id="creation">
<script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
//]]>
</script>
<?php
/**
* User has submitted form without errors and user's
* account has been edited successfully.
*/
if(isset($_SESSION['useredit'])){
unset($_SESSION['useredit']);
echo "<h1>User Account Edit Success!</h1>";
echo "<p><b>$session->username</b>, tu cuenta ha sido actualizada satisfactoriamente. "
."<a href=\"../index.php\">Inicio</a>.</p>";
}
else{
?>
<?php
/**
* If user is not logged in, then do not display anything.
* If user is logged in, then display the form to edit
* account information, with the current email address
* already in the field.
*/
if($session->logged_in){
?>
<div id="container" class="clearfix">
<?php include("../../conex.php");
if( $_POST['consulta'] ){
$sql = "select * from conceptos where id ='$_POST[id]'";
$cursor = mysql_query( $sql, $conexion );
if( $row = mysql_fetch_array( $cursor ) ){
$id = $row["id"];
$radicado_entrada = $row["radicado_entrada"];
$fecha_entrada = $row["fecha_entrada"];
$solicitante = $row["solicitante"];
$cargo = $row["cargo"];
$entidad = $row["entidad"];
$no = $row["no"];
$fecha_concepto = $row["fecha_concepto"];
$objeto = $row["objeto"];
$abogado = $row["abogado"];
$radicado_salida = $row["radicado_salida"];
$fecha_salida = $row["fecha_salida"];
$observaciones = $row["observaciones"];
$publicacion = $row["publicacion"];
$vinculo = $row["vinculo"];
}
}
if( $_POST['modifica'] ){
$sql = "update conceptos set radicado_entrada='$_POST[radicado_entrada]',fecha_entrada='$_POST[fecha_entrada]',solicitante='$_POST[solicitante]',cargo='$_POST[cargo]',entidad='$_POST[entidad]',no='$_POST[no]',fecha_concepto='$_POST[fecha_concepto]',objeto='$_POST[objeto]',abogado='$_POST[abogado]',radicado_salida='$_POST[radicado_salida]',fecha_salida='$_POST[fecha_salida]',observaciones='$_POST[observaciones]',publicacion='$_POST[publicacion]',vinculo='$_POST[vinculo]' where id = '$_POST[id]'";
if(mysql_query($sql,$conexion)){
echo "<script language='JavaScript' type='text/javascript'>
alert('Registro modificado correctamente') </script>";
}
else
echo "<script language='JavaScript' type='text/javascript'>
alert('Error al modificar registro') </script>";
}
?>
<div id="container">
<div>
<div> <img src="../index_files/header.png" width="780" height="228" border="0" usemap="#Map">
<map name="Map"><area shape="poly" coords="678,165" href="#"><area shape="poly" coords="429,87" href="#"></map></div>
<div>
<FORM id=form1 name=form1 method=post>
<TABLE border=2 style="BORDER-LEFT-COLOR: green; BORDER-BOTTOM-COLOR: green; BORDER-TOP-COLOR: green; BORDER-RIGHT-COLOR: green" align="center">
<TBODY>
<TR>
<TD width="798" style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana">
<div>
<TABLE>
<TBODY>
<TR>
<TD style="FONT-SIZE: 10pt; COLOR: black; HEIGHT: 18px; BACKGROUND-COLOR: #cccccc"><strong>Formulario de Modificación Conceptos Juridicos: <span class="Estilo3">Seleccione la norma a modificar y luego oprima el boton consultar, realice la modificacion seguido del boton modificar. </span></strong><span style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana"><strong></strong></span> <BR></TD>
</TR>
<TR>
<TD style="COLOR: white; BACKGROUND-COLOR: #8EE910"> </TD></TR>
<TR>
<TD
style="FONT-SIZE: 12pt; COLOR: red; BACKGROUND-COLOR: gainsboro; TEXT-ALIGN: center"><p><SPAN
style="FONT-SIZE: 10pt">Si usted ya se encuentra en este modulo es porque tiene acceso a el. El ingreso de información no autorizado a este modulo est prohibido y puede estar sujeto a acciones civiles y penales.</SPAN> </p> </TD>
</TR>
<TR>
<TD style="TEXT-ALIGN: center">
<TABLE width="100%">
<TBODY>
<TR> </TR></TBODY></TABLE> </TD></TR>
<TR>
<TD
style="FONT-SIZE: 8pt; COLOR: white; BACKGROUND-COLOR: #8EE910"><TABLE width="100%">
<TBODY>
<TR>
<TD style="HEIGHT: 15px"
align=middle><div align="left"><STRONG>Solicitud Concepto Jurídico </STRONG></div></TD>
<TD style="HEIGHT: 15px" align=right><A
id=linAyudaNombre
title="">Ayuda</A><input name="id" type="hidden" class="iceReadOnly" id="id" style="" onFocus="setFocus(this.id);" onBlur="setFocus('');" onKeyPress="iceSubmit(form,this,event);" value="<?php echo $id; ?>" size="5" maxlength="5" readonly="readonly"></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="HEIGHT: 42px; BACKGROUND-COLOR: activeborder; TEXT-ALIGN: center; background-color:#FFFFFF"><TABLE width="98%">
<TBODY>
<TR>
<TD width="198" bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 15px"><strong>Radicado de Entrada* </strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Fecha de Radicado* </strong></TD>
<TD width="214" bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 15px"><strong>Solicitante*</strong></TD>
<TD width="123" bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Cargo*</strong> </TD>
<TD width="148" bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Entidad</strong>* </TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=radicado_entrada id=radicado_entrada tabIndex=1 value="<?php echo $radicado_entrada; ?>" size="12"
maxLength=12>
<img src="../../images/search.gif" width="20" height="20" border="0" onClick="popup('mostrar.php')"/></TD>
<TD width="62" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_entrada" type="text" onBlur="return document.MM_returnValue" value="<?php echo $fecha_entrada; ?>" size="12" maxlength="10" readonly=""></TD>
<TD width="29" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="button" type="button" onclick='popUpCalendar(this,fecha_entrada, "yyyy/mm/dd")' value=""></TD>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<INPUT
name=solicitante
id=solicitante tabIndex=4 value="<?php echo $solicitante; ?>" size="30" maxLength=50>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=cargo
id=cargo tabIndex=4 value="<?php echo $cargo; ?>" size="15" maxLength=200>
</TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=entidad
id=entidad tabIndex=4 value="<?php echo $entidad; ?>" size="20" maxLength=200>
</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="FONT-SIZE: 8pt; COLOR: white; BACKGROUND-COLOR: #8EE910"><TABLE width="100%">
<TBODY>
<TR>
<TD style="HEIGHT: 15px"
align=middle><div align="left"><STRONG>Concepto</STRONG></div></TD>
<TD style="HEIGHT: 15px" align=right><A
id=linAyudaNombre
title="">Ayuda</A></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="HEIGHT: 42px; BACKGROUND-COLOR: activeborder; TEXT-ALIGN: center; background-color:#FFFFFF"><TABLE width="99%">
<TBODY>
<TR>
<TD width="210" bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 15px; BACKGROUND-COLOR: activeborder" ><strong>No. </strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Fecha de Concepto </strong> </TD>
<TD width="343" bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 15px"><strong>Objeto</strong></TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=no id=no tabIndex=1 value="<?php echo $no; ?>" size="11"
maxLength=50></TD>
<TD width="182" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_concepto" type="text" onBlur="return document.MM_returnValue" value="<?php echo $fecha_concepto; ?>" size="12" maxlength="10" readonly="" ></TD>
<TD width="26" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="button2" type="button" onclick='popUpCalendar(this,fecha_concepto, "yyyy/mm/dd")' value="" size="5"></TD>
<TD
align=middle bgcolor="#FFFFFF" class="Estilo2" style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<textarea name="objeto" cols="50" id="objeto" tabindex="4"><?php echo $objeto; ?></textarea>
</span></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="FONT-SIZE: 8pt; COLOR: white; BACKGROUND-COLOR: #8EE910"><TABLE width="100%">
<TBODY>
<TR>
<TD style="HEIGHT: 15px"
align=middle><div align="left"><strong>Respuesta Concepto Jurídico </strong></div></TD>
<TD style="HEIGHT: 15px" align=right><A
id=linAyudaNombre
title="">Ayuda</A></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="HEIGHT: 42px; BACKGROUND-COLOR: activeborder; TEXT-ALIGN: center; background-color:#FFFFFF"><TABLE width="100%">
<TBODY>
<TR>
<TD width="198" bgcolor="#D4D0C8" style="WIDTH: 150px; HEIGHT: 15px; BACKGROUND-COLOR: activeborder "><span style="HEIGHT: 15px"><strong>Abogado</strong> </span></TD>
<TD width="198" bgcolor="#D4D0C8" style="WIDTH: 150px; HEIGHT: 15px; BACKGROUND-COLOR: activeborder "><strong>Radicado de Salida </strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px"><div align="center"><strong>Fecha de Radicado</strong></div></TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<input
name="abogado"
id="abogado" tabindex="4" value="<?php echo $abogado; ?>" size="30" maxlength="50" />
</span></TD>
<TD width="90" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><div align="center">
<input name="fecha_salida" type="text" onBlur="return document.MM_returnValue" value="<?php echo $fecha_salida; ?>" size="12" maxlength="10" readonly="">
</div></TD>
<TD width="17" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="button3" type="button" onclick='popUpCalendar(this,fecha_salida, "yyyy/mm/dd")' value=""></TD>
<TD width="800" align=left bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="vinculo" type="text" id="vinculo" size="40" maxlength="40" value="<?php echo $vinculo; ?>"></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD style="COLOR: white; BACKGROUND-COLOR: #8EE910"><TABLE width="100%">
<TBODY>
<TR>
<TD align=middle><div align="left"><STRONG>Observaciones</STRONG></div></TD>
<TD align=right><A id=HyperLink3
title="Ayuda ">Ayuda</A></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD style="TEXT-ALIGN: center"><TABLE width="100%">
<TBODY>
<TR>
<TD
style="WIDTH: 163px; HEIGHT: 15px; BACKGROUND-COLOR: activeborder"> </TD>
</TR>
<TR>
<TD colspan="3"><span class="Estilo2">
<textarea name="observaciones"
rows="2"
cols="100"
dir="ltr"
id="field_4_3"
onpropertychange="return unNullify('resuelve', '0')" tabindex="10"
><?php echo $observaciones; ?></textarea>
</span></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD bgcolor="#8EE910" style="COLOR: white; BACKGROUND-COLOR: #8EE910">
<TABLE>
<TBODY>
<TR>
<TD align=middle><STRONG>Publicación</STRONG></TD>
<TD align=right><A id=HyperLink1
title="Diligencie los datos solicitados">Ayuda</A></TD></TR></TBODY></TABLE><strong></strong></TD></TR>
<TR>
<TD style="TEXT-ALIGN: center">
<TABLE width="100%">
<TBODY>
<TR>
<TD
style="BACKGROUND-COLOR: activeborder"><strong>Publicar?:</strong>
<INPUT id=rbGenero_0 tabIndex=8 type=radio <?php if ($publicacion == 's') echo "CHECKED"; ?>
value=s name=publicacion>
<LABEL
for=rbGenero_0>Si
<INPUT id=rbGenero_1 tabIndex=8 type=radio <?php if ($publicacion == 'n') echo "CHECKED"; ?>
value=n name=publicacion>
No</LABEL></TD>
<TD
style="BACKGROUND-COLOR: activeborder"><span>
<input name="consulta" type="submit" id="consulta" value="Consultar" >
<input name="modifica" type="submit" id="modifica" value="Modificar" >
<input type="button" name="limpiar" value="Limpiar" onClick="location.href='modificar.php'">
</span></TD><TD width="115"
colSpan=2 style="BACKGROUND-COLOR: activeborder"><input type="button" name="limpiar2" value="Volver al menu principal" onClick="location.href='../admin.php'"></TD>
</TR>
</TBODY></TABLE> </TD>
</TR></TBODY>
</TABLE>
</div></TD></TR></TBODY></TABLE>
</form>
</div>
</div>
<?php
}
}
?>
<div class="footer">
<i class="c1">·</i>
Copyright © 2010
<i class="c1">·</i><strong>Secretaria de Ambiente </strong><b>.</b>
<i class="c1">·</i>Todos los derechos reservados <i class="c1">·</i></div>
</div><!--container-->
</body></html>
|