📄 adminuser.asp
字号:
job=trim(request("job"))
ADMIN=trim(request("ADMIN"))
jz=trim(request("jz"))
td=trim(request("td"))
zx=trim(request("zx"))
sql="update manager66 set ip='"&ip&"',gonggao='"&gonggao&"',Type='"&Type1&"',news='"&news&"',ads='"&ads&"',huandeng='"&huandeng&"',hyetype='"&hyetype&"',hyedetail='"&hyedetail&"',newhouse='"&newhouse&"',Sphouse='"&Sphouse&"',Tjhouse='"&Tjhouse&"',house='"&house&"',gl_old='"&gl_old&"',Tjrecomco='"&Tjrecomco&"',dc='"&dc&"',banner='"&banner&"',gbook='"&gbook&"',member='"&member&"',link='"&link&"',peigou='"&peigou&"',pinguren='"&pinguren&"',pingu='"&pingu&"',person='"&person&"',jc='"&jc&"',Zs='"&Zs&"',jj='"&jj&"',job='"&job&"',ADMIN='"&ADMIN&"',jz='"&jz&"',td='"&td&"',zx='"&zx&"' where id="&id&""
conn.execute sql
response.redirect"adminuser.asp"
rs.close
set rs=nothing
end sub
sub add
%><form method="post" action="?action=saveadd" name="form1">
<div align="center">
<center>
增加管理员
<br>
<br>
<table border="0" width="93%" cellspacing="1" cellpadding="0" class="black">
<tr>
<td width="100%">
<div align="center">
<table width="77%" height="376" border="0" cellpadding="0" cellspacing="1" bgcolor="#AABFEC">
<tr>
<td width="100%" height="30" class="black">
管理员类型:
<select name="id_key" class="input2">
<option value="1">超级管理员</option>
<option value="0">普通管理员</option>
</select> </td>
</tr>
<tr>
<td width="100%" height="29" class="black">
添加管理员:
<input type="text" name="sname" size="15" maxlength=20>
</td>
</tr>
<tr>
<td width="100%" height="25" class="black">
管理员密码:
<input type="password" name="spwd" size="15" maxlength=20>
</td>
</tr>
<tr>
<td height="30" class="black"> <input name="gonggao" type="checkbox" id="gonggao" value="1" class="inputblack">
公告管理
<input name="news" type="checkbox" id="news" value="1" class="inputblack">
新闻专区
<input name="ads" type="checkbox" id="ads" value="1" class="inputblack">
广告管理
<input name="huandeng" type="checkbox" id="images" value="1" class="inputblack">
首页幻灯管理
<input name="ADMIN" type="checkbox" id="ADMIN" value="1" class="inputblack">
管理员信息</td>
</tr>
<tr>
<td height="30" class="black"> <input name="hyetype" type="checkbox" id="hyetype" value="1" class="inputblack">
黄页类别
<input name="hyedetail" type="checkbox" id="hyedetail" value="1" class="inputblack">
企业黄页
<input name="newhouse" type="checkbox" id="newhouse" value="1" class="inputblack">
楼盘展示
<input name="Sphouse" type="checkbox" id="Sphouse" value="1" class="inputblack">
视频楼盘管理</td>
</tr>
<tr>
<td height="30" class="black">
<input name="house" type="checkbox" id="house" value="1" class="inputblack">
房产信息
<input name="gl_old" type="checkbox" id="gl_old" value="1" class="inputblack">
二手市场
<input name="Tjrecomco" type="checkbox" id="member2" value="1" class="inputblack">
推荐公司</td>
</tr>
<tr>
<td height="30" class="black"> <input name="dc" type="checkbox" id="dc" value="1" class="inputblack">
调查管理
<input name="banner" type="checkbox" id="banner" value="1" class="inputblack">
广告条管理
<input name="gbook" type="checkbox" id="gbook" value="1" class="inputblack">
留言管理
<input name="member" type="checkbox" id="member" value="1" class="inputblack">
会员管理</td>
</tr>
<tr>
<td height="30" class="black"><input name="link" type="checkbox" id="link" value="1" class="inputblack">
友情链接
<input name="peigou" type="checkbox" id="peigou" value="1" class="inputblack">
律师陪购
<input name="pinguren" type="checkbox" id="pinguren" value="1" class="inputblack">
评估师信息
<input name="pingu" type="checkbox" id="pingu" value="1" class="inputblack">
房产评估
<input name="Type" type="checkbox" id="Type" value="1" class="inputblack">
区域管理</td>
</tr>
<tr>
<td height="30" class="black"><input name="person" type="checkbox" id="person" value="1" class="inputblack">
地产精英
<input name="jc" type="checkbox" id="jc" value="1" class="inputblack">
建材商品管理
<input name="Zs" type="checkbox" id="Zs" value="1" class="inputblack">
装饰图片管理
<input name="jj" type="checkbox" id="jj" value="1" class="inputblack">
家居饰品管理</td>
</tr>
<tr>
<td valign="middle" height="30" class="black"><input name="job" type="checkbox" value="1" class="inputblack">
人才招聘管理 <input name="jz" type="checkbox" value="1" class="inputblack">
家政信息管理 <input name="td" type="checkbox" value="1" class="inputblack">
土地信息管理 <input name="zx" type="checkbox" value="1" class="inputblack">
家装招标管理 </td>
</tr>
<tr>
<td width="100%" valign="middle" height="50" class="black">
<div align="center">
<input type="submit" value=" 添加 " name="B1">
</div></td>
</tr>
</table></div>
</td>
</tr>
</table>
</center>
</div>
</form><%
end sub
sub saveadd
id_key=trim(request("id_key"))
sname=changechr(request("sname"))
spwd=md5(changechr(request("spwd")),16)
ip=request.serverVariables("REMOTE_ADDR")
gonggao=trim(request("gonggao"))
Type1=Trim(request("Type"))
news=trim(request("news"))
ads=trim(request("ads"))
huandeng=trim(request("huandeng"))
hyetype=trim(request("hyetype"))
hyedetail=trim(request("hyedetail"))
newhouse=trim(request("newhouse"))
Sphouse=trim(request("Sphouse"))
Tjhouse=trim(request("Tjhouse"))
house=trim(request("house"))
gl_old=trim(request("gl_old"))
Tjrecomco=trim(request("Tjrecomco"))
dc=trim(request("dc"))
banner=trim(request("banner"))
gbook=trim(request("gbook"))
member=trim(request("member"))
link=trim(request("link"))
peigou=trim(request("peigou"))
pinguren=trim(request("pinguren"))
pingu=trim(request("pingu"))
person=trim(request("person"))
jc=trim(request("jc"))
Zs=trim(request("Zs"))
jj=trim(request("jj"))
job=trim(request("job"))
ADMIN=trim(request("ADMIN"))
jz=trim(request("jz"))
td=trim(request("td"))
zx=trim(request("zx"))
sql="insert into manager66(id_key,name,pwd,ip,gonggao,Type,news,ads,huandeng,hyetype,hyedetail,newhouse,Sphouse,Tjhouse,house,gl_old,Tjrecomco,dc,banner,gbook,member,link,peigou,pinguren,pingu,person,jc,Zs,jj,job,ADMIN,jz,td,zx)values('"&id_key&"','"&sname&"','"&spwd&"','"&ip&"','"&gonggao&"','"&Type1&"','"&news&"','"&ads&"','"&huandeng&"','"&hyetype&"','"&hyedetail&"','"&newhouse&"','"&Sphouse&"','"&Tjhouse&"','"&house&"','"&gl_old&"','"&Tjrecomco&"','"&dc&"','"&banner&"','"&gbook&"','"&member&"','"&link&"','"&peigou&"','"&pinguren&"','"&pingu&"','"&person&"','"&jc&"','"&Zs&"','"&jj&"','"&job&"','"&ADMIN&"','"&jz&"','"&td&"','"&zx&"')"
'response.write sql
'response.end
conn.execute sql
response.redirect"adminuser.asp"
end sub
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -