Viewing file: quejas2006.php (13.23 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$ses = isset($usuario);
if ($ses == false) {
$usuario = "EMAIL";
}
$de = isset($loc);
if ($de == false) {
$loc = 0;
}
$db = "sia";
$c1 = OciLogon("EMAIL","EMAIL2003",$db);
?>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>Formulario de Quejas y Reclamos...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_jumpMenuGo(selName,targ,restore){ //v3.0
var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
function YY_checkform() { //v4.71
//copyright (c)1998,2002 Yaromat.com
var a=YY_checkform.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;
for (i=1; i<a.length;i=i+4){
if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false}
o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));
o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));
v=o.value;t=a[i+2];
if (o.type=='text'||o.type=='password'||o.type=='hidden'){
if (r&&v.length==0){err=true}
if (v.length>0)
if (t==1){ //fromto
ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true}
} else if (t==2){
rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true;
} else if (t==3){ // date
ma=a[i+1].split("#");at=v.match(ma[0]);
if(at){
cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];
dte=new Date(cy,cm,cd);
if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};
}else{err=true}
} else if (t==4){ // time
ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}
} else if (t==5){ // check this 2
if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];
if(!o1.checked){err=true}
} else if (t==6){ // the same
if(v!=MM_findObj(a[i+1]).value){err=true}
}
} else
if (!o.type&&o.length>0&&o[0].type=='radio'){
at = a[i].match(/(.*)\[(\d+)\].*/i);
o2=(o.length>1)?o[at[2]]:o;
if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
if (t==2){
oo=false;
for(j=0;j<o.length;j++){oo=oo||o[j].checked}
if(!oo){s+='* '+a[i+3]+'\n'}
}
} else if (o.type=='checkbox'){
if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}
} else if (o.type=='select-one'||o.type=='select-multiple'){
if(t==1&&o.selectedIndex/1==0){err=true}
}else if (o.type=='textarea'){
if(v.length<a[i+1]){err=true}
}
if (err){s+='* '+a[i+3]+'\n'; err=false}
}
if (s!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+s)}
document.MM_returnValue = (s=='');
}
//-->
</script>
</head>
<body topmargin="0" link="#F97C00" vlink="#000000">
<table border="0" width="687" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0"
bordercolor="#FFFFFF">
<tr>
<td width="100%" colspan="2"><img src="../ince/encabe4.gif" width="744" height="70"
alt="encabe.gif (14884 bytes)"></td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"><p align="right"><a href="http://www.dama.gov.co"><img src="../ince/back.gif"
width="73" height="16" alt="Regresar al Home..." align="left" border="0"></a></td>
</tr>
<tr>
<td width="100%" colspan="2"><div align="center"><img src="../ince/qyr.gif" width="500" height="99"></div></td>
</tr>
</table>
<form name="form1" method="post" action="reqanonydo.php">
<p>
<table border="0" width="90%" cellspacing="1" cellpadding="5" bordercolor="#FFFFFF">
<tr>
<td colspan="2" align="center" bgcolor="#FF0000"> <div align="left"><font face="Arial Black" color="#FFFFFF"><small>Datos
del Solicitante, <font size="2" face="Arial, Helvetica, sans-serif"><strong>Llene
los que conozca...</strong></font></small></font></div></td>
</tr>
<tr>
<td width="33%" valign="top"><div align="right"></div></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Nombre Completo:</font></div></td>
<td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="nombre" type="text" id="nombre" size="50" maxlength="50">
</font></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Tipo
de documento:<br>
<select name="kindid" id="select">
<option value="cc">Cédula de Ciudadanía</option>
<option value="ti">Tarjeta de Identidad</option>
<option value="ce">Cédula de Extranjería</option>
</select>
</font></div></td>
<td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Número:<br>
<input name="id" type="text" id="id" size="20" maxlength="20">
</font></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Dirección:</font></div></td>
<td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="direccion" type="text" id="direccion" size="60" maxlength="100">
</font></td>
</tr>
<tr>
<td valign="top"><div align="right"><small><small><font size="2"
face="Verdana, Arial, Helvetica, sans-serif"> Teléfono:</font></small></small></div></td>
<td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="telefono" type="text" id="telefono2" size="15" maxlength="15">
</font></font></font></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Correo
electrónico:</font></div></td>
<td valign="top"><font face="Verdana, Arial, Helvetica, sans-serif"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="2">
<input name="email" type="text" id="email" size="40">
</font></font></font></td>
</tr>
<tr>
<td colspan="2" valign="top"> <p align="center">
<input type="checkbox" name="checkbox" value="checkbox">
Deseo registrar esta queja como usuario anónimo <font face="Verdana, Arial, Helvetica, sans-serif"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="2">
</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
</font></font></font></p></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FF9900"><font face="Arial Black" color="#FFFFFF"><small>Datos
del Presunto Infractor</small></font></td>
</tr>
<tr>
<td valign="top"><div align="right"><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Localidad</font>:</div></td>
<td valign="top"><select name="loc" onChange="MM_jumpMenu('parent',this,0)">
<?php
$stmt = ociparse($c1,"SELECT LOCALIDAD_ID, NOMBRE FROM envista.LOCALIDAD ORDER BY LOCALIDAD_ID");
$result = OCIExecute($stmt);
while (OCIFetchInto($stmt, $cur)) {
$il = $cur[0];
$nl = $cur[1];
if ($loc == 0) {
echo "<option value=\"2006reqanony.php?loc=$il&nombre=$nombre\">$nl</option>";
}else{
if ($il == $loc) {
echo "<option value=\"2006reqanony.php?loc=$il\">$nl</option>";
}
}
}
?>
</select> <input name="localidad" type="hidden" id="localidad" value="<?php echo $loc; ?>"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">Barrio: </font>
<select name="barrio" id="barrio">
<?php
if ($loc == 0) {
?>
<option value="0">Ninguno</option>
<?php
}else{
$stmt = ociparse($c1,"SELECT BARRIO_ID, DESCRIPCION FROM SIA_BARRIO ORDER BY DESCRIPCION");
$result = OCIExecute($stmt);
while (OCIFetchInto($stmt, $cur)) {
$ib = $cur[0];
$nb = $cur[1];
echo "<option value=\"$ib\">$nb</option>";
}
}
?>
</select></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
</font><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Nombres o Razón Social:</font></div></td>
<td valign="top"><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="razoninfra" type="text" id="razoninfra" size="50">
</font></div></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
</font><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Dirección del Infractor:</font></div></td>
<td valign="top"><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="dirinfra" type="text" id="dirinfra" size="50">
</font></div></td>
</tr>
<tr>
<td valign="top"><div align="right"><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Clase:</font></div></td>
<td valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<select name="clase">
<option value="0">SELECCIONE EL TIPO DE INFRACCIÓN</option>
<?php
$stmt = ociparse($c1,"SELECT OBJETO_DESC, TIPO_DESC, CODIGO, INFRACCION_ID FROM SIA_INFRACCION order by objeto_desc");
$result = OCIExecute($stmt);
while (OCIFetchInto($stmt, $cur)) {
$un = $cur[0];
$do = $cur[1];
$tr = $cur[3];
$st = $un . "-" . $do;
echo "<option value=\"$tr\">$st</option>";
}
?>
</select>
</font></td>
</tr>
<tr>
<td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Descripción
de la queja:</font></div></td>
<td valign="top"><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="observaciones" cols="50" id="observaciones"></textarea>
<input type="hidden" name="usuario" value="<?php echo $usuario; ?>">
</font></div></td>
</tr>
<tr bordercolor="#999999">
<td height="97" valign="top" bordercolor="#FFFFFF"> <p align="center"><font face="Arial"><small><small><img
src="../ince/logalc.gif" width="80" height="85" alt="logalc.gif (3822 bytes)"></small></small></font></td>
<td height="97" valign="top" bordercolor="#CCCCCC"> <p align="center">
<input name="Submit" type="submit" onClick="YY_checkform('form1','nombre','#q','0','DEBE ESCRIBIR SU NOMBRE','id','#q','0','DEBE DIGITAR EL NÚMERO DE SU DOCUMENTO','email','S','2','Field \'email\' is not valid.','loc','#q','1','DEBE SELECCIONAR LA LOCALIDAD DEL INFRACTOR','barrio','#q','1','Field \'barrio\' is not valid.','clase','#q','1','DEBE SELECCIONAR UN TIPO DE INFRACCIÓN','observaciones','10','1','DEBE ESCRIBIR LA QUEJA');return document.MM_returnValue" value="Enviar mi queja o reclamo.">
</p>
<p><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Los campos marcados con asterisco son indespensables.</font></p>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Todos los
Derechos Reservados para el DAMA.<br>
El presente servicio es un producto del Sistema de Información
del DAMA - SIA<br>
Bogotá, 2003.</font></p></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
|