コード例 #1
0
ファイル: bannercats.php プロジェクト: lxthien/batdongsan
 function down_position($id, $step = 1)
 {
     $o = new bannercat();
     $o->get_by_id($id);
     if (!$o->exists()) {
         show_404("Không tìm thấy");
     }
     for ($i = 0; $i < $step; $i++) {
         $o->down_position();
     }
     //  flash_message('warning','Không th? thay d?i v? trí du?c n?a ');
     redirect($this->admin . 'bannercats/list_all/');
 }