add.html
4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript" src="__PUB__js/common.js"></script>
<style>
.djadd{display: none;}
</style>
</head>
<body style="margin: 0px 0px;min-height:500px; background:url(__ROOTPUB__img/ybbf.png) center no-repeat;background-size:contain;background-position:200px 150px;">
<div style="margin:0 auto; width:98%;">
<form name="form" action="" method="post">
<table class="table table-condensed table-bordered table-hover">
<tbody><tr>
<td colspan="2" style="padding-left:10px;">
<div style="float:left">
<b>添加用户</b>
</div>
<div style="float:right">
[<a href="<{:U('index')}>"><u>返回列表</u></a>]
</div>
</td>
</tr>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right"><font color="red">登录账号:</font></td>
<td class="bline"><input name="username" type="text" id="username" size="30" class="iptxt"></td>
</tr>
<eq name="Think.cookie.uid" value="1">
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right"><font color="red">用户等级</font></td>
<td class="bline">
<select id='s_dengji' name="s_dengji">
<option value=''>-用户等级-</option>
<volist name="grade_arr" id="gid">
<option value='<{$gid.grade}>'<eq name="gid.grade" value='2'> selected</eq>><{$gid.grade}>级用户</option>
</volist>
</select>
</td>
</tr>
<tr id='fj' style="display:none">
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right"><font color="red">父级用户</font></td>
<td class="bline">
<select id='c_dengji' name="c_dengji" class="djadd">
</select>
</td>
</tr>
</eq>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right"><font color="red">姓名:</font></td>
<td class="bline"><input name="name" type="text" id="name" size="30" class="iptxt"></td>
</tr>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right"><font color="red">密码:</font></td>
<td class="bline"><input name="password" type="password" id="password" size="30" class="iptxt"></td>
</tr>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right"><font color="red">确认密码:</font></td>
<td class="bline"><input name="password2" type="password" id="password2" size="30" class="iptxt"></td>
</tr>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right">当前职位</td>
<td class="bline"><input name="position" type="text" id="position" size="30" class="iptxt"></td>
</tr>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right">电话:</td>
<td class="bline"><input name="tel" type="text" id="tel" size="30" class="iptxt"></td>
</tr>
<tr>
<td height="26" align="right" class="bline" style="padding-left:10px; text-align:right">邮箱:</td>
<td class="bline"><input name="email" type="email" id="email" size="30" class="iptxt"></td>
</tr>
<tr><td colspan="2" style="text-align:center">
<input name="domain" type="submit" style=" background:url(__PUB__img/button_save.gif); width:60px; height:22px; border:0" value=" ">
<a href="javascript:history.go(-1);"><img src="__PUB__img/button_back.gif" width="60" height="22" border="0"></a></td></tr>
</tbody></table>
<input type="hidden" name="school" value="1" />
</form>
</div>
</body>
<include file="Common:js2" />
</html>
<script>
$(function(){
<eq name="Think.cookie.uid" value="1">
$(':input[name="s_dengji"]').change(function(){
var d=$(this).children('option:selected').val();
var cid='';
if(d){
var validata={
s_dengji:d,
c_dengji:cid,
}
$.get('<{:U("z_user")}>',validata,function(data){
$('#fj').css('display','table-row');
if(typeof(data) !== 'undefined' && data){
$('#c_dengji').removeClass('djadd').html('<option value="">-请选择-</option>'+data);
}else{
$('#c_dengji').removeClass('djadd').addClass('djadd').html('');
}
},'json')
}
});
</eq>
});
</script>