?? grantrole.jsp
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="roleBean" class="com.saas.biz.roleMgr.RoleInfo" scope="page"></jsp:useBean>
<html>
<head>
<title>企業(yè)信息化服務(wù)平臺(tái)</title>
<link href="/style/layout.css" rel="stylesheet" type="text/css">
<link href="/style/daohang.css" rel="stylesheet" type="text/css">
<link href="/style/css.css" rel="stylesheet" type="text/css">
<link href="/style/manager.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/prototype.js"></script>
<link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css" />
<script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext/ext-all.js"></script>
<script type="text/javascript" src="../ext/build/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="/salesFormMgr/userGird.js"></script>
<style>
.l_td{background-color:#f6f6f6; color:#000000;font-weight:bold; font-size:12px;text-align:right;width: 15%}
.r_td{background-color:#ffffff; color:#000000; font-size:12px;width: 85%}
</style>
<script type="text/javascript">
function check_Value(){
var role_code=$F("code");
if(role_code=="a"){
alert("請(qǐng)選擇要分配的角色!");
return false;
}else if(role_code=="n"){
alert("你還沒有設(shè)置角色,請(qǐng)?jiān)僭O(shè)置角色!");
return false;
}
var user_name=$F("user_name");
if(user_name=="" || user_name==null){
alert("請(qǐng)選擇用戶!");
return false;
}
return true;
}
/***查看用戶已有角色****/
function checkUserRole(){
$("role").style.display="block";
$("bnt").style.display="block";
$("check").style.display="none";
var cust_id=$F("cust_id");
var user_id=$F("sale_user_id");
var data = Math.round(Math.random() * 10000);
var myAjax = new Ajax.Updater('role-div',
'userRole.jsp?&user_id=' + user_id + "&cust_id="+cust_id+"&data=" + data,
{
method : 'get',
evalScripts: true
});
}
/****列出用戶清單***********/
function showUserList(){
showUserWind();
$("bnt").style.display="none";
$("check").style.display="block";
$("role").style.display="none";
}
</script>
<%
HttpSession logsession = request.getSession();
String cust_id = "";
if(logsession.getAttribute("SESSION_CUST_ID") != null)
{
cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
}
String roles=roleBean.getRoleSelectByType(cust_id,"1");
%>
</head>
<body>
<form name=resumeForm action=/doTradeReg.do method=post target="_self">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding: 10px">
<tr>
<!-- 中間 -->
<td align="center" height="27px">
<div id="manager_body">
<div id="manager_body_right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width=100% border=0 cellpadding=5 cellspacing=1 align=center bgcolor="#dddddd">
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;padding-top:10px;padding-bottom:10px;text-align:left;" align="left" colspan="2">
分配角色(<span style="color: red">*角色與權(quán)限緊密相關(guān),不要任意分配角色給用戶!</span>)
</td>
</tr>
<tr>
<td class="l_td">
角色列表:
</td>
<td align="left" class="r_td">
<div class="ping">
<select name="code" id="code">
<option value="a">請(qǐng)選擇...</option>
<%=roles%>
</select>
</div>
</td>
</tr>
<tr>
<td class="l_td">
用戶名:
</td>
<td align="left" class="r_td">
<div class="ping" style="float: left">
<input type="text" name="user_name" id="sale_user_name" size="15" readonly onchange="checkUserRole()">
<input type="hidden" name="user_id" id="sale_user_id">
<input type="button" name="bnt" id="bnt" value="請(qǐng)選擇" onclick="showUserList()">
<input type="button" style="display: none" value="檢測(cè)用戶角色" name="check" id="check" onclick="checkUserRole()">
<div id="grid5"></div>
</div>
</td>
</tr>
<tr id="role" style="display: none">
<td class="l_td">
用戶已有角色:
</td>
<td align="left" class="r_td">
<div class="ping1">
<div id="role-div"></div>
</div>
</td>
</tr>
<tr>
<td style="background-color:#f6f6f6; color:#000000; font-weight:bold; font-size:12px;padding-top:10px;padding-bottom:10px;text-align:center;" align="center" colspan="2">
<input class="tjan" name="submit" type="submit" value="" onclick="return check_Value()">
</td>
</tr>
<input type="hidden" name="cust_id" id="cust_id" value="<%=cust_id%>">
<input type="hidden" name="trade_type_code" value="1190">
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -