<{section name=i loop=$kefong.list[$kefong.key]}>
<div class="black2">
<table width="100%" cellpadding="4"><tr><td width="140" valign="top"><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td><img src="<{$kefong.list[$smarty.section.i.index][list_i].picurl}>" width="139" height="94" /></td>
</tr>
<tr>
<td><a href="<{$kefong.list[$smarty.section.i.index][list_i].url}>" target="_blank"><img src="../../images_new/ehome/btn1.gif" width="113" height="21" /></a></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><strong><{$kefong.list[$kefong.key][i].styles}></strong></td>
</tr>
<tr>
<td align="left">歌手名:<span class="Blue"><{$kefong.list[$smarty.section.i.index][list_i].artist}></span></td>
</tr>
<tr>
<td align="left">语种:<{$kefong.list[$smarty.section.i.index][list_i].language}></td>
</tr>
<tr>
<td align="left">风格:<span class="Blue"><{$kefong.list[$smarty.section.i.index][list_i].styles}></span></td>
</tr>
<tr>
<td align="left">唱片公司:<{$kefong.list[$smarty.section.i.index][list_i].records}></td>
</tr>
<tr>
<td align="left"><{$kefong.list[$smarty.section.i.index][list_i].introduce}></td>
</tr>
</table></td>
</tr>
</table>
</div>
<{/section}>
代码贴上,显示的话,无法显示语种,风格,唱片公司等的值,求解~另这句代码求分析<{$kefong.list[$smarty.section.i.index][list_i].language}>
<div class="black2">
<table width="100%" cellpadding="4"><tr><td width="140" valign="top"><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td><img src="<{$kefong.list[$smarty.section.i.index][list_i].picurl}>" width="139" height="94" /></td>
</tr>
<tr>
<td><a href="<{$kefong.list[$smarty.section.i.index][list_i].url}>" target="_blank"><img src="../../images_new/ehome/btn1.gif" width="113" height="21" /></a></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><strong><{$kefong.list[$kefong.key][i].styles}></strong></td>
</tr>
<tr>
<td align="left">歌手名:<span class="Blue"><{$kefong.list[$smarty.section.i.index][list_i].artist}></span></td>
</tr>
<tr>
<td align="left">语种:<{$kefong.list[$smarty.section.i.index][list_i].language}></td>
</tr>
<tr>
<td align="left">风格:<span class="Blue"><{$kefong.list[$smarty.section.i.index][list_i].styles}></span></td>
</tr>
<tr>
<td align="left">唱片公司:<{$kefong.list[$smarty.section.i.index][list_i].records}></td>
</tr>
<tr>
<td align="left"><{$kefong.list[$smarty.section.i.index][list_i].introduce}></td>
</tr>
</table></td>
</tr>
</table>
</div>
<{/section}>
代码贴上,显示的话,无法显示语种,风格,唱片公司等的值,求解~另这句代码求分析<{$kefong.list[$smarty.section.i.index][list_i].language}>
解决方案 »
- 寻一个GD库处理动态图的方法
- php解析xml文件遇到的问题。
- PHP怎样使用文本框的全选..............................
- 为了实现超时踢出的功能有几种方法?
- 能举例介绍php写xml基础吗?
- 函数问题。function()
- 请问该如何更新RSS文件?
- 请问高手关于header的问题。
- 在php中可以实现以下问题:得到客户端与服务器端的连接速度,如何知道客户端是拨号上网还是通过双绞线上网?
- 宇凡我要你的QQ,哈哈哈哈,把你当成美女一样保护。你就给我吧。我的是9656084。
- 写一个函数,要求输入abc,则输出abc的所有排列:abc,acb,bca,bac,cab,cba
- magic_quotes_gpc 怎么用啊??? 在线等
include_once('./include/common.inc.php');
include_once("include/upload.class.php");
$up = new upload($kefong['attachments_dir'],$kefong['fileExts']);
$ac=empty($_GET['ac'])?0:intval($_GET['ac']);
if($ac==1){
$smarty->assign("kefong",$kefong);
$smarty->display('jccsh1.html');
}else{
$kefong['key']=$key=empty($_GET['key'])?0:intval($_GET['key']);
$sqlwhere=" and style = $key ";
$sql = "select * from {$kefong['tablepre']}mp3 where 1 $sqlwhere order by id desc";
$kefong['page']=$curpage=empty($_GET['page'])?1:intval($_GET['page']);
$perpage=6;
$num=$db->num_rows($db->query($sql));//总记录数
if($num==0){
$kefong['list'][$key]=array();
}
//获取SQL开始结束
$minV=$maxV=$i=0;
$minV=(($curpage-1)<=0?0:$curpage-1)*$perpage;
$maxV=$minV+$perpage;
$newslist_i=0;
$sql.=" LIMIT ".$minV.",".$perpage."";
$query = $db->query($sql);
$kefong['list'][$key]=array();
while($forum = $db->fetch_array($query)) {
$kefong['list'][$key][$i]=$forum;
$kefong['list'][$key][$i]['times']=mktimes($forum['times']);
$kefong['list'][$key][$i]['styles']=$kefong['mp3Class'][$forum['style']];
$i++;
}
//分页
$kefong['multis']=multi($num, $perpage, $curpage,"ehome.php?ac=1");
$smarty->assign("kefong",$kefong);
$smarty->display('jccsh0.html');
}
?>
是这个么?