2018-07-01 22:21:48 +00:00
|
|
|
<?php
|
|
|
|
session_start();
|
2018-10-25 17:10:42 +00:00
|
|
|
ini_set('display_errors', 'On');
|
2018-07-01 22:21:48 +00:00
|
|
|
|
|
|
|
require ('xajax/xajax.inc.php');
|
|
|
|
$xajax = new xajax();
|
|
|
|
require ('funciones/funciones.php');
|
|
|
|
require ('funciones/convert.php');
|
|
|
|
require ("includes/markdown.php");
|
|
|
|
require ("funciones/conex.php");
|
2018-10-25 17:10:42 +00:00
|
|
|
@$datos['id']=$_REQUEST['id'];
|
|
|
|
@$datos['identificador']=$_REQUEST['identificador'];
|
|
|
|
@$datos['dato']=$_REQUEST['dato'];
|
|
|
|
@$datos['inicio']=$_REQUEST['inicio'];
|
|
|
|
@$datos['fin']=$_REQUEST['fin'];
|
|
|
|
@$datos['tipo']=$_REQUEST['tipo'];
|
2018-10-25 23:46:16 +00:00
|
|
|
@$datos['registros']=$_REQUEST['registros'];
|
2018-10-25 17:10:42 +00:00
|
|
|
|
|
|
|
@$datos['proyecto']=$_REQUEST['proyecto'];
|
|
|
|
if($datos['proyecto']==""){
|
|
|
|
$proyecto= remplacetas('form_id','id',$datos['id'],'id_empresa',"") ;
|
|
|
|
$datos['proyecto']= $proyecto[0] ;
|
|
|
|
|
|
|
|
}
|
|
|
|
@$datos['formato']=$_REQUEST['formato'];
|
2018-07-02 17:49:58 +00:00
|
|
|
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');
|
|
|
|
}
|
2018-10-25 17:10:42 +00:00
|
|
|
|
|
|
|
if(isset($_REQUEST['formato'])){
|
|
|
|
if($_REQUEST['formato']=='li'){
|
|
|
|
//$array = aplicaciones_listado($datos['id'],'','array','');
|
|
|
|
//print_r($array);//echo "hola li";
|
2018-10-25 23:46:16 +00:00
|
|
|
$json= json($datos);
|
|
|
|
$array = json_decode($json);
|
|
|
|
echo build_list($array);
|
|
|
|
//echo $json;
|
|
|
|
//echo planilla($datos['id'],$datos['registros'],"dinamico");
|
2018-10-25 17:10:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
2018-07-01 22:21:48 +00:00
|
|
|
header('Content-Type: application/json');
|
|
|
|
//echo "hola /// $_REQUEST[id] // " ;
|
2018-07-02 17:49:58 +00:00
|
|
|
echo json($datos);
|
2018-10-25 17:10:42 +00:00
|
|
|
}
|
2018-07-01 22:21:48 +00:00
|
|
|
?>
|