<%@ Master Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link href="~/RadControls/Grid/Skins/Grid3D/3D.css" rel="stylesheet" type="text/css" />
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body onkeypress="AvoidClickButton();">
<br />
<form id="form1" runat="server">
<fieldset style="width: 544px; height: 68px">
<asp:Image ID="Image1" runat="server" Height="58px" ImageUrl="~/images/berima.bmp"
Style="left: 14px; position: absolute; top: 22px" Width="395px" BorderStyle="Ridge" BorderWidth="1px" />
<asp:Label ID="Label2" runat="server" Style="font-size: large; left: 132px; font-family: Verdana;
position: absolute; top: 30px" Text="ANNUAIRE ENTREPRISE" Width="218px"></asp:Label>
<asp:Label ID="Label1" runat="server" Font-Size="Small" Height="1px" Style="left: 178px;
font-family: Verdana; position: absolute; top: 55px; text-align: center;" Text="Accueil"
Width="130px"></asp:Label>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
<asp:Menu ID="Menu1" DataSourceID="SiteMapDataSource1" runat="server" StaticSelectedStyle-BorderStyle="Dotted" StaticSelectedStyle-BorderWidth="2px" StaticSelectedStyle-BorderColor="Green" StaticSelectedStyle-Font-Bold="true" style="left: -7px; position: relative; top: 55px" BackColor="#E3EAEB" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Small" ForeColor="#666666" StaticSubMenuIndent="10px" Font-Bold="False" >
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#666666" ForeColor="White" />
<DynamicMenuStyle BackColor="#E3EAEB" />
<StaticSelectedStyle BackColor="White" BorderStyle="NotSet"
BorderWidth="0px" Font-Bold="True" />
<DynamicSelectedStyle BackColor="white" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#666666" ForeColor="White" />
</asp:Menu>
<table border="0" bordercolor="#000000" style="left: 423px; position: absolute; top: 24px; width: 125px;"
title="Etat">
<tr>
<td align="center" style="width: 157px; height: 18px">
<asp:Label ID="Label3" runat="server" Style="left: 426px; position: static; top: -107px"
Text="Non connecté" Width="112px" Font-Size="X-Small" ForeColor="Green"></asp:Label><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/button1up.png" OnClick="ImageButton1_Click" /></td>
</tr>
<tr>
<td align="center" style="width: 157px; height: 18px" valign="middle">
</td>
</tr>
</table>
<br />
<br />
</fieldset>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" >
</asp:ContentPlaceHolder>
</form>
</body>
</html>
<script language="C#" runat="server">
private void Page_Load(object sender, EventArgs e)
{
if (Session.Count > 0)
{
Label3.Text = Session["userlog"] + " connecté";
ImageButton1.ImageUrl = "./images/button1up.png";
}
else
{
ImageButton1.ImageUrl = "./images/button1up2.png";
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if ( ImageButton1.ImageUrl.CompareTo("./images/button1up.png") == 0)
{
Session.Abandon();
Response.Redirect( "~/Default.aspx");
}
else
{
Response.Redirect("~/pages/Gest_Connex.aspx");
}
}
</script>
Partager