if(!empty($bqr[titlepic])) //图片
if($bqr[isgood]==1) //推荐
if($r[firsttitle]==1) //头条
if($r[istop]==1) //置顶
if($bqr[isgood]==1&&$bqr[firsttitle]==1&&$bqr[istop]==1) //置顶-头条-推荐 (组合使用)
②、调用全部的推荐、头条、置顶(即:把“==1”修改为“>0”)
if(!empty($bqr[titlepic])) //图片
if($bqr[isgood]>0) //推荐
if($r[firsttitle]>0) //头条
if($r[istop]>0) //置顶
if($bqr[isgood]>0&&$bqr[firsttitle]>0&&$bqr[istop]>0) //置顶-头条-推荐 (组合使用)
---------------------------------------------------------------------------------------------
<?=$newimg?>可以是图片 $newimg="<img src='dg2/e/data/images/saypl.gif' />";
举例:
$r[title]=esub($r[title],27,'...');
$newimg="";
if($r[istop]==1)
{
$newimg="<font color=red>[顶]</font>";
}
elseif($r[isgood]==1)
{
$newimg="<font color=red>[荐]</font>";
}
elseif($r[firsttitle]==1)
{
$newimg="<font color=red>[头]</font>";
}
$listtemp='<li>【'.$class_r[$r[classid]]['classname'].' 】【[!--this.classname--]】'.$newimg.' <a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span>[!--newstime--]</span></li>';
$r[title]=esub($r[title],27,'...');
if($r[istop]==1)
{
$newimg="<font color=red>[顶]</font>";
}
elseif($r[isgood]==1)
{
$newimg="<font color=red>[荐]</font>";
}
elseif($r[firsttitle]==1)
{
$newimg="<font color=red>[头]</font>";
}
else
{
$newimg="";
}
$listtemp='<li>【'.$class_r[$r[classid]]['classname'].' 】【[!--this.classname--]】'.$newimg.' <a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span>[!--newstime--]</span></li>';
$r[title]=esub($r[title],27,'...');
$newimg="";
if($r[isgood]==1&&$r[firsttitle]==1)
{
$newimg="<font color=red>[推荐]</font> <font color=red>[头条]</font>";
}
elseif($r[isgood]==1)
{
$newimg="<font color=red>[推荐]</font>";
}
elseif($r[firsttitle]==1)
{
$newimg="<font color=red>[头条]</font>";
}
$listtemp='<li>【'.$class_r[$r[classid]]['classname'].' 】【[!--this.classname--]】'.$newimg.' <a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span>[!--newstime--]</span></li>';
cms系统已经成为建站的首选,因为现有的cms非常多,用户数量也很多。cms入门很快,加上cms本身提供的模版也超多,因此建一个站不超过10分钟。在众多...
你好,在云主机上搭建网站是和物理服务器上搭建一样的,在云主机上装一个IIS,数据库,然后上传网站程序和数据库到服务器上,再在IIS上绑定一下您网站...
仿站是我们很是熟悉的一个建站流程。根据您对网上某个网站的极其认可,喜欢,然后对它进行风格的仿制以及功能的仿制,以快速达到对方的水平,这就是...
为什么制作网站地图?上次仿站网和大家说了什么是网站地图,今天我们来讲讲一个网站为什么制作网站地图呢?众所周知,网站地图要包括您的主要网...
帝国CMS,虽然官方的宣传语也是想到即可做到,但从我在对帝国CMS作一些简单功能需求的修改及插件开发来看,帝国CMS离想到即可做到太远,限制在帝国...
所谓大道至简,做网站仿站也是如此。市面上很多网站建设公司为了取得客户信任,总是会在第一次接触时就将自己的案例展现出来,案例中很多都是各种...