0){ list($catsn_Show)=mysql_fetch_row($rs); } } //有傳第一層分類序號進來的情形 else{ //防止亂傳參數,判斷所傳之第一層分類的序號是否正確 $sql = "select * from $data_albumCat1 where aCatSn='$catsn'"; $rs = mysql_query($sql,$link); $nT = mysql_num_rows($rs); if($nT< 1){ header("location:album-list.php"); exit; } list($catsn,$order,$CatName1)=mysql_fetch_row($rs); //沒有傳第二層分類序號進來的情形 B---------if/else if($catsn2==""){ //判斷第一層分類底下是否有產品資料 $sql = "select aCatSn2 from $data_albumCat where aCatSn2='$catsn'"; $rs = mysql_query($sql,$link); $nT_CAT = mysql_num_rows($rs); //第一層分類底下有資料的情形 C---------if/else if($nT_CAT >0){ list($catsn_Show)=mysql_fetch_row($rs); } //第一層分類底下沒有資料的情形,就抓取第一層分類的序號當成要顯示的序號 C---------if/else else{ $catsn_Show=$catsn; } } //有傳第二層分類序號進來的情形 B---------if/else else{ $sql = "select * from $data_albumCat2 where aCatSn2='$catsn2'"; $rs = mysql_query($sql,$link); list($catsn_Show,$catsnSSS,$order,$CatNameB)=mysql_fetch_row($rs); if($catsn_Show=="") $catsn_Show=$catsn; } } ?> <? echo $MAIN_TITLE; ?> » <? echo $titleName; ?>
" >" >" >" >
0){ ?> "; if($j!=$nT2-1 && $i!=$nT-1) include("../include/left-menu-division.php"); } else{ if($i!=$nT-1) include("../include/left-menu-division.php"); } } else{ ?>
0){ ?>
" > " > " > " > "; } ?>
?id=" title="" border="0" width="190">" >?id=" title="" border="0" width="190" >?id=" title="" width="190" border="0">" >?id=" title="" width="190" border="0">" >?id=" title="" width="190" border="0">" >?id=" title="" width="190" border="0">
?id=" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="" height="" >
$nTotal ) $record_show = $nTotal - $record_begin; //=================== 若該主分類沒有內容,就自動跳到次分類 SATRT =======================// if($nTotal< 1 && strlen($catsn_Show)==4){ $sql3 = "select aCatSn from $data_albumCat1 where aCatSn='$catsn'"; $rs3 = mysql_query($sql3,$link); $nT3 = mysql_num_rows($rs3); list($catsn)=mysql_fetch_row($rs3); if($nT3>0){ $sql3 = "select aCatSn2 from $data_albumCat2 where aCatSn='$catsn' order by aOrder desc"; $rs3 = mysql_query($sql3,$link); $nT3 = mysql_num_rows($rs3); if($nT3>0){ list($catsn2)=mysql_fetch_row($rs3); ?>
0 ) { ?> 0 ) { ?> 頁(共頁、筆資料) ($now_Page + 1) ) { ?> ($now_Page + 1) ) { ?>