📄 adduser.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adduser.aspx.cs" Inherits="depart_users_adduser" %>
<%@ Register Assembly="Infragistics2.WebUI.UltraWebTab.v8.1, Version=8.1.20081.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.WebUI.UltraWebTab" TagPrefix="igtab" %>
<!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 runat="server">
<title>无标题页</title>
<script lang="javascript">
function choosedepart()
{
var hdn=document.getElementById("HiddenField1");
var urlstr="choosedepart.aspx?did="+hdn.value;
//window.open(urlstr);
var a=window.showModalDialog(urlstr,"window","center:yes,resizable:yes");
var tbdepart=document.getElementById("UltraWebTab1_ctl00_Tb_Depart");
if(a!=null)
{
tbdepart.value=a;
}
}
function chooseuser()
{
var hdn=document.getElementById("HiddenField1");
var urlstr="UserChoose.aspx";
//window.open(urlstr);
var a=window.showModalDialog(urlstr,"window","center:yes,resizable:yes");
var tbdepart=document.getElementById("UltraWebTab1_ctl00_Tb_Depart");
if(a!=null)
{
tbdepart.value=a;
}
}
function formload()
{
var divtopic=document.getElementById("UltraWebTab1_ctl00_changetopic");
var divcpsw=document.getElementById("UltraWebTab1_ctl00_changepsw");
if(Request("edit")=="1")
{
divtopic.style.display="block";
divcpsw.style.display="none";
}
else
{
divtopic.style.display="none";
divcpsw.style.display="block";
}
}
function Request(str)
{
var url = location.href;
var r = null;
if(url==null||url=="")return r;
if(str==null||str=="")return r;
if(url.indexOf('?')<0)return r;
var sp1 = url.split('?');
if(sp1.length<1)return r;
if(sp1[1].indexOf(str)<0)return r;
var sp2 = sp1[1].split('&');
if(sp2.length > 1){
for(var i=0;i<sp2.length;i++){
//alert(sp2[i]);
if(sp2[i].indexOf('=')<0)continue;
var sp3=sp2[i].split('=');
if(sp3.length<1)continue;
if(sp3[0]==str){
r = sp3[1];
break;
}
}
}else{
if(sp2[0].indexOf('=')<0)return r;
var sp3=sp2[0].split('=');
if(sp3.length<1)return r;
if(sp3[0]==str)r = sp3[1];
}
return r;
}
function changepsw()
{
var cpsw=document.getElementById("UltraWebTab1_ctl00_Cbpsw");
var divcpsw=document.getElementById("UltraWebTab1_ctl00_changepsw");
if(cpsw.checked==true)
{
divcpsw.style.display="block";
}
else
{
divcpsw.style.display="none";
}
}
</script>
</head>
<body onload="javascript:formload('changetopic')">
<form id="form1" runat="server">
<div>
<fieldset>
<legend runat="server" id="topic">
添加用户
</legend>
<igtab:UltraWebTab ID="UltraWebTab1" runat="server" Width="100%">
<Tabs>
<igtab:Tab Text="基本信息">
<ContentTemplate>
<table width=90% align="center">
<tr>
<td align=right width=30%>
用户名字:
</td>
<td align="left" width=70%>
<asp:TextBox ID="Tb_Name" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align=right width=30%>
登录名:
</td>
<td align="left" width=70%>
<asp:TextBox ID="Tb_LogName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align=right width=30%>
<div id="changetopic" runat="server">
<span style="color: #ff0033">
<input id="Cbpsw" type="checkbox" runat="server" onclick="changepsw()" />修改密码</span>
</div>
</td>
<td align="left" width=70%>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<div id="changepsw" runat="server" >
<table width=100% style="margin:0; padding:0;">
<tr>
<td align="right" width="30%">
输入密码:</td>
<td align="left" width="70%">
<input id="Tb_Psw" runat="server" type="password" /></td>
</tr>
<tr>
<td align=right width=30%>
密码确认:
</td>
<td align="left" width=70%>
<input id="Tb_PswEnsure" runat="server" type="password" /></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td align=right width=30%>
所属组织:
</td>
<td align="left" width=70%>
<asp:TextBox ID="Tb_Depart" runat="server"></asp:TextBox>
<input id="Btn_Depart" type="button" value="选择" onclick="choosedepart()" />
</td>
</tr>
</table>
</ContentTemplate>
</igtab:Tab>
<igtab:Tab Text="用户权限">
<ContentTemplate>
<div style="text-align:center">
<table style="width: 90%" align="center">
<tr>
<td align="left" colspan="5" style="background-color: inactivecaption; font-weight: bold; font-size: 16pt; color: #ffffff; font-family: 宋体;">
权限信息</td>
</tr>
<tr>
<td>
<asp:DropDownList ID="Drop_Role" runat="server" DataSourceID="SqlDataSource1" DataTextField="name" DataValueField="roleid" AutoPostBack="True" OnSelectedIndexChanged="Drop_Role_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
</table>
<table style="width: 90%" align="center">
<tr>
<td align="left" colspan="5" style="background-color: inactivecaption; font-weight: bold; font-size: 16pt; color: #ffffff; font-family: 宋体;">
权限信息</td>
</tr>
<tr>
<td>
<input id="allchoose1" type="checkbox" onclick="choose1()" /><span style="font-size: 10pt; color: #ff0000;
font-family: 宋体">全选</span></td>
<td align="left" style="text-align: center" colspan="3">
<span style="color: #ff6633"><strong>
功能权限</strong></span></td>
<td></td>
</tr>
<tr>
<td width=20%>
宏观市场</td>
<td style="text-align: right" width=20%>
宏观市场信息收集内容</td>
<td style="text-align: left" width=20%>
<asp:CheckBox ID="CheckBox1" runat="server" /></td>
<td width=20%>
</td>
<td width=20%>
</td>
</tr>
<tr>
<td rowspan="3">
竞争对手信息</td>
<td style="text-align: right">
产品竞争信息</td>
<td style="text-align: left">
<asp:CheckBox ID="CheckBox2" runat="server" /></td>
<td style="text-align: right">
违规经营信息</td>
<td style="text-align: left">
<asp:CheckBox ID="CheckBox3" runat="server" /></td>
</tr>
<tr>
<td style="text-align: right">
现场营销活动</td>
<td style="text-align: left">
<asp:CheckBox ID="CheckBox4" runat="server" /></td>
<td style="text-align: right">
一对一营销活动</td>
<td style="text-align: left">
<asp:CheckBox ID="CheckBox5" runat="server" /></td>
</tr>
<tr>
<td style="text-align: right">
区域范围营销活动</td>
<td style="text-align: left">
<asp:CheckBox ID="CheckBox6" runat="server" /></td>
<td style="text-align: right">
资源情况信息填报</td>
<td style="text-align: left">
<asp:CheckBox ID="CheckBox7" runat="server" /></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -