<%@ Page Language="VB" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Register TagPrefix="uc" TagName="Menu" Src="~/Views/Shared/Menu.ascx" %>
<%@ Register TagPrefix="uc" TagName="ClientMenu" Src="~/Views/Client/ClientMenu.ascx" %>
<%@ Register TagPrefix="uc" TagName="CreateTab" Src="~/Views/Client/Create.ascx" %>
<%@ Register TagPrefix="uc" TagName="InscriptionTab" Src="~/Views/Client/Inscription.ascx" %>
<%@ Register TagPrefix="uc" TagName="InvoiceTab" Src="~/Views/Client/Invoice.ascx" %>
<%@ Register TagPrefix="uc" TagName="ItemTab" Src="~/Views/Client/Item.ascx" %>
<%@ Register TagPrefix="uc" TagName="NoteTab" Src="~/Views/Client/Note.ascx" %>
<%@ Register TagPrefix="uc" TagName="AttendanceTab" Src="~/Views/Client/Attendance.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Détails du client</title>

</head>
<body>
    <uc:Menu id="MenuTop" 
        runat="server" 
        MinValue="1" 
        MaxValue="10" />
        <% If CType(Session.Item("User_Info"),CoursE.coursedata.clientRow ).CLIENT_TYPE = 5 Then%>
    <uc:ClientMenu id="SubMenu" 
        runat="server" />
        <%End If%>
    
    <div style="width:100%">
    <table>
        <tr style="vertical-align:top;">
    <td style="width:50%">
    <div>
    <%  Dim dt As CoursE.coursedata.clientRow = Me.ViewData.Item("rowclient")%>
        <form action="../Create" method="post" id="create" runat="server">
    <uc:CreateTab id="Creation1" 
        runat="server" 
        MinValue="1" 
        MaxValue="10" />
    
        </form>    
        </div>
    </td>
    <td style="width:50%; height:100%">
        <div>
        <div>
        <%  Dim SessionList As CoursE.coursedata.sessionDataTable = ViewData.Item("SessionList")
            Dim SessionSelected As long = ViewData.Item("Session_Selected_Id")
            %>
        Choix de la session
        <form method="post" action="<%Response.Write(CoursE.MvcApplication.WebPath)%>Client/SetSession">
        <select name="SESSION_ID">
        <%For intCpt As Integer = 0 To SessionList.Rows.Count - 1%>
        <option value="<%Response.Write(SessionList.Rows(intCpt).Item("SESSION_ID"))%>"
        <%  If SessionList.Rows(intCpt).Item("SESSION_ID") = SessionSelected Then%>
            selected="selected"
            <%End If%>
            >
            <%Response.Write(SessionList.Rows(intCpt).Item("SESSION_CODE"))%>
        </option>
        <% Next%>
        </select>
        <input style="visibility:hidden;" type="submit" name="SetSession" value="Changer la session" />
        </form>
        </div>
        <table style="width:100% ; height:100%"><tr style="vertical-align:top;">
        <td>
            <uc:InscriptionTab id="InscriptionTab1" 
        runat="server" />
        </td></tr><tr  style="vertical-align:top;"><td style="vertical-align:top;">
            <uc:InvoiceTab id="InvoiceTab1" 
        runat="server" />
                </td></tr><tr style="vertical-align:top;"><td>
            <uc:ItemTab id="ItemTab1" 
        runat="server" />
                </td></tr><tr style="vertical-align:top;"><td>
            <uc:NoteTab id="NoteTab1" 
        runat="server" />
                </td></tr><tr style="vertical-align:top;"><td>
            <uc:AttendanceTab id="AttendanceTab1" 
        runat="server" />
                </td>
        </tr></table>
        </div>
                <tr>
    <td>
    </td>
    </tr>
    </table>
        </div>

</body>
</html>
