วิดีโอ

1) { ?>
=TO_DAYS(NOW()) ) OR (TO_DAYS(".$mod_tb_root."_sdate)<=TO_DAYS(NOW()) AND ". $mod_tb_root."_edate='0000-00-00 00:00:00' ) OR (TO_DAYS(".$mod_tb_root."_sdate)<=TO_DAYS(NOW()) AND TO_DAYS(".$mod_tb_root."_edate)>=TO_DAYS(NOW()))) AND ".$mod_tb_root."_masterkey='".$masterkey."' "; $sql_pin.=" AND ".$mod_tb_root."_status !='Disable' AND ".$mod_tb_root."_pin !='No' AND ".$mod_tb_root."_subject".$langAllPage." != '' "; $sql_pin.=" ORDER BY ".$mod_tb_root."_order DESC "; $query_pin=mysql_query($sql_pin); $query_vdo_slide=mysql_query($sql_pin); $TotalRecordPin=mysql_num_rows($query_pin); if($TotalRecordPin>=1){ ?> =TO_DAYS(NOW()) ) OR (TO_DAYS(".$mod_tb_root."_sdate)<=TO_DAYS(NOW()) AND ". $mod_tb_root."_edate='0000-00-00 00:00:00' ) OR (TO_DAYS(".$mod_tb_root."_sdate)<=TO_DAYS(NOW()) AND TO_DAYS(".$mod_tb_root."_edate)>=TO_DAYS(NOW()))) AND ".$mod_tb_root."_masterkey='".$masterkey."' "; $sql_cms.=" AND ".$mod_tb_root."_status !='Disable' AND ".$mod_tb_root."_pin !='Yes' AND ".$mod_tb_root."_subject".$langAllPage." != '' "; // $sql_cms.=" ORDER BY ".$mod_tb_root."_order DESC "; // print_pre($sql_cms); $query_cms=mysql_query($sql_cms); $TotalRecordCount=mysql_num_rows($query_cms); # Find max page size ######################### if($TotalRecordCount>$PageSize) { $NoOfPage= ceil($TotalRecordCount/$PageSize); } else { $NoOfPage=1; } # Recover page show into range ######################### if($PageShow>$NoOfPage) { $PageShow=$NoOfPage; } # Select only paging range ######################### $RecordStart = ($PageShow-1)*$PageSize; $sql_cms.=" ORDER BY ".$mod_tb_root."_order DESC LIMIT $RecordStart,$PageSize"; $query_cms=mysql_query($sql_cms); $count_row_cms=mysql_num_rows($query_cms); ?>
=1){ $indexCount=0; while($row_cms=mysql_fetch_array($query_cms)){ $txt_cms_id=$row_cms[0]; $txt_cms_subject=rechangeQuot($row_cms['md_vis_subject'.$langAllPage]); if(empty($txt_cms_subject)){ $txt_cms_subject = "Not found data"; } $txt_cms_key=$row_cms[2]; $txt_cms_detail=rechangeQuot($row_cms['md_vis_title'.$langAllPage]); if(empty($txt_cms_detail)){ $txt_cms_detail = "Not found data"; } $txt_cms_deate=txtFormatDateDotTh($row_cms[4]); $txt_cms_pic='upload/'.$txt_cms_key.'/pictures/'.$row_cms['md_vis_pic']; $txt_cms_picRoot=$core_path_root.'/upload/'.$txt_cms_key.'/pictures/'.$row_cms['md_vis_pic']; if(!is_file($txt_cms_pic)){ $txt_cms_pic="images/nopic/noNews.jpg"; }else{ $txt_cms_pic=$txt_cms_pic; } $txt_cms_view=number_format($row_cms[6]); $txt_cms_type=$row_pin[7]; if($txt_cms_type=='url'){ $txt_cms_vdo=$row_pin[9]; }else{ $txt_cms_vdo=$row_pin[8]; } $indexCount++; $valLinkNew="vdo-detail".$infAllPage.".php?".encodeURL("c=$txt_cms_id"); if($valEvenOdd=="odd"){ $valEvenOdd="even"; }else{ $valEvenOdd="odd"; } ?>
1) { ?>
  • First
  • First
  • $NoOfPage) { $maxpage=$NoOfPage; } if($maxpage<$txtMaxCountPage) { $maxpage=$txtMaxCountPage; } if($maxpage-$minpage<=$txtMaxCheckPageA) { $minpage=$maxpage-$txtMaxCheckPageB; } if($NoOfPage<$txtMaxCountPage) { $maxpage=$NoOfPage; } for($i=$minpage;$i<=$maxpage;$i++) { if($i==$PageShow){ ?>
  • Last
  • Last