detail.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 688 行 · 第 1/2 页

ASP
688
字号
Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
  MM_moveParam = "offset"
  If (MM_keepMove <> "") Then
    MM_paramList = Split(MM_keepMove, "&")
    MM_keepMove = ""
    For MM_paramIndex = 0 To UBound(MM_paramList)
      MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
      If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
        MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
      End If
    Next
    If (MM_keepMove <> "") Then
      MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
    End If
  End If
End If

' set the strings for the move to links
If (MM_keepMove <> "") Then 
  MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"
End If

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

MM_moveFirst = MM_urlStr & "0"
MM_moveLast  = MM_urlStr & "-1"
MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
  MM_movePrev = MM_urlStr & "0"
Else
  MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {color: #054B0D; font-weight: bold; }
.style5 {color: #FFFFFF}
.style8 {color: #107D04}
.style9 {font-size: 12px}
.style10 {color: #5AAE18}
body {
	margin-top: 0px;
}
.style11 {color: #999999}
-->
</style>
<script language="JavaScript">
<!--
function dis(){
document.form1.submit.value=' 发帖..'
document.form1.submit.disabled=true;
return true;
}
function check() {
if (document.form1.content.value=="") {
window.alert ("请您输入回复内容 !")
document.form1.content.focus()
return false
}
return true
}
//-->
</SCRIPT>
</head>

<body>
<div align="center">
  <table width="200" height="10" border="0">
    <tr>
      <td></td>
    </tr>
  </table>
    <table width="760" border="0'" cellpadding="0" cellspacing="0">
    <tr>
      <td width="283">你是本帖第<span style=" color: <%=secaiid%>; font-weight: bold"><%=(Recordset1.Fields.Item("点击").Value)%></span>个读者,本帖有<span style=" color: <%=secaiid%>"><strong><%=(Recordset1.Fields.Item("回复数").Value)%></strong></span>条回帖</td>
      <td width="169"><div align="right"><a href="list.asp">论坛首页  </a><span class="style10">|</span><a href="javascript:history.go(-1)"> 返回上页</a>  </div></td>
      <td width="18"><div align="right"></div></td>
      <td width="124"><div align="right"><a href="write.asp"><img src="../../img/bbs/new.gif" width="113" height="23" border="0"></a></div></td>
      <td width="125"><div align="right"><a href="reply.asp?id=<%=(rs2.Fields.Item("ID").Value)%>&c=<%=request("c")%>"><img src="../../img/bbs/hui.gif" width="113" height="23" border="0"></a></div></td>
      <td width="41"><div align="right"></div></td>
    </tr>
  </table>
</div>


<% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
<div align="center">
  <div align="center">
    <table width="200" height="10" border="0">
      <tr>
        <td></td>
      </tr>
    </table>
  </div>
  <table width="760" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
  </table>
    <div align="center">
<div class="RoundedCorner"> 
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1"> <%=(webtiles.Fields.Item("页面名称").Value)%></span>
</div>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="<%=secaiid%>">
      <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%><%
dim p,huifushu,uptimes
uptimes=Recordset1("更新时间")
huifushu=Recordset1("回复数")+1
fb=Recordset1("发表方式")
ht=Recordset1("允许回帖")
sex=Recordset1("性别")
%>

<%for i =1 to huifushu
p=Recordset1.Fields.Item("相片地址").Value
%>
      <tr bgcolor="#FFFFFF">
        <td height="21" colspan="2" align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td height="21" align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        <td width="834" valign="top" bgcolor="#FFFFFF"><table width="99%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="528"><span class="style4">主题:<%=(Recordset1.Fields.Item("标题").Value)%></span> <span class="style11">(<%=request("c")%>)</span></td>
            <td width="277"><span class="style4"><span class="style5"><span class="style8"><span class="style9"><a href="#" title="IP:<%=(Recordset1.Fields.Item("ip").Value)%>"><img src="../../img/bbs/bbs_ip.gif" width="13" height="15" border="0"></a> <%if Recordset1("更新时间")<>"2006-10-1" then%>更新:<%=Recordset1("更新时间")%><%else%><%=(Recordset1.Fields.Item("时间").Value)%><%end if%></span></span></span> </span></td>
          </tr>
        </table></td>
      </tr>
      <tr bgcolor="#FFFFFF" style="word-break:break-all;Width:fixed">
        <td width="116" height="160" align="center" valign="top"><img src="<%=p%>" width="100" height="120" border="0">
            <br>
            <%=(Recordset1.Fields.Item("提交姓名").Value)%><br>            
            <%=i%>楼<br>        
        <p></p></td>
        <td valign="top"><p><%=(Recordset1.Fields.Item("内容").Value)%></p>          <p align="right"><br>
              <br>
              <br>
              <br>
              <br>
                 <br>
              <br>
              <br><%if Session("levels")="1" then %>
		      <% if Recordset1("提交帐号")=Session("userssdfgfhtrh") then %>
			      
			   <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
          <img src="../../img/bbs/update.gif" width="16" height="16"> <a href="update.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>&c=<%=request("c")%>" title="更新本帖..">修改</a> <img src="../../img/bbs/del.gif" width="12" height="13">
	     <% if Recordset1("帖子属性")="原始帖" then %>
	      <A HREF="detiepostyfsfd.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>" onClick="return confirm('您确定要删除帖子及其回复吗?')" title="删除本主题帖及其所有回复..">删除本帖列表</A>
          <%end if%>
          <% if Recordset1("帖子属性")="回复帖" then %>
	      <a href="delmyhuifu.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>&c=<%=request("c")%>" onClick="return confirm('您确定要删除帖子吗?')" title="删除本帖..">删除</a></p>
	       <%end if%>  
	       <%end if%>   
          <%end if%>
          <%if Session("levels")="1" then %>
		        <% if Recordset1("提交帐号")<>Session("userssdfgfhtrh") and Recordset1("提交人level")<>Session("levels") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
          <img src="../../img/bbs/del.gif" width="12" height="13">
	     <% if Recordset1("帖子属性")="原始帖" then %>
	      <A HREF="detiepostyfsfdfor1.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>" onClick="return confirm('您确定要删除帖子及其回复吗?')" title="删除本主题帖及其所有回复..">删除本帖列表</A>
          <%end if%>
          <% if Recordset1("帖子属性")="回复帖" then %>
	      <a href="delmyhuifufor1.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>" onClick="return confirm('您确定要删除帖子吗?')" title="删除本帖..">删除</a></p>
           <%end if%>  <%end if%>   
    
	   <%end if%>
	       
	   
	       
	      <%if Session("levels")="1" then %>
		        <% if Recordset1("提交帐号")<>Session("userssdfgfhtrh") and Recordset1("提交人level")=Session("levels") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
           <%end if%>
    
	   <%end if%>
	       
	   <%if Session("levels")="10" then %>
		        <% if Recordset1("提交帐号")<>Session("userssdfgfhtrh") and Recordset1("提交人level")="999" and Recordset1("提交人部门")=Session("bumen") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
          <img src="../../img/bbs/del.gif" width="12" height="13">
	     <% if Recordset1("帖子属性")="原始帖" then %>
	      <A HREF="detiepostyfsfdfor1.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>" onClick="return confirm('您确定要删除帖子及其回复吗?')"title="删除本主题帖及其所有回复..">删除本帖列表</A>
          <%end if%>
          <% if Recordset1("帖子属性")="回复帖" then %>
	      <a href="delmyhuifufor1.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>" onClick="return confirm('您确定要删除帖子吗?')"title="删除本帖..">删除</a></p>
           <%end if%>  <%end if%>   
     
	   <%end if%>
	       
	   <%if Session("levels")="10" then %>
		        <% if Recordset1("提交帐号")=Session("userssdfgfhtrh") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
          <img src="../../img/bbs/update.gif" width="16" height="16"> <a href="update.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>">修改</a> <img src="../../img/bbs/del.gif" width="12" height="13">
	     <% if Recordset1("帖子属性")="原始帖" then %>
	      <A HREF="detiepostyfsfd.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>" onClick="return confirm('您确定要删除帖子及其回复吗?')"title="删除本主题帖及其所有回复..">删除本帖列表</A>
          <%end if%>
          <% if Recordset1("帖子属性")="回复帖" then %>
	      <a href="delmyhuifu.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>" onClick="return confirm('您确定要删除帖子吗?')"title="删除本帖..">删除</a></p>
           <%end if%>  <%end if%>   
	    
	   <%end if%>
	       
	   
               <%if Session("levels")="10" then %>
		        <% if Recordset1("提交帐号")<>Session("userssdfgfhtrh") and Recordset1("提交人level")=Session("levels") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
           <%end if%>
                  <%end if%>
			              <%if Session("levels")="10" then %>
		        <% if Recordset1("提交帐号")<>Session("userssdfgfhtrh") and Recordset1("提交人level")="999" and Recordset1("提交人部门")<>Session("bumen") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
           <%end if%>
                  <%end if%>
				    
				
			              <%if Session("levels")="10" then %>
		        <% if  Recordset1("提交人level")="1" then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
           <%end if%>
                  <%end if%>
				    
				
				    
	   <%if Session("levels")="999" then %>
		        <% if Recordset1("提交帐号")=Session("userssdfgfhtrh") then %>
		         <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>  <br><br>
          <img src="../../img/bbs/update.gif" width="16" height="16"> <a href="update.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>">修改</a> <img src="../../img/bbs/del.gif" width="12" height="13">
	     <% if Recordset1("帖子属性")="原始帖" then %>
	      <A HREF="detiepostyfsfd.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>" onClick="return confirm('您确定要删除帖子及其回复吗?')"title="删除本主题帖及其所有回复..">删除本帖列表</A>
          <%end if%>
          <% if Recordset1("帖子属性")="回复帖" then %>
	      <a href="delmyhuifu.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&id1=<%=(rs2.Fields.Item("id").Value)%>" onClick="return confirm('您确定要删除帖子吗?')"title="删除本帖..">删除</a></p>
           <%end if%>  <%end if%>   
	      <% if Recordset1("提交帐号")<>Session("userssdfgfhtrh") then %>
	      <span class="style9"><%=(Recordset1.Fields.Item("时间").Value)%></span>
          <%end if%>  
          <%end if%>
	       
	   
        </td>
      </tr>
      <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
next
Wend
%>
</table>

    <div align="left"><span class="style4"><span class="style5"><span class="style8"></span></span> </span>
    </div>
    <table width="200" height="10" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td></td>
      </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><form name="form1" method="post" action="rplypost.asp" onSubmit="return dis()">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="<%=secaiid%>">
            <tr bgcolor="#FFFFFF">
              <td width="116" valign="top"><div align="right"><br>
                  <span class="style9">快速回复:
                  <input name="bt" type="hidden" id="bt" value="<%=(rs2.Fields.Item("标题").Value)%>"> 
                  <input name="c" type="hidden" id="c" value="<%=request("c")%>">               
                  <input name="id" type="hidden" id="id" value="<%=(rs2.Fields.Item("id").Value)%>">
              </span></div></td>
              <td width="645"> 
                <table width="100" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td><textarea name="content" cols="70" rows="8" id="content"></textarea></td>
                  </tr>
                </table>              
                <br>  
  <input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onclick="return check()"  value= " 回 帖 ">

   
  <input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 返 回 " onclick="javascript:history.go(-1)">
  <br>
  <br></td>
            </tr>
          </table>
      </form></td>
    </tr>
  </table>
  <table border="0" width="50%" align="center">
    <tr>
      <td width="23%" align="center"><% If MM_offset <> 0 Then %>
          <a href="<%=MM_moveFirst%>">第一页</a>
          <% End If ' end MM_offset <> 0 %>
      </td>
      <td width="31%" align="center"><% If MM_offset <> 0 Then %>
          <a href="<%=MM_movePrev%>">前一页</a>
          <% End If ' end MM_offset <> 0 %>
      </td>
      <td width="23%" align="center"><% If Not MM_atTotal Then %>
          <a href="<%=MM_moveNext%>">下一页</a>
          <% End If ' end Not MM_atTotal %>
      </td>
      <td width="23%" align="center"><% If Not MM_atTotal Then %>
          <a href="<%=MM_moveLast%>">最后一页</a>
          <% End If ' end Not MM_atTotal %>
      </td>
    </tr>
  </table>
</div>
<div align="center"></div>
<% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>

</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
rs2.Close()
Set rs2 = Nothing
%>
<%
webtiles.Close()
Set webtiles = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>

⌨️ 快捷键说明

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