📄 viewthread_poll.jsp
字号:
<c:if test="${pollMap[jsprun_uid]==null && (polls.expiration>=nowtime || polls.expiration==0)}">
<c:if test="${usergroups.allowvote==1}">
<td class="selector">
<c:choose>
<c:when test="${polls.maxchoices==1}">
<input class="radio" type="radio" name="pollanswers[]" value="${option.polloptionid}" onclick='checkbox(this)' />
</c:when>
<c:otherwise>
<input class="checkbox" type="checkbox" name="pollanswers[]" value="${option.polloptionid}" onclick='checkbox(this)' />
</c:otherwise>
</c:choose>
</td>
</c:if>
</c:if>
<td style="width: 20%;">
${in.count}. ${option.polloption}
</td>
<td>
<c:choose>
<c:when test="${polls.visible==0}">
<div class="optionbar"><div style="width: ${option.votes/pollMap.ballot*305}px;"> </div></div>
<p>${option.votes}<fmt:formatNumber value="${(option.votes/pollMap.ballot)*100}" var="op" maxFractionDigits="2" />(${op}%)</p>
</c:when>
<c:otherwise>
<c:if test="${jsprun_groupid==1 || modertar || jsprun_uid==thread.authorid || pollMap[jsprun_uid]!=null}">
<div class="optionbar"><div style="width: ${option.votes/pollMap.ballot*305}px;"> </div></div>
<p>${option.votes}<fmt:formatNumber value="${(option.votes/pollMap.ballot)*100}" var="op" maxFractionDigits="2" />(${op}%)</p>
</c:if>
</c:otherwise>
</c:choose>
<c:if test="${jsprun_adminid==1 && option.votes>0}">
<div id="viewvoterframe${option.polloptionid}" style="display:none"> </div>
</c:if>
</td>
<td style="width: 120px;">
<c:if test="${jsprun_adminid==1 && option.votes>0}">
( <a href="misc.jsp?action=viewvote&tid=${thread.tid}&polloptionid=${option.polloptionid}" onclick="ajaxget(this.href, 'viewvoterframe${option.polloptionid}', 'viewvoterframe${option.polloptionid}', null, 'auto');doane(event);">查看该项投票人 </a> )
</c:if>
</td>
</tr>
</c:forEach>
<c:if test="${pollMap[jsprun_uid]==null && (polls.expiration>=nowtime || polls.expiration==0)}">
<c:if test="${usergroups.allowvote==1}">
<td colspan="3">
<button class="submit" type="submit" name="pollsubmit" id="pollsubmit" value="true">提交</button>
</td>
</c:if>
</c:if>
</table>
</div>
</form>
<c:if test="${viewthread.attaurl!=null && viewthread.usermap.attachment>0}">
<c:choose>
<c:when test="${!allowgetattach}">
<div class="notice" style="width: 500px">
附件:
<em>您所在的用户组无法下载或查看附件</em>
</div>
</c:when>
<c:otherwise>
<div class="box postattachlist">
<h4>
附件
</h4>
<c:forEach items="${viewthread.attaurl}" var="attas">
<c:forEach items="${attas}" var="atta">
<dl class="t_attachlist">
<dt>
<img src="images/attachicons/${attatype[atta.key.filetype]}" border="0"
class="absmiddle" alt="" />
<a href="attachment.jsp?aid=${atta.key.aid}">${atta.key.filename}</a>
<em>(<jrun:showFileSize size="${atta.key.filesize}" />)</em>
</dt>
<dd>
<p>
<jrun:showTime timeInt="${atta.key.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>
<c:if test="${settings.attachrefcheck==0 && atta.value==''}">,下载次数: ${atta.key.downloads}</c:if><c:if test="${atta.key.readperm>0}">,阅读权限:${atta.key.readperm}</c:if><c:if test="${atta.key.price>0}">,售价:${atta.key.price} [<a href="misc.jsp?action=viewattachpayments&aid=${atta.key.aid}" target="_blank">记录</a>] <c:if test="${atta.key.isprice==5}">[<a href="misc.jsp?action=attachpay&aid=${atta.key.aid}" target="_blank">购买</a>]</c:if></c:if><c:if test="${atta.key.description!=''}"><br>${atta.key.description}</c:if>
</p>
<c:if test="${showimag && settings.attachimgpost==1 && showatta!='false'}">
<c:if test="${atta.value!='' && (readaccess >= atta.key.readperm || atta.key.authorid==jsprun_uid)}">
<c:choose>
<c:when test="${settings.attachrefcheck==0}">
<p>
<a href="#zoom"><img onclick="zoom(this, '${atta.key.attachment}')" src="${atta.value}" alt="${atta.key.filename}" /></a>
</p>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${atta.key.thumb==1}">
<p>
<a href="#zoom"><img onclick="zoom(this, 'attachment.jsp?aid=${atta.key.aid}')" src="attachment.jsp?aid=${atta.key.aid}&noupdate=yes" alt="${atta.key.filename}" /></a>
</p>
</c:when>
<c:otherwise>
<p>
<img src="attachment.jsp?aid=${atta.key.aid}&noupdate=yes" border="0" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.jsp?aid=${atta.key.aid}')" alt="01.gif" />
</p>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</c:if>
</c:if>
</dd>
</dl>
</c:forEach>
</c:forEach>
</div>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${settings.tagstatus==1&&viewthread.usermap.first==1 && taglist!=null}">
<p class="posttags">搜索更多相关主题的帖子:
<c:forEach items="${taglist}" var="tags">
<a href="tag.jsp?name=<jrun:encoding value="${tags.tagname}"/>" target="_blank">${tags.tagname}</a>
</c:forEach>
</p>
</c:if>
</div>
</td>
<td class="postauthor">
<c:if test="${viewthread.avatars!=''}">
<div class="avatar">
<img class="avatar" src="${viewthread.avatars}" alt="" <c:if test="${viewthread.usermap.avatarwidth!='0'&& viewthread.usermap.avatarwidth!=''}">width="${viewthread.usermap.avatarwidth}" height="${viewthread.usermap.avatarheight}"</c:if>><c:if test="${viewthread.usermap.groupavatar!=''}"><br /><img src="${viewthread.usermap.groupavatar}" border="0" alt="" /></c:if>
</div>
</c:if>
<dl>
<dt>发起人</dt>
<dd><c:choose><c:when test="${spaceurlurl}"><a href="space-username-<jrun:encoding value="${thread.author}"/>.html" target="_blank">${thread.author}</a></c:when><c:otherwise><a href="space.jsp?username=<jrun:encoding value="${thread.author}"/>" target="_blank">${thread.author}</a></c:otherwise></c:choose></dd>
<dt><font color="${viewthread.color}">${viewthread.honor}</font></dt>
<dd> </dd>
<dt><jrun:showstars num="${viewthread.stars}" starthreshold="${settings.starthreshold}" imgdir="${styles.IMGDIR}"/></dt>
<dd> </dd>
<dt>开始时间</dt>
<dd><jrun:showTime timeInt="${thread.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></dd>
</dl>
<c:if test="${viewthread.usermap.qq!='' || viewthread.usermap.icq!='' || viewthread.usermap.msn!=''|| viewthread.usermap.yahoo!='' || viewthread.usermap.taobao!=''}">
<p class="imicons">
<c:if test="${viewthread.usermap.msn!=''}">
<a href="javascript:;" onclick="msnoperate('add', '${viewthread.usermap.msn}')" title="添加 ${viewthread.usermap.username} 为MSN好友"><img src="${styles.IMGDIR}/msnadd.gif" alt="添加 ${viewthread.usermap.username} 为MSN好友" /> </a>
</c:if>
<c:if test="${viewthread.usermap.msn!=''}">
<a href="javascript:;" onclick="msnoperate('chat', '${viewthread.usermap.msn}')" title="通过MSN和 ${viewthread.usermap.username}交谈"><img src="${styles.IMGDIR}/msnchat.gif" alt="通过MSN和 ${viewthread.usermap.username} 交谈" /> </a>
</c:if>
<c:if test="${viewthread.usermap.qq!=''}">
<a href="http://wpa.qq.com/msgrd?V=1&Uin=${viewthread.usermap.qq}&Site=Jsprun~&Menu=yes" target="_blank"><img src="${styles.IMGDIR}/qq.gif" alt="QQ" />
</a>
</c:if>
<c:if test="${viewthread.usermap.icq!=''}">
<a href="http://wwp.icq.com/scripts/search.dll?to=${viewthread.usermap.icq}" target="_blank"><img src="${styles.IMGDIR}/icq.gif" alt="ICQ" />
</a>
</c:if>
<c:if test="${viewthread.usermap.yahoo!=''}">
<a href="http://edit.yahoo.com/config/send_webmesg?.target=${viewthread.usermap.yahoo}&.src=pg" target="_blank"><img src="${styles.IMGDIR}/yahoo.gif" alt="Yahoo!" /> </a>
</c:if>
<c:if test="${viewthread.usermap.taobao!=''}">
<script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('${viewthread.usermap.taobao}')+'&s=2"><img src="${styles.IMGDIR}/taobao.gif" alt="阿里旺旺" /></a>');</script>
</c:if>
</p>
</c:if>
<c:forEach items="${viewthread.custominfo.special}" var="cus">${cus}
</c:forEach>
</td>
</tr>
<tr>
<td class="postcontent">
<c:if test="${(usergroups.alloweditpoll>0 && modertar) || thread.authorid==jsprun_uid}">
<a href="post.jsp?action=edit&fid=${viewthread.usermap.fid}&tid=${viewthread.usermap.tid}&pid=${viewthread.usermap.pid}&page=1&extra=page%3D1">编辑</a>
</c:if>
<c:if test="${usergroups.raterange!='' && viewthread.usermap!=null}">
<a href="misc.jsp?action=rate&tid=${viewthread.usermap.tid}&pid=${viewthread.usermap.pid}&page=1" id="ajax_rate_${viewthread.usermap.pid}" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">评分</a>
</c:if>
<c:if test="${jsprun_uid!=null && settings.magicstatus==1 && usergroups.allowmagics>0}">
<a href="magic.jsp?action=user&pid=4" target="_blank">道具</a>
</c:if>
</td>
<td class="postauthor"> </td>
</tr>
</table>
</div>
<div id="ad_interthread"></div>
<div id="ajaxspecialpost"></div>
<script type="text/javascript">ajaxget('viewthread.jsp?fid=${thread.fid}&tid=${thread.tid}&do=viewspecialpost&page=${param.page}&rand='+Math.random(), 'ajaxspecialpost');</script>
<jsp:include flush="true" page="viewthread_fastreply.jsp" />
<c:if test="${settings.forumjump==1&&settings.jsmenu_1>0}">
<div class="popupmenu_popup" id="forumlist_menu" style="display: none">
${forummenu}
</div>
</c:if>
<jsp:include flush="true" page="footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -