%@LANGUAGE="VBSCRIPT"%> <% Dim NewsRecordset__MMColParam NewsRecordset__MMColParam = "No" If (Request("MM_EmptyValue") <> "") Then NewsRecordset__MMColParam = Request("MM_EmptyValue") End If %> <% Dim NewsRecordset Dim NewsRecordset_numRows Set NewsRecordset = Server.CreateObject("ADODB.Recordset") NewsRecordset.ActiveConnection = MM_EDSConnection_STRING NewsRecordset.Source = "SELECT * FROM News WHERE NArchived = " + Replace(NewsRecordset__MMColParam, "'", "''") + " ORDER BY NDate ASC" NewsRecordset.CursorType = 0 NewsRecordset.CursorLocation = 2 NewsRecordset.LockType = 1 NewsRecordset.Open() NewsRecordset_numRows = 0 %> <% Dim LinksRecordset__MMColParam LinksRecordset__MMColParam = "Yes" If (Request("MM_EmptyValue") <> "") Then LinksRecordset__MMColParam = Request("MM_EmptyValue") End If %> <% Dim LinksRecordset Dim LinksRecordset_numRows Set LinksRecordset = Server.CreateObject("ADODB.Recordset") LinksRecordset.ActiveConnection = MM_EDSConnection_STRING LinksRecordset.Source = "SELECT * FROM Links WHERE LQuick = " + Replace(LinksRecordset__MMColParam, "'", "''") + "" LinksRecordset.CursorType = 0 LinksRecordset.CursorLocation = 2 LinksRecordset.LockType = 1 LinksRecordset.Open() LinksRecordset_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 6 Repeat1__index = 0 NewsRecordset_numRows = NewsRecordset_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 LinksRecordset_numRows = LinksRecordset_numRows + Repeat2__numRows %>
| <%=datelong(now,"AL")%> |
![]() |
<%
Dim strPath 'Path of directory to show
Dim objFSO 'FileSystemObject variable
Dim objFolder 'Folder variable
strPath = "FrontPictures/"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath(strPath))
a = 1
a = objFolder.Files.count
randomize
fpnum=1
fpnum=int(a * rnd + 1)
if fpnum > 10 then
snum=cstr(fpnum)
else
snum="0"&cstr(fpnum)
end if
Set objItem = Nothing
Set objFolder = Nothing
'Set objFSO = Nothing
%>
![]() |
|
<%=(NewsRecordset.Fields.Item("NTitleAL").Value)%>
<%=dateshort((NewsRecordset.Fields.Item("NDate").Value),"AL")%> -"> Lexo mė shumė...
<%=(NewsRecordset.Fields.Item("NTextAL").Value)%> <%=(LinksRecordset.Fields.Item("LNameAL").Value)%>
"><%=(LinksRecordset.Fields.Item("Llink").Value)%> <%=(LinksRecordset.Fields.Item("LDescAL").Value)%> | |||||||||||||||||||||||||||||||||||||||||||||||
<% NewsRecordset.Close() Set NewsRecordset = Nothing %> <% LinksRecordset.Close() Set LinksRecordset = Nothing %>