<!--#include file="admin\include.inc"-->
<!--#include file="connect1.inc"-->
<!--#include file="enCoursSty.asp"-->

<%
mypath=request.servervariables("path_info")
myid=request.querystring("id")
if (myid="") then myid=0
db.execute("update menu set menu_count=menu_count+1 where menu_id=" & myid)

' print hierarchy of linked menu titles
sub printlinkedmenus(menuid)
	if (menuid >= 0) then	
		set rsmenu=db.execute("select * from menu where menu_id=" & menuid)
		printlinkedmenus(rsmenu("menu_parent"))
		if (menuid > 0) then response.write(" <b>¤</b> ")
		str="<a href=""" & mypath & "?id=" & menuid & """ style=""color:black; text-decoration:none;"" "
		str=str & "onMouseOver=""self.status='" & decode(rsmenu("menu_title")) & "'; return true"" "
		str=str & "onMouseOut=""self.status=''; return true"">"
		str=str & decode(rsmenu("menu_title")) & "</a>"
		response.write(str)
		set rsmenu=nothing
	end if
end sub

' print hierarchy of plain text menu titles
sub printmenus(menuid)
	if (menuid >= 0) then	
		set rsmenu=db.execute("select * from menu where menu_id=" & menuid)
		printmenus(rsmenu("menu_parent"))
		if (menuid > 0) then response.write(" : ")
		response.write(decode(rsmenu("menu_title")))
		set rsmenu=nothing
	end if
end sub
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//FR"
 "http://www.w3.org/TR/xhtml1/DTD/strict.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Silentculture - Performance">
<meta http-equiv="imagetoolbar" content="no">
<title><% call printmenus(myid) %></title>

</head>

<body>

<table border=0 cellspacing=0 cellpadding=5 width=100% bgcolor=black>
	<td><font style="font-family:arial; font-size:8pt">&nbsp;

<% set rs=db.execute("select * from menu where menu_id=0") %>
<a style="color:#00DFDF; text-decoration:none"; href="<%=mypath%>?id=0" onMouseOver="self.status=''<%=decode(rs("menu_title"))%>'; return true" onMouseOut="self.status=''; return true">
<%=decode(rs("menu_short"))%></a>&#160;&#160;<span style="font-weight:bold; color:yellow">¤</span>

<%
set rs=db.execute("select * from menu where menu_parent=0")
while not rs.eof%>
<% 'A T T E N T I O N : possibilité d'erreur aux lignes suivantes %>
<%	str="<a href=""" & mypath & "?id=" & rs("menu_id") & """ style=""color:#00DFDF; text-decoration:none"" "
	str=str & "onMouseOver=""self.status='" & decode(rs("menu_title")) & "'; return true"" "
	str=str & "onMouseOut=""self.status=''; return true"">"
	str=str & decode(rs("menu_short")) & "</a>"
	response.write(str)
	rs.movenext
	if not rs.eof then response.write("&#160;&#160;<span style='font-weight:bold; color:yellow'>¤</span> ")
wend
%>
<%="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<a href='projectmain.asp'><img src='images/inEnglish.jpg' border='0' width='100' height='22' alt='Featured Productions'></a>"
%>
</font>
</td>
</table>

<% 'deuxième table, s.v.p. %>
<table border=0 cellspacing=0 cellpadding=3 width=100% bgcolor=#F0F6EE>
	<td valign="middle"><font face="Trebuchet MS" size=2 color=#FF3333>
&nbsp;<b><% call printlinkedmenus(myid) %></b></font>
	</td>
</table>

<% 'troisième table (vide) entre le menu vertical et la barre de menu contextuel en vert; elle laisse une trace pour séparer les deux tables %>
<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=#FFFFFF>
	<td>
<% '<img src=images/shim.gif width=1 height=2> %>
	</td>
</table>

<%
set rs=db.execute("select * from menu where menu_parent=" & myid)
printmenu=(not rs.eof)
%>

<% 'quatrième table %>
<table border=0 cellspacing=0 cellpadding=8 width=100%>
	<tr>
<% if printmenu then %>
	<td bgcolor=#E9F4E7 valign=top>

<% 'MENU DE GAUCHE 
'1ère table imbriquée %>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
	<td><center><img src="images/montage.gif" border="0" width="102" height="58" alt=""></center>
<font face=arial size=2>
<%
while not rs.eof %>
	<p><ul style="color:#1B7C0D;  list-style-image: url(images/right_small.gif)">
	<li><a style="text-align: center"; href="<%=mypath%>?id=<%=rs("menu_id")%>"><%=decode(rs("menu_title"))%></a></li></ul>
<%
	rs.movenext
wend
%>
</font>
	</td>
</table>

<img src=images/shim.gif width=150 height=1>
	</td>
<% end if %>

	<td width=100% valign=top>
	
<% '2e table imbriquée %>	
<table border=0 cellspacing=0 cellpadding=8 width=100%>
	<td align="center">
	<% 'Emplacement de l'entête apparaissant sur toutes les pages %>
<div align="center" style="font-size: 8pt"><p><a href="http://www.silentculture.org/creation/francais.asp" target="_blank"><img src="../../creation/1jones.gif" width="68" height="93" alt="" border="0"></a></p>
<b><i>Silentculture</i> (Performance)</b>
</div>

<%
set rs=db.execute("select * from menu where menu_id=" & myid)
%>
<font face=arial size=2>
<p><%=decode(rs("menu_body"))%>
<p>&nbsp;
</font>
	</td>	

</table>
<% 'fin des tables imbriquées %>

	</td>
	</tr>

<% if printmenu then %>
	<tr>

	<td style="background-color:black; color:white; font-family: verdana; font-size: 9px; text-align:center; font-weight:bold"><a href="http://www.silentculture.org/creation/francais.asp" target="_blank"><img src=images/shim.gif width=1 height=2></a><a href="http://www.silentculture.org/creation/francais.asp" target="_blank">Silentculture - Performance</a></td>
	<td style="background-color:black; color:white">
<% set rs=nothing %>
	
<% 'ajout script: dernière mise à jour %>
<center style="font-size: 8pt; font-family:Arial">
<% Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set rs = fs.GetFile(Server.MapPath("../../_prj/encours/default.asp"))
modified = rs.DateLastModified %>

<%= ("<span style=""font-family:verdana; font-size:9px; font-weight:bold""><i>Dernière mise à jour</i> /Last modified on: </span>") %>

<%response.write("<span style=""font-family:verdana; font-size:9px; font-weight:bold"">" & (modified) & "</span>")
Set rs = Nothing
Set fs = Nothing%><br />

</center>
<% 'fin script mise à jour %>
	</td>
	</tr>
<% end if %>
</table>
<% 'fin 4e table %>
</body>
</html>

<% set rs=nothing %>
<!--#include file="disconnect.inc"-->
