<%@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

Discussion:
<%= Session("head_sv") %>
Article number:<%= Session("aid_sv") %>

<% if (Comments_rs.EOF && Comments_rs.BOF) { %>
There currently are no comments on this article!
<% } // end Comments_rs.EOF && Comments_rs.BOF %>
<% if (!Comments_rs.EOF || !Comments_rs.BOF) { %> <% while ((Repeat1__numRows-- != 0) && (!Comments_rs.EOF)) { %> <% var CommentStr = (Comments_rs.Fields.Item("Comment").Value); %>
  Comment: <%=(Comments_rs.Fields.Item("Name").Value)%>
<%=(Comments_rs.Fields.Item("TimeStamp").Value)%>
 
  <% for(i=0;i<=50;i++) { %> <% CommentStr = CommentStr.replace("\n","
")%><% } %><%= CommentStr %>
 
 
 
<% Repeat1__index++; Comments_rs.MoveNext(); } %> <% } // end !Comments_rs.EOF || !Comments_rs.BOF %> ">Add a Comment
">

 

<% Comments_rs.Close(); %>