",$inputMessage); } return $inputMessage; } $SystemModuleKey=$key; require("adminpanel/MOD_GAL/config.php"); $sql = "Select ".$myModule_Table."_ID , " .$myModule_Table."_HTMLFileName, " .$myModule_Table."_Team, " .$myModule_Table."_BookName, " .$myModule_Table."_PictureFile From ".$myModule_Table." Where ".$myModule_Table."_ID = '$id' Order by ".$myModule_Table."_ID DESC limit 0,1"; //echo $sql; $Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด1
$sql
\n"); $Num_Row=MYSQL_NUM_ROWS($Query); if($Num_Row > 0) { $Row=MYSQL_FETCH_ARRAY($Query); $sql = "SELECT ".$myModule_Table_Book."_ID ,".$myModule_Table_Book."_ThumbnailFile ,".$myModule_Table_Book."_Name ,".$myModule_Table_Book."_Link FROM ".$myModule_Table_Book." where ".$myModule_Table_Book."_ModuleKey = 'book' and ".$myModule_Table_Book."_ID = '".$Row[$myModule_Table."_BookName"]."'"; $QueryBook=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด
$sql
\n"); $RowBook=MYSQL_FETCH_ARRAY($QueryBook); $Logo ="upload/book/thumbnail/".$RowBook[$myModule_Table_Book."_ThumbnailFile"]; $NameBook =$RowBook[$myModule_Table_Book."_Name"]; $Link = substr($RowBook[$myModule_Table_Book."_Link"],7); if ($Link == "") { $URL =""; $URL_Thank ="".$NameBook.""; } else { $URL =""; $URL_Thank ="".$NameBook.""; } $picture=substr($myModule_Path_Picture."/".$Row[$myModule_Table."_PictureFile"],6); $html=substr($myModule_Path_HTMLFiles."/".$Row[$myModule_Table."_HTMLFileName"],6); $htmlcontent=getTemplate($html); //เป็นfunction ที่ใช้เรียกไฟล์ที่เป็น html มาใช้ $team=$Row[$myModule_Table."_Team"]; $id=$Row[$myModule_Table."_ID"]; ?>

 
 
 
 


ขอขอบคุณ ที่เอื้อเฟื้อภาพ
   

$sql
\n"); $TotalRecordCount=MYSQL_NUMROWS($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 .= " LIMIT $RecordStart , $PageSize"; $Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด
$sql
\n"); $RecordCount=MYSQL_NUMROWS($Query); $index=1; if($RecordCount>0) { while($index<$RecordCount+1) { $Row=MYSQL_FETCH_ARRAY($Query); $Thumbnail = substr($myModule_Path_GalleryThumbnail."/".$Row[$myModule_Table_Picture."_ThumbnailFile"],6); $Picture1 = substr($myModule_Path_GalleryPicture1."/".$Row[$myModule_Table_Picture."_PictureFileName1"],6); $Picture2= substr($myModule_Path_GalleryPicture2."/".$Row[$myModule_Table_Picture."_PictureFileName2"],6); $Picture3= substr($myModule_Path_GalleryPicture3."/".$Row[$myModule_Table_Picture."_PictureFileName3"],6); if ($Thumbnail != "") { $imgData = @getimagesize(substr($myModule_Path_GalleryThumbnail."/".$Row[$myModule_Table_Picture."_ThumbnailFile"],6)); if ($imgData[0] < $imgData[1] ) { $widht="width=150"; } else if ($imgData[0] > $imgData[1] && $imgData[0] >= 220) { $widht="width=220"; } else if ($imgData[0] > $imgData[1] && $imgData[0] < 220){ $widht=$imgData[0]; } } ?> "; $n=0; } else if ($index == $RecordCount) { $a=3 - $mod_n; for ($j=0;$j<$a;$j++) { echo ''; } echo ""; $n=0; } $index++; } } else { echo "
ไม่พบข้อมูล

";} ?>

800 x 600
1024 x 768
1280 x 800 wide
 

 

 
$sql
\n"); //echo $sql; //$TotalRecordCount1=MYSQL_NUMROWS($Query_Comment); $TotalRecordCount1= mysql_result($Query_Comment,0,"num"); # Find max page size ######################### if($TotalRecordCount1>$PageSize1) { $NoOfPage1= ceil($TotalRecordCount1/$PageSize1); } else { $NoOfPage1=1; } # Recover page show into range ######################### if($PageShow1>$NoOfPage1) { $PageShow1=$NoOfPage1; } # Select only paging range ######################### $RecordStart1 = ($PageShow1-1)*$PageSize1; $sql .= " Order By ".$myModule_Table_Comment."_ID DESC LIMIT $RecordStart1 , $PageSize1"; $Query_Comment=mysql_query(sprintf($sql," * ")) OR DIE("Error: ".mysql_error()."เกิดความผิดพลาด
$sql
\n"); $RecordCount1=MYSQL_NUMROWS($Query_Comment); //$RecordCount1= mysql_result($Query_Comment,0,"num"); $index=1; if($RecordCount1>0) { while($index<$RecordCount1+1) { $Row_Comment=MYSQL_FETCH_ARRAY($Query_Comment); $linkpage=genNevigatorLink2(); ?>
 

ความคิดเห็นที่ 1