Home > Knowledge > Training
 
Training
=TO_DAYS(NOW()) ) OR (TO_DAYS(".$myModule_Table."_StartDate)<=TO_DAYS(NOW()) AND ". $myModule_Table."_ExpireDate='0000-00-00 00:00:00' ) OR (TO_DAYS(".$myModule_Table."_StartDate)<=TO_DAYS(NOW()) AND TO_DAYS(".$myModule_Table."_ExpireDate)>=TO_DAYS(NOW()) )) AND ".$myModule_Table."_ModuleKey='".$SystemModuleKey."' "; $sql_product.=" AND ".$myModule_Table."_Status!='Disable'"; $Query=mysql_query($sql_product); $TotalRecordCount=mysql_num_rows($Query); # 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_product.=" ORDER BY ".$myModule_Table."_Order DESC LIMIT $RecordStart,$PageSize"; $query_product=mysql_query($sql_product); $RecordCount=mysql_num_rows($query_product); $index_top=0; if($RecordCount>=1){ while($row_vdo=mysql_fetch_array($query_product)){ $txt_vdo_id=$row_vdo[0]; $txt_vdo_subject=rechangeQuot($row_vdo[1]); $txt_vdo_deate=txtFormatDate($row_vdo[2]); $txt_vdo_pic=$myModule_Path_GalleryThumbnail_Fornt."/".$row_vdo[3]; $txt_vdo_view=$row_vdo[4]; ?>

View: 0
   
ไม่พบข้อมูล
1) { ?>
$NoOfPage) { $maxpage=$NoOfPage; } if($maxpage<5) { $maxpage=5; } if($maxpage-$minpage<=3) { $minpage=$maxpage-4; } if($NoOfPage<5) { $maxpage=$NoOfPage; } for($i=$minpage;$i<=$maxpage;$i++) { if($i == $PageShow) { $sb="bold"; } else { $sb="none"; } ?>
 






ไม่พบข้อมูล

 
ดาวน์โหลดวีดีโอต้นฉบับได้ที่นี่
 
| View: << Back