支持多个作者方法: 好了,你看看有用不,改了点,可以数个人物名称
function user_ShowLinkWriter($thef,$tbname,$f){ global $dbtbpre,$empire,$navinfor,$class_r; $writer=$navinfor[$thef]; $writera=trim($writer); $ar=preg_split("/[,,|]/",$writera); foreach($ar as $key=>$value) { if($value!=""){ $writer=$value; if(empty($writer)||empty($tbname)||empty($f)) { return ""; } $r=$empire->fetch1("select titleurl,groupid,classid,newspath,filename,id from {$dbtbpre}ecms_".$tbname." where ".$f."='$writer' limit 1"); if($r['id']) { $titleurl=sys_ReturnBqTitleLink($r); echo"<a href='".$titleurl."' target=_blank>".$writer."</a> "; } else { echo $writer." "; } }//if }//foreach }
|