Exemplo n.º 1
0
 function view()
 {
     db::table('catalog_items');
     db::join('catalog_sections', 'catalog_items', 'section_id');
     $r = db::select();
     while ($a = mysql_fetch_assoc($r)) {
         $a = filter::get('item_pub', array('unpub', 'pub'), $a);
         s::roll('items', $a);
     }
 }
Exemplo n.º 2
0
 function view()
 {
     db::table('news');
     db::order('news_date', 'DESC');
     $res = db::select();
     while ($row = mysql_fetch_assoc($res)) {
         $row = filter::get('news_pub', array('unpub', 'pub'), $row);
         $row['news_title'] = strip_tags($row['news_title']);
         $row['news_date'] = dt::date2print('%d %F %Y, %H:%i', $row['news_date']);
         s::roll('news', $row);
     }
 }
Exemplo n.º 3
0
 function view()
 {
     events::observe('upload', 'index');
     events::observer();
     $dir = IMAGES_PATH . 'index/';
     db::table('images');
     $r = db::select();
     while ($a = mysql_fetch_assoc($r)) {
         $a = filter::get('img_set', array('unpub', 'pub'), $a);
         $a['thumb'] = $dir . $a['img_id'] . '_m.jpg';
         s::roll('images', $a);
     }
 }
Exemplo n.º 4
0
 public static function Params()
 {
     return filter::get("param");
 }
Exemplo n.º 5
0
 public function getParams()
 {
     return filter::get("param");
 }