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

📄 group.jsp

📁 JSP购物车(SQLserver版) ================== 简单的JSP电子商务网站购物车 带结算功能,带注册系统 大二时自己编写的,供大家参考学习 功能不是很详尽,美工
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../inc/common.jsp" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${basic.name}后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<club:html type="css" />
<script type="text/javascript" src="../scripts/common.js"></script>
<script type="text/javascript">
function sub(){
	c.p('qwSubmit',true);
	var o = c.t(c.o("role_2"),"OPTION");
	var str="";
	for(var i=0;i<o.length;i++){
		str = str + o[i].value;
		str = str + "|";
	}
	c.o("roleIds").value=str;
}	
</script>
</head>
<body>
<div id="wrap">
<div class="sitemap">
<ul>
<li>您的位置:</li><li>后台管理&gt;&gt;</li><li><h3>用户组管理</h3></li>
</ul>
</div>
<div class="round">
<div style="padding:0px 4px 0px 4px; line-height:22px;">温馨提示:用户组权限应从高到低设定,这样用户就无法从前台把其他帐号设置成比自己所在用户组高的用户组成员,从而无法到达非法提升权限的目的了!</div>
</div>
<%
GroupJsp groupJsp = new GroupJsp(request,response);
com.yeqiangwei.club.controller.form.GroupForm groupForm = groupJsp.getGroupForm();
%><%@ include file="../inc/msgHint.jsp" %>
<div class="sidebar gform">
<form id="gform" name="gform" action="admin.do?act=groupEdit&groupId=<%=ParamUtils.getStringParameter(request,"groupId","0")%>" method="post" onsubmit="sub();">
<table summary="用户组管理" class="tabform">
<tbody>
<tr>
<th scope="row">组名称:</th>
<td><input type="text" name="groupName" id="groupName" value="<%=groupForm.getGroupName()%>" class="input"/></td>
</tr>
<tr>
<th scope="row">过客默认组:</th>
<td class="t_end">
<club:html type="input" name="guestDefault" htmlType="radio" value="false" ovalue="<%=String.valueOf(groupForm.getGuestDefault())%>" />No
&nbsp;&nbsp;
<club:html type="input" name="guestDefault" htmlType="radio" value="true" ovalue="<%=String.valueOf(groupForm.getGuestDefault())%>" />Yes
</td>
</tr>
<tr>
<th scope="row">注册默认组:</th>
<td class="t_end">
<club:html type="input" name="registerDefault" htmlType="radio" value="false" ovalue="<%=String.valueOf(groupForm.getRegisterDefault())%>" />No
&nbsp;&nbsp;
<club:html type="input" name="registerDefault" htmlType="radio" value="true" ovalue="<%=String.valueOf(groupForm.getRegisterDefault())%>" />Yes
</td>
</tr>
<tr>
<th scope="row">组包含的角色:</th>
<td class="t_end">
	<table style="width:400px;">
	<thead>
	<tr>
	<th scope="col" style="width:150px; border:0px;" class="t_end">未选角色</th>
	<th scope="col" style="width:100px; border:0px; text-align:center" class="t_end">操作</th>
	<th scope="col" style="width:150px; border:0px;" class="t_end">已选角色</th>
	</tr>
	</thead>
	<tbody>
	<td class="t_end">
	<select name="role_1" id="role_1" style="width:130px; height:200px; padding:4px;" multiple onChange="su.initialize('role_1')">
	<%RoleJsp roleJsp = new RoleJsp(request,response);
	java.util.List list = roleJsp.findAll();
	if(list!=null){
		for(int i=0; i<list.size(); i++){
			com.yeqiangwei.club.view.model.RoleView item = (com.yeqiangwei.club.view.model.RoleView)list.get(i);
			out.print("<option value=\""+item.getRoleId()+"\">"+item.getRoleName()+"</option>");
		}
	}
	%>
	</select>
	</td>
	<td class="t_end" style="text-align:center">
	<a onclick="su.moveIn('role_1','role_2');" title="选中">&gt;</a><br/>
	<a onclick="su.moveOut('role_1','role_2');" title="移除">&lt;</a><br/>
	<a onclick="su.moveInAll('role_1','role_2');" title="全部选中">&gt;&gt;</a><br/>
	<a onclick="su.moveOutAll('role_1','role_2');" title="全部移除">&lt;&lt;</a><br/>
	</td>
	<td class="t_end">
	<select  name="role_2" id="role_2" style="width:130px; height:200px; padding:4px;" multiple onChange="su.initialize('role_2')">
	<%
	list = groupJsp.findRolesByRoleIds(groupForm.getRoleIds());
	if(list!=null){
		for(int i=0; i<list.size(); i++){
			com.yeqiangwei.club.view.model.RoleView item = (com.yeqiangwei.club.view.model.RoleView)list.get(i);
			out.print("<option value=\""+item.getRoleId()+"\">"+item.getRoleName()+"</option>");
		}
	}
	%>
	</select>
	<script type="text/javascript">su.init('role_1','role_2');</script>
	<input type="hidden" name="roleIds" id="roleIds" value="" />
	</td>
	</tbody>
	</table>
</td>
</tr>
<tr>
<th scope="row"></th>
<td class="t_end"><input type="submit" name="qwSubmit" id="qwSubmit" value="确定提交"></td>
</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->

⌨️ 快捷键说明

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