function showmenu($chanid) { global $db; $result = $db->query("SELECT catid,catname FROM phpcms_category where channelid=$chanid and catid!=122 order by listorder asc"); while($rsm=$db->fetch_array($result)) { $catid=$rsm['catid']; $menulist=$rsm['catname']; $menulist=''.$menulist.' | '; $listmenu=$listmenu.$menulist; } $listmenu='باش بەت |'.$listmenu.''; //$listmenu='باش بەت |'.$listmenu.''; $db->free_result($result); return $listmenu; } //=================================== //=================================== function showOnemenu($catid) { global $db; $result = $db->query("SELECT catid,catname FROM phpcms_category where channelid=32 and catid=".$catid.""); if($rsm=$db->fetch_array($result)) { $menulist=$rsm['catname']; $menulist=''.$menulist.''; } $listmenu=$listmenu.''; $db->free_result($result); return $menulist; } /* 显示专辑演唱者姓名 */ function ShowCDsinger($chilid) { global $db; $sql="SELECT specialid,specialname FROM phpcms_special where specialid =".$chilid." and parentid!=0"; $result = $db->query($sql); while($rsm=$db->fetch_array($result)) { $spname=$rsm['specialname']; } $db->free_result($result); return $spname; } /* 显示专辑演唱者姓名 */ function ShowCDname($chilid) { global $db; $sql="SELECT specialid,specialname,keyid FROM phpcms_special where arrchildid =".$chilid." and parentid=0"; $result = $db->query($sql); while($rsm=$db->fetch_array($result)) { $spname=$rsm['specialname']; $spname=''.$spname.''; } $db->free_result($result); return $spname; } /* 函数功能:读取最新,热门,推荐歌曲 */ function ShowMusicList($num,$isflag,$catid,$vorder,$numjan) { global $db; $sql="SELECT movieid,title,thumb,my_singer,catid,hits FROM ".channel_table('movie', 32)." where status=3 AND my_bianhao='' "; switch($isflag) { case 1: $sql=$sql." and catid=".$catid." "; break; case 2: $sql=$sql." and specialid=".$catid." "; break; default: $sql=$sql; break; } $sql=$sql."ORDER BY ".$vorder." DESC LIMIT ".$num.""; $result=$db->query($sql); $html=$html.'
![]() | ';
//$html=$html.'![]() | ';
$html=$html.''.$hits.' | '; $html=$html.''.$songname.' | '; $html=$html.''.shownumber($i).' | '; $html=$html.'
![]() | ';
$html=$html.''.$songname.' | '; $html=$html.''.shownumber($i).' | '; $html=$html.'
'; /* $html=$html.' | پىلاستىنكا:'.$specialname.'';
$html=$html.' تۈرى :'.$spsinger; if($vorder!='hits'){ $html=$html.' ۋاقىت:'.$addtime; }else{ $html=$html.' ئاۋاتلىقى :'.$hits; } $html=$html.' ئاڭلاش'; $html=$html.' | '; */ $html=$html.' | '.str_cut($specialname,28).'';
$html=$html.' '.$spsinger; if($vorder!='hits'){ $html=$html.' ۋاقىت:'.$addtime; }else{ //$html=$html.' '.$hits; } //$html=$html.' ئاڭلاش'; $html=$html.' | '; if($i%$ismod==0) { $html=$html.' |
نامى:'.str_cut($specialname,40).'';
$html=$html.' تۈرى :'.$spsinger; if($vorder!='hits'){ $html=$html.' ۋاقىت'.$addtime; $html=$html.' ئاۋاتلىقى:'.$hits; } //$html=$html.' ئاڭلاش'; $html=$html.' | '; $html=$html.' |
';
//$html=$html.' ';
$html=$html.'';
$html=$html.' ';
$html=$html.''.str_cut($mtvname,24).'';
$html=$html.' ';
//$html=$html.'';
//$html=$html.''.$mtvname.'';
//$html=$html.' ';
$html=$html.' | ';
if($i%$modnum==0)
{
$html=$html.'
'; $html=$html.''; $html=$html.''; $html=$html.' | '; if($i%$ismod==0) { $html=$html.'
|
|