Viewing file: ingresarok.php (17.57 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">
<META http-equiv=content-script-type content=text/JScript>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<link href="../index_files/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../../js/popcalendar.js"></script>
<script>
function validar(formulario){
/*if(document.forms.f1.radicado_entrada.value =="")
{
window.alert('Debe ingresar radicado de entrada');
f1.radicado_entrada.focus();
return(false);
}
if(document.forms.f1.fecha_entrada.value =="")
{
window.alert('Debe ingresar la fecha de entrada');
f1.fecha_entrada.focus();
return(false);
}*/
if(document.forms.f1.solicitante.value =="")
{
window.alert('Debe ingresar el solicitante');
f1.solicitante.focus();
return(false);
}
if(document.forms.f1.cargo.value =="")
{
window.alert('Debe ingresar cargo');
f1.cargo.focus();
return(false);
}
if(document.forms.f1.entidad.value =="")
{
window.alert('Debe ingresar la entidad');
f1.entidad.focus();
return(false);
}
}
</script>
<style type="text/css">
<!--
.Estilo2 {font-family: Georgia, "Times New Roman", Times, serif}
.Estilo5 { font-family: Verdana;
font-size: 8pt;
}
-->
</style>
<!-- CSS -->
<link rel="stylesheet" href="../css/dynamic.css" type="text/css">
<link rel="stylesheet" href="../css/creation.css" type="text/css">
</head><body id="creation">
<?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['inserta'] ){
$sql = "select * from conceptos where id = '$_POST[id]'";
$cursor = mysql_query( $sql, $conexion );
if( mysql_fetch_array( $cursor ) )
echo " <script language='JavaScript' type='text/javascript'>
alert('Error en concepto $_POST[id]') </script>";
else{
$sql = "insert into conceptos values ('','$_POST[radicado_entrada]','$_POST[fecha_entrada]','$_POST[solicitante]','$_POST[cargo]','$_POST[entidad]','$_POST[no]','$_POST[fecha_concepto]','$_POST[objeto]','$_POST[abogado]','$_POST[radicado_salida]','$_POST[fecha_salida]','$_POST[observaciones]','$_POST[publicacion]','$_POST[vinculo]')";
if( mysql_query ( $sql, $conexion ) ){
echo " <script language='JavaScript' type='text/javascript'>
alert('Registro ingresado') </script>";
}
}
} ?>
<div id="container">
<div id="header">
<div align="center"><img src="../../images/cabezote BLEGAL.jpg" width="867" height="155" border="0" usemap="#Map">
</div>
</div>
<div>
<FORM id=f1 name=f1 method=post onSubmit="return validar(this)">
<TABLE border=2 cellPadding=0
cellSpacing=0
style="BORDER-LEFT-COLOR: green; BORDER-BOTTOM-COLOR: green; BORDER-TOP-COLOR: green; BORDER-RIGHT-COLOR: green">
<TBODY>
<TR>
<TD height="437" border=2
colSpan=3 style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana"><TABLE>
<TBODY>
<TR>
<TD width="761"
align=middle
style="FONT-SIZE: 10pt; COLOR: black; HEIGHT: 18px; BACKGROUND-COLOR: #cccccc"><strong>Formulario de Ingreso Conceptos Juridicos: <span class="Estilo5">L</span></strong><span style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana"><strong>os campos con * deben ser
diligenciados (obligatorios)</strong></span> <BR></TD>
</TR>
<TR>
<TD style="COLOR: white; BACKGROUND-COLOR: #8EE910"><TABLE width="100%">
<TBODY>
<TR>
<TD style="HEIGHT: 15px"
align=middle> </TD>
<TD style="HEIGHT: 15px"
align=right></TD>
</TR>
</TBODY>
</TABLE></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="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></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: 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="300" bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 15px"><strong>Solicitante*</strong></TD>
<TD width="175" bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Cargo*</strong> </TD>
<TD width="447" 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 size="12"
maxLength=12></TD>
<TD width="74" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_entrada" maxlength="10" size="12" onBlur="return document.MM_returnValue" type="text" readonly=""></TD>
<TD width="58" 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 size="40" maxLength=50>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=cargo
id=cargo tabIndex=4 value="" maxLength=200>
</TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=entidad
id=entidad tabIndex=4 value="" 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="100%">
<TBODY>
<TR>
<TD width="206" 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="363" bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 15px"><strong>Objeto</strong></TD>
<TD width="557" bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Abogado</strong> </TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=no id=no tabIndex=1 size="11"
maxLength=50></TD>
<TD width="66" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_concepto" maxlength="10" size="10" onBlur="return document.MM_returnValue" type="text" readonly="" ></TD>
<TD width="64" 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="#D4D0C8" style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<INPUT
name=objeto
id=objeto tabIndex=4 size="60" maxLength=400>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=abogado
id=abogado tabIndex=4 maxLength=50>
<a href="file://///pc-p12-1000380-/Documentos/NORMAS AMBIENTALES/NORMAS AMBIENTALES"></a></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 "><strong>Radicado de Salida </strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px"><div align="center"><strong>Fecha de Radicado</strong></div></TD>
<TD bgcolor="#D4D0C8" style="HEIGHT: 15px"><strong>Vinculo</strong></TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=radicado_salida id=radicado_salida tabIndex=1 size="12"
maxLength=12></TD>
<TD width="90" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><div align="center">
<input name="fecha_salida" maxlength="10" size="15" onBlur="return document.MM_returnValue" type="text" 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="955" align=left bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="vinculo" type="file" id="vinculo" size="15" maxlength="10"></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" style="WIDTH: 163px"><span class="Estilo2">
<textarea name="observaciones"
rows="2"
cols="100"
dir="ltr"
id="field_4_3"
onpropertychange="return unNullify('resuelve', '0')" tabindex="10"
></textarea>
</span></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>Publicación</STRONG></div></TD>
<TD align=right><A id=HyperLink1
title="Diligencie los datos solicitados">Ayuda</A></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD height="56" style="TEXT-ALIGN: center"><TABLE width="100%">
<TBODY>
<TR>
<TD width="271"
style="WIDTH: 250px; BACKGROUND-COLOR: activeborder"><strong>Publicar?:</strong>
<INPUT id=rbGenero_0 tabIndex=8 type=radio
CHECKED value=s name=publicacion>
<LABEL
for=rbGenero_0>Si
<INPUT id=rbGenero_1 tabIndex=8 type=radio CHECKED
value=n name=publicacion>
No</LABEL></TD>
<TD
style="WIDTH: 211px; BACKGROUND-COLOR: activeborder"><span>
<input type="reset" name="limpiar" value="Limpiar">
<input name="inserta" type="submit" id="inserta" value="Guardar" >
</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></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>
|