/**
  * Liste des teleprocedures
  *
  * @author Christophe Beyer <*****@*****.**>
  * @since 2008/01/30
  * @param integer $id Id du module
  */
 public function processListTeleprocedures()
 {
     $id = $this->getRequest('id', null);
     $motcle = _request("motcle");
     $type = _request("type");
     $clos = _request("clos");
     $ecole = _request("ecole");
     $dao = CopixDAOFactory::create("teleprocedures|teleprocedure");
     $rTelep = $dao->get($id);
     $criticErrors = array();
     if (!$rTelep) {
         $criticErrors[] = CopixI18N::get('teleprocedures|teleprocedures.error.noParameter');
     } else {
         $mondroit = Kernel::getLevel("MOD_TELEPROCEDURES", $id);
         if (!TeleproceduresService::canMakeInTelep('VIEW', $mondroit)) {
             $criticErrors[] = CopixI18N::get('kernel|kernel.error.noRights');
         } else {
             $parent = Kernel::getModParentInfo("MOD_TELEPROCEDURES", $id);
             $rTelep->parent = $parent;
         }
     }
     //print_r($rTelep);
     if ($criticErrors) {
         return CopixActionGroup::process('genericTools|Messages::getError', array('message' => implode('<br/>', $criticErrors), 'back' => CopixUrl::get('||')));
     }
     $title = $rTelep->parent["nom"];
     $ville = $rTelep->parent["id"];
     $rBlog = TeleproceduresService::checkIfBlogExists($rTelep);
     $canInsert = TeleproceduresService::canMakeInTelep('ADD_INTERVENTION', $mondroit);
     $canViewBlog = TeleproceduresService::canMakeInTelep('VIEW_BLOG', $mondroit);
     if (!TeleproceduresService::canMakeInTelep('VIEW_COMBO_ECOLES', $mondroit)) {
         $ecole = null;
     }
     $tplListe = new CopixTpl();
     $tplListe->assign('filtre', CopixZone::process('filtre', array('rTelep' => $rTelep, 'motcle' => $motcle, 'clos' => $clos, 'type' => $type, 'ecole' => $ecole, 'mondroit' => $mondroit)));
     $tplListe->assign('list', CopixZone::process('list', array('rTelep' => $rTelep, 'motcle' => $motcle, 'clos' => $clos, 'type' => $type, 'ecole' => $ecole, 'mondroit' => $mondroit)));
     $tplListe->assign('types', CopixZone::process('types', array('rTelep' => $rTelep, 'canInsert' => $canInsert)));
     if ($canViewBlog && $rBlog) {
         $tplListe->assign("infosVille", CopixZone::process('welcome|Actualites', array('blog' => $rBlog->url_blog, 'nb' => 3, 'colonnes' => 1, 'chapo' => true, 'hreflib' => CopixI18N::get('teleprocedures.blog.infosVille.viewAll'), 'hr' => true)));
         $tplListe->assign("pagesVille", CopixZone::process('welcome|Pages', array('blog' => $rBlog->url_blog, 'nb' => 3, 'content' => true, 'hr' => true)));
     }
     $main = $tplListe->fetch('list.tpl');
     $tpl = new CopixTpl();
     $tpl->assign('TITLE_PAGE', $title);
     $MENU = array();
     if (TeleproceduresService::canMakeInTelep('ADMIN', $mondroit)) {
         $MENU[] = array('txt' => CopixI18N::get('teleprocedures|teleprocedures.admin'), 'type' => '', 'url' => CopixUrl::get('admin|admin', array('id' => $rTelep->id)));
     }
     $tpl->assign("MENU", $MENU);
     $tpl->assign("MAIN", $main);
     return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
 }