⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 magic_shop.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include flush="true" page="header.jsp" />
<div id="nav"><a href="${settings.indexname}">${settings.bbname}</a> &raquo; 道具商店</div>
<div class="container">
<div class="side"><jsp:include flush="true" page="magic_navbar.jsp" /></div>
<div class="content">
<c:choose><c:when test="${!isBuyAnyOne}">
<div class="mainbox">
<h1>道具商店</h1>
<ul class="tabs">
	<li class="${ current=='all'?'current':''}"><a href="magic.jsp?action=shop">全部</a></li>
	<li class="${ current=='1'?'current':''}"><a href="magic.jsp?action=shop&amp;typeid=1">帖子类</a></li>
	<li class="${current=='2'?'current':''}"><a href="magic.jsp?action=shop&amp;typeid=2">会员类</a></li>
	<li class="${ current=='3'?'current':''}"><a href="magic.jsp?action=shop&amp;typeid=3">其它类</a></li>
</ul>
<table summary="道具商店" cellspacing="0" cellpadding="0"><tr><c:forEach items="${magic_shopVOList}" var="magic_shopVO" varStatus="count">
	<td width="50%" class="attriblist"><dl>
		<dt><img src="images/magics/${magic_shopVO.imageName }.gif" alt="${magic_shopVO.magicName }" /></dt>
		<dd class="name">${magic_shopVO.magicName }</dd><dd>${magic_shopVO.magicInfo }</dd>
		<dd>售价: <b>${magic_shopVO.price }</b> ${magic_shopVO.extcredits } 重量: <b>${magic_shopVO.weight }</b> 库存: <b>${magic_shopVO.stock }</b> 销量: <b>${magic_shopVO.numOfSale }</b></dd>
		<dd><a href="magic.jsp?action=prepareShopping&amp;magicid=${magic_shopVO.id }">购买</a></dd>
	</dl></td>${count.count%2==0?"</tr><tr>":""}
</c:forEach></tr></table>
</div>
</c:when><c:otherwise >
<form method="post" action="magic.jsp?action=shopping">
	<input type="hidden" name="operation" value="buy" />
	<input type="hidden" name="magicid" value="${magic_shopVO.id }" />
	<input type="hidden" name="operatesubmit" value="yes" />
	<div class="mainbox">
		<h1>道具商店</h1>
		<table cellspacing="0" cellpadding="0" width="100%" align="0">
			<tr><td rowspan="6" align="center" width="20%"><img src="images/magics/${magic_shopVO.imageName }.gif" alt="${magic_shopVO.magicName }" /><br /></td><td width="80%"><b>${magic_shopVO.magicName }</b></td></tr>
			<tr><td>${magic_shopVO.magicInfo }</td></tr>
			<tr><td>售价: ${magic_shopVO.price } ${magic_shopVO.extcredits } 库存: ${magic_shopVO.stock } 销量: ${magic_shopVO.numOfSale } 重量: ${magic_shopVO.weight }</td></tr>
			<tr><td>是否允许使用: <font color=red> ${magic_shopVO.isUsable?'允许':'不允许' } </font>	<br /><c:choose><c:when test="${magic_shopVO.type=='1'}">允许使用版块: <c:choose><c:when test="${magic_shopVO.moduleListSize==0 }">无版块</c:when><c:otherwise><c:forEach items="${magic_shopVO.moduleList }" var="model"><a href="forumdisplay.jsp?fid=${model.id }">${model.name }</a>&nbsp;&nbsp;</c:forEach></c:otherwise></c:choose></c:when><c:when test="${magic_shopVO.type=='2'}">允许被使用的用户组: <c:choose><c:when test="${magic_shopVO.usergroupNameListSize==0 }">无用户组</c:when><c:otherwise><c:forEach items="${magic_shopVO.usergroupNameList }" var="usergroupName">${usergroupName}&nbsp;&nbsp;</c:forEach></c:otherwise></c:choose></c:when></c:choose></td></tr>
			<tr><td width="10%">购买数量: <input name="magicnum" type="text" size="5" value="1" />&nbsp; <c:if test="${allowMagics=='2'}"><input type="checkbox" value="1" name="sendToOtherUser" onclick="$('showgive').style.display = $('showgive').style.display == 'none' ? '' : 'none'; this.value = this.value == 1 ? 0 : 1; this.checked = this.value == 1 ? false : true" /> 赠送其他用户 <div id="showgive" style="display:none">赠送对象用户名: <input name="tousername" type="text" size="5" /></div></c:if></td></tr>
			<tr><td><button class="submit" type="submit" name="operatesubmit" id="operatesubmit" value="true" tabindex="101">购买</button></td></tr>
		</table>
	</div>
</form>
</c:otherwise></c:choose>
${multipage}
</div>
</div>
<jsp:include flush="true" page="footer.jsp" />

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -