<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="inc/functions.string.asp"--><%
arrDayNames = Array("","Sun", "Mon",  "Tue", "Wed", "Thu", "Fri", "Sat")

arrMonthNames = Array("", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")	
response.ContentType = "text/xml"
response.Charset = "utf-8"

	SQL = "select id, f_Titlos as title, f_thumb, f_Imerominia as imerominia, f_small_description as extra_descr from utpv_2 order by f_Imerominia desc"

Set oConn = Server.CreateObject("ADODB.Connection")
Set oRs = Server.CreateObject("ADODB.Recordset")
oConn.Open Application("ConStr")
set oRs = oConn.execute(SQL)
if oRs.EOF = false then
	news = oRs.getRows()
end if
oRs.close
oConn.close
set oRs = nothing
set oConn = nothing
%><rss version="2.0">
<channel>
    <title>Newsbank John Kent</title>
    <link>http://www.johnkent.com</link>
    <description>Newsbank</description>
    <docs>http://www.johnkent.com/newsbank.asp</docs>
    <image>
    	<url>http://www.johnkent.com/Images/john.jpg</url>
    	<title>www.johnkent.com</title>
    	<link>http://www.johnkent.com/</link>
    	<width>176</width>
    	<height>64</height>
    </image>

 	<language>el-gr</language>
    <pubDate>Tue, 22 Dec 2009 04:00:00 GMT</pubDate>
    <lastBuildDate>Tue, 22 Dec 2009 09:41:01 GMT</lastBuildDate>
	<generator>johnkent.com portal</generator>
	<managingEditor>john@youtravel.com</managingEditor>
	<webMaster>john@youtravel.com</webMaster>
<%
if isarray(news) then
	for i = 0 to ubound(news)
	
		photothumb=news(2,i)
		photothumb = replace(photothumb & "","%SitePath%", "" & Application("SitePath") & "") 
		if instr(photothumb, ",") then
			myarr10 = split(photothumb,",")
			photothumb = left(photothumb, instr(photothumb, ",") -1)
			if  myarr10(1) <> "" then
			myphotophotoalt10 = myarr10(1)
			end if
			end if
		%>
	<item>
		<description><%if photothumb<>"" then%><![CDATA[<img src="<%=photothumb%>"/>]]><%end if%></description>
		<title><%=news(3,i)%> - <![CDATA[<%=RemoveHTMLTags(news(1,i))%>]]></title>
		<link>http://www.johnkent.com/default.asp?entryID=<%=news(0,i)%>&amp;siteID=1&amp;pageID=5&amp;tablePageID=2&amp;langID=1</link>
      	<guid>http://www.johnkent.com/default.asp?entryID=<%=news(0,i)%>&amp;siteID=1&amp;pageID=5&amp;tablePageID=2&amp;langID=1</guid>
	</item>
<%	next
end if%>
</channel>
</rss>


