Viewing file: ingresarnew.php (17.42 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../usuarios/include/session.php");
require('calendario.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
*/
?>
<!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.no.value =="")
{
window.alert('Debe ingresar el numero del acto administrativo');
f1.no.focus();
return(false);
}
if(document.forms.f1.fecha.value =="")
{
window.alert('Debe ingresar la fecha');
f1.fecha.focus();
return(false);
}
if(document.forms.f1.imagen.value =="")
{
window.alert('Debe adjuntar un archivo');
f1.imagen.focus();
return(false);
}
if(document.forms.f1.usuario.value =="")
{
window.alert('Debe ingresar el usuario');
f1.usuario.focus();
return(false);
}
if(document.forms.f1.sector.value =="")
{
window.alert('Debe ingresar el sector');
f1.sector.focus();
return(false);
}
if(document.forms.f1.direccion.value =="")
{
window.alert('Debe ingresar la dependencia que lo proyecto');
f1.direccion.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>Cuenta editada satisfactoriamente!</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");
$ano = substr($_POST['fecha'],0,4);
//echo $file;
if( $_POST['inserta'] ){
if ($_POST['tipo'] == 'AUTO')
{
$tabla = 'AUTOS';
}
else{
$tabla = 'RESOLUCIONES';
}
$sql = "select * from $tabla where id = '$_POST[id]'";
$cursor = mysql_query( $sql, $conexion );
if( mysql_fetch_array( $cursor ) )
echo " <script language='JavaScript' type='text/javascript'>
alert('Error en el acto administrativo $_POST[id]') </script>";
else{
$sql = "insert into $tabla values ('$_POST[no]','$_POST[fecha]','$_POST[resuelve]','$_POST[expediente]','$_POST[usuario]','$_POST[sector]','$_POST[subsector]','$_POST[abogado]','$_POST[direccion]','','$_POST[tipo]','$_POST[fijacion]','$_POST[desfijacion]')";
$file = "../../../resoluciones/$tabla $ano/".$_POST["no"].".pdf";
//echo $file;
move_uploaded_file($_FILES['imagen']['tmp_name'],$file.$FILES['imagen']['name']);
//echo $sql;
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)" enctype="multipart/form-data">
<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 width="834" height="437"
colSpan=3 style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana" border=2><TABLE width="829">
<TBODY>
<TR>
<TD width="821"
align=middle
style="FONT-SIZE: 10pt; COLOR: black; HEIGHT: 18px; BACKGROUND-COLOR: #cccccc"><strong>Formulario de Ingreso Actos Administrativos: <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 autorizada 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>Actos Administrativos</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%" height="61">
<TBODY>
<TR>
<TD width="201" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>No. </strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Fecha * </strong></TD>
<TD width="261" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Titulo*</strong></TD>
<TD width="231" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Tipo</strong>* </TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=no id=no tabIndex=1 size="5"
maxLength=5 ></TD>
<TD width="79" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fecha" type="text" id="fecha" size="10" maxlength="10" readonly="readonly" tabIndex="2" /> </TD>
<TD width="26" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><a onclick="show_calendar()" style="cursor: pointer;"><small><img src="../images/calendario.png" width="32" height="32" /></small></a>
<div id="calendario">
<?php calendar_html() ?>
</div></TD>
<TD
align=middle style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<textarea name="resuelve" cols="40" id="resuelve" tabindex="3" ></textarea>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><SELECT
name=tipo
id=tipo tabIndex=4 value="" maxLength=200>
<option value="AUTO">AUTO</option>
<option value="RESOLUCION">RESOLUCION</option>
</SELECT>
</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD
style="FONT-SIZE: 8pt; COLOR: white; BACKGROUND-COLOR: #8EE910"><TABLE width="92%">
<TBODY>
<TR>
<TD style="HEIGHT: 15px"
align=middle><div align="left"></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%" height="64">
<TBODY>
<TR>
<TD width="215" bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 15px; BACKGROUND-COLOR: activeborder" ><strong>Sector*</strong></TD>
<TD width="72" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Subsector</strong> </TD>
<TD width="232" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Usuario *</strong> </TD>
<TD width="137" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Expediente</strong> </TD>
<TD width="126" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Abogado </strong></TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><select size="1" name="sector" id="sector" tabindex="5">
<option value="" selected="selected"></option>
<option value="Competencia-Estructura">COMPETENCIA-ESTRUCTURA</option>
<option value="SILVICULTURA">SILVICULTURA</option>
<option value="VERTIMIENTOS">VERTIMIENTOS</option>
<option value="PEV">PUBLICIDAD EXTERIOR VISUAL</option>
<option value="AIRE">AIRE</option>
<option value="RUIDO">RUIDO</option>
<option value="RESIDUOS">RESIDUOS</option>
<option value="MINERIA">MINERIA</option>
</select></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="subsector" maxlength="10" size="10" onBlur="return document.MM_returnValue" type="text" id="subsector" tabindex="6" ></TD>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 214px; HEIGHT: 26px"><span style="HEIGHT: 26px">
<INPUT
name=usuario
id=usuario tabIndex=7 size="20" maxLength=60>
</span></TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=expediente
id=expediente tabIndex=8 maxLength=50>
</TD>
<TD align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><INPUT
name=abogado
id=abogado tabIndex=9 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>Notificación por Aviso</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="202" bgcolor="#D4D0C8" style="WIDTH: 150px; HEIGHT: 15px; BACKGROUND-COLOR: activeborder "><strong>Dependencia *</strong></TD>
<TD bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Cargar Archivo</strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Fijación</strong></TD>
<TD colspan="2" bgcolor="#D4D0C8" style="HEIGHT: 15px ; BACKGROUND-COLOR: activeborder "><strong>Desfijación</strong></TD>
</TR>
<TR>
<TD
align=middle bgcolor="#D4D0C8" style="WIDTH: 198px; HEIGHT: 26px"><INPUT name=direccion id=direccion tabIndex=10 size="35"
maxLength=60></TD>
<TD width="255" align=left bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="imagen" type="file" size="30" tabindex="11" /> </TD>
<TD width="130" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="fijacion" type="text" id="fijacion" size="10" maxlength="10" readonly="readonly" tabindex="12" /></TD>
<TD width="214" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><a onclick="show_calendarf()" style="cursor: pointer;"><small><img src="../images/calendario.png" width="32" height="32" /></small></a>
<div id="calendariof">
<?php calendar_htmlf() ?>
</div></TD>
<TD width="130" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><input name="desfijacion" type="text" id="desfijacion" size="10" maxlength="10" readonly="readonly" tabindex="13" /></TD>
<TD width="214" align=middle bgcolor="#D4D0C8" style="HEIGHT: 26px"><a onclick="show_calendard()" style="cursor: pointer;"><small><img src="../images/calendario.png" width="32" height="32" /></small></a>
<div id="calendariod">
<?php calendar_htmld() ?>
</div></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD height="56" style="TEXT-ALIGN: center"><TABLE width="100%">
<TBODY>
<TR>
<TD width="282"
style="WIDTH: 250px; BACKGROUND-COLOR: activeborder"> </TD>
<TD width="238"
style="WIDTH: 211px; BACKGROUND-COLOR: activeborder"><span>
<input type="reset" name="limpiar" value="Limpiar" tabindex="14">
<input name="inserta" type="submit" id="inserta" value="Guardar" tabindex="15" >
</span></TD>
<TD width="295"
colSpan=2 style="BACKGROUND-COLOR: activeborder"><input type="button" name="limpiar2" value="Volver al menu principal" onClick="location.href='../admin.php'" tabindex="16"></TD>
</TR>
</TBODY>
</TABLE> </TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
</form>
</div>
</div>
<?php
}
}
?>
<div class="footer">
<i class="c1">·</i>
Copyright © 2011
<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>
|