实现网络调查投票模块
id:投票ID 可以为空,为空则获取站点的默认投票
siteId:站点ID 默认为当前站点
[@cms_vote] [#if !tag_bean??] 没有默认投票主题 [#else] <form name="votes" action="${base}/vote.jspx" method="post" target="_blank"> <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td height="30" colspan="2" align="left"> ${tag_bean.title?html} <input type="hidden" name="voteId" value="${tag_bean.id}"/> </td> </tr> [#if tag_bean.multiSelect gt 1] [#list tag_bean.items as item] <tr> <td width="9%" height="20" align="center"> <input type="checkbox" name="itemIds" value="${item.id}" onClick="check_votes(${tag_bean.multiSelect})" id="${item.id}"/> </td> <td width="91%" align="left">${item.title?html}</td> </tr> [/#list] [#else] [#list tag_bean.items as item] <tr> <td width="9%" height="20" align="center"><input type="radio" name="itemIds" value="${item.id}"/></td> <td width="91%" align="left">${item.title?html}</td> </tr> [/#list] [/#if] <tr> <td height="30" colspan="2" align="center"> <input type="submit" value="投票" onClick="return check_votes(${tag_bean.multiSelect})"/> <a href="${base}/vote_result.jspx?voteId=${tag_bean.id}" target="_blank">查看投票结果</a> </td> </tr> </table> </form> [/#if] [/@cms_vote]
发表评论(对文章涉及的知识点还有疑问,可以在这里留言,老高看到后会及时回复的。)