MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/www/formulario_general_verificacion_disponibilidad.php
<?php 
  require_once("mainfile.php");
   include ("config.php");
   require_once("Conectarse.php");



$Recordset1 = mysql_query('SELECT * FROM Usuarios WHERE (Cargo="ABOGADO") order by Nombre_Completo'); 


$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);

////////////////

$Recordset2 = mysql_query('SELECT * FROM sucursal order by nombre'); 
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
////////////////  

	
		
$control = mysql_query('SELECT sucursal,funcionario,actividad,hora,fecha,verificacion FROM control_disponibilidad WHERE id= "'.$_GET["id"].'"');  
		  if (!$control) {   
				die('Invalid query 0: ' . mysql_error());
			}	
   
list($sucursal,$funcionario,$actividad,$hora,$fecha,$verificacion) = mysql_fetch_row($control);




?>

<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;}
-->
</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="75%" bgcolor="#EFEFEF" align="center" border="5" cellspacing="0" cellpadding="6">
 <tr>
   <td align="center" bgcolor="#306090"><big style="color:#FFFFFF"><b>VERIFICACION DISPONIBILIDAD</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>  -->
 
     <form method="post" name="frm" onSubmit="return Verificar()">
       <table width="562" border="2" cellspacing="5" bgcolor="#EFEFEF">

       
  <tr>
  <td align="right"><b>Sucursal:</b></td>
  <td><input type="text" name="sucursal" value="<? echo $sucursal ?>"size="50" maxlength="40" readonly></td>
   </tr>      
 
       
         <tr>
  <td align="right"><b>Funcionario:</b></td> 
  <td><input type="text" name="funcionario"  value="<? echo $funcionario?>"size="50" maxlength="40" readonly></td>
       </tr>
       

  
    
       <tr>
  <td align="right"><b>Verificacion:</b></td>
  <td><input type="text" name="actividad"   value="<? echo $verificacion?> "size="10" readonly></td>
       </tr>
       
        <tr>
  <td align="right"><b>Hora:</b></td>
  <td><input type="text" name="hora"   value="<? echo $hora?> "size="10" readonly></td>
       </tr>
       
 <tr>
  <td align="right"><b>Fecha:</b></td>
  <td><input type="text" name="fecha"   value="<? echo $fecha?> "size="10" readonly></td>
       </tr>
       

   </table><br>
 
       
     <!--
     <b>Descripcion de Disponibilidad</b><br>
     <textarea name="solucion" cols="90" rows="6"  ><? echo $actividad ?></textarea readonly><br><br>
 
     -->
     
   <!--  <input name="guardar" type="submit" class="Estilo53" id="guardar" value="Verificado" />
 
  -->
     </form>
 
   </td>
 </tr>
      </table><br>
 
    </td>
  </tr>
 
 
  <td height="22" colspan="2" bgcolor="#EFEFEF" class="fecha"><div align="center">
  
  <input name="button" type="button" class="polici" onClick="javascript:window.close()" value="Cerrar">
    </div></td> 
 <br>   
 
 <tr>
    <td height="60" align="center" bgcolor="#000052"><b style="font-size:7.5p;color:#FFFFFF">VERIFICACION ACTUACIONES</b></td>
  </tr> 
</table>

</body>
</html>

<?
		
/*	

if(isset($_POST["guardar"]))
{
	
  $fechast = date("y").'-'.date("m").'-'.date("d");
  $time =time();

$hora=date("H:i:s",$time);
$hora = Time() + (60 *60 * 1);   
$hora=date('H:i:s',$hora);


/////////////
$controlusua = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$_POST["funcionario"].'" ');
		  if (!$controlusua) {
				die('Invalid query 1: ' . mysql_error());
			}
		
		$num=mysql_num_rows($controlusua); 
		
		list($nombreusuar) = mysql_fetch_row($controlusua);	
/////////////



$mssql3 = mysql_query("UPDATE control_disponibilidad set estado= '1' WHERE id= '" . $_GET["id"]."'" );

				if (!$mssql3) { // esto es para que aparescan los errores
				die('Invalid query csql: ' . mysql_error()); 
							} 
	   $csql7 = mysql_query("INSERT INTO actuaciones_disponibilidad (sucursal,actuaciones,fecha,funcionario,hora) VALUES ('".$_POST["sucursal"]."','".$_POST["solucion"]."','".$fechast."','".$_POST["funcionario"]."' ,'".$hora."')");					
	   
	echo "<script>alert('Los datos fueron Guardados');</script>";	
	echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";  
	   
	   
	
}
*/
  
?>

<?php


$result= mysql_query('SELECT id,actuaciones,fecha,funcionario,hora,funcionario_supervisor FROM actuaciones_disponibilidad WHERE funcionario = "'.$funcionario.'" order by fecha ');
			if (!$result) {
				die('Error de consulta: ' . mysql_error());
			}
if(mysql_num_rows($result) != 0)
{
   echo "<table width=750 border=16 align=center cellpadding=1 cellspacing=1>
 
  <tr align=center>
 
    <td width='400' class=polici>Actuaci&oacute;n</td>
    <td width='75' class=polici>Fecha</td>
    <td width='65' class=polici>Funcionario Supervisor</td>
	<td width='65' class=polici>Hora Registro</td>

  </tr>";

   while(list($id,$actuacion,$fecha,$funcionario,$hora,$funsuper) = mysql_fetch_row($result))
   {
       
		echo  "<tr class=lista><td align=center>$actuacion</td>
		<td align=center>$fecha</td>
		<td align=center>$funsuper</td>
		<td align=center>$hora</td></tr>";
   }
}
?>
</table>