📄 index.asp
字号:
<!--#include file="../prohead.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TABLE cellSpacing=0 cellPadding=0 width=778 border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle width=150>
<SCRIPT LANGUAGE='JavaScript' SRC='../images/left.js' TYPE='text/javascript'></script>
<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle width=150
background=../images/leftmanu_bg.gif>
<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
<TBODY>
<TR>
<TD width=150
background=../images/leftmanu_topbg.gif><IMG height=30
src="../images/leftmanu_top.gif"
width=150></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
<TBODY>
<TR>
<TD class=leftmenu1
onclick="location.href='../index.asp'"><IMG
height=18 src="../images/leftmanu_home.gif" width=16
align=absMiddle> 商务助手首页</TD></TR><TR>
<TD class=leftmenu1
onclick=javascript:menu_display(table1,img1);><IMG id=img1
height=16 src="../images/fold_2.gif" width=16
align=absMiddle> 发布商业信息</TD></TR>
<TBODY id=table1><!-- 正常情况下 -->
<!-- 正常情况下 -->
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../tradeinfo/edit.asp">商业信息</A> </TD>
</TR><!-- 正常情况下 --> <TR>
<TD class=leftmenu2><IMG src="../images/plus.gif">
<A
class=linkstyle2
href="../productshow/edit.asp">产品目录</A></TD>
</TR><!-- 正常情况下 --><TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../modify/modify_mine.asp">展会信息</A> </TD>
</TR>
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../corporation/company_edit.asp">公司介绍</A></TD>
</TR><!-- 正常情况下 -->
<TR>
<TD class=leftmenu4 height=29><table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td>
<img src="../images/minus.gif" width="9" height="9" id="imga" onclick="javascript:showhide(offer,imga);" onMouseOver="this.style.cursor='hand'"> <a href="javascript:showhide(offer,imga);" class="linkstyle2" >商贸通档案</a>
</td>
</tr>
<tbody id="offer" style=display:"">
<tr>
<td> <img src="../images/minus.gif">
<a href="add.asp" class="linkstyle2">上传证书</a>
</tr>
<tr>
<td> <img src="../images/minus.gif">
<a href="index.asp" class="linkstyle3">商贸通指数</a>
<img src="../images/now.gif" width="12" height="9" align="absmiddle"></td>
</td>
</tr>
</tbody>
</table></TD>
</TR>
</TBODY>
<TBODY>
<TR>
<TD class=leftmenu1 onclick=menu_display(table2,img2)><IMG
id=img2 height=16 src="../images/fold_2.gif" width=16
align=absMiddle> 查看商业往来</TD></TR>
<TBODY id=table2><!-- 正常情况下 -->
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../getprice/receivemessagelist.asp">留言信息</A> </TD>
</TR>
<!-- 正常情况下 -->
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../myemail/index.asp">我关注的商机</A></TD>
</TR><!-- 正常情况下 -->
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../myfriend/index.asp">我的商业伙伴</A> </TD>
</TR><TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../trust/index.asp">会员评价</A> </TD>
</TR></TBODY>
<TR>
<TD class=leftmenu1 onclick=menu_display(table3,img3)><IMG
id=img3 height=16 src="../images/fold_2.gif" width=16
align=absMiddle> 我的会员资料</TD>
</TR>
<TBODY id=table3><!-- 正常情况下 -->
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../modify/modify_info.asp">修改注册信息</A> </TD>
</TR><!-- 正常情况下 -->
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../modify/modify_pass.asp">修改密码</A> </TD>
</TR><!-- 正常情况下 -->
<TD class=leftmenu1 onclick=menu_display(table4,img4)><IMG
id=img4 height=16 src="../images/fold_1.gif" width=14
align=absMiddle> 我的自助网站</TD>
</TR>
<TBODY id=table4 style="DISPLAY: none">
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../corporation/webmod.asp">网站模板选择</A></TD>
</TR>
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../corporation/cimg_add.asp?id=<%=session("id")%>">上传公司图片</A> </TD>
</TR>
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../feedback/contact_edit.asp?id=<%=session("id")%>">客户反馈管理</A></TD>
</TR>
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../work/work.asp">发布招聘信息</A></TD>
</TR>
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../work/edit.asp">管理招聘信息</A></TD>
</TR>
<TR>
<TD class=leftmenu2><IMG src="../images/plus.gif"> <A
class=linkstyle2
href="../../companyweb.asp">浏览我的网站</A></TD>
</TR></TBODY>
<TBODY>
<TR>
<TD class=leftmenu1
onclick="javascript:window.open('../../help/index.html')"><IMG
id=img5 src="../images/leftmenu_help.gif"
align=absMiddle> 帮助</TD></TR></TBODY></TABLE>
<IMG height=6
src="../images/leftmanu_bottom.gif" width=150><BR><BR>
<!--#include file="../guestsubmit.asp"-->
<BR><BR></TD></TR>
</TABLE><BR><BR><BR></TD>
<TD
style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(../images/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff"
vAlign=top align=middle width=628>
<TABLE cellSpacing=0 cellPadding=0 width=628 border=0>
<TBODY>
<TR>
<TD width=459><IMG height=30
src="../images/leftmanu_top1.gif" width=459></TD>
<TD vAlign=top width=141
background=../images/top_nav_bg2.gif></TD>
<TD width=28><IMG height=30 src="../images/top_nav_5.gif"
width=28></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=578 border=0>
<TBODY>
<TR>
<TD><IMG height=32 src="../images/bizer_manage.gif" width=578
border=0></TD>
</TR>
</TBODY></TABLE>
<a name="bizre"></a>
<%
gsid=session("id")
sql="select * from bizre where gsid="&gsid&" order by id desc"
'response.write sql
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
msg_per_page=10 '定义每页显示记录条数
rs.pagesize=msg_per_page '定义分页记录集每页显示记录数
if not (rs.eof and rs.bof) then
totalrec=RS.RecordCount'总记录条数
if rs.recordcount mod msg_per_page=0 then'计算总页数,recordcount:数据的总记录数
n=rs.recordcount\msg_per_page'n:总页数
else
n=rs.recordcount\msg_per_page+1
end if
currentpage=request("page")'currentpage:当前页
If currentpage <> "" then
currentpage = cint(currentpage)
if currentpage < 1 then
currentpage = 1
end if
if err.number <> 0 then '错误处理
err.clear
currentpage=1
end if
else
currentpage=1
End if
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then
currentPage=1
end if
rs.absolutepage=currentpage'absolutepage:设置指针指向某页开头
rowcount=rs.pagesize'pagesize:设置每一页的数据记录数
end if
%>
<TABLE width="578" border=0 cellPadding=3 cellSpacing=1>
<TBODY>
<TR>
<TD height=40>
<%
sql1="select count(id) from bizre where gsid="&gsid&""
set totle=conn.execute(sql1)
totle=totle(0)
sql2="select count(id) from bizre where gsid="&gsid&" and sh=1"
set totle2=conn.execute(sql2)
totle2=totle2(0)
response.write"<b>您总共发布了"
response.write"<font color='#ff0000'> "&totle&"</font> 张证书,"
response.write"已审核<font color='#ff0000'> "&totle2&"</font> 张,"
response.write"尚未通过审核<font color='#ff0000'> "&(totle-totle2)&"</font> 张。"
totle.close
set totle=nothing
totle2.close
set totle2=nothing
%></td><td><span style="font-weight: bold; font-size: 14px;"><img src="../images/classpic.gif" width="6" height="12" align="absmiddle"> <a href="add.asp"><font color='#ff0000'>发布证书</font></a></span></td>
</TR>
</TBODY>
</TABLE>
<%if rs.eof then
response.write"<font class=L color=silver>您目前还没有发布任何的证书!<br><br></font>"
else%>
<br> <TABLE width="578" border="1" cellpadding="4" cellspacing="0" bordercolor="#111111" bordercolorlight="#D7EBFF" bordercolordark="#D7EBFF" 退定文件夹中。\ ???毎??style="border-collapse: collapse">
<TR height=25 bgcolor="#e8f4ff">
<TD align="center"><font color="#CC3300"><b>状态</b></font></TD>
<TD align="center" bgcolor="#e8f4ff"><font color="#CC3300"><b>证书名称</b></font></TD>
<TD align="center"><font color="#CC3300"><b>证书类型</b></font></TD>
<TD align="center"><font color="#CC3300"><b>发布时间</b></font></TD>
<TD colspan="3" align="center"><font color="#CC3300"><b>操作</b></font></TD>
</TR>
<%do while not rs.eof and rowcount > 0%>
<TR height="20" bgcolor="#ffffff">
<TD width="38" align="center"> <% if rs("sh")=1 then %> <font color="#666666">已审</font> <%else%> <font color="#FF0000">待审</font> <%end if%> </td>
<TD width="228"><a title="<%=rs("name")%>" href="template.asp?id=<%=rs("id")%>" target="_blank"><%=rs("name")%></a></td>
<TD width="84" align="center"><%
sqltype="select * from bizre_class where id="&rs("typeid")&""
set rstype=conn.execute(sqltype)
response.write""&rstype("type")&""
%></td>
<TD width="89" align="center"><%=FormatDate(rs("dateandtime"),1)%></td>
<TD width="40" align="center"> <a href="edit.asp?id=<%=rs("id")%>">修改</a></td>
<TD width="37" align="center"><a href="del.asp?id=<%=rs("id")%>">删除</a></td>
</TR>
<%
rowcount=rowcount-1
rs.movenext
loop
%>
</TABLE>
<TABLE width="578" border="1" cellpadding="4" cellspacing="0" bordercolor="#111111" bordercolorlight="#D7EBFF" bordercolordark="#D7EBFF" style="border-collapse: collapse">
<TR height=25 bgcolor="#e8f4ff"> <td bgcolor="#e8f4ff" align="center"><%call listPages()%></td>
</tr></table>
<BR><BR>
<%
sub listPages()
if not (rs.eof and rs.bof) then
gopage=currentpage
totalpage=n
blockPage=Int((gopage-1)/10)*10+1
if blockPage = 1 Then
Response.Write "<span disabled>【←前10页</span> "
Else
Response.Write("<span disabled>【</span><a href=edit.asp?page="&blockPage-10&">←前10页</a> ")
End If
i=1
Do Until i > 10 or blockPage > n
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -