Viewing file: crear_instancia.php (26.09 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;
}
*/
?>
<?php
/*
require_once('conn/conexion.php');
//$sql ="SELECT * FROM reg_organizaciones WHERE identi= '$_POST[identi]' or user = '$_POST[usuario]' or acronimo = '$_POST[acronimo]'";
$sql ="SELECT * FROM reg_organizaciones WHERE identi= '$_POST[identi]' or user = '$_POST[usuario]'";
$result = @mysql_query($sql,$link) or die(mysql_error());
//get the number of rows in the result set
$num = mysql_num_rows($result);
//checks it see if that username already exists
if ($num != 0){
echo "<P>Lo sentimos ya se encuentra registrado en el sistema</P>";
echo "<P><a href=\"#\" onClick=\"history.back()\">Regresar</a></p>";
exit;
}else{
*/
?>
<!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>
<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> -->
<div align="right"><a href="menu_registro_instancia.php">«Regresar</a></div>
<font color="#006699" size="4"><strong>Creación de Instancias</strong></font><br>
<div style="padding:4px;">(*) Campos requeridos<br>
<div style="padding:4px;"><strong></strong><br>
<form name="registro" onSubmit="return validar();" method="POST" action="">
<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>
<?php
//include("select_multiple_participantes.php");
?>
<fieldset>
<legend><strong><font color="#003333">Selección Participantes</font></strong></legend>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<td width="228">
<input name="nombre1" type="hidden" id="nombre1" value=" ">
</td>
<td width="281">
<input name="email2" type="hidden" id="email2" value=" ">
</td>
</tr>
<tr>
<td>
<input name="apellido" type="hidden" id="nombre13" value=" ">
</td>
<td>
<input name="cargo" type="hidden" id="cargo" value=" "> </td>
</tr>
<tr>
<td>
<input name="funcion" type="hidden" id="nombre14" value=" ">
</td>
</tr>
<tr>
</tr>
</table>
<?php
include("select_multiple.php");
?>
<!--
<fieldset>
<legend><strong><font color="#003333">Información
General Persona Natural</font></strong></legend>
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<td><input name="funcionariocreador" type="hidden" id="funcionariocreador" size="30" value="<?php echo $_SESSION[user_name]; ?>"></td>
</tr>
</table>
</fieldset>
-->
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<td width="228">
<input name="nombre1" type="hidden" id="nombre1" value=" ">
</td>
<td width="281">
<input name="email2" type="hidden" id="email2" value=" ">
</td>
</tr>
<tr>
<td>
<input name="apellido" type="hidden" id="nombre13" value=" ">
</td>
<td>
<input name="cargo" type="hidden" id="cargo" value=" "> </td>
</tr>
<tr>
<td>
<input name="funcion" type="hidden" id="nombre14" value=" ">
</td>
</tr>
<tr>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="font-size:11px">
<tr>
<input type="hidden" name="organizacion" value="persona_natural" id="organizacion">
<input type="hidden" name="tipos[]" value="N/A" id="tipos">
<input type="hidden" name="temas[]" value="N/A" id="temas">
</tr>
<tr>
<td colspan="2">
</tr>
<tr> <input type="hidden" name="actividades[]" value="N/A" id="tipos">
<input type="hidden" name="financiamentos[]" value="N/A" id="tipos">
<input type="hidden" name="material[]" value="N/A" id="material">
<input type="hidden" name="mision" value="N/A" id="mision">
<input type="hidden" name="vision" value="N/A" id="vision">
<!--
<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="Verificar Información"> -->
<!-- <input type="reset" name="Submit22" value="Borrar datos"> --></div>
<br></form></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(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>
|