表中怎么调出图片信息,以及增加省略号

前端之家收集整理的这篇文章主要介绍了表中怎么调出图片信息,以及增加省略号前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

[!--empirenews.listtemp--]
<tr>
<td height="25" align="left" valign="top" width="490"><!--list.var1--></td>
<td height="25" align="left" valign="top" width="2" bgcolor="#C0C0C0"> </td>
<td height="25" align="left" valign="top" width="488"><!--list.var2--></td>
</tr>
[!--empirenews.listtemp--]

(list.var调用的是)
$img="";
if($bqr[img]>0)
{
$img="[图]";
}
$listtemp='<li><img border="0" src="/skin/default/images/biaoti1.gif" width="12" height="12"><a target="_blank" href="[!--titleurl--]">[!--title--]</a><font color="#ff0000"> '.$img.'</font><font color="#000000">[!--newstime--]</font><li>';
上传以下图片

猜你在找的帝国CMS相关文章