%@LANGUAGE="JAVASCRIPT"%> <% if (String(Request.QueryString("aid")) != "undefined") { Session("aid_sv") = String(Request.QueryString("aid")); } if (String(Request.QueryString("head")) != "undefined") { Session("head_sv") = String(Request.QueryString("head")); } var Comments_rs__MMColParam = "0"; if(String(Session("aid_sv")) != "undefined") { Comments_rs__MMColParam = String(Session("aid_sv")); } else if (String(Request.QueryString("aid")) != "undefined") { Comments_rs__MMColParam = String(Request.QueryString("aid")); } %> <% var Comments_rs = Server.CreateObject("ADODB.Recordset"); Comments_rs.ActiveConnection = MM_capesoft_STRING; Comments_rs.Source = "SELECT * FROM dbo.Comments WHERE Article = "+ Comments_rs__MMColParam.replace(/'/g, "''") + " ORDER BY TimeStamp ASC"; Comments_rs.CursorType = 0; Comments_rs.CursorLocation = 2; Comments_rs.LockType = 3; Comments_rs.Open(); var Comments_rs_numRows = 0; %> <% var Repeat1__numRows = -1; var Repeat1__index = 0; Comments_rs_numRows += Repeat1__numRows; %>
Discussion:
<%= Session("head_sv") %>
Article
number:<%= Session("aid_sv") %>
Comment: <%=(Comments_rs.Fields.Item("Name").Value)%> | |||
<% for(i=0;i<=50;i++) { %>
<% CommentStr = CommentStr.replace("\n"," ")%><% } %><%= CommentStr %> |
|||
|
<% Comments_rs.Close(); %>