admin_commoncode_content.asp
来自「本程序系统完全实现了医院网站程序的全部功能的前台和后台程序」· ASP 代码 · 共 1,016 行 · 第 1/5 页
ASP
1,016 行
Do While Not rsComment.EOF
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='30' align='center'>" & rsComment("CommentID") & "</td>"
Response.Write " <td><a href=# title='" & rsComment("Content") & "'>" & Left(rsComment("Content"), 25) & "</a>" & "</td>"
Response.Write " <td width='60' align='center'>" & rsComment("UserName") & "</td>"
Response.Write " <td width='120' align='center'>" & rsComment("IP") & "</td>"
Response.Write " <td width='120' align='center'>" & rsComment("WriteTime") & "</td>"
Response.Write " <td width='100' align='center'>"
If AdminPurview = 1 Or AdminPurview_Channel = 1 Then
If rsComment("ReplyName") <> "" Then
Response.Write " "
Else
Response.Write "<a href='Admin_Comment.asp?ChannelID=" & ChannelID & "&Action=Reply&CommentID=" & rsComment("Commentid") & "'>回复</a> "
End If
Response.Write "<a href='Admin_Comment.asp?ChannelID=" & ChannelID & "&Action=Modify&CommentID=" & rsComment("Commentid") & "'>修改</a> "
Response.Write "<a href='Admin_Comment.asp?ChannelID=" & ChannelID & "&Action=Del&CommentID=" & rsComment("CommentID") & "'>删除</a>"
End If
Response.Write "</td></tr>"
If rsComment("ReplyName") <> "" Then
Response.Write "<tr class='tdbg' onmouseout=""this.className='tdbg'"" onmouseover=""this.className='tdbgmouseover'""> "
Response.Write "<td align='center'> </td>"
Response.Write "<td colspan='4'>管理员【" & rsComment("ReplyName") & "】于 " & rsComment("ReplyTime") & " 回复:<br><div style='padding:0px 20px'>" & rsComment("ReplyContent") & "</div></td>"
Response.Write "<td align='center'><a href='Admin_Comment.asp?ChannelID=" & ChannelID & "&Action=Reply&CommentID=" & rsComment("CommentID") & "'>修改回复内容</a></td>"
Response.Write "</tr>"
End If
i = i + 1
If i >= MaxPerPage Then Exit Do
rsComment.MoveNext
Loop
End If
rsComment.Close
Set rsComment = Nothing
Response.Write "</table><br>"
End Sub
Sub ShowConsumeLog(InfoID)
Dim MaxPerPage
MaxPerPage = 10
Response.Write "<table width='100%' border='0' cellpadding='2' cellspacing='1' class='border'>"
Response.Write " <tr align='center' class='title'>"
Response.Write " <td width='120'>消费时间</td>"
Response.Write " <td width='80'>消费者</td>"
Response.Write " <td width='100'>IP地址</td>"
Response.Write " <td width='60'>消费点数</td>"
Response.Write " <td width='50'>重复次数</td>"
Response.Write " <td>备注/说明</td>"
Response.Write " </tr>"
Dim rsConsumeLog, sqlConsumeLog
Dim TotalPoint, TotalPut
TotalPoint = 0
sqlConsumeLog = "select * from PE_ConsumeLog where ModuleType=" & ModuleType & " and InfoID=" & InfoID & " order by LogID desc"
Set rsConsumeLog = Server.CreateObject("Adodb.RecordSet")
rsConsumeLog.Open sqlConsumeLog, Conn, 1, 1
If rsConsumeLog.BOF And rsConsumeLog.EOF Then
TotalPut = 0
Response.Write "<tr class='tdbg' height='50'><td colspan='20' align='center'>没有任何相关消费记录!</td></tr>"
Else
TotalPut = rsConsumeLog.RecordCount
If CurrentPage < 1 Then
CurrentPage = 1
End If
If (CurrentPage - 1) * MaxPerPage > TotalPut Then
If (TotalPut Mod MaxPerPage) = 0 Then
CurrentPage = TotalPut \ MaxPerPage
Else
CurrentPage = TotalPut \ MaxPerPage + 1
End If
End If
If CurrentPage > 1 Then
If (CurrentPage - 1) * MaxPerPage < TotalPut Then
rsConsumeLog.Move (CurrentPage - 1) * MaxPerPage
Else
CurrentPage = 1
End If
End If
Dim i
i = 0
Do While Not rsConsumeLog.EOF
TotalPoint = TotalPoint + rsConsumeLog("Point")
Response.Write " <tr class='tdbg' onmouseout=""this.className='tdbg'"" onmouseover=""this.className='tdbgmouseover'"">"
Response.Write " <td width='120' align='center'>" & rsConsumeLog("LogTime") & "</td>"
Response.Write " <td width='80' align='center'><a href='Admin_User.asp?Action=Show&UserName=" & rsConsumeLog("UserName") & "&InfoType=2'>" & rsConsumeLog("UserName") & "</a></td>"
Response.Write " <td width='100' align='center'>" & rsConsumeLog("IP") & "</td>"
Response.Write " <td width='60' align='right'>" & rsConsumeLog("Point") & "</td>"
Response.Write " <td width='50' align='center'>" & rsConsumeLog("Times") & "</td>"
Response.Write " <td align='left'>" & rsConsumeLog("Remark") & "</td>"
Response.Write " </tr>"
i = i + 1
If i >= MaxPerPage Then Exit Do
rsConsumeLog.MoveNext
Loop
End If
rsConsumeLog.Close
Set rsConsumeLog = Nothing
Response.Write " <tr class='tdbg' onmouseout=""this.className='tdbg'"" onmouseover=""this.className='tdbgmouseover'"">"
Response.Write " <td colspan='3' align='right'>本页合计:</td>"
Response.Write " <td align='right'>" & TotalPoint & "</td>"
Response.Write " <td colspan='3'> </td>"
Response.Write " </tr>"
Dim trs, TotalPointAll
Set trs = Conn.Execute("select sum(Point) from PE_ConsumeLog where ModuleType=" & ModuleType & " and InfoID=" & InfoID & "")
If IsNull(trs(0)) Then
TotalPointAll = 0
Else
TotalPointAll = trs(0)
End If
Set trs = Nothing
Response.Write " <tr class='tdbg' onmouseout=""this.className='tdbg'"" onmouseover=""this.className='tdbgmouseover'"">"
Response.Write " <td colspan='3' align='right'>总计点数:</td>"
Response.Write " <td align='right'>" & TotalPointAll & "</td>"
Response.Write " <td colspan='3'> </td>"
Response.Write " </tr>"
Response.Write "</table>"
Response.Write ShowPage(strFileName, TotalPut, MaxPerPage, CurrentPage, True, True, "条消费明细记录", True)
End Sub
Sub ShowForm_MoveToClass()
If AdminPurview = 2 And AdminPurview_Channel > 2 Then
FoundErr = True
ErrMsg = ErrMsg & "<li>对不起,你的权限不够!</li>"
Exit Sub
End If
Dim tChannelID, BatchInfoID
tChannelID = Trim(Request("tChannelID"))
If tChannelID = "" Then
tChannelID = ChannelID
Else
tChannelID = PE_CLng(tChannelID)
End If
BatchInfoID = ReplaceBadChar(Request("Batch" & ModuleName & "ID"))
If BatchInfoID = "" Then
BatchInfoID = ReplaceBadChar(Request(ModuleName & "ID"))
End If
Response.Write "<form method='POST' name='myform' action='Admin_" & ModuleName & ".asp' target='_self'>"
Response.Write " <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>"
Response.Write " <tr class='title'>"
Response.Write " <td height='22' colspan='4' align='center'><b>批量移动" & ChannelShortName & "</td>"
Response.Write " </tr>"
Response.Write " <tr align='left' class='tdbg'>"
Response.Write " <td valign='top' width='300'>"
Response.Write " <input type='radio' name='" & ModuleName & "Type' value='1' checked>指定" & ChannelShortName & "ID:<input type='text' name='Batch" & ModuleName & "ID' value='" & BatchInfoID & "' size='30'><br>"
Response.Write " <input type='radio' name='" & ModuleName & "Type' value='2'>指定栏目的" & ChannelShortName & ":<br><select name='BatchClassID' size='2' multiple style='height:360px;width:300px;'>" & GetClass_Channel(ChannelID) & "</select><br>"
Response.Write " <input type='button' name='Submit' value=' 选定所有栏目 ' onclick='SelectAll()'>"
Response.Write " <input type='button' name='Submit' value='取消选定所有栏目' onclick='UnSelectAll()'>"
Response.Write " </td>"
Response.Write " <td align='center' >移动到>></td>"
Response.Write " <td valign='top'>"
Response.Write " 目标频道:<select name='tChannelID' onChange='document.myform.submit();'>" & GetChannel_Option(ModuleType, tChannelID) & "</select><br>"
Response.Write " 目标栏目:<font color=red>(不能指定为外部栏目)</font><br><select name='tClassID' size='2' style='height:360px;width:300px;'>" & GetClass_Channel(tChannelID) & "</select>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <p align='center'>"
Response.Write " <input name='ChannelID' type='hidden' id='ChannelID' value='" & ChannelID & "'>"
Response.Write " <input name='Action' type='hidden' id='Action' value='MoveToClass'>"
Response.Write " <input name='add' type='submit' id='Add' value=' 执行批处理 ' style='cursor:hand;' onClick=""document.myform.Action.value='DoMoveToClass';""> "
Response.Write " <input name='Cancel' type='button' id='Cancel' value=' 取 消 ' onClick=""window.location.href='Admin_" & ModuleName & ".asp?ChannelID=" & ChannelID & "&Action=Manage';"" style='cursor:hand;'>"
Response.Write " </p>"
Response.Write "</form>"
Response.Write "<center><b>注意:</b>跨频道" & ChannelShortName & "移动,频道内自定义字段数据不会被移动。</center>"
Response.Write "<script language='javascript'>" & vbCrLf
Response.Write "function SelectAll(){" & vbCrLf
Response.Write " for(var i=0;i<document.myform.BatchClassID.length;i++){" & vbCrLf
Response.Write " document.myform.BatchClassID.options[i].selected=true;}" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "function UnSelectAll(){" & vbCrLf
Response.Write " for(var i=0;i<document.myform.BatchClassID.length;i++){" & vbCrLf
Response.Write " document.myform.BatchClassID.options[i].selected=false;}" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "</script>" & vbCrLf
End Sub
Sub ShowForm_AddToSpecial()
If AdminPurview = 2 And AdminPurview_Channel > 2 Then
FoundErr = True
ErrMsg = ErrMsg & "<li>对不起,你的权限不够!</li>"
Exit Sub
End If
Response.Write "<form method='POST' name='myform' action='Admin_" & ModuleName & ".asp' target='_self'>"
Response.Write " <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>"
Response.Write " <tr class='title'>"
Response.Write " <td height='22' colspan='4' align='center'><b>将" & ChannelShortName & "添加到专题中</td>"
Response.Write " </tr>"
Response.Write " <tr align='left' class='tdbg'>"
Response.Write " <td width='100' class='tdbg5'>选定的" & ChannelShortName & "ID:</td><td><input type='text' name='BatchInfoID' value='" & ReplaceBadChar(Request("InfoID")) & "' size='50'></td></tr>"
Response.Write " </tr>"
Response.Write " <tr align='left' class='tdbg'>"
Response.Write " <td width='100' class='tdbg5' valign='top'>添加到目标专题:</td><td><select name='tSpecialID' size='2' multiple style='height:300px;width:300px;'>" & GetSpecial_Option(0) & "</select></td></tr>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <p align='center'>"
Response.Write " <input name='ChannelID' type='hidden' id='ChannelID' value='" & ChannelID & "'>"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?