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>';
您好,php网站搭建需要你有php程序源码,Windows服务器系统可以使用phpstudy搭建 phpstudy搭建教程 如果是linux服务器建议安装宝塔搭建程序 ...
1:超低的仿站价格2:上线时间加快,增加效益3:网站效果更加得到提升以及保证
我们经常看到有些网站PC和手机访问的时候显示不同的页面,而且网址是一样的,右击查看源代码也是一样的,这就属于响应式自适应的网站,那么仿制自适...
怎么仿站应该是每一个希望学习仿站的人都必须要了解的。如果不在仿站之前了解一下,仿站可能不成功,或者仿出来的网站没有真正的意义。下面仿...
模板加密的不能仿,有一些模板会把一些参数写到JS里面,然后通过复杂的JS控制一些特效和布局这种大部分都有相关的验证,及时本地能运行,但发布到网...
一定要确定一个事实,网站备案的本质,就是监管网站制作人的。是监管主办者本人为目的的。 所以一个公民,一个责任人,一个主办者,只允许有一...