vote_result.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {template "content","header"}
  2. <link href="{CSS_PATH}vote.css" rel="stylesheet" type="text/css" />
  3. <!--main-->
  4. <div class="main tps">
  5. <div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> &gt; </span> <a href="{APP_PATH}index.php?m=vote&c=index&a=lists&siteid={$siteid}">投票</a> </div>
  6. <div class="vote_result">
  7. <div class="tit"><span class="r">总票数:<strong>{$vote_data['total']}</strong></span><h5>{$subject}</h5></div>
  8. <div class="c_box wrap">
  9. <table width="100%" border="1" cellspacing="0" cellpadding="0">
  10. {loop $options $r}
  11. {$i++}
  12. {if $vote_data['total']==0 }
  13. {php $per=0;}
  14. {else}
  15. {php $per=intval($vote_data[$r['optionid']]/$vote_data['total']*100);}
  16. {/if}
  17. <tr>
  18. <th>{$i}</th>
  19. <td class="tp_tit">{$r['option']}</td>
  20. <td class="tdcol3">{$per} %</td>
  21. <td><div><img src="statics/images/vote/tit_cs.jpg" width="{$per}%" /></div></td>
  22. <td class="tdcol3">{php echo $vote_data[$r['optionid']]==''? 0:$vote_data[$r['optionid']]} 票</td>
  23. </tr>
  24. {/loop}
  25. </table>
  26. </div>
  27. </div>
  28. <div class="vote_listt">
  29. <div class="tit"><span class="r"><a href="{APP_PATH}index.php?m=vote&c=index&a=lists&siteid={$siteid}">查看更多>></a></span><h5>其他投票</h5></div>
  30. <ul class="wrap licol2 icon3j">
  31. {pc:vote action="other_vote" catid="$catid" num="8" order="subjectid DESC"}
  32. {loop $data $r}
  33. <li><a title="{$r['subject']}" href="{APP_PATH}index.php?m=vote&c=index&a=show&show_type=1&subjectid={$r['subjectid']}&siteid={$siteid}">{$r['subject']}</a><span><font color="#1E50A0">(得票数: {$r['votenumber']})</font></span></li>
  34. {/loop}
  35. {/pc}
  36. </ul>
  37. </div>
  38. </div>
  39. {template "content","footer"}