Viewing file: confirmacion.php (9.94 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
// Configura la información de tu cuenta
$dbhost='192.168.10.3';
$dbusername='jaime';
$dbuserpass='123';
$dbname='pev';
session_start();
// Conexión a la base de datos
$conexion = mysql_connect ($dbhost, $dbusername, $dbuserpass);
mysql_select_db($dbname) or die('Cannot select database');
if (isset($_SESSION['s_username'])) {
//echo "".$_SESSION['s_username']."";
}else{
echo "Tu no estas autentificado dirígete al administrador ";
echo $_SESSION['s_username'];
}
?>
<html>
<head>
<title>Publicidad Exterior Visual -Secretaria Distrital de Ambiente</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/miraflores.css" rel="stylesheet" type="text/css">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000" background="imagenes/107.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<img SRC="imagenes/logo.png" height=111 width=351><img SRC="imagenes/whiteblock2.gif" height=54 width=109>
<br>
<script language="JavaScript"> function escribirCMD(str){ document.CONS.CMD.value = str; if (MM_validateRequireds()) {document.CONS.submit();
} } </script>
<script language="JavaScript"> function escribirLista(str){ document.CONS.CMD.value = str; document.CONS.submit();
} </script><script language="JavaScript" type="text/javascript">
function getRequireds()
{
var vector = new Array();
return vector;
}
</script>
<script language="JavaScript" type="text/javascript">
function MM_jumpMenu(targ,selObj,restore)
{
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore)
selObj.selectedIndex=0;
}
</script>
<script language="JavaScript" src="js/script.js"></script>
<script language="JavaScript" src="js/popcalendar.js"></script>
</p><div onclick="bShow=true" id="calendar" style="z-index: 999; position: absolute; visibility: hidden;"><table style="border: 1px solid rgb(160, 160, 160); font-size: 11px; font-family: arial;" bgcolor="#ffffff" width="250"><tbody><tr bgcolor="#0000aa"><td><table width="248"><tbody><tr>
<td style="padding: 2px; font-family: arial; font-size: 11px;"><font color="#ffffff"><b><span id="caption"><span id="spanLeft" style="border: 1px solid rgb(51, 102, 255); cursor: pointer;" onmouseover='swapImage("changeLeft","left2.gif");this.style.borderColor="#88AAFF";window.status="Haga click para pasar al mes anterior."' onclick="javascript:decMonth()" onmouseout='clearInterval(intervalID1);swapImage("changeLeft","left1.gif");this.style.borderColor="#3366FF";window.status=""' onmousedown='clearTimeout(timeoutID1);timeoutID1=setTimeout("StartDecMonth()",500)' onmouseup="clearTimeout(timeoutID1);clearInterval(intervalID1)"> <img id="changeLeft" src="initservice_files/left1.gif" border="0" height="11" width="10"> </span> <span id="spanRight" style="border: 1px solid rgb(51, 102, 255); cursor: pointer;" onmouseover='swapImage("changeRight","right2.gif");this.style.borderColor="#88AAFF";window.status="Haga click para pasar al siguiente mes."' onmouseout='clearInterval(intervalID1);swapImage("changeRight","right1.gif");this.style.borderColor="#3366FF";window.status=""' onclick="incMonth()" onmousedown='clearTimeout(timeoutID1);timeoutID1=setTimeout("StartIncMonth()",500)' onmouseup="clearTimeout(timeoutID1);clearInterval(intervalID1)"> <img id="changeRight" src="imagenes/right1.gif" border="0" height="11" width="10"> </span> <span id="spanMonth" style="border: 1px solid rgb(51, 102, 255); cursor: pointer;" onmouseover='swapImage("changeMonth","drop2.gif");this.style.borderColor="#88AAFF";window.status="Haga click para seleccionar un mes."' onmouseout='swapImage("changeMonth","drop1.gif");this.style.borderColor="#3366FF";window.status=""' onclick="popUpMonth()"></span> <span id="spanYear" style="border: 1px solid rgb(51, 102, 255); cursor: pointer;" onmouseover='swapImage("changeYear","drop2.gif");this.style.borderColor="#88AAFF";window.status="Haga click para seleccionar un año."' onmouseout='swapImage("changeYear","drop1.gif");this.style.borderColor="#3366FF";window.status=""' onclick="popUpYear()"></span> </span></b></font></td>
<td align="right"><a href="javascript:hideCalendar()"><img src="imagenes/close.gif" alt="Cerrar el calendario" border="0" height="13" width="15"></a></td>
</tr></tbody></table></td></tr><tr><td style="padding: 5px;" bgcolor="#ffffff"><span id="content"></span></td></tr><tr bgcolor="#f0f0f0"><td style="padding: 5px;" align="center"><span id="lblToday">Hoy es <a onmousemove='window.status="Ir al mes actual"' onmouseout='window.status=""' title="Ir al mes actual" style="text-decoration: none; color: black;" href="javascript:monthSelected=monthNow;yearSelected=yearNow;constructCalendar();">Lun, 17 Sep 2007</a></span></td></tr></tbody></table></div><div id="selectMonth" style="z-index: 999; position: absolute; visibility: hidden;"></div><div id="selectYear" style="z-index: 999; position: absolute; visibility: hidden;"></div><script type="text/javascript">
function displayHelp(helpId)
{
mensaje = "?helpId=" + String(helpId);
window.open("/cav2/helpviewerservlet" + mensaje, "", "toolbar=no,scrollbars=yes");
}
</script>
<script language="JavaScript" type="text/JavaScript">
function MM_confirme(unMensaje)
{
var confirmo;
confirmo = confirm(unMensaje);
return confirmo;
}
</script>
<script language="JavaScript" type="text/JavaScript">
function escribirNavBar(str1,str2)
{
document.CONS.NAVBAR.value = str1;
document.CONS.NAVBAR_SECTION_NAME.value = str2;
document.CONS.submit();
}
</script>
<form action='consulta.php' method='POST'>
<center>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="100%" >
<tr VALIGN=TOP>
<td VALIGN=TOP WIDTH="177"><img SRC="imagenes/button2.jpg" height=50 width=168><img SRC="imagenes/button2.jpg" height=50 width=168><img SRC="imagenes/abogados.gif" width=168 height=50 border="0"><img SRC="imagenes/button3.png" height=50 width=168><a href="consultar.php"><img SRC="imagenes/button2.png" width=168 height=50 border="0"></a></td>
<td> <?
if( $inserta ){
$fecha_rad=$FECHAINICONSULTAPROCESO;
$fecha_ct=$FECHAFINCONSULTAPROCESO;
//echo "insert into concepto_tecnico values ($id...$emp_id...$registro...$radicado...$fecha_rad...$direccion_ele...$localidad...$ct...$fecha_ct...$fecha_con...$solicitud...$placa_veh...$num_caras...$dimensiones...$suj_req";
$sql = "select * from concepto_tecnico where id ='$id'";
$cursor = mysql_query( $sql, $conexion );
if( mysql_fetch_array( $cursor ) )
echo "<h3> Ya existe $ct ....</h3> ";
else{
$sql = "insert into concepto_tecnico values ('$id','$emp_id','$registro','$radicado','$fecha_rad','$direccion_ele','$localidad','$ct','$fecha_ct','$fecha_con','$solicitud','$placa_veh','$num_caras','$dimensiones','$suj_req')";
if( mysql_query ( $sql, $conexion ) ){
echo "<h3> Registro ingresado....</h3>";
}
}
}
if( $inserta1 ){
$acto_adm=$acto.' '.$adm;
$recurso=$rec.' de '.$FECHA;
//echo "$ct_id...$cc_id...$tipo_elemento...$tramite...$acto_adm...$fecha_adm...$notificacion...$recurso...$sechac...$ejecutoria...$oceca...$des_eje";
$sql = "select * from acto_adm where acto_adm ='$acto_adm' and fecha_adm ='$fecha_adm'";
$cursor = mysql_query( $sql, $conexion );
if( mysql_fetch_array( $cursor ) )
echo "<h3> Ya existe Acto administrativo $acto_adm ....</h3> ";
else{
$sql = "insert into acto_adm values ('','$identificador_id','$ct_id','$cc_id','$asunto','$tipo_elemento','$tramite','$acto_adm','$fecha_adm','$notificacion','$recurso','','$sechac','$ejecutoria','$oceca','$des_eje')";
if( mysql_query ( $sql, $conexion ) ){
echo "<h3> Registro ingresado....</h3>";
}
}
}
if( $inserta2 ){
//echo "$ct_id...$cc_id...$tipo_elemento...$tramite...$acto_adm...$fecha_adm...$notificacion...$recurso...$sechac...$ejecutoria...$oceca...$des_eje";
$sql = "update acto_adm set notificacion='$notificacion',ejecutoria='$ejecutoria' where id = '$id'";
if( mysql_query ( $sql, $conexion ) ){
echo "<h3> Registro ingresado....</h3>";
}
else
echo " <h3> Error Al actualizar... </h3>";
}
if( $actualiza1 ){
//echo "$ct_id...$cc_id...$tipo_elemento...$tramite...$acto_adm...$fecha_adm...$notificacion...$recurso...$sechac...$ejecutoria...$oceca...$des_eje";
//echo "$ct_id...$cc_id...$tipo_elemento...$tramite...$acto_adm...$fecha_adm...$notificacion...$recurso...$sechac...$ejecutoria...$oceca...$des_eje";
$sql = "update acto_adm set identificador_id='$identificador_i',ct_id='$ct_id',cc_id='$cc_id',asunto='$asunto',tipo_elemento='$tipo_elemento',tramite='$tramite',acto_adm='$acto_adm',fecha_adm='$fecha_adm',recurso='$recurso',sechac='$sechac',oceca='$oceca',des_eje='$des_eje' where id = '$id'";
if( mysql_query ( $sql, $conexion ) ){
echo "<h3> Registro actualizado....</h3>";
}
else
echo " <h3> Error Al actualizar... </h3>";
}
?> </td>
</tr>
</table></td>
</tr>
<tr>
<td></td>
<td><img SRC="imagenes/whiteblock2.gif" height=2 width=536></td>
</tr>
</table>
</form>
<br>
<br><tt><font size=-2></font></tt>
<br><font size=-2></font>
<br><font size=-2></font>
<br><font size=-2></font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="100%" HEIGHT="300" >
<tr>
<td></td>
<td></td>
</tr>
</table></center>
<br>
<br>
<br>
<br>
<br>
</body>
</html>
|