function viewTree()
 {
     if (!VAR3) {
         die("Error del sistema 404");
     }
     $route = explode('/', $_SERVER['REQUEST_URI']);
     if (isset($route[URL5])) {
         $URL5 = $route[URL5];
     } else {
         $URL5 = "";
     }
     if (isset($route[URL4])) {
         $URL4 = $route[URL4];
     } else {
         $URL4 = "";
     }
     $this->expediente = new expediente();
     $this->expediente->setRequest2Object(VAR3);
     $this->tree = $this->expediente->searchTree(VAR3, $URL5, $URL4);
     $this->registry->template->tituloEstructura = "<div class='titulo' align='center'>ESTRUCTURA DOCUMENTAL</div>";
     $flecha = "<img src='" . PATH_DOMAIN . "/web/img/arrow.png' width=\"12px\" height=\"12px\"/>";
     $linkUno = $this->expediente->linkTreeUno(VAR3);
     $pathUno = $linkUno[0];
     $tituloUno = $linkUno[1];
     $sinEnlace = $linkUno[3];
     $this->registry->template->linkTree = "<a href='" . $pathUno . "'>" . "{$tituloUno}</a>  {$flecha} {$sinEnlace}";
     $this->registry->template->exp_id = VAR3;
     $this->registry->template->controller = VAR1;
     if (VAR4 == 1) {
         $msm = "SE GUARDO CORRECTAMENTE EL DOCUMENTO";
     } elseif (VAR4 == 2) {
         $msm = "SE BORRO CORRECTAMENTE EL DOCUMENTO";
     } else {
         $msm = "";
     }
     $this->registry->template->msm = $msm;
     // View data
     $texpediente = new tab_expediente();
     $row = $texpediente->dbselectById(VAR3);
     $serie = new tab_series();
     $row1 = $serie->dbselectById($row->getSer_id());
     $this->registry->template->detExpediente = "";
     $tab_expisadg = new Tab_expisadg();
     $row2 = $tab_expisadg->dbselectById(VAR3);
     $expediente = new expediente();
     $this->registry->template->detExpediente = $expediente->getDetalles(VAR3);
     $this->registry->template->ubicacion = $expediente->getUbicacion(VAR3);
     $this->registry->template->serie = $row1->getSer_categoria();
     $this->registry->template->serTipo = $row1->getSer_tipo();
     $this->registry->template->exp_codigo = $row->getExp_codigo();
     $this->registry->template->exp_fecha_exi = $row2->getExp_fecha_exi();
     $this->registry->template->exp_fecha_exf = $row2->getExp_fecha_exf();
     $this->registry->template->tree = $this->tree;
     $this->menu = new menu();
     $liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']);
     $this->registry->template->men_titulo = $liMenu;
     $this->registry->template->PATH_WEB = PATH_WEB;
     $this->registry->template->PATH_DOMAIN = PATH_DOMAIN;
     $this->registry->template->PATH_EVENT = "verifpass";
     $this->registry->template->PATH_EVENT_VERIF_PASS = "******";
     $this->registry->template->GRID_SW = "true";
     $this->registry->template->PATH_J = "jquery-1.4.1";
     $this->registry->template->show('header');
     //        $this->registry->template->show('archivo/exp_detalles.tpl');
     $this->registry->template->show('archivo/tab_archivot.tpl');
     $this->registry->template->show('footer');
 }