public function render($ids)
 {
     $datas = array();
     for ($i = 0; $i < count($ids); $i++) {
         $section = new cms_section($ids[$i]);
         $infos = $section->format_datas(false, false);
         $infos['link'] = $this->get_constructed_link("section", $infos['id']);
         $datas[] = $infos;
     }
     return parent::render(array('records' => $datas));
 }
 public function render($ids)
 {
     $datas = array();
     $datas['records'] = array();
     for ($i = 0; $i < count($ids); $i++) {
         $article = new cms_article($ids[$i]);
         $infos = $article->format_datas();
         $infos['link'] = $this->get_constructed_link("article", $infos['id']);
         $datas['records'][] = $infos;
     }
     return parent::render($datas);
 }
 public function render($records)
 {
     $datas = array();
     global $opac_url_base;
     global $opac_show_book_pics;
     global $opac_book_pics_url;
     global $opac_notice_affichage_class;
     if (!$opac_notice_affichage_class) {
         $opac_notice_affichage_class = "notice_affichage";
     }
     if (is_array($records['records']) && count($records['records'])) {
         $query = "select notice_id,tit1,thumbnail_url,code from notices where notice_id in (" . implode(",", $records['records']) . ") order by field( notice_id, " . implode(",", $records['records']) . ")";
         $result = pmb_mysql_query($query);
         if ($result && pmb_mysql_num_rows($result)) {
             while ($row = pmb_mysql_fetch_object($result)) {
                 if ($opac_show_book_pics == '1' && ($opac_book_pics_url || $row->thumbnail_url)) {
                     $code_chiffre = pmb_preg_replace('/-|\\.| /', '', $row->code);
                     $url_image = $opac_book_pics_url;
                     $url_image = $opac_url_base . "getimage.php?url_image=" . urlencode($url_image) . "&noticecode=!!noticecode!!&vigurl=" . urlencode($row->thumbnail_url);
                     if ($row->thumbnail_url) {
                         $url_vign = $row->thumbnail_url;
                     } else {
                         if ($code_chiffre) {
                             $url_vign = str_replace("!!noticecode!!", $code_chiffre, $url_image);
                         } else {
                             $url_vign = get_url_icon("vide.png", 1);
                         }
                     }
                 }
                 $notice_class = new $opac_notice_affichage_class($row->notice_id, "");
                 $notice_class->do_header();
                 if ($this->parameters['used_template']) {
                     $tpl = new notice_tpl_gen($this->parameters['used_template']);
                     $content = $tpl->build_notice($row->notice_id);
                 } else {
                     $notice_class->do_isbd();
                     $content = $notice_class->notice_isbd;
                 }
                 $datas[] = array('id' => $row->notice_id, 'title' => $row->tit1, 'link' => $this->get_constructed_link("notice", $row->notice_id), 'vign' => $url_vign, 'header' => $notice_class->notice_header, 'content' => $content);
             }
         }
     }
     $datas = array('title' => $records['title'], 'records' => $datas);
     return parent::render($datas);
 }
 public function render($datas)
 {
     $datas = array();
     $datas['records'] = $data['result'];
     return parent::render($datas);
 }
 public function render($datas)
 {
     $this->debug($datas);
     $datas['records'] = $datas['result'];
     return parent::render($datas);
 }