$byorder = 'timeupdate'; } } } } } } $orderby = 'ORDER BY ' . $byorder . ' DESC'; if (!$byorder) { $orderby = 'ORDER BY id DESC'; } if ($geturl[3]) { $page = explode('-', $geturl[3]); } $page = $page[1]; $num = config_site('list_limit'); $num = intval($num); $page = intval($page); if (!$page) { $page = 1; } $limit = ($page - 1) * $num; if ($limit < 0) { $limit = 0; } $arr = MySql::dbselect('tb_film.id,tb_film.title,tb_film.title_en,tb_film.thumb,tb_film.year,tb_film.big_image,tb_film_other.content,tb_film.quality,tb_film.year', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "{$sql} {$orderby} LIMIT {$limit},{$num}"); $bg_thumb = TEMPLATE_URL . 'images/grey.jpg'; $total = MySql::dbselect('tb_film.id', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "{$sql}"); $allpage_site = get_allpage(count($total), $num, $page, $url_page . 'page-'); ?> <div class="p-profile-cover"></div>
</div> </div> </div> <!--/footer_two--> <div class="footer_three"> <div class="main-width"> <p> <?php echo config_site('footer_text'); ?> </p> </div> </div> <div class="fixed-top" style="position: fixed; right: 5px; z-index: 9998; bottom: 30px;"> <a class="support box-check" href="<?php echo config_site('facebook_url'); ?> " target="_blank" title="Kết nối với chúng tôi trên Facebook"></a> <div style="clear: both;"> </div> <a class="support box-email" href="#" title="Báo lỗi/ Góp ý"></a> <div style="clear: both;"> </div> <a class="support box-top" href="#" title="Lên đầu trang"></a> </div> <!-- Begin Popup --> <div id="loading">Cargando Espere un momento</div> <div class="pop-overlay"></div> <div class="box-pop" id="login_box"> <div class="wap-box"> <div class="wap-box-content">