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();
|
2018-11-28 10:40:43 +00:00
|
|
|
include ('librerias/parsedown/Parsedown.php');
|
2018-07-01 22:21:48 +00:00
|
|
|
require ('funciones/funciones.php');
|
|
|
|
require ('funciones/convert.php');
|
2018-11-28 10:40:43 +00:00
|
|
|
//require ("includes/markdown.php");
|
2018-07-01 22:21:48 +00:00
|
|
|
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-26 03:18:45 +00:00
|
|
|
@$datos['pagina']=$_REQUEST['pagina'];
|
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'])){
|
2018-10-27 15:45:02 +00:00
|
|
|
// if($_REQUEST['formato']=='li'){
|
2018-10-25 17:10:42 +00:00
|
|
|
//$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);
|
2018-11-29 12:07:52 +00:00
|
|
|
|
|
|
|
echo array_linea($array,$_REQUEST['formato'],$_REQUEST['id'])." ";
|
2018-11-01 23:12:52 +00:00
|
|
|
//echo "".build_list($array,$_REQUEST['formato'],$_REQUEST['id']);
|
2018-10-25 23:46:16 +00:00
|
|
|
//echo $json;
|
|
|
|
//echo planilla($datos['id'],$datos['registros'],"dinamico");
|
2018-10-27 15:45:02 +00:00
|
|
|
// }
|
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
|
|
|
?>
|