getname($LANG_ENG); $scatname = getSubCatName($scatid); $scatname_eng = $scatname->getname($LANG_ENG); $aSCatList = getSubCatList($mcatid); $numProInSubCat = getNumProInSubCat($scatid); $numPage = (int)(($numProInSubCat+$g_numProPerPage-1) / $g_numProPerPage); $prePage = ($page>1) ? ($page-1) : -1; if ( $numProInSubCat > ($page * $g_numProPerPage) ) { $nxtPage = $page + 1; } else { $nxtPage = -1; } $numDisplayRow = (int)(( (($numProInSubCat > $g_numProPerPage ? ($g_numProPerPage) : ($numProInSubCat))) + $g_displayNumCol - 1) / $g_displayNumCol); ?> Welcome to KimmyCo Limited
 
1 ) { $bgimage = "pdt-kitchen_14.gif"; $bgheight = 391; } else { $bgimage = "pdt-kitchen1_14.gif"; $bgheight = 211; } ?>
 
 
 
 
 
 
"; ?>
 
>" if ( $prePage > 0 ) echo "<< Previous"; if ( ($prePage > 0) && ($nxtPage > 0) ) echo " | \n"; if ( $nxtPage > 0 ) echo "Next >>
Go to page
 
  sql_query($sql) ) { $numRow = $db->sql_numrows($result); for ( $i = 0 ; $i < $numRow ; $i++ ) { $row = $db->sql_fetchrow($result); // First item in a row if ( ($i % $g_displayNumCol) == 0 ) echo " \n"; // Item small photo $itemPhotoSmallPath = $g_photoDirSmall . "/" . $row['PhotoSmall']; $itemId = $row['Id']; $itemNum = $row['ProductNum']; ?> \n"; // More product next to this product (on the right). Draw a seperation line else if ( $i < ($numRow - 1) ) { if ( $i < $g_displayNumCol ) $sepImage = "pdt-kitchenmo_16.gif"; else $sepImage = "pdt-kitchenmo_27.gif"; echo ""; } } // Fill in empty table if more than one row //if ( $numRow > $g_displayNumCol ) /* if ( 1 ) { // Fill in the empty table element in last row $numEmptyElm = ($g_displayNumCol - ($numRow % $g_displayNumCol)) % $g_displayNumCol; for ( $i = 0 ; $i < $numEmptyElm ; $i++ ) { echo "\n"; echo "\n"; } } */ } $db->sql_freeresult($result); ?>