Viewing file: adicionar_gestores.php (28.33 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//prevents caching
header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: post-check=0, pre-check=0",false);
session_cache_limiter();
session_start();
require('config.php');
require('functions.php');
//this is group name or username of the group or person that you wish to allow access to
// - please be advise that the Administrators Groups has access to all pages.
/*
if (allow_access(gestores) != "yes")
{
include ('no_access.php');
exit;
}
*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Secretaría Distrital de Ambiente</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1458662-7";
urchinTracker();
</script>
<script language="JavaScript">
function echeck(str) {
var at="@"
var dot="."
var lat=str.indexOf(at)
var lstr=str.length
var ldot=str.indexOf(dot)
if (str.indexOf(at)==-1){
alert("El email no es valido")
return false
}
if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
alert("El email no es valido")
return false
}
if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
alert("El email no es valido")
return false
}
if (str.indexOf(at,(lat+1))!=-1){
alert("El email no es valido")
return false
}
if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
alert("El email no es valido")
return false
}
if (str.indexOf(dot,(lat+2))==-1){
alert("El email no es valido")
return false
}
if (str.indexOf(" ")!=-1){
alert("El email no es valido")
return false
}
return true
}
function validar(){
if(document.registro.identi.value==""){
alert("Por favor ingrese la identificación NIT o cédula");
document.registro.identi.focus();
document.registro.identi.style.backgroundColor="yellow";
return false;
}
if(document.registro.identificacion.value==""){
alert("Por favor ingrese la identificación NIT o cédula");
document.registro.identi.focus();
document.registro.identi.style.backgroundColor="yellow";
return false;
}
if(document.registro.acronimo.value==""){
alert("Por favor ingrese el acrónimo de la organizacion");
document.registro.acronimo.focus();
document.registro.acronimo.style.backgroundColor="yellow";
return false;
}
if(document.registro.nombre.value==""){
alert("Por favor ingrese el nombre de la organizacion");
document.registro.nombre.focus();
document.registro.nombre.style.backgroundColor="yellow";
return false;
}
if(document.registro.ncontrato.value==""){
alert("Por favor ingrese el número de contrato");
document.registro.nombre.focus();
document.registro.nombre.style.backgroundColor="yellow";
return false;
}
if(document.registro.direccion.value==""){
alert("Por favor ingrese su direccion");
document.registro.direccion.focus();
document.registro.direccion.style.backgroundColor="yellow";
return false;
}
if(document.registro.localidad.value==0)
{
alert("Seleccione una localidad");
document.registro.localidad.focus();
return false;
}
if(document.registro.territorio.value==""){
alert("Por favor ingrese el territorio");
document.registro.territorio.focus();
document.registro.territorio.style.backgroundColor="yellow";
return false;
}
if(document.registro.telefono.value==""){
alert("Por favor ingrese su numero telefonico");
document.registro.telefono.focus();
document.registro.telefono.style.backgroundColor="yellow";
return false;
}
if (isNaN(parseInt(document.registro.telefono.value))) {
alert("Ingrese solo numeros en este campo");
document.registro.telefono.focus();
document.registro.telefono.style.backgroundColor="yellow";
return false;
}
var emailID=document.registro.email
if ((emailID.value==null)||(emailID.value=="")){
alert("Ingrese el email de la organizacion")
emailID.focus()
return false
}
if (echeck(emailID.value)==false){
emailID.value=""
emailID.focus()
return false
}
if(document.registro.aniocreacion.value==""){
alert("Por favor ingrese su email");
document.registro.email.focus();
document.registro.email.style.backgroundColor="yellow";
return false;
}
if (isNaN(parseInt(document.registro.aniocreacion.value))) {
alert("Ingrese solo numeros en este campo");
document.registro.aniocreacion.focus();
document.registro.aniocreacion.style.backgroundColor="yellow";
return false;
}
if(document.registro.nombre1.value==""){
alert("Por favor ingrese su nombre");
document.registro.nombre1.focus();
document.registro.nombre1.style.backgroundColor="yellow";
return false;
}
if(document.registro.apellido.value==""){
alert("Por favor ingrese su apellido");
document.registro.apellido.focus();
document.registro.apellido.style.backgroundColor="yellow";
return false;
}
if(document.registro.funcion.value==""){
alert("Por favor ingrese su funcion");
document.registro.funcion.focus();
document.registro.funcion.style.backgroundColor="yellow";
return false;
}
if(document.registro.email2.value==""){
alert("Por favor ingrese su email");
document.registro.email2.focus();
document.registro.email2.style.backgroundColor="yellow";
return false;
}
var emailID2=document.registro.email2
if ((emailID2.value==null)||(emailID2.value=="")){
alert("Ingrese el email de la organizacion")
emailID2.focus()
return false
}
if (echeck(emailID2.value)==false){
emailID2.value=""
emailID2.focus()
return false
}
if(document.registro.cargo.value==""){
alert("Por favor ingrese su cargo");
document.registro.cargo.focus();
document.registro.cargo.style.backgroundColor="yellow";
return false;
}
if(document.registro.organizacion.value==0)
{
alert("Seleccione una organizacion");
document.registro.organizacion.focus();
return false;
}
if(document.registro.territorios.value==0)
{
alert("Seleccione un tipo de territorio");
document.registro.territorios.focus();
return false;
}
if(document.registro.localidad1.value==0)
{
alert("Seleccione una localidad");
document.registro.localidad1.focus();
return false;
}
if ( ( document.registro.temas[0].checked == false )&& ( document.registro.temas[1].checked == false )&& ( document.registro.temas[2].checked == false )&& ( document.registro.temas[3].checked == false )&& ( document.registro.temas[4].checked == false )&& ( document.registro.temas[5].checked == false )&& ( document.registro.temas[6].checked == false )&& ( document.registro.temas[7].checked == false ))
{
alert ( "Seleccione los temas de trabajo" );
document.registro.temas[0].focus();
return false;
}
if ( ( document.registro.actividades[0].checked == false )&& ( document.registro.actividades[1].checked == false )&& ( document.registro.actividades[2].checked == false )&& ( document.registro.actividades[3].checked == false )&& ( document.registro.actividades[4].checked == false )&& ( document.registro.actividades[5].checked == false )&& ( document.registro.actividades[6].checked == false )&& ( document.registro.actividades[7].checked == false )&& ( document.registro.actividades[8].checked == false )&& ( document.registro.actividades[9].checked == false ))
{
alert ( "Seleccione las actividades" );
document.registro.actividades[0].focus();
return false;
}
if ( ( document.registro.financiamientos[0].checked == false )&& ( document.registro.financiamientos[1].checked == false )&& ( document.registro.financiamientos[2].checked == false )&& ( document.registro.financiamientos[3].checked == false )&& ( document.registro.financiamientos[4].checked == false )&& ( document.registro.financiamientos[5].checked == false )&& ( document.registro.financiamientos[6].checked == false )&& ( document.registro.financiamientos[7].checked == false )&& ( document.registro.financiamientos[8].checked == false ))
{
alert ( "Seleccione los esquemas de financiamiento" );
document.registro.financiamientos[0].focus();
return false;
}
if ( ( document.registro.material[0].checked == false )&& ( document.registro.material[1].checked == false )&& ( document.registro.material[2].checked == false )&& ( document.registro.material[3].checked == false )&& ( document.registro.material[4].checked == false )&& ( document.registro.material[5].checked == false )&& ( document.registro.material[6].checked == false )&& ( document.registro.material[7].checked == false )&& ( document.registro.material[8].checked == false )&& ( document.registro.material[9].checked == false ))
{
alert ( "Seleccione los tipos de materiales producidos" );
document.registro.material[0].focus();
return false;
}
if(document.registro.mision.value==""){
alert("Por favor ingrese la mision de la organizacion");
document.registro.mision.focus();
document.registro.mision.style.backgroundColor="yellow";
return false;
}
if(document.registro.vision.value==""){
alert("Por favor ingrese la vision de la organizacion");
document.registro.vision.focus();
document.registro.vision.style.backgroundColor="yellow";
return false;
}
if ( document.registro.verif_box.value == "" )
{
alert ( "Ingrese el codigo de verificacion" );
document.registro.verif_box.focus();
document.registro.verif_box.style.backgroundColor="yellow";
return false;
}
}
</script>
<style type="text/css">
body{ margin:0px; background-color:#EFEEEA;}
a{ text-decoration:none}
a:hover{ text-decoration:underline}
fieldset { -moz-border-radius: 8px; border-radius: px; }
.fuente{ font-family:verdana, Helvetica, sans-serif; font-size:11px; color:#666666; font-weight:normal; padding:4px}
.blanco {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bolder;
color: #FFFFFF;
background-color: #999999;
}
a{ color:#006699;}
a.fuentewhite{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #FFFFFF; text-decoration:none; padding-left:5px; padding-right:5px;
}
a.fuentewhite:hover{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #FFFFcc; text-decoration:underline; padding-left:5px
}
#caja {font-family: verdana, arial; font-size:11px; border:1px solid #999999}
.amarillo{background-image:url(/sda/libreria/jpg/new/yell.jpg); background-repeat:repeat-x}
.style1 {color: #FFFFFF}
.negra1{font-family: verdana, arial; font-size:11px}
fieldset{border: 1px solid #ccc;}
-->
</style>
<link rel="stylesheet" type="text/css" href="/sda/libreria/css/tabcontent.css" />
</HEAD>
<BODY>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="928"><tr><td style="background-image:url(/sda/libreria/jpg/new/fondoleft.jpg); background-repeat:repeat-y" width="14"></td>
<td><TABLE width="900" border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD bgColor=#7DB5C6 style="background-image:url(/sda/libreria/jpg/top08.jpg); background-repeat:no-repeat;" width="900" height="90" valign="bottom"><div align="right"><A href="/" class="fuentewhite">Inicio</A>
| <A href="/sda/libreria/php/decide.php?patron=00.01" class="fuentewhite">Mapa
del Sitio</A> | <A href="http://192.168.10.3/php/reqintranet.php" class="fuentewhite">Intranet
SDA</A></div></TD>
</TR>
<TR>
<TD align=left vAlign=top bgColor=#000000><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="73%" bgColor=#669966 background="/sda/libreria/jpg/new/bg2.gif"><img src="/sda/libreria/gif/bar2.gif" width="518" height="30" border="0" usemap="#Map"></TD>
<form name="form1" method="post" action="/sda/libreria/php/frame_buscar.php">
<TD width="27%" bgColor=#669966 background="/sda/libreria/jpg/new/bg2.gif">
<input name="buscar" type="text" size="20" id="caja">
<input type="submit" name="Submit" value="Buscar" style="font-size:10px">
<input name="accion" type="hidden" id="accion" value="1"></TD>
</form>
</TR>
<TR>
<TD colspan="2" bgColor=#FFFFFF><table width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="195" valign="top" bgcolor="#F7F7F7">
<?php include("../../php/leftmenu2.php"); ?>
</td>
<td width="705" valign="top"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="fuente" style="padding:3px;">
<tr>
<td height="45" align="left" valign="top"> <fieldset>
<legend><font color="#990000"><strong><font size="2" face="Geneva, Arial">Oficina OPEL
</font></strong></font></legend>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="39%"><font size="2" face="Arial, Verdana"><strong><img src="images/ico.jpg" width="30" height="54" hspace="6" align="left"><font color="#990000">Bienvenido
</font></strong><font color="#990000"><?php echo $_SESSION[user_name]; ?>
</font><br>
Grupo Gestores<br>
Último acceso : <?php echo $_SESSION[last_login]; ?>
</font></td>
<td width="61%" align="right"><font size="2" face="Arial, Verdana"> <!-- <a href="registro_oferta.php">Registro
de Oferta</a> | <a href="registro_informacion_local.php">Registro
información local</a> | -->
<a href="logout.php">Cerrar sesión</a> </font></td>
</tr>
</table>
<br>
<br>
<font color="#006699" size="4"><strong>Registro
Funcionario Público</strong></font><br>
<div style="padding:4px;">(*) Campos requeridos<br>
<form name="registro" onSubmit="return validar();" method="post" action="recibe_gestores.php">
<input type="hidden" value="<?php echo date("j/m/Y g:i:s a");?>" name="fecha" />
<input type="hidden" value="0" name="estado" />
<input type="hidden" value="gestores" name="group1" />
<br>
<fieldset>
<legend><strong><font color="#003333">Información
General</font></strong></legend>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<td align="right">*Nombre</td>
<td><input name="nombre" type="text" id="nombre"></td>
<td align="right">*Teléfono </td>
<td><input name="telefono" type="text" id="telefono2"></td>
</tr>
<tr>
<td align="right">*Apellido</td>
<td><input name="apellido" type="text" id="apellido"></td>
<td width="154" align="right">*No. Contrato</td>
<td width="224"><input name="ncontrato" type="text" id="fax"></td>
</tr>
<tr>
<td width="110" align="right">*Dirección</td>
<td width="187"><input name="direccion" type="text" id="direccion"></td>
<td align="right">*E-mail</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<!--
<tr>
<td align="right">*Nombre usuario</td>
<td><input name="acronimo" type="text" id="usuario"></td>
<td align="right">*Contraseña</td>
<td><input name="nombre1" type="password" id="pass"></td>
</tr>
-->
<tr>
<td align="right">*Localidad</td>
<td><select name="localidad" size="1" id="localidad" style="font-size:11px">
<option value="0" selected>Seleccione</option>
<option value="Usaquen">Usaquen
<option value="Chapinero">Chapinero</option>
<option value="Santa fe">Santa fe</option>
<option value="San Cristobal">San
cristobal</option>
<option value="Usme">Usme</option>
<option value="Tunjuelito">Tunjuelito</option>
<option value="Bosa">Bosa</option>
<option value="Kennedy">Kennedy</option>
<option value="Fontibon">Fontibon</option>
<option value="Engativa">Engativa</option>
<option value="Suba">Suba</option>
<option value="Barrios_Unidos">Barrios
unidos</option>
<option value="Teusaquillo">Teusaquillo</option>
<option value="Martires">Martires</option>
<option value="Antonio narino">Antonio
nariño</option>
<option value="Puente Aranda">Puente
aranda</option>
<option value="Candelaria">Candelaria</option>
<option value="Rafael uribe uribe">Rafael
uribe uribe</option>
<option value="Ciudad_Bolivar">Ciudad
bolivar</option>
<option value="Sumapaz">Sumapaz</option>
</select></td>
<td align="right">*Usuario función</td>
<td align="left">
<select name="usuariofuncionA" size="1" id="usuariofuncionA" style="font-size:11px">
<option value="Ninguno" selected="selected">Comité</option>
<option value="CLOPS">CLOPS</option>
<option value="CLE">CLE</option>
<option value="CLEA">CLEA</option>
<option value="CAL">CAL</option>
<option value="CIDEA">CIDEA</option>
<option value="PROCEDAS">PROCEDAS</option>
</select>
<select name="usuariofuncionB" size="1" id="usuariofuncionB" style="font-size:11px">
<option value="Ninguno" selected>Localidad</option>
<option value="Usaquen">Usaquén
<option value="Chapinero">Chapinero</option>
<option value="Santa fe">Santa fe</option>
<option value="San Cristobal">San Cristobal</option>
<option value="Usme">Usme</option>
<option value="Tunjuelito">Tunjuelito</option>
<option value="Bosa">Bosa</option>
<option value="Kennedy">Kennedy</option>
<option value="Fontibon">Fontibon</option>
<option value="Engativa">Engativa</option>
<option value="Suba">Suba</option>
<option value="Barrios Unidos">Barrios unidos</option>
<option value="Teusaquillo">Teusaquillo</option>
<option value="Martires">Martires</option>
<option value="Antonio Narino">Antonio
nariño</option>
<option value="Puente aranda">Puente
aranda</option>
<option value="Candelaria">Candelaria</option>
<option value="Rafael Uribe Uribe">Rafael
uribe uribe</option>
<option value="Ciudad Bolivar">Ciudad
bolivar</option>
<option value="Sumapaz">Sumapaz</option>
</select></td>
</tr>
<tr>
<td align="right">*Identificación</td>
<td><input name="identificacion" type="text" id="identificacion"></td>
<td align="right"> </td>
<td> </td>
<td><input name="url1" type="hidden" id="url1" value="/sda/libreria/actores/Secretariaambiente/registro_participacion_gestores.php"></td>
</tr>
<tr>
<td><input name="territorio" type="hidden" id="territorio"></td>
<td align="right"> </td>
<td> </td>
</tr>
</table>
</fieldset>
<br>
<br>
<br>
<br>
<fieldset>
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<td align="right">*Ingrese código</td>
<td>
<input name="verif_box" type="text" id="verif_box" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;" maxlength="4"/>
<img src="verificationimage.php?<?php echo rand(0,9999);?>" alt="código de verificacion" width="50" height="24" align="absbottom" /></td>
</tr>
</table>
</fieldset>
<br>
<br>
<div align="center"><input type="submit" name="Submit2" value="Enviar registro">
<input type="reset" name="Submit22" value="Borrar datos"></div>
<br>
</form>
<script language="JavaScript">
var frmvalidator = new Validator("registro");
// frmvalidator.addValidation("acronimo","req","Ingrese el acronimo de la organizacion");
frmvalidator.addValidation("nombre","req","Ingrese su nombre");
frmvalidator.addValidation("direccion","req","Ingrese su dirección");
frmvalidator.addValidation("localidad","dontselect=0","Seleccione la localidad");
//frm/rlidator.addValidation("territorio"">ÿÿtdÿÿ
grese su territorio");
frmvalidator.addValidation("telefono","numeric","Ingrese su numero telefonico");
//frmvalidator.addValidation("fax","numeric","Ingrese su numero de fax");
frmvalidator.addValidation("email","email","Ingrese su email - usuario@dominio.com");
//frmvalidator.addValidation("aniocreacion","numeric","Ingrese el año de creación");
frmvalidator.addValidation("identificacion","req","Ingrese su documento de identificación");
/*
frmvalidator.addValidation("FirstName","maxlen=20","Max length for FirstName is 20");
frmvalidator.addValidation("FirstName","alpha");
frmvalidator.addValidation("LastName","req");
frmvalidator.addValidation("LastName","maxlen=20");
frmvalidator.addValidation("Email","maxlen=50");
frmvalidator.addValidation("Email","req");
frmvalidator.addValidation("Email","email");
frmvalidator.addValidation("Phone","maxlen=50");
frmvalidator.addValidation("Phone","numeric");
frmvalidator.addValidation("Address","maxlen=50");
frmvalidator.addValidation("Country","dontselect=0");
*/
</script>
</div>
</fieldset></td>
</tr>
</table></td>
</tr>
<tr>
<td height="80" colspan="2" align="center" valign="middle" class="amarillo"><font size="1"><font face="Verdana, Arial"><strong>Secretaría
Distrital de Ambiente</strong></font></span><font face="Verdana, Arial"><br>
Cra. 6 No. 14 - 98 Pisos 2, 5, 6, 7 y 12 Torre A y
piso 3 y 4 Torre B, Edificio Condominio Parque Santander
- Conmutador: 4441030 <br>
Bogotá - Colombia<br>
<a href="mailto:webmaster@secretariadeambiente.gov.co">webmaster@secretariadeambiente.gov.co</a></font></font></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE></td><td style="background-image:url(/sda/libreria/jpg/new/rightShadow.jpg); background-repeat:repeat-y" width="14"></td></tr></table>
<map name="Map">
<area shape="rect" coords="6,8,77,19" href="/sda/libreria/php/decide.php?patron=01." alt="Secretaría de Ambiente">
<area shape="rect" coords="266,6,408,20" href="/sda/libreria/php/decide.php?patron=02." alt="Servicios al Ciudadano">
<area shape="rect" coords="98,6,240,21" href="/sda/libreria/php/decide.php?patron=03.">
<area shape="rect" coords="433,7,514,20" href="/sda/libreria/php/decide.php?patron=05." alt="En línea">
</map></BODY></HTML>
|