Example #1
0
 public function calendar($events = null)
 {
     $table = new Table();
     $content = $this->month($events);
     $table->content($content);
     // $output = dev_content_box(, '', '', '', '', false, 0, 1);
     $output = $table->render();
     return $output;
 }
Example #2
0
 static function results($list_r, $begin = 'start', $end = 'lim', $href = '', $chapters = true, $link_style = 1, $query_r = '', $highlight = '#c0c0ff', $img_dir = 'images/', $file_dir = 'assets/', $headers = '', $trunc = '', $limit = 20)
 {
     $start = isset($_GET[$begin]) && is_numeric($_GET[$begin]) ? $_GET[$begin] : 0;
     $end = isset($_GET[$end]) && is_numeric($_GET[$end]) ? $_GET[$end] : $limit;
     $list_r = count($list_r) <= 0 ? array() : $list_r;
     $href = HTML::href($href);
     if ($chapters) {
         $chapter_list = dev_list_chapter($list_r, $begin, $end, $href);
     }
     $output .= $chapter_list;
     $list_r = array_splice($list_r, $start, $end);
     //for ($i = $start; $i < (((count($list_r) - $start) > $end) ? ($start + $end) : count($list_r)); $i++)
     // $output .= dev_content_box($list_r, '', $href, $query_r, $highlight, $headers, $link_style, true, $img_dir, $file_dir, '', $trunc);
     $table = new Table();
     $table->content($list_r);
     $output .= $table->render();
     $output .= $chapter_list;
     return $output;
 }