PHP 代码:
//------------------图文新闻调用
function user_GetTowNewsPic($classid,$num,$showtitle=true,$strlen,$enews=0)
{global $empire;
$sql=sys_ReturnBqQuery($classid,$num,$enews,1);
//输出
$i=0;
while($r=$empire->fetch($sql))
{
$i++;
if($i%2==0)
{
$align="limg";
}
else
{
$align="rimg";
}
//标题链接
$titleurl=sys_ReturnBqTitleLink($r);
//------是否显示标题
if($showtitle)
{
$oldtitle=$r[title];
$title=sub($r[title],0,$strlen,false);
//标题属性
$title=DoTitleFont($r[titlefont],$r[titlecolor],$title);
}
$class_text.="<a href=\"".$titleurl."\" target=\"_blank\"><img src=\"".$r[titlepic]."\" alt=\"".$oldtitle."\" />".$title."</a>";
$text="<div class=\"$align\">".$class_text."</div>";
echo "$text";
}
}
?>








wm_chief,帮我看看




高级会计师资格评审


我宁愿不要成就感





平板模式