舟山闪爸电子技术有限公司

KesionCMS 幫助
幫助首頁(yè) V6使用手冊(cè) - 問(wèn)題匯總

6、科汛CMS強(qiáng)力打造完美在線(xiàn)投票管理系統(tǒng)

0 2009/9/23 14:23:46

 
第二步:從圖片數(shù)據(jù)表中選擇要用到的字段,如下圖:
6、科汛CMS強(qiáng)力打造完美在線(xiàn)投票管理系統(tǒng) 第 6 張
最終查詢(xún)語(yǔ)句如下:
select ID,Title,PhotoUrl,Score,picturecontent,KS_area from KS_Photo where tid='{$CurrClassID}' order by id desc
 

點(diǎn)擊下一步繼續(xù),寫(xiě)循環(huán)體,如下所示(要顯示成什么樣式,大家可以自己寫(xiě)代碼)

[loop=10]
<table width="400" border="0" cellspacing="0" cellpadding="0" style="padding-bottom:5px;">
<tr>
<td height="144" align="center" style="padding-bottom:5px;">

<table width="138" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="tu"><a href="{$Field(ID,GetInfoUrl,2,1)}"><img src="{$Field(PhotoUrl,Text,0,...,0,)}" width="138" height="138" border="0"/></a></td></tr>
<tr>
<td height="5" align="center"></td>
</tr>
<tr>
<td height="20" align="center" class="conter_right_ziti">姓&nbsp;&nbsp;&nbsp;&nbsp;名:<a href="{$Field(ID,GetInfoUrl,2,1)}"><span class="conter_right_ziti">{$Field(Title,Text,0,...,0,)}</span></a></td></tr>
<tr>
<td height="20" align="center" class="conter_right_ziti">所在區(qū)域:<a href="{$Field(ID,GetInfoUrl,2,1)}"><span class="conter_right_ziti">{$Field(KS_area,Text,0,...,0,)}</span></a></td></tr>
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" class="conter_right_ziti2">得票數(shù):{$Field(Score,Num,0,2)}</td><td valign="top">
<a href="/Item/vote.asp?m=2&id={$Field(ID,GetInfoUrl,2,2)}"><img src="/images/anniu.gif"  width="58" height="16" border="0"></a>
</td></tr>
</table></td>
</tr>
</table>
</td>
<td width="200" valign="top" style="padding-bottom:5px;"><p>自我介紹:</p>
  <p>{$Field(picturecontent,Text,0,...,0,)}</p></td>
</tr>
</table>
[/loop]

 

 

OK,最后輕輕點(diǎn)擊一下你的鼠標(biāo),點(diǎn)擊“確定保存”,標(biāo)簽建立完成。
 
100%