<?php
session_start();
header("Cache-Control:no-cache");
header("Pragma:no-cache");

require_once("../../class_folder/dao/sps_pro_personal_dao.php");

$ls_operacion = "scroll";

if (array_key_exists("operacion",$_GET))
{ 
	$ls_operacion = $_GET["operacion"]; 
}

$lo_dao = new sps_pro_personal_dao();

$ls_salida    = "";

if ($ls_operacion=="ue_inicializar")
{
	  require_once("../../../shared/class_folder/JSON.php");
	  $lo_json = new JSON();
	  $lb_hay = $lo_dao->getNominas("ORDER BY codnom",$la_nominas);
	  if ($lb_hay)
		$ls_salida = $lo_json->encode($la_nominas);		
}
elseif ($ls_operacion=="ue_ver_personal")
{
  $lb_hay = $lo_dao->getPersonalliq("ORDER BY p.codper ASC",$la_datos,$_GET["cedper"],$_GET["nomper"],$_GET["apeper"],$_GET["codnom"]);
  if (!$lb_hay)
  {
<?php
session_start();
header("Cache-Control:no-cache");
header("Pragma:no-cache");


require_once("../../class_folder/dao/sps_pro_personal_dao.php");

$ls_operacion = "scroll";

if (array_key_exists("operacion",$_GET))
{ 
	$ls_operacion = $_GET["operacion"]; 
}

$lo_dao  = new sps_pro_personal_dao();

$ls_salida    = "";

if ($ls_operacion=="ue_inicializar")
{
	  require_once("../../../shared/class_folder/JSON.php");
	  $lo_json = new JSON();
	  $lb_hay = $lo_dao->getNominas("ORDER BY codnom",$la_nominas);
	  if ($lb_hay)
		$ls_salida = $lo_json->encode($la_nominas);		
}
elseif ($ls_operacion=="ue_ver_personal")
{ 
  //$lb_hay = $lo_dao->getPersonal("ORDER BY p.codper ASC",$_GET["cedper"],$_GET["nomper"],$_GET["apeper"],$_GET["codnom"],$la_datos);
  $lb_hay = $lo_dao->getPersonal("ORDER BY p.codper ASC","7416573","","","",$la_datos);