<% strSubSQL = "SELECT usrlogin,usrstatu,usrmail FROM Utilisateur WHERE usrid=" & ContRes("postcnau") & " "
set SubRes=ConnectionBD.Execute(strSubSQL)
strStatSQL = "SELECT * FROM Statut WHERE statid=" & SubRes("usrstatu") & " "
set StatRes=ConnectionBD.Execute(strStatSQL)
If visdt<>"" Then
If DateDiff("d",visdt,ContRes("postcndt"))>0 Then
actual=1
Else
If DateDiff("d",visdt,ContRes("postcndt"))=0 Then
If DateDiff("s",vish,ContRes("postcnh"))>=0 Then
actual=1
End If
End If
End If
End If
%>
<tr>
<td bgcolor="<% If actual=1 Then %><% =EnvironnementRes("envtop") %><% Else %><% If fondcoul=1 Then %><% =EnvironnementRes("envcol1") %><% Else %><% =EnvironnementRes("envcol2") %><% End If %><% End If%>" width="20%" valign="top"><font face="Arial" size="2"><b><% =SubRes("usrlogin") %></b></font><BR><font face="Arial" size="1"><% =StatRes("statdesc") %></font></td>
<td bgcolor="<% If fondcoul=1 Then %><% =EnvironnementRes("envcol1") %><% Else %><% =EnvironnementRes("envcol2") %><% End If %>" width="80%"><font face="Arial" size="2"><img src="<% =EnvironnementRes("envpostlogo") %>" alt="Message"> <% =ContRes("postcndt") %>, <% =ContRes("postcnh") %> <a href="viewprofil.asp?id=<% =ContRes("postcnau") %>" target="_blank"><img src="<% =EnvironnementRes("envpro") %>" border="0" alt="Profil de l'utilisateur"></a> <a href="mailto:<% =SubRes("usrmail") %>"><img src="<% =EnvironnementRes("envmail") %>" border="0" alt="Envoyer un e-mail α l'utilisateur"></a> <a href="edit.asp?postid=<% =postid2 %>&topicid=<% =topicid2 %>&postcnid=<% =ContRes("postcnid") %>"><img src="<% =EnvironnementRes("envedit") %>" border="0" alt="Editer/Supprimer le message"></a><hr><% =ContRes("postcncn") %><br><br></font></td>
</tr>
<% actual=0 %>
<% ContRes.MoveNext %>
<% fondcoul = -fondcoul %>
<% Loop %>
</table>
</center>
</div>
<p align="center">
<font face="Arial" size="2"><b>
Options administratives : <% If PostRes("postfin")=false Then %><a href="fermerpost.asp?postid=<% =postid2 %>&topicid=<% =topicid2 %>"> Fermer le sujet</a><% Else %><a href="ouvrirpost.asp?postid=<% =postid2 %>&topicid=<% =topicid2 %>"> Ouvrir le sujet</a><% End If %>