-
0) {
for ($i = 0; $i < sizeof($rows); $i++) {
?>
- =$rows[$i]['product_name']?> } } ?>
GetOne($sql); $totPage = ceil($boardCnt/$cntPerPage); if ($boardCnt > 0) { if ($option == 'sub') { $sql = "select * from auction_product where category = '".$category."' and product_stats = '0'"; } else { $sql = "select * from auction_product where category like '".$category."r%' and product_stats = '0'"; } $sql .= $orderBy; $result = $db->PageExecute($sql, $cntPerPage, $page); $rows = $result->GetArray(); } //$params = 'category='.$category; $brandImgIndex = ''; switch($category){ case '1' : $productKind = 'DRIVERS'; $brandImgIndex = '01'; break; case '2' : $productKind = 'FAIRWAY WOODS'; $brandImgIndex = '02'; break; case '3' : $productKind = 'HYBRIDS'; $brandImgIndex = '03'; break; case '4' : $productKind = 'CROSSOVER'; $brandImgIndex = '04'; break; case '6' : $productKind = 'IRONS'; $brandImgIndex = '05'; break; case '7' : $productKind = 'WEDGES'; $brandImgIndex = '06'; break; case '8' : $productKind = 'PUTTERS'; $brandImgIndex = '07'; break; case '2289' : $productKind = 'BAGS'; $brandImgIndex = '08'; break; case '2298' : $productKind = 'ACCESSORIES'; $brandImgIndex = '09'; break; case '2299' : $productKind = 'WOMENS'; $brandImgIndex = '10'; break; case '2300' : $productKind = 'CLASSICS'; $brandImgIndex = '11'; break; default: $brandImgIndex = '11'; break; } function replacetitle($realtitle, $txtlength) { $text = $realtitle; $text = explode(" ", $text); $strleng = 0; for($i = 0; $i < count($text); $i++) { $strleng += strlen($text[$i]); if($strleng < $txtlength) { $prttext[] = $text[$i]; }else{ $text = ""; } } if($strleng < $txtlength) echo implode(" ", $prttext); else{echo implode(" ", $prttext)."...";} } //echo "#########".print_r($master_check)."###".print_r($admin)."############"; ?>