<?/*
Autor: Lic. Carlos Alberto Vaca Coronado
Version: 3.2.0
*/
session_name('portal_absa');session_start();if(!isset($_SESSION['usuario_p_prov_absa']) || trim($_SESSION['usuario_p_prov_absa']) == "" || trim(strtoupper($_SESSION["URL_PORTAL"]."admin.php")) != trim(strtoupper($_SERVER['HTTP_REFERER']))){?><script>window.location.href="<?=$_SESSION["URL_PORTAL"]."index.php"?>"</script><?exit;}
$_SESSION['grid_select']='grid_cfg';
?>
<script>
var query="select id,buscar,elementoattr,upload from configxml";
$j_6(document).ready(function(){
	$j_6().gridJQGrid({
	php: 'grids/recepcionGrid.php',
	headerNames: 'ID,Clave,Elemento Atributo,Ruta',
	sortname: 'id',
	idGrid: 'grid_cfg',
	idPagina: 'pagina_cfg',
	optionsCol: 'id|width: 50, search:false, frozen: true;'+
				'buscar|width: 150, search:false, frozen: true;'+
				'elementoattr|width: 150, frozen: true;'+
				'upload|width: 440',
	hiddenCol: '',
	ignoreColNamesExcel: '',
	sheetName: 'Config Recepcion',
	urlDatos: 'grids/recepcionDatosGrid.php',
	div: 'cuerpo',
	width: $j_6('#cuerpo').width(),
        //height: $j_6('#cuerpo').height(),
		height: 'auto',
	rowNum: 20,
	query: query,
	optionsForm: '',
	captionForm: '',
	tabla: 'configxml',
	reloadGridAfterSave: 'grids/rutas_recepcion.php',
	captionConfirm: '¿Esta seguro de eliminar esta configuración?',
	widthConfirm: 300,
	heightConfirm: 100,
	widthForm: 500,
	heightForm: 250,
	fileForm: 'configRecepcion.php',
	edit: true,
	add: true,
	del: true,
	formName: 'form_usuario',
	delForm: 'grids/confirmar.php'
	});
});
</script>