给没能完全显示的标题加上…,给图片和图片链接加上title(2)_DedeCms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

//处理一些非凡字段
$row["description"] = cn_substr($row["description"],$infolen);
$row["id"] = $row["ID"];
if($row["litpic"]=="") $row["litpic"] = $GLOBALS["cfg_plus_dir"]."/img/default.gif";
$row["picname"] = $row["litpic"];
$row["arcurl"] = $this->GetArcUrl($row["id"],$row["typeid"],$row["senddate"],$row["title"],$row["ismake"],$row["arcrank"],$row["namerule"],$row["typedir"],$row["money"]);
$row["typeurl"] = $this->GetListUrl($row["typeid"],$row["typedir"],$row["isdefault"],$row["defaultname"],$row["ispart"],$row["namerule2"]);
$row["info"] = $row["description"];
$row["filename"] = $row["arcurl"];
$row["stime"] = GetDateMK($row["pubdate"]);
$row["typelink"] = "<a href='".$row["typeurl"]."'>".$row["typename"]."</a>";
//zouql
$row["imglink"] = "<a href='".$row["filename"]."'><img alt='".$row["title"]."' src='".$row["picname"]."'></a>";
$row["image"] = "<img title='".$row["title"]."' src='".$row["picname"]."'>";
//zouql标题没有显示完全后面显示的省略号...,为空则不开启本功能
$cfg_list_slh = "…";
if ($cfg_list_slh != "") $slh = strlen($cfg_list_slh);
$row["title_full"] = $row["title"];
$row["title"] = cn_substr($row["title"],$titlelen);
$row["title_2"] = cn_substr($row["title_full"],$titlelen-$slh);
if($row["title"] != $row["title_full"]) $row["title"] = $row["title_2"].$cfg_list_slh;
$row["textlink"] = "<a title='".$row["title_full"]."' href='".$row["filename"]."'>".$row["title"]."</a>";
if($row["color"]!="") $row["title"] = "<font color='".$row["color"]."'>".$row["title"]."</font>";
if($row["iscommend"]==5||$row["iscommend"]==16) $row["title"] = "<b>".$row["title"]."</b>";
$row["phpurl"] = $GLOBALS["cfg_plus_dir"];
$row["templeturl"] = $GLOBALS["cfg_templets_dir"];
//--------------------------- [Copy to clipboard]

----------------------------------------------------------------------------------------------------------

查看更多 DedeCms教程  织梦模板  织梦DedeCms视频教程  织梦dedecms专题

来源:模板无忧//所属分类:DedeCms教程/更新时间:2007-01-28
相关DedeCms教程