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

📄 index.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
字号:
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>" 
response.end
end if
%>
<link rel="stylesheet" type="text/css" href="../css/style.css">
            <script>
var checkflag="false";
function check(field){
if(checkflag=="false"){
for(i=0;i<field.length;i++){
field[i].checked=true;}
checkflag="true";
return "解除全选"; }
else {
for(i=0;i<field.length;i++) {
field[i].checked=false;}
checkflag="false";
return "选择全部";}}
</script>
<body>
<%
if not isempty(request("selAnnounce")) then
idlist=request("selAnnounce")
if instr(idlist,",")>0 then
dim idarr
idArr=split(idlist)
dim log_id
for i = 0 to ubound(idarr)
log_id=clng(idarr(i))
call deleteannounce(log_id)
next
else
call deleteannounce(clng(idlist))
end if
end if

if request("action")="" then
response.write "<script language='javascript'>"
response.write "alert('您提交的信息不符合规范!');"
response.write"javascript:history.back(-1)</SCRIPT>"
response.end
end if

if Chkrequest(request("action")) then
action=request("action")
else
Response.Redirect ("/login/chklogin.asp?login=4")
end if

keywords=replace_text(request("keywords"))
%>
<%
sql="select * from corporation"
if action="0" then
if instr(Request.Cookies("globalec")("masterflag"),"11")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where uflag=0 and qyjj IS null"
end if
if action="1" then
if instr(Request.Cookies("globalec")("masterflag"),"11")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where uflag=0 and hybz=0 and qyjj IS not null"
end if
if action="2" then
if instr(Request.Cookies("globalec")("masterflag"),"12")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where uflag=1 and hybz=0"
end if
if action="3" then
if instr(Request.Cookies("globalec")("masterflag"),"14")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where uflag=0 and hybz=1 and qyjj IS not null"
end if
if action="4" then
if instr(Request.Cookies("globalec")("masterflag"),"14")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where uflag=1 and hybz=1 and flag=0"
end if
if action="5" then
if instr(Request.Cookies("globalec")("masterflag"),"15")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where uflag=1 and hybz=1 and flag=1 and enddate>getdate()"
end if
if action="6" then
if instr(Request.Cookies("globalec")("masterflag"),"16")=0 then
response.redirect "../err.asp"
response.end
end if
sql=sql&" where flag=1 and enddate<getdate()"
end if
if keywords>"" then sql=sql&" and ([user] like '%"&keywords&"%' or qymc like '%"&keywords&"%')"
sql=sql&" order by id desc"

Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 

msg_per_page=30 '定义每页显示记录条数
%>
<!--#include file="../../inc/headpage.asp"-->
<table width="98%" border="0" cellspacing="0" cellpadding="0"  align=center class="tableBorder">
<tr> 
<th class="tableHeaderText" colspan=2 height=25>会员管理</th>
</tr>
<tr>
<td class="forumRowHighlight" colspan=2><p><B>注意</B>:<BR><font color=red>①任何的删除操作都是不可逆的,执行删除时请慎重。</font><BR>
<font color=blue>②点击<font color=red>登陆名</font>查看或修改用户的"基本信息"。</font>
<br><font color=blue>③点击<font color=red>公司名</font>查看或者修改用户"企业信息"。</font>
<br><font color=blue>④<font color=red>无公司介绍待审核会员</font>为资料不全的会员,原则上不通过审核审核(即不用加入到公司库)</font>
</td>
</tr>
<FORM name=searchForm action="select.asp" method=post>
<tr>
<td width="19%" height=25 class="forumRowHighlight">
<B>管理操作选项</B></td>
<td width="81%" class=forumRowHighlight>关键字:<input name="keywords" type="text" value="<%=keywords%>">
&nbsp;用户组:<select name="which">
			  <option value="1" <%if action ="1" then Response.Write "selected"%>>等待审核的普通会员</option>
			  <option value="2" <%if action ="2" then Response.Write "selected"%>>已经审核的普通会员</option>
			  <option value="3" <%if action ="3" then Response.Write "selected"%>>待审申请商贸通服务会员</option>
			  <option value="4" <%if action ="4" then Response.Write "selected"%>>未付费的申请商贸通会员</option>
			  <option value="5" <%if action ="5" then Response.Write "selected"%>>已付费的商贸通会员管理</option>
			  <option value="6" <%if action ="6" then Response.Write "selected"%>>待续费的商贸通会员管理</option>
			</select> <input type="submit" value="立刻查找" id=submit name=submit>&nbsp;&nbsp;&nbsp;&nbsp;[<a href="javascript:location.reload()">刷新页面</a>]</td>
</tr>
</form>
</table>
<br>
<Form name="form" method="POST" action="index.asp?action=<%=action%>">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
	<tr>
		<th class="tableHeaderText" height=25>会员列表</th>
	
              <tr> 
                <td> 
  <TABLE width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#111111" bordercolorlight="#D7EBFF" bordercolordark="#D7EBFF" style="border-collapse: collapse">
    <TBODY>
<%
if rs.eof then
response.Write"<br><br><div align='center'>暂无数据信息</div><br><br>"
else
%>
<TR height=25> 
<TD width="87" height="20" class=bodytitle><font color="#CC3300"><b>登陆名</b></font></TD>
<TD width="132" class=bodytitle><font color="#CC3300"><b>联系人</b>(性别)</font></TD>
      <TD width="265" class=bodytitle><font color="#CC3300"><b>公司名称</b></font></TD>
      <TD width="100" class=bodytitle><font color="#CC3300"><b>注册时间</b></font></TD>
      <TD width="165" class=bodytitle><font color="#CC3300"><b>商贸通服务起始日期</b></font></TD>
      <TD width="91" class=bodytitle align="center"><font color="#CC3300"><b>操作</b></font></TD>
<TD width="61" align="center" class=bodytitle><input type='submit' value='删除' onclick="{if(confirm('您确定执行操作吗?')){this.document.even.submit();return true;}return false;}"></TD>
</TR>
<%
do while not rs.eof and rowcount > 0%>
<TR height="20"> 
<TD width="87" class=forumRow><a title="查看或修改用户资料" href="edit.asp?id=<%=rs("id")%>"><% Set re = New RegExp
re.Pattern ="("&keywords&")"
re.IgnoreCase = True
re.Global=True
result = re.Replace(rs("user"), "<font color=red>$1</font>")%><%=result%></a></td>
<TD width="132" class=forumRow><a title="email" href="mailto:<%=rs("email")%>"><%=rs("name")%>(<%=rs("ch")%>)</a></td>
<TD width="265" class=forumRow>
<a title="查看或修改企业资料" href="../company/edit.asp?id=<%=rs("id")%>"><% Set re = New RegExp
re.Pattern ="("&keywords&")"
re.IgnoreCase = True
re.Global=True
result = re.Replace(rs("qymc"), "<font color=red>$1</font>")%><%=result%></a></td>
<TD width="100" class=forumRow><%=rs("idate")%></td>
<TD width="165" class=forumRow><%if rs("flag")=1 then%>开始时间:<%=rs("begindate")%><br><font color="#CC3300">结束时间:<%=rs("enddate")%></font><%else%><div align="center"><font color="#CC3300">暂未获得服务</font></div><%end if%></td>
<TD width="91" class=forumRow align="center">
<%if action=1 then%>
<a href="shenghe.asp?id=<%=rs("id")%>&action=<%=action%>&page=<%=CurrentPage%>">
<font color="#008000">未审核</font></a>
<%end if%>
<%if action=2 then%>
<a href="shenghe1.asp?id=<%=rs("id")%>&action=<%=action%>&page=<%=CurrentPage%>">
<font color="#008000">已审核</font></a>
<%end if%>
<%if action=3 then%>
<a href="Attribute0.asp?id=<%=rs("id")%>&action=<%=action%>&page=<%=CurrentPage%>"> 
<font color="#0000FF">允许申请商贸通</font></a>
<%end if%>
<%if action=4 then%>
<a href="javascript:win=window.open('Attribute.asp?id=<%=rs("id")%>','contact','width=500,height=200,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();"> 
<font color="#0000FF">设置</font></a>
<%end if%>
<%if action=5 then%>
<a href="javascript:win=window.open('Attribute.asp?id=<%=rs("id")%>','contact','width=500,height=200,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();"> 
<font color="#0000FF">设置</font></a>
<%end if%>
<%if action=6 then%>
<a href="javascript:win=window.open('Attribute.asp?id=<%=rs("id")%>','contact','width=500,height=200,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();"> 
<font color="#0000FF">设置</font></a>
<%end if%>
</td>
<TD width="61" align="center" class=forumRow><input type=checkbox name=selAnnounce value="<%=cstr(rs("ID"))%>"></td>
</TR>
<%
icolor=icolor+1
if icolor>1 then icolor=0
rowcount=rowcount-1
rs.movenext
loop
end if
%>
</TABLE>
</td>
              </tr>
			  <tr><td class=forumRow><div align="right"><input type=button value=" 全部选定 " onClick="this.value=check(this.form)"></div></td></tr>
              <tr>
                <td class=forumrowHighLight align="center"><b><%=listPages("index.asp?action="&action&"&keywords="&keywords&"")%></b></td>
              </tr>
</table></FORM>
<%
sub deleteannounce(id)
set DelRs=conn.execute("select * from corporation where id="&cstr(id)&"")
theuser=DelRs("user")
conn.execute("delete from [memberRelation] where [user]='"&theuser&"' or secuser='"&theuser&"'")    '从会员关系表中删除这个公司的信息
if action=5 then
conn.execute("delete from [book] where bookid="&cstr(id)&" or gsid="&cstr(id)&"")    '从客户反馈表中删除这个公司的信息(商贸通公司专有)
end if
conn.execute("delete from [emailorder] where gsid="&cstr(id)&"")    '从邮件订阅表中删除这个公司的信息
conn.execute("delete from [getprice] where mycid="&cstr(id)&" or sendcid="&cstr(id)&"")    '从询价表中删除这个公司的信息
conn.execute("delete from [getprice1] where mycid="&cstr(id)&" or sendcid="&cstr(id)&"")    '从询价表1中删除这个公司的信息
if action=5 then
conn.execute("delete from [trustadv] where bprid="&cstr(id)&" or pjrid="&cstr(id)&"")    '从商贸通会员评论表中删除这个公司的信息(商贸通公司专有)
conn.execute("delete from [work] where gsid="&cstr(id)&"")    '从招聘表中删除这个公司的信息(商贸通公司专有)
end if
conn.execute("delete from [info] where gsid="&cstr(id)&"")    '从供求信息中删除这个公司的信息
if action=5 then
conn.execute("delete from [productclass] where gsid="&cstr(id)&"")    '从产品分类中删除这个公司的信息(商贸通公司专有)
conn.execute("delete from [productshow] where gsid="&cstr(id)&"")    '从产品信息中删除这个公司的信息(商贸通公司专有)
end if
conn.execute("delete from [corporation] where id="&cstr(id)&"")    '最后,从公司库中删除
if err.Number<>0 then
err.clear
response.write "删 除 失 败 !<br>"
end if
End sub
%>
<!--#include file="../copy.asp"-->

⌨️ 快捷键说明

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