Viewing file: ingresar.php (18.5 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");
require('calendario.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>
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">
<script type="text/javascript" src="../js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="../js/jquery.functions.js"></script>
<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['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)" style="background-color:#ooo">
<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: #1C3606"><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: #1C3606"><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 bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Radicado de Entrada* </TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Fecha de Radicado* </TD>
<TD bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Solicitante*</TD>
<TD width="175" bgcolor="#D4D0C8" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Cargo*</TD>
<TD width="447" bgcolor="#D4D0C8" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Entidad*</TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=radicado_entrada class="fundamentals" id=radicado_entrada tabIndex=1 size="12"
maxLength=12></TD>
<TD width="74" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_entrada" type="text" class="fundamentals" id="fecha_entrada" tabIndex="2" size="15" maxlength="10" readonly="readonly" /></TD>
<TD width="34" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><a onclick="show_calendar()" style="cursor: pointer;"><small><img src="../images/calendario.png" width="29" height="28" class="fundamentals"/></small></a>
<div id="calendario">
<?php calendar_html() ?>
</div></TD>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<INPUT
name=solicitante class="fundamentals"
id=solicitante tabIndex=4 size="40" maxLength=50>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=cargo class="fundamentals"
id=cargo tabIndex=4 value="" maxLength=200>
</TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=entidad class="fundamentals"
id=entidad tabIndex=4 size="28" maxLength=200>
</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="FONT-SIZE: 8pt; COLOR: white; BACKGROUND-COLOR: #1C3606"><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; TEXT-ALIGN: center; background-color:#FFFFFF;"><TABLE width="100%">
<TBODY>
<TR>
<TD width="206" bgcolor="#E6E6E6" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >No. </TD>
<TD colspan="2" bgcolor="#E6E6E6" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Fecha de Concepto </TD>
<TD width="363" bgcolor="#E6E6E6" style="WIDTH: 214px; HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Objeto</TD>
<TD width="557" bgcolor="#E6E6E6" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Abogado</TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=no class="fundamentals" id=no tabIndex=1 size="12"
maxLength=12></TD>
<TD width="74" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_concepto" type="text" class="fundamentals" id="fecha_concepto" tabIndex="2" size="15" maxlength="10" readonly="readonly" /></TD>
<TD width="34" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><a onclick="show_calendarf()" style="cursor: pointer;"><small><img src="../images/calendario.png" width="29" height="28" class="fundamentals" /></small></a>
<div id="calendariof">
<?php calendar_htmlf() ?>
</div></TD>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<textarea name="objeto" cols="60" rows="2" class="fundamentals" id="objeto" tabindex="4"></textarea>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=abogado class="fundamentals"
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: #1C3606"><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="206" bgcolor="#D4D0C8" style="WIDTH: 150px; HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Radicado de Salida </TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Fecha de Radicado</TD>
<TD width="198" bgcolor="#D4D0C8" style="HEIGHT: 15px; background-color:#E0E0E0; border: grey 1px solid;" >Vinculo</TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=radicado_salida class="fundamentals" id=radicado_salida tabIndex=1 size="12"
maxLength=12></TD>
<TD width="74" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha_salida" type="text" class="fundamentals" id="fecha_salida" tabIndex="2" size="15" maxlength="10" readonly="readonly" /></TD>
<TD width="34" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><a onclick="show_calendard()" style="cursor: pointer;"><small><img src="../images/calendario.png" width="29" height="28" class="fundamentals" /></small></a>
<div id="calendariod">
<?php calendar_htmld() ?>
</div></TD>
<TD width="955" align=left bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="vinculo" type="file" class="fundamentals" id="vinculo" size="100" maxlength="100"></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD style="COLOR: white; BACKGROUND-COLOR: #1C3606"><TABLE width="100%">
<TBODY>
<TR>
<TD align=middle><div align="left">Observaciones</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 colspan="3" style="WIDTH: 163px" bgcolor="#D4D0C8"><span class="Estilo2">
<textarea name="observaciones"
cols="114"
rows="2" class="fundamentals"
id="field_4_3" tabindex="10"
dir="ltr"
onpropertychange="return unNullify('resuelve', '0')"
></textarea>
</span></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD style="COLOR: white; BACKGROUND-COLOR: #1C3606"><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 © 2014
<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>
|