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); } }
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); } }
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); } }
public static function Params() { return filter::get("param"); }
public function getParams() { return filter::get("param"); }