Viewing file: modifica_Lider_por_organizaciones.php (54.97 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.
$tipousuario=$_SESSION[group1];
if ($tipousuario=="gestores")
{
$regreso="registro_participacion_gestores.php";
} elseif ($tipousuario=="funcionarios") {
$regreso="registro_participacion_funcionarios.php";
} else {
$regreso="registro_experiencias.php";
}
?>
<!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.usuario.value==""){
alert("Por favor ingrese un nombre de usuario");
document.registro.usuario.focus();
document.registro.usuario.style.backgroundColor="yellow";
return false;
}
if(document.registro.pass.value==""){
alert("Por favor ingrese una contraseña");
document.registro.pass.focus();
document.registro.pass.style.backgroundColor="yellow";
return false;
}
var minLength = 6;
if (document.registro.pass.value.length < minLength) {
alert('Su contraseña debe tener como mínimo ' + minLength + ' caracteres.');
return false;
}
if(document.registro.pass2.value==""){
alert("Por favor ingrese una contraseña");
document.registro.pass2.focus();
document.registro.pass2.style.backgroundColor="yellow";
return false;
}
if(document.registro.pass2.value!=document.registro.pass.value){
alert("Los valores de las contraseñas no coinciden");
document.registro.pass.focus();
document.registro.pass.style.backgroundColor="yellow";
return false;
}
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.acronimo.value==""){
alert("Por favor ingrese la sigla 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.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 la fecha de creacion");
document.registro.aniocreacion.focus();
document.registro.aniocreacion.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.localidad.value==0)
{
alert("Seleccione una localidad");
document.registro.localidad.focus();
return false;
}
//if (!( document.registro.temas[0].checked||document.registro.temas[1].checked||document.registro.temas[2].checked||document.registro.temas[3].checked ||document.registro.temas[4].checked||document.registro.temas[5].checked||document.registro.temas[6].checked||document.registro.temas[7].checked||document.registro.temas[8].checked||document.registro.temas[9].checked||document.registro.temas[10].checked||document.registro.temas[11].checked||document.registro.temas[12].checked||document.registro.temas[13].checked))
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 )&& ( document.registro.temas[8].checked == false)&& ( document.registro.temas[9].checked == false)&& ( document.registro.temas[10].checked == false)&& ( document.registro.temas[11].checked == false)&& ( document.registro.temas[12].checked == false)&& ( document.registro.temas[13].checked == false))
{
alert ( "Seleccione los temas" );
document.registro.temas[0].focus();
return false;
}
if ( ( document.registro.temas_14.checked == true ) && (document.registro.otros_temas.value==""))
{
alert("Ingrese otro tema");
document.registro.otros_temas.focus();
return false;
}
//if (!( document.registro.actividades[0].checked||document.registro.actividades[1].checked||document.registro.actividades[2].checked||document.registro.actividades[3].checked ||document.registro.actividades[4].checked||document.registro.actividades[5].checked||document.registro.actividades[6].checked||document.registro.actividades[7].checked||document.registro.actividades[8].checked))
//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 ))
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))
{
alert ( "Seleccione las actividades" );
document.registro.actividades[0].focus();
return false;
}
if ( ( document.registro.actividades[7].checked == true ) && (document.registro.otros_actividades.value==""))
{ alert("Ingrese otras actividades");
document.registro.otros_actividades.focus();
return false;
}
/*if(document.registro.organizaciones_integradas.value=="")
{
alert("Ingrese las organizaciones integradas a la red");
document.registro.organizaciones_integradas.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 )&& ( document.registro.financiamientos[9].checked == false )&& ( document.registro.financiamientos[10].checked == false ))
{
alert ( "Seleccione los esquemas de financiamiento" );
document.registro.financiamientos[0].focus();
return false;
}
if ( ( document.registro.financiamientos[9].checked == true ) && (document.registro.otros_financiamientos.value==""))
{ alert("Ingrese otros financiamientos");
document.registro.otros_financiamientos.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 ))
{
alert ( "Seleccione los tipos de materiales producidos" );
document.registro.material[0].focus();
return false;
}
if ( ( document.registro.material[7].checked == true ) && (document.registro.materiales.value==""))
{ alert("Ingrese otros materiales");
document.registro.otros_materiales.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;
}
return true;
}
function habilitar1()
{
var form = document.registro;
form.otros_temas.disabled = false;
}
function habilitar2()
{
var form = document.registro;
form.otros_actividades.disabled = false;
}
function habilitar3()
{
var form = document.registro;
form.otros_financiamientos.disabled = false;
}
function habilitar4()
{
var form = document.registro;
form.otros_materiales.disabled = 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(images/yell.jpg); background-repeat:repeat-x}
.style1 {color: #FFFFFF}
.negra1{font-family: verdana, arial; font-size:11px}
fieldset{border: 1px solid #ccc;}
-->
</style>
<?php
/*
$ide = $_GET['id'];
if (!isset($_GET['id'])){
echo ("<script language=javascript>alert('No existen experiencias registradas para su organización');window.location='registro_experiencias.php';</script>");
}
*/
require_once('conn/conexion.php');
/*
if($_GET['id']==0){
$sql ="SELECT * FROM experiencias";
$result = @mysql_query($sql,$link) or die(mysql_error());
}
else{
$sql ="SELECT * FROM experiencias WHERE id_organizacion = $ide";
$result = @mysql_query($sql,$link) or die(mysql_error());
}
*/
$usuarioC=$_SESSION[user_name];
$sql ="SELECT * FROM reg_organizaciones where user='$usuarioC';";
$result = @mysql_query($sql,$link) or die(mysql_error());
//$sql ="SELECT * FROM experiencias WHERE id_organizacion = $ide";
//$result = @mysql_query($sql,$link) or die(mysql_error());
?>
<?php
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$var1=$row['user'];
$var2=$row['pass'];
$var3=$row['identi'];
$var4=$row['fecha'];
$var5=$row['acronimo'];
$var6=$row['nombre'];
$var7=$row['direccion'];
$var8=$row['localidad'];
$var9=$row['territorio'];
$var10=$row['telefono'];
$var11=$row['fax'];
$var12=$row['email'];
$var12B=$row['web'];
$var12A=explode('-',$var12B);
$var13=$row['aniocreacion'];
$var14=$row['nombre1'];
$var15=$row['apellido'];
$var16=$row['funcion'];
$var17=$row['email2'];
$var18=$row['cargo'];
$var19=$row['comm'];
$var20=$row['organizacion'];
$var21=$row['actividades'];
$var22=$row['financiamientos'];
$var23=$row['material'];
$var24=$row['mision'];
$var25=$row['vision'];
$var26=$row['estado'];
$var27=$row['id_gestor'];
$var28=$row['otr1'];
$var29=$row['otr2'];
$var30=$row['otr3'];
$var31=$row['id'];
$var32=$row['ip'];
$var35=$row['temas'];
$var36=$row['funcionariocreador'];
//echo "<INPUT type='text' name='nombre' value='".$a."'>";
/*
echo "<tr><td>". "<INPUT type='text' name='nombre' value='".$var1."'>"."</td><td>" .
"<INPUT type='text' name='nombre' value='".$var2."'>"."</td><td>"."<INPUT type='text' name='nombre' value='".$var3."'>"."</td><td>".
"<INPUT type='text' name='nombre' value='".$var4."'>".
"</td><td>"."<INPUT type='text' name='nombre' value='".$var5."'>"."</td></tr>";
*/
//"Message : {$row['tipo']} <br><br>";
}
//echo "<INPUT type='SUBMIT' name='PREVISUALIZAR' value='<---'>";
//echo "$a $b $c $d $e";
?>
<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 width="14" style="background-image:url(/sda/libreria/jpg/new/fondoleft.jpg); background-repeat:repeat-y"></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="http://www.secretariadeambiente.gov.co/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="http://www.secretariadeambiente.gov.co/sda/libreria/jpg/new/bg2.gif"><img src="http://www.secretariadeambiente.gov.co/sda/libreria/gif/bar2.gif" width="518" height="30" border="0" usemap="#Map"></TD>
<form name="form1" method="post" action="http://www.secretariadeambiente.gov.co/sda/libreria/php/frame_buscar.php">
<TD width="27%" bgColor=#669966 background="http://www.secretariadeambiente.gov.co/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>
<!-- <div align="right"><a href="javascript:void(0);" onClick="history.back();">«Regresar </a></div> -->
<p align="right"><a href="<?php echo $regreso; ?>">«Regresar</a></p>
<font color="#006699" size="4"><strong>Registro
de organizaciones</strong></font><br>
<div style="padding:4px;">(*) Campos requeridos<br>
<div style="padding:4px;"><strong>Persona Natural</strong><br>
<form name="registro" onSubmit="return validar();" method="POST" action="recibe_modifica_organizaciones_Lider.php">
<input type="hidden" value="<?php echo date("Y-m-j");?>" name="fecha" />
<input type="hidden" value="0" name="estado" />
<input type="hidden" value="organizaciones" name="group1" />
<input type="hidden" value="/sda/libreria/actores/Secretariaambiente/registro_experiencias.php" name="url1" />
<br>
<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 de usuario</td>
<td><input name="usuario" type="text" id="usuario" maxlength="15" value="<?php echo $var1;?>" disabled></td>
<td colspan="2" align="left"> </td>
</tr>
<tr>
<td align="right">*Contraseña</td>
<td><input name="pass" type="password" id="pass" maxlength="8" value="<?php echo $var2;?>"></td>
<td colspan="2" align="left">*Confirmar
contraseña
<input name="pass2" type="password" id="pass2" maxlength="8" value="<?php echo $var2;?>"></td>
</tr>
<tr>
<td align="right"><strong>*</strong>NIT
o cédula</td>
<td>
<input name="identi" type="text" id="identi2" value="<?php echo $var3;?>"></td>
<td colspan="2" align="left"> </td>
</tr>
<!-- <tr>
<td align="right"><strong>*</strong>Sigla</td>
<td>
<input name="acronimo" type="text" id="acronimo2" value="<?php //echo $var5;?>"></td>
<td colspan="2" align="left"> </td>
</tr> -->
<tr>
<td width="133" align="right">*Nombre completo</td>
<td width="191"><input name="nombre" type="text" id="nombre" value="<?php echo $var6;?>"></td>
<td align="right">*Teléfono </td>
<td><input name="telefono" type="text" id="telefono2" value="<?php echo $var10;?>"></td>
</tr>
<tr>
<td align="right">*Dirección</td>
<td><input name="direccion" type="text" id="direccion" value="<?php echo $var7;?>"></td>
<td width="127" align="right">Fax</td>
<td width="224"><input name="fax" type="text" id="fax" value="<?php echo $var11;?>"></td>
</tr>
<tr>
<td align="right">*Localidad</td>
<td>
<script language="JavaScript">
function setOptions(selbox, chosen) {
var selbox = selbox;
selbox.options.length = 0;
if (chosen == "0") {
selbox.options[selbox.options.length] = new Option('Seleccione una localidad',' ');
}
if (chosen == "Usaquen") {
selbox.options[selbox.options.length] = new Option('CERROS ORIENTALES','CERROS ORIENTALES');
selbox.options[selbox.options.length] = new Option('BORDE NORTE','BORDE NORTE');
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
selbox.options[selbox.options.length] = new Option('HUMEDALES','HUMEDALES');
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
}
if (chosen == "Chapinero") {
selbox.options[selbox.options.length] = new Option('CERROS ORIENTALES','CERROS ORIENTALES ');
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
}
if (chosen == "Santa Fe") {
selbox.options[selbox.options.length] = new Option('CERROS ORIENTALES','CERROS ORIENTALES');
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
}
if (chosen == "San Cristobal") {
selbox.options[selbox.options.length] = new Option('CERROS ORIENTALES','CERROS ORIENTALES');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
}
if (chosen == "Usme") {
selbox.options[selbox.options.length] = new Option('CERROS ORIENTALES','CERROS ORIENTALES');
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
}
if (chosen == "Tunjuelito") {
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
}
if (chosen == "Bosa") {
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('HUMEDALES','HUMEDALES');
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
}
if (chosen == "Kennedy") {
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('HUMEDALES','HUMEDALES');
}
if (chosen == "Fontibon") {
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('HUMEDALES','HUMEDALES');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
}
if (chosen == "Engativa") {
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('HUMEDALES','HUMEDALES');
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
}
if (chosen == "Suba") {
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('BORDE NORTE','BORDE NORTE');
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
selbox.options[selbox.options.length] = new Option('HUMEDALES','HUMEDALES');
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
}
if (chosen == "Barrios unidos") {
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
}
if (chosen == "Teusaquillo") {
selbox.options[selbox.options.length] = new Option('RIO SALITRE','RIO SALITRE');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
}
if (chosen == "Martires") {
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
}
if (chosen == "Antonio Nariño") {
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
}
if (chosen == "Puente aranda") {
selbox.options[selbox.options.length] = new Option('RIO BOGOTÁ','RIO BOGOTA');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
}
if (chosen == "Candelaria") {
selbox.options[selbox.options.length] = new Option('CERROS ORIENTALES','CERROS ORIENTALES');
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
}
if (chosen == "Rafael uribe uribe") {
selbox.options[selbox.options.length] = new Option('RIO FUCHA','RIO FUCHA');
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
}
if (chosen == "Ciudad bolivar") {
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
}
if (chosen == "Sumapaz") {
selbox.options[selbox.options.length] = new Option('PARAMOS Y RURALIDAD','PARAMOS Y RURALIDAD');
selbox.options[selbox.options.length] = new Option('RIO TUNJUELO','RIO TUNJUELO');
}
}
</script>
<select name="localidad" size="1" id="localidad" style="font-size:11px" onchange="setOptions(document.registro.territorio,document.registro.localidad.options[document.registro.localidad.selectedIndex].value);">
<option value="<?php echo $var8;?>" selected><?php echo $var8;?></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 Nariño">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">*E-mail</td>
<td><input name="email" type="text" id="email" value="<?php echo $var12;?>"></td>
</tr>
<tr>
<td align="right">*Territorio</td>
<td>
<select name="territorio" size="1" id="territorio" style="font-size:11px">
<option value="<?php echo $var9;?>" selected="selected"><?php echo $var9;?></option>
</select><br>
</td>
<td align="right"><strong>*</strong>Comité</td>
<td align="left">
<select name="sitiowebA" size="1" id="sitiowebA" style="font-size:11px">
<option value="<?php echo $var12A[0];?>" selected="selected"><?php echo $var12A[0];?></option>
<option value="Ninguno">Ninguno</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="sitiowebB" size="1" id="sitiowebB" style="font-size:11px">
<option value="<?php echo $var12A[1];?>" selected><?php echo $var12A[1];?></option>
<option value="Ninguno">Ninguno</option>
<option value="Usaquen">Usaquén</option>
<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">*Año de creación</td> -->
<td><input name="aniocreacion" type="hidden" id="aniocreacion2" size="10" maxlength="4" value="0000"></td>
<td align="right"> </td>
<td> </td>
</tr>
</table>
</fieldset>
<!-- <fieldset>
<legend><strong><font color="#000000">Persona
de contacto</font></strong></legend>
<br> -->
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<!-- <td width="98" align="right">*Nombre</td> -->
<td width="228"><input name="nombre1" type="hidden" id="nombre1" value="<?php //echo $var14;?>"></td>
<!-- <td width="68" align="right">*E-mail</td> -->
<td width="281"><input name="email2" type="hidden" id="email22" value="<?php //echo $var17;?>"></td>
</tr>
<tr>
<!-- <td align="right">*Apellido</td> -->
<td><input name="apellido" type="hidden" id="nombre13" value="<?php //echo $var15;?>"></td>
<!-- <td align="right">*Cargo</td> -->
<td><input name="cargo" type="hidden" id="cargo" value="<?php //echo $var18;?>"></td>
</tr>
<tr>
<!-- <td align="right">*Función</td> -->
<td><input name="funcion" type="hidden" id="nombre14" value="<?php //echo $var16;?>"></td>
<!-- <td> </td>
<td> </td> -->
</tr>
<tr>
<!-- <td align="right">Comentarios</td>
<td><textarea name="comentarios" id="nombre15"><?php //echo $var19;?></textarea></td>
<td> </td>
<td> </td> -->
</tr>
</table>
<!-- </fieldset> -->
<!--
<fieldset> -->
<!--
<legend><strong>
<font color="#000000">Otros datos</font></strong></legend>
<br>
-->
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr> <!-- Comentario
<td align="right">*Tipo de organización</td> -->
<input type="hidden" name="organizacion" value="<?php echo $var20;?>">
<!--
<td><select size="1" name="organizacion" style="font-size:11px">
<option value="0" selected>Seleccione</option>
<option value="instituto_investigacion">Instituto
de Investigación</option>
<option value="organizacion_no_gubernamental">Organización
No Gubernamental</option>
<option value="organizacion_social_comunitaria">Organización
Social Comunitaria</option>
<option value="instancia_participacion">Instancia
de Participación</option>
<option value="organizacion_internacional">Organización
Internacional</option>
<option value="organizacion_publica">Organización
Publica</option>
<option value="universidad">Universidad</option>
<option value="empresa_privada">Empresa
Privada</option>
<option value="grupo_ciudadanos">Grupo
de Ciudadanos</option>
<option value="red_ambiental">Red ambiental</option>
<option value="religiosas_confesionales">Organizaciones religiosas o confesionales</option>
</select></td>
</tr>
<tr>
<br>
<td align="right">*Tipos de actor</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="3" style="font-size:11px">
<tr> -->
<input type="hidden" name="tipos[]" value="Empresa" id="tipos">
<!--
<td width="49%"><input type="checkbox" name="tipos[]" value="Lider_ciudadano" id="tipos">
Lider ciudadano</td>
<td><input type="checkbox" name="tipos[]" value="instituto_de_educacion_jardin_infantil" id="tipos">
Instituto de educación jardín infantil </td>
</tr>
<tr>
<td width="51%"><input type="checkbox" name="tipos[]" value="Grupo_de_ciudadanos" id="tipos">
Grupo de ciudadanos </td>
<td><input type="checkbox" name="tipos[]" value="instituto_de_educacion_basica" id="tipos">
Instituto de educación básica </td>
</tr>
<tr>
<td><input type="checkbox" name="tipos[]" value="instituto_de_investigación" id="tipos">
Instituto de investigación </td>
<td><input type="checkbox" name="tipos[]" value="instituto_de_educacion_media" id="tipos">
Instituto de educación media </td>
</tr>
<tr>
<td><input type="checkbox" name="tipos[]" value="organizacion_no_gubernamental" id="tipos">
Organización no gubernamental</td>
<td><input type="checkbox" name="tipos[]" value="instituto_de_educacion_tecnica" id="tipos">
Instituto de educación técnica </td>
</tr>
<tr>
<td><input type="checkbox" name="tipos[]" value="empresa_privada" id="tipos">
Empresa privada </td>
<td><input type="checkbox" name="tipos[]" value="instituto_de_educacion_tecnologica" id="tipos">
Instituto de educación tecnológica </td>
</tr>
<tr>
<td><input type="checkbox" name="tipos[]" value="organizacion_publica" id="tipos">
Organización pública</td>
<td><input type="checkbox" name="tipos[]" value="instituto_de_educacion_universitaria" id="tipos">
Instituto de educación universitaria </td>
</tr>
<tr>
<td><input type="checkbox" name="tipos[]" value="organizacion_privada" id="tipos">
Organización privada</td>
</tr>
<tr>
</tr>
</table></td>
</tr> -->
<!--
<tr>
<td colspan="2"><hr size="1" noshade></td>
</tr>
-->
<tr>
<?php
$aTemas = array("produccion_limpia","humedales","desarrollo_rural_paramos","bosques","politica_ambiental","flora_y_fauna",
"participacion","residuos_solidos","recuperacion","medios_de_comunicacion_ambiental","ecosistemas","espacio_publico",
"veedurias","financiamiento","recuperacion_conservacion_cuencas","otros");
$dbtemas= explode(',',$var35);
?>
<!-- <td align="right"><strong>*Temas de trabajo</strong></td> -->
<td><table width="100%" border="0" cellspacing="0" cellpadding="3" style="font-size:11px">
<tr>
<?php
/*
foreach ($aTemas as $var35) {
if(in_array($var35,$dbtemas)) {
echo "<tr><input name='temas[]' type='checkbox' value='N/A' CHECKED>". "$var35</tr>";
} else
{
echo "<tr><input name='temas[]' type='checkbox' value='N/A'>". "$var35 </tr>";
}
} */
?>
</tr>
</table></td>
</tr>
<!--
<tr>
<td colspan="2"><hr size="1" noshade></td>
</tr>
-->
<tr>
<?php
$aActividades = array("intervencion_directa","trabajo_en_red","promocion","coordinacion_investigacion",
"investigacion","fortalecimiento_capacidades","formacion","financiamiento","apoyo_proyectos",
"otros_actividades","grupos de presion","intercambio_informaciones","organizaciones_integradas");
$dbactividades= explode(',',$var21);
?>
<!-- <td align="right"><strong>*Actividades</strong></td> -->
<td><table width="100%" border="0" cellspacing="0" cellpadding="3" style="font-size:11px">
<tr>
<?php
/*
foreach ($aActividades as $var21) {
if(in_array($var21,$dbactividades)) {
echo "<tr><input name='actividades[]' type='checkbox' value='N/A' CHECKED>". "$var21</tr>";
} else
{
echo "<tr><input name='actividades[]' type='checkbox' value='N/A'>". "$var21</tr>";
}
} */
?>
</tr>
</table></td>
</tr>
<!--
<tr>
<td colspan="2"><hr size="1" noshade></td>
</tr>
-->
<tr>
<?php
$aFinanciamientos= array("Organizacion Internacional","Donaciones","Gobierno Nacional","Empresa privada","Gobierno departamental",
"Gobierno Distrital","Venta material producido","Gobierno Local","Colectividad local",
"Org. recaudadora de fondos","otros_financiamientos");
$dbfinanciamientos= explode(',',$var22);
?>
<!-- <td align="right"> <br> <br> <br><strong>
*Fuentes de financiación</strong><br> <br> <br> <br>
<br> <br> <br> </td> -->
<td><table width="100%" border="0" cellspacing="0" cellpadding="3" style="font-size:11px">
<tr>
<?php
/*
foreach ($aFinanciamientos as $var22) {
if(in_array($var22,$dbfinanciamientos)) {
echo "<tr><input name='financiamientos[]' type='checkbox' value='N/A' CHECKED>". "$var22</tr>";
} else
{
echo "<tr><input name='financiamientos[]' type='checkbox' value='N/A'>". "$var22</tr>";
}
} */
?>
</tr>
</table></td>
</tr>
<!--
<tr>
<td colspan="2"><hr size="1" noshade></td>
</tr>
-->
<tr>
<?php
$aMaterial= array("Material Audiovisual","Boletín de informativo","Informes","Programa de Radio",
"Publicaciones","Periódico","Sitio Internet","Otros");
$dbmaterial= explode(',',$var23);
?>
<!-- <td align="right"><strong> *Material producido</strong><br> -->
<br>
</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="3" style="font-size:11px">
<tr>
<?php
/*
foreach ($aMaterial as $var23) {
if(in_array($var23,$dbmaterial)) {
echo "<tr><input name='material[]' type='checkbox' value='N/A' CHECKED>". "$var23</tr>";
} else
{
echo "<tr><input name='material[]' type='checkbox' value='N/A'>". "$var23</tr>";
}
}
*/
?>
</tr>
</table></td>
</tr>
<!--
<tr>
<td colspan="2"><hr size="1" noshade></td>
</tr>
-->
<!--
<tr>
<td align="right"><strong> *Misión </strong></td>
<td><textarea name="mision" id="mision" cols="40" rows="5"><?php //echo $var24;?></textarea></td>
</tr>
-->
<!--
<tr>
<td align="right"><strong>*Visión</strong></td>
<td><textarea name="vision" id="vision" cols="40" rows="5" ><?php //echo $var25;?></textarea></td>
</tr>
-->
</fieldset>
<tr>
<td align="right"><strong>*Ingrese código</strong></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></div></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(http://www.secretariadeambiente.gov.co/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="http://www.secretariadeambiente.gov.co/sda/libreria/php/decide.php?patron=01." alt="Secretaría de Ambiente">
<area shape="rect" coords="266,6,408,20" href="http://www.secretariadeambiente.gov.co/sda/libreria/php/decide.php?patron=02." alt="Servicios al Ciudadano">
<area shape="rect" coords="98,6,240,21" href="http://www.secretariadeambiente.gov.co/sda/libreria/php/decide.php?patron=03.">
<area shape="rect" coords="433,7,514,20" href="http://www.secretariadeambiente.gov.co/sda/libreria/php/decide.php?patron=05." alt="En línea">
</map></BODY></HTML>
|