{dede:field name='position' runphp='yes'} $a=mb_strlen(@me);//计算字符串的长度 @me=cn_substr(@me,$a-2,-1);//截取字符 {/dede:field} |
{dede:field name='position' runphp='yes'} $tc=" > "; $tf=split($tc,@me); $tn=count($tf); for($iij=0;$iij<($tn-1);$iij++){ if($iij==($tn-2)){$tf[$iij]=strip_tags($tf[$iij]);} $tl=$tl.$tf[$iij]; } @me=$tl; echo @me; {/dede:field} |
function GetOneTypeLink($typeinfos) { $typepage = $this->GetOneTypeUrl($typeinfos); $typelink = "<a href='".$typepage."'>".$typeinfos['typename']."</a>"; return $typelink; } |