File: /home/asjudine/www/formulario_arancel_judicial.php
<?php
require_once("mainfile.php");
include ("config.php");
require_once("Conectarse.php");
/*
$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE (codigo="472" || codigo="555" || codigo="642" || codigo="668" || codigo="695" || codigo="564" || codigo = "565") ORDER BY Nombre_Completo ');
*/
$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE (codigo = 733 || codigo = 734 || codigo = 735 || codigo= 736 || codigo= 738 || codigo= 749 || codigo= 759) ORDER BY Nombre_Completo');
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
$control = mysql_query('SELECT cedula,numero_proceso,tipo_proceso,numero_contrato,valorarancel,nombre,contenido,tipo FROM procesos WHERE cedula = "'.$_GET["cedula"].'" and numero_proceso = "'.$_GET["numproceso"].'" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($cedula, $numero_proceso, $tipo_proceso, $numero_contrato, $valor_arancel) = mysql_fetch_row($control);
$controlcar = mysql_query('SELECT nombre,celular,email,direccion,ciudad,telefono FROM cartera_serviasjudinet WHERE cedula = "'.$_GET["cedula"].'"');
if (!$controlcar) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($controlcar);
list($nombrecartera,$celularalt,$correoalt,$dirresidencia,$ciuresidencia,$telefonofijo) = mysql_fetch_row($controlcar);
?>
<html>
<head>
<title>Registro de Formulario Juridico</title>
<style type="text/css">
<!--
img {border: 0}
body,td {font-family: Verdana,Arial; font-size: 8pt; color: #000000}
input,select {font-family: Verdana,Arial; font-size: 7.5pt}
a:link, a:visited {text-decoration: none; color: #2030F0}
a:hover, a:active {text-decoration: underline; color: #D02010}
body table tr td table tr td form table {
font-size: 14px;
font-family: Georgia, "Times New Roman", Times, serif;
}
body table tr td table tr td form table tr td div strong {
font-size: 10pt;
}
body table tr td table tr td form table tr td div strong {
font-size: 9pt;
}
body table tr td table tr td form table tr td b {
font-size: 9pt;
}
body table tr td table tr td form table tr td div {
font-size: 7pt;
}
.polici {background-color: #FFCC66; font-size: 14px; font-family: Arial; color: #000099; width:10px display: block;}
.polici2 {background-color: #306090; font-size: 14px; font-family: Arial; color: #FFFFFF; width:10px display: block;}
-->
</style>
<script>
function Verificar() {
if(document.frm.funcionario.value == "") {
alert("Por Favor Seleccione Funcionario");
document.frm.funcionario.focus();
return false;
}
if(document.frm.nombre.value == "") {
alert("Por Favor Escriba El Nombre");
document.frm.nombre.focus();
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<br>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<br>
<table width="100%" height="75%" bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" valign="top">
<table width="70%" border="0" cellspacing="0" cellpadding="0">
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="100%" bgcolor="#EFEFEF" align="center" border="5" cellspacing="0" cellpadding="6">
<tr>
<td align="center" bgcolor="#306090"><big style="color:#FFFFFF"><b>Arancel Judicial</b></big></td>
</tr>
<tr>
<td align="center" colspan="2">
<script>
function Verificar() {
if(document.frm.apellidos.value == "") {
alert("Por Favor Escriba Los Apellidos");
document.frm.apellidos.focus();
return false;
}
if(document.frm.nombre.value == "") {
alert("Por Favor Escriba El Nombre");
document.frm.nombre.focus();
return false;
}
if(document.frm.ced.value == "") {
alert("Por Favor Escriba El Numero De Cedula");
document.frm.ced.focus();
return false;
}
if(document.frm.ecivil.value == "") {
alert("Por Favor Escriba El Estado Civil");
document.frm.ecivil.focus();
return false;
}
if(document.frm.funcionario.value == "") {
alert("Por Favor Seleccione El Funcionario");
document.frm.funcionario.focus();
return false;
}
return true;
}
</script>
<form method="post" name="frm" onSubmit="return Verificar()">
<table border="0" bgcolor="#EFEFEF" cellspacing="5">
<!--<td><div align="right"><strong> Fecha Registro</strong></div></td>
<td><div align="left">
<input name="dia2" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly>
<input name="mes2" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly>
<input name="ano2" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly>
</div></td>
</tr> -->
<tr>
<td align="right"><b>Cedula de Ciudadania:</b></td>
<td><input type="text" name="ced" value="<? echo $cedula?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Nombre:</b></td>
<td><input type="text" name="nombre" value="<? echo $nombrecartera?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Numero proceso:</b></td>
<td><input type="text" name="num_proceso" value="<? echo $numero_proceso?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Numero Contrato:</b></td>
<td><input type="text" name="num_contrato" value="<? echo $numero_contrato?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Valor Arancel:</b></td>
<td><input type="text" name="nombre" value="<? echo $valor_arancel?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Descargar Arancel:</b></td>
<td colspan="1" bgcolor="#EFEFEF" align="left"><center><span class="label2"><?php
echo "<a href='descargar_archivos_arancel.php?cedula=$cedula&num=$numero_proceso'>Realizar Descarga</a>"?></span></center></td>
</tr>
</table>
</body>
</html>
<?
?>
</table>