require_once('../include/orm.php'); require_once('../include/globals.php'); require_once('../include/util.php'); $_mail_index_db_connected = $Link == ''; if($_mail_index_db_connected) $Link = connectDb(); define('DBCONNECTED', 1); debugstartpage(); if( isset($_x) ) { //if( $_x != '' ) { $_x = $_x == '' ? array() : StringTokenize($_x, ","); $_result = array(); $_result['version'] = array('actual' => 1553); $_result['visibility'] = array(); $_initialvars = arrayExclude(get_defined_vars(), array("_*", "form_*", "s_*", "GLOBALS", "Link", "thisname")); } require('../main/base.events.php'); // isbasewindow: // On Refresh do { if(in('folderscount', $_x)) { $folders = array(); $counts = array(); $__tempresult = sqlexec($Link, "select folder, count(*) from cmactiv where tipo = 'I' and (leidopor is null or leidopor not like '%" . mysql_escape($s_contacto) . "%') and ( ('" . mysql_escape($s_versolo) . "' != 'yo' and usuario in ('" . mysql_escape_array_string($s_idusuarioyrelacionados) . "')) or ('" . mysql_escape($s_versolo) . "' = 'yo' and usuario in ('" . mysql_escape_array_string($s_idusuarioyrelacionadosempresas) . "')) ) group by folder"); while( $__temprow = mysql_compat_fetch_array($__tempresult)) { array_push($folders, $__temprow[0]); array_push($counts, $__temprow[1]); } $_result[] = associativearray($folders, $counts); } // Si puso header location para ir a otra pagina cierra el script if( !isset($_x) and $__exiting ) { disconnectDb($Link); exit(0); } } while(false); // PHP Vars while( ($__action == "" or $__action == "executedonopen") and isset($_GET['_x']) and empty($_x) ) { $__row0 = array(); $__row0['__sidebarr__1'] = (!isset($_popup)) ? 'display: inline !important;' : 'display: none !important;' ; $__row0['__sidebarr__2'] = $f ; $__row0['__sidebarr__3'] = $flags ; $__row0['__unnamed2__1'] = $s_idusuario ; $__row0['__unnamed2__2'] = $s_idusuario ; $_result['morevars'] = $__row0; break; } if( has($_x, 'pdf') or has($_x, 'pdfprint') or has($_x, 'pdfprint2') ) { require_once('../include/fpdfreport.php'); $_pdf = new PDF((isset($_orientation) ? $_orientation : 'P'),'pt', (isset($_size) ? $_size : 'A4' )); $_pdf->initialPage = ($_page != '' ? $_page : 1); //$_pdf->SetAutoPageBreak(true); $_pdf->title = ""; $_pdf->SetTopMargin(50); $_pdf->AliasNbPages(); $_pdf->AddPage(); } if( isset($_GET['_x']) and empty($_x) ) { $_result['visibility']['sidebarr'] = (!isset($_popup)); } if( has($_x, 'pdf') or has($_x, 'pdfprint') or has($_x, 'pdfprint2') ) { $_pdf->Output(); } ?> if( !isset($_x) ) { ?> if( isset($_export) ) { ?> header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=index.xls"); //echo(''); //echo(''); echo(''); ?> } else { ?>
require('../main/base.head.php'); ?> class="popup" } ?> > } ?> if( !isset($_export) ) { ?> } ?>