5); $_result['visibility'] = array(); $_initialvars = arrayExclude(get_defined_vars(), array("_*", "form_*", "s_*", "GLOBALS", "Link", "thisname")); } require('../main/base.events.php'); $_morecolumns = ""; if( !isset($_id) and $id != '' ) $_id = rand(1, 100000000); $reconocimiento = sessionget('form_reconocimiento_reconocimiento' . $_id); //logToFile('reconocimiento: ' . print_r($reconocimiento, true)); if( empty($_x) or in('onopen', $_x) ) { if( $id != "" and $id != "0" ) { $reconocimiento = loadObject($Link, "import.reconocimiento", $id); } else { $reconocimiento = newObject($Link, "import.reconocimiento"); //fillobjectfromrequest($reconocimiento); } } if( isormObject($reconocimiento) ) updateObjectFromRequest($Link, $reconocimiento); //makeglobals($reconocimiento, array('id', 'reconocimiento')); if( isset($_x) ) $_initialvars = arrayExclude(get_defined_vars(), array("_*", "form_*", "s_*", "GLOBALS", "Link", "thisname")); //$_initialvars['reconocimiento'] = objectToStructure($reconocimiento); if( isormObject($reconocimiento) ) $_initialvars = array_merge($_initialvars, objectToStructure($reconocimiento)); if( isormObject($reconocimiento) ) $reconocimiento->makeglobals(); //logToFile('reconocimiento after uofr: ' . print_r($reconocimiento, true)); // isbasewindow: // PHP Vars while( ($__action == "" or $__action == "executedonopen") and isset($_GET['_x']) and empty($_x) ) { $__row0 = array(); $__row0['__reconocimiento__1'] = $_id ; $__row0['__reconocimiento__2'] = $id == '0' ? 'Nuevo ' : '' ; $__row0['__idobj__1'] = $reconocimiento->idobj ; $_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( has($_x, 'pdf') or has($_x, 'pdfprint') or has($_x, 'pdfprint2') ) { $_pdf->title = "Reconocimiento"; //$_pdf->drawText("Reconocimiento",'Arial','',14); } // aca iba session get, uofr y load/saveobject while( has($_x, 'reconocimiento_init') ) { $_result['reconocimiento'] = $reconocimiento->toarray(false); break; } while( has($_x, 'reconocimiento') ) { $reconocimiento->saveChanges(); //if( $errors == "" ) // validatereconocimiento(); if( $errors == "" ) { //logToFile("BEFORE SAVE: " . objectToHtml($reconocimiento)); saveObject($Link, $reconocimiento); if( hasfeature('import.reconocimiento', 'procesos') ) { require_once('../include/easyflexa.php'); if( $id == 0 ) setresponsables($reconocimiento); controlstatus($reconocimiento); } $id = $reconocimiento->id; //logToFile(objectToText($reconocimiento)); if( $_redirect != "" ) redirect($_redirect); sessionset('form_reconocimiento_reconocimiento' . $_id, $reconocimiento); if( $_result['redirect'] == '' ) redirect("?id=$id"); } break; } while( has($_x, 'reconocimiento__delete') ) { //if( $errors == "" ) // validatereconocimiento(); if( $errors == "" ) { //logToFile("BEFORE SAVE: " . objectToHtml($reconocimiento)); deleteObject($Link, $reconocimiento); //logToFile(objectToText($reconocimiento)); if( $_redirect != "" ) redirect($_redirect); sessionset('form_reconocimiento_reconocimiento' . $_id, null); if( $_result['redirect'] == '' ) { $_result['redirect'] = "?message=Reconocimiento eliminado"; } } break; } while( has($_x, 'reconocimiento_unload') ) { // Not used sessionclear('form_reconocimiento_reconocimiento' . $_id); break; } if( has($_x, 'datosbsicos') ) { } if( has($_x, 'formulario_select') ) { list($_result['formulario_select'], $_result['formulario_columns'], $_result['formulario_types']) = sqltoarraydd($Link, "select concat(module, '.', name) as id, concat(module, '.', name) as name from ddform group by module, name order by module, name "); } if( has($_x, 'datosreconocimiento') ) { } if( $datosreconocimiento__row != '' ) { $reconocimiento->datosreconocimiento->_selected = $datosreconocimiento__row; } sessionset('form_reconocimiento_reconocimiento' . $_id, $reconocimiento); //$reconocimiento -> ['changes'] if( isormObject($reconocimiento) ) $reconocimiento->makeglobals(); if( has($_x, 'pdf') or has($_x, 'pdfprint') or has($_x, 'pdfprint2') ) { $_pdf->Output(); } ?> '); //echo(''); echo(''); ?> class="popup" >
Reconocimiento
Datos básicos