Promotions

<% news_id = request("news_id") if news_id <> "" then sql = "SELECT * FROM tbl_news WHERE news_id =" & news_id set rs_news = conn.execute(sql) %>

<%if rs_news("news_contenu") <> "" and rs_news("news_contenu") <> "

 

" then%>
<%=rs_news("news_titre")%> <%=formatdatetime(rs_news("news_date1"),2)%>
<%=replace(rs_news("news_contenu"),vbcrlf,"
")%> <%end if%>

<%end if%>

Les denières news
<% set rs_news = conn.execute("SELECT * FROM tbl_news WHERE news_afficher=1 AND news_date1 <= date() AND news_date2 >= date() ORDER BY news_date1 DESC") if not rs_news.eof then while not rs_news.eof %> <% rs_news.movenext wend else %> <%end if%>
<%=formatdatetime(rs_news("news_date1"),2)%> " class="link1"><%=rs_news("news_titre")%>
Aucune news