以下代碼加到列表模板-列表內容模板(list.var) (*) ,并開啟程序代碼,主要是根據置頂級別顯示內容
$sj='';
$zt='';
$st='';
$jiage='';
if($r[zhaozutype]==0)
{
$jiage='<font color="#ff5800">(面議)</font>';
$sj='';
$st='';
$zt='';
}
elseif($r[zhaozutype]==1)
{
$jiage='[!--zhuanrang_price--]';
$sj='';
$st='';
$zt='';
}
elseif($r[befrom]==2)
{
$zt='<font color="#ff5800">(經紀人)</font>';
$sj='';
$st='';
$jiage='';
}
elseif($r[isgood]==1)
{
$st='<font color="#ff5800">(實體認證)</font>';
$zt='';
$sj='';
$jiage='';
}
elseif($r[istop]==1)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==2)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==3)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==4)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==5)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==6)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==7)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
elseif($r[istop]==8)
{
$sj='<font color="#ff5800">[置頂]</font>';
$zt='';
$st='';
$jiage='';
}
$listtemp='
<li>
<p class="listcontent_title"><a href="[!--titleurl--]" target="_blank" class="link_0b559f fl display_b font_s14 b">[!--title--]</a>'.$st.' '.$sj.' '.$zt.'</p>
<div class="zhaozu_imgtxt clear">
<div class="img fl" ><a target="_blank" href="[!--titleurl--]"> <img title="[!--oldtitle--] " src="[!--titlepic--]" /> </a></div>
<div class="txt1 fl pl_10 pr_10 ">
<div class="row1">
<p class="zhaozu_address1 fl">[!--title--]</p>
<p class="zhaozu_area2 fl text_ac"><span class="fc_orange font_s16 b">[!--mianji--]</span>平米</p>
<p class="zhaozu_price fl text_ac"><span class="fc_orange font_s16 b">[!--price--]</span>[!--priceunit--]</p>
<p class="zhaozu_zhuanrang fl text_ac"><span class="fc_orange font_s16 b">'.$jiage.'</span></p>
</div>
<div class="row2 clear">
<p class="zhaozu_name fl">[!--linkman--]</p>
<p class="zhaozu_telephone fl"><a href="[!--titleurl--]" target="_blank">查看電話</a></p>
</div>
<div class="row3 clear">
<p class="zhaozu_time fl">更新時間:<span class="fc_666" >[!--newstime--]</span></p>
<div class="fr ">
<p class="zhaozu_consult fr fc_666" >評論(<span id="span3">[!--plnum--]</span>)</p>
<p class="zhaozu_browse fr fc_666">瀏覽([!--onclick--])</p>
</div>
</div>
</div>
</div>
</li>';