Discuz.Web/templates/default3.1/_poll.htm
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%if {topic.Special}==1%>
<!--投票区开始-->
<div class="pollpanel">
<h4>
投票:<strong>{topic.title}</strong>
<%if {pollinfo.multiple}==1%>
- 多选(最多可选{pollinfo.maxchoices}项)
<%/if%>
- 截止时间:{pollinfo.expiration}
</h4>
<table border="0" cellpadding="0" cellspacing="0" summary="pollpanel">
<%loop polloption Polls.GetPollOptionList(topicid)%>
<tbody>
<tr>
<td class="selector">
<%if {allowvote}%>
<%if {pollinfo.multiple}==1%>
<input type="checkbox" name="pollitemid" value="{polloption[polloptionid]}" onclick='checkbox(this)'/>
<%else%>
<input type="radio" name="pollitemid" value="{polloption[polloptionid]}" />
<%/if%>
<%/if%>
</td>
<td colspan="2">
{polloption[_id]}. {polloption[name]}
<%if {showpollresult}%><%if {useradminid}==1 && {polloption[value]}!="0"%>
( <a href="javascript:void(0);" onclick="javascript:displayvoter($('voterlist{polloption[polloptionid]}'));">该项投票人</a> )
<%/if%>
<%/if%>
</td>
</tr>
<%if {showpollresult}%>
<tr>
<td> </td>
<td class="optionvessel">
<div class="optionbar">
<%set (int){styleid}={polloption[_id]} % 10%>
<div class="polloptionbar <%if {polloption[value]}!="0"%>pollcolor{styleid}<%/if%>" style="width:{polloption[percentwidth]}px"></div>
</div>
</td>
<td>
<strong>{polloption[value]}</strong>票 / {polloption[percent]}
</td>
</tr>
<tr id="voterlist{polloption[polloptionid]}" style="display:none;">
<td colspan="3">
<%if {useradminid}==1 && {polloption[value]}!="0"%>
{polloption[votername]}
<%/if%>
</td>
</tr>
<%/if%>
</tbody>
<%/loop%>
<script language="javascript">
var max_obj = {pollinfo.maxchoices};
var p = 0;
function checkbox(obj) {
if(obj.checked) {
后面还有 67 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
