📄 check.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
if instr(Request.Cookies("globalec")("masterflag"),"31")=0 then
response.redirect "../err.asp"
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
sql="select * from bizre"
if action="1" then sql=sql&" where sh=0"
if action="2" then sql=sql&" where sh=1"
sql=sql&" order by id desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
msg_per_page=20 '定义每页显示记录条数
%>
<!--#include file="../../inc/headpage.asp"-->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder">
<tr>
<th width="100%" height=25 colspan=2 class="tableHeaderText">会员证书管理</th>
</tr>
<tr>
<td class="forumRowHighlight" colspan=2><p><B>注意</B>:<BR><font color=red>①任何的删除操作都是不可逆的,执行删除时请慎重。</font><BR>
<font color=blue>②审核一帐证书商贸通指数加上<font color=red>1</font>分。</font>
</td>
</tr>
<FORM name=form action="select.asp?action=<%=action%>" method=post>
</form>
</table>
<Form name="search" method="POST" action="check.asp">
<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="204" height="20" class=bodytitle><font color="#CC3300"><b>证书名称</b></font></TD>
<TD width="138" class=bodytitle><font color="#CC3300"><b>所属类别</b></font></TD>
<TD width="269" class=bodytitle><font color="#CC3300"><b>发布公司</b> (商贸通指数)</font></TD>
<TD width="155" class=bodytitle><font color="#CC3300"><b>发布时间</b></font></TD>
<TD width="88" class=bodytitle align="center"><font color="#CC3300"><b>操作</b></font></TD>
<TD width="70" 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="204" class=forumRow><a title="查看或修改企业资料" href="../company/edit.asp?id=<%=rs("id")%>">
<a title="<%=rs("name")%>" href="/member/bizre/template.asp?id=<%=rs("id")%>" target="_blank"><%=rs("name")%></a></td>
<TD width="138" class=forumRow><%
sqltype="select * from bizre_class where id="&rs("typeid")&""
set rstype=conn.execute(sqltype)
response.write""&rstype("type")&""
%></td>
<TD width="269" class=forumRow>
<%
set rs3=conn.execute("select id,qymc,trust_score from corporation where id="&rs("gsid")&"")
response.write"<a href='../user/edit.asp?id="&rs3("id")&"'>"&rs3("qymc")&"</a> <IMG src=""../../images/trust1.gif"" alt=""商贸通会员"" width=22 height=14 border=0 align=top> "&rs3("trust_score")&""
%></td>
<TD width="155" class=forumRow><%=rs("dateandtime")%></td>
<TD width="88" class=forumRow align="center">
<%if rs("sh")=0 then%>
<a href="pass1.asp?id=<%=rs("id")%>&gsid=<%=rs("gsid")%>&action=<%=action%>">
<font color="#008000">未审核</font></a>
<%else%>
<a href="pass.asp?id=<%=rs("id")%>&gsid=<%=rs("gsid")%>&action=<%=action%>">
<font color="#008000">已审核</font></a>
<%end if%>
</td>
<TD width="70" 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("Check.asp?action="&action&"")%></b></td>
</tr>
</table>
</form>
<%
sub deleteannounce(id)
set rs=server.createobject("adodb.recordset")
sql="delete from [bizre] where id="&cstr(id)
conn.execute sql
if err.Number<>0 then
err.clear
response.write "删 除 失 败 !<br>"
end if
End sub
%>
<!--#include file="../copy.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -