📄 magic_user.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> » 我的道具箱
</div>
<div class="container">
<div class="side">
<jsp:include flush="true" page="magic_navbar.jsp" />
</div>
<div class="content">
<c:if test="${valueObject.operation==null||valueObject.operation==''}">
<div class="mainbox">
<h1>
我的道具箱
</h1>
<ul class="tabs">
<li class="${ valueObject.current=='all'?'current':''}">
<a href="magic.jsp?action=user&pid=0">全部</a>
</li>
<li class="${ valueObject.current=='1'?'current':''}">
<a href="magic.jsp?action=user&typeid=1&pid=0">帖子类</a>
</li>
<li class="${ valueObject.current=='2'?'current':''}">
<a href="magic.jsp?action=user&typeid=2&pid=0">会员类</a>
</li>
<li class="${ valueObject.current=='3'?'current':''}">
<a href="magic.jsp?action=user&typeid=3&pid=0">其它类</a>
</li>
</ul>
<table summary="我的道具箱" cellspacing="0" cellpadding="0">
<c:forEach items="${valueObject.magicInfoList}" var="magicInfo"
varStatus="count">
<c:if test="${count.count%2==1}">
<tr>
</c:if>
<td width="50%" class="attriblist">
<dl>
<dt>
<img src="images/magics/${magicInfo.imageName }.gif"
alt="${magicInfo.magicName }" />
</dt>
<dd class="name">
${magicInfo.magicName }
</dd>
<dd>
${magicInfo.magicExplaining }
</dd>
<dd>
数量:
<b>${magicInfo.magicCount }</b> 总重量:
<b>${magicInfo.allMagicWeight }</b>
</dd>
<dd>
<a href="magic.jsp?action=prepareOperation&operation=use&magicid=${magicInfo.magicId }&pid=0&username=">使用</a> |
<c:if test="${valueObject.selectSendASell}">
<a href="magic.jsp?action=prepareOperation&operation=give&magicid=${magicInfo.magicId }">赠送</a> |
</c:if>
<a href="magic.jsp?action=prepareOperation&operation=drop&magicid=${magicInfo.magicId }">丢弃</a> |
<c:if test="${valueObject.selectSendASell}">
<a href="magic.jsp?action=prepareOperation&operation=sell&magicid=${magicInfo.magicId }">出售</a>
</c:if>
</dd>
</dl>
</td>
<c:if test="${count.count%2==0}">
</tr>
</c:if>
</c:forEach>
<c:if test="${!valueObject.haveMagic}">
<tr>
<td>
没有此类道具,您可以点 <a href="magic.jsp?action=shop"><u>这里</u></a> 购买相应道具。
</td>
</tr>
</c:if>
</table>
</div>
${multipage}
</c:if>
<%--以下具体某个道具的页面显示信息 --%>
<c:if
test="${valueObject.operation=='give'||valueObject.operation=='use'||valueObject.operation=='sell'||valueObject.operation=='drop'}">
<form method="post" action="magic.jsp?action=operating">
<input type="hidden" name="magicid" value="${valueObject.magicId}" />
<div class="mainbox">
<h1>
<c:choose>
<c:when test="${valueObject.operation=='use'}">
使用
<input type="hidden" name="operation" value="use" />
</c:when>
<c:when test="${valueObject.operation=='give'}">
赠送
<input type="hidden" name="operation" value="give" />
</c:when>
<c:when test="${valueObject.operation=='drop'}">
丢弃
<input type="hidden" name="operation" value="drop" />
</c:when>
<c:when test="${valueObject.operation=='sell'}">
出售
<input type="hidden" name="operation" value="sell" />
</c:when>
</c:choose>
</h1>
<table summary="" cellspacing="0" cellpadding="0">
<tr>
<td class="attriblist">
<dl>
<dt>
<img src="images/magics/${valueObject.imageName }.gif"
alt="${valueObject.magicName }" />
</dt>
<dd>
${valueObject.magicName }
</dd>
<dd>
${valueObject.magicExplaining }
</dd>
<dd>
数量: ${valueObject.magicCount } 总重量:
${valueObject.allMagicWeight }
</dd>
<dd>
是否允许使用:
<font color=red> ${valueObject.usable } </font>
</dd>
<dd>
<c:choose>
<c:when test="${valueObject.magicType=='1'}">
允许使用版块:
<c:choose>
<c:when test="${valueObject.moduleListSize==0 }">
无版块
</c:when>
<c:otherwise>
<c:forEach items="${valueObject.moduleList }" var="model">
<a href="${pageContext.request.contextPath }/forumdisplay.jsp?fid=${model.id }">${model.name}</a>
</c:forEach>
</c:otherwise>
</c:choose>
</c:when>
<c:when test="${valueObject.magicType=='2'}">
允许被使用的用户组:
<c:choose>
<c:when test="${valueObject.usergroupNameListSize==0 }">
无用户组
</c:when>
<c:otherwise>
<c:forEach items="${valueObject.usergroupNameList }" var="usergroupName">
${usergroupName}
</c:forEach>
</c:otherwise>
</c:choose>
</c:when>
</c:choose>
</dd>
</dl>
</td>
</tr>
<c:if test="${valueObject.operation!='use'}">
<tr>
<td width="10%">
数量:
<input name="magicnum" type="text" size="5" value="1" />
<c:choose>
<c:when test="${valueObject.operation=='sell'}">
售价:
<input name="price" type="text" size="5" />
</c:when>
<c:when test="${valueObject.operation=='give'}">
赠送对象用户名:
<input name="tousername" type="text" size="5" />
</c:when>
</c:choose>
</td>
</tr>
</c:if>
<tr class="btns">
<td colspan="2">
<c:if test="${valueObject.operation=='use'}">
<div class="mainbox">
<h1>
相关选项
</h1>
<table summary="" cellspacing="0" cellpadding="0">
<tr>
<th>
${valueObject.operationInfo1 }
</th>
<c:if test="${valueObject.displayText}">
<th>
<input type="text" size="30" name="${valueObject.textName }" value="${valueObject.textName=='targetUsername'?'':0 }" />
</th>
</c:if>
</tr>
<c:if test="${valueObject.showOperationInfo2 }">
<tr>
<th>
${valueObject.operationInfo2 }
</th>
<th>
<c:choose>
<c:when test="${valueObject.isChangeColor}">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<c:forEach items="${valueObject.colorList}"
var="color" varStatus="count">
<td>
<input type="radio" class="radio"
name="highlight_color" value="${count.count }"
${count.count==1?'checked':''} />
</td>
<td width="20" bgcolor="${color }">
</td>
</c:forEach>
</tr>
</table>
</c:when>
<c:otherwise>
<select name="moveto">
${valueObject.selectContent}
</select>
</c:otherwise>
</c:choose>
</th>
</tr>
</c:if>
</table>
</div>
</c:if>
<c:choose>
<c:when test="${valueObject.operation=='use'}">
<button class="submit" type="submit" name="usesubmit"
id="usesubmit" value="true">
使用
</button>
</c:when>
<c:when test="${valueObject.operation=='give'}">
<button class="submit" type="submit" name="operatesubmit"
id="operatesubmit" value="true"
onclick="return confirm('确认该操作');">
赠送
</button>
</c:when>
<c:when test="${valueObject.operation=='drop'}">
<button class="submit" type="submit" name="operatesubmit"
id="operatesubmit" value="true"
onclick="return confirm('确认该操作');">
丢弃
</button>
</c:when>
<c:when test="${valueObject.operation=='sell'}">
<button class="submit" type="submit" name="operatesubmit"
id="operatesubmit" value="true"
onclick="return confirm('确认该操作');">
出售
</button>
</c:when>
</c:choose>
</td>
</tr>
</table>
</div>
</form>
</c:if>
</div>
</div>
<jsp:include flush="true" page="footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -