function add() { $this->registry->template->exp_id = VAR3; $this->registry->template->tra_id = VAR4; $this->registry->template->cue_id = VAR5; // Correspondencia $this->registry->template->dco_id = ""; $this->registry->template->fil_nur = $_SESSION["codigo"]; $this->registry->template->fil_cite = ""; $this->registry->template->fil_asunto = ""; $this->registry->template->fil_sintesis = ""; $this->registry->template->fil_nur_s = ""; $this->registry->template->fil_nur_tipo = ""; // File $this->registry->template->exa_id = ""; $this->registry->template->fil_id = ""; $this->expediente = new expediente(); $this->registry->template->exp_codigo = $this->expediente->obtenerCodigo(VAR3); $this->registry->template->exp_nombre = ""; $this->registry->template->exp_corr = $this->expediente->obtenerTipoCorrExpediente(VAR3); $this->registry->template->fil_codigo = ""; $this->registry->template->fil_nro = ""; $cuerpos = new cuerpos(); $this->registry->template->fil_titulo = utf8_encode(strtoupper($cuerpos->obtenerNombreCuerpo(VAR5))); $this->registry->template->fil_subtitulo = ""; $this->registry->template->fil_fecha = date("Y-m-d"); $this->registry->template->fil_proc = $this->expediente->obtenerproductor(VAR3); $this->registry->template->fil_firma = ""; $this->registry->template->fil_cargo = ""; $sopfisico = new sopfisico(); $this->registry->template->sof_id = $sopfisico->obtenerSelect(); $this->registry->template->fil_nrofoj = "(SIN PAG.)"; $this->registry->template->fil_tomovol = ""; $this->registry->template->fil_nroejem = "1"; $this->registry->template->fil_nrocaj = "0"; $this->registry->template->fil_nropaq = "0"; $this->registry->template->fil_sala = ""; $archivo = new archivo(); $this->registry->template->fil_estante = $archivo->obtenerSelectEstante(); $this->registry->template->fil_cuerpo = ""; $this->registry->template->fil_balda = ""; $this->registry->template->fil_tipoarch = "ADM"; $this->registry->template->fil_mrb = "Bueno"; $this->registry->template->confidencialidad = $archivo->loadConfidencialidad(); $this->registry->template->fil_obs = ""; $this->registry->template->fil_ori = "1"; $this->registry->template->fil_cop = "0"; $this->registry->template->fil_fot = "0"; $this->registry->template->fil_cantcaj = "0"; $this->registry->template->fil_cantpaq = "0"; $expediente = new expediente(); $this->registry->template->fil_mes = $expediente->obtenerSelectMes(); $this->registry->template->fil_anio = $expediente->obtenerSelectAnio(); $this->registry->template->fil_mesf = $expediente->obtenerSelectMes(); $this->registry->template->fil_aniof = $expediente->obtenerSelectAnio(); $idioma = new idioma(); $this->registry->template->idi_id = $idioma->obtenerSelect(); $this->registry->template->pac_nombre = ""; $this->registry->template->fil_alccon = ""; // Validate keywords $palclave = new palclave(); $sis_palclave = $palclave->obtenerSisPalclave(); if ($sis_palclave == "RECORDAR") { $this->registry->template->fil_descripcion = $palclave->listaPCFile2(VAR3); } else { $this->registry->template->fil_descripcion = $palclave->listaPCFile2(VAR3); } // Details data $texpediente = new tab_expediente(); $row = $texpediente->dbselectById(VAR3); $ser_id = $row->getSer_id(); $tab_serie = new tab_series(); $row1 = $tab_serie->dbselectById($ser_id); $expisadg = new tab_expisadg(); $row2 = $expisadg->dbselectById(VAR3); $this->registry->template->msm = ""; $expediente2 = new expediente(); $this->registry->template->detExpediente = ""; $this->registry->template->detExpediente = $expediente2->getDetalles(VAR3); $this->registry->template->ubicacion = $expediente2->getUbicacion(VAR3); $this->registry->template->ser_id = $row1->ser_id; $this->registry->template->serie = $row1->ser_categoria; $this->registry->template->exp_fecha_exi = $row2->exp_fecha_exi; $this->registry->template->exp_fecha_exf = $row2->exp_fecha_exf; $exp = new expediente(); $this->registry->template->linkTree = $exp->linkTree(VAR3, VAR4, VAR5); $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "save"; $this->registry->template->required_archivo = "class='required'"; $this->registry->template->GRID_SW = "true"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->registry->template->tituloEstructura = "<div class='titulo' align='center'>ESTRUCTURA DOCUMENTAL</div>"; $this->registry->template->controller = "archivo"; $this->menu = new menu(); $liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $liMenu; $this->registry->template->show('headerG'); // $this->registry->template->show('archivo/exp_detallesView.tpl'); $this->registry->template->show('archivo/tab_archivo.tpl'); $this->registry->template->show('footer'); }