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

<%@ Register TagPrefix="uc" TagName="Menu" Src="~/Views/Shared/Menu.ascx" %>
<%@ Register TagPrefix="uc" TagName="CourseMenu" Src="~/Views/Course/CourseMenu.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 id="Head1" runat="server">
    <title>Index</title>
<style type="text/css">
.table_client tr th {
	text-align: left;
}
</style>
</head>
<body>
    <uc:Menu id="MenuTop" 
        runat="server" 
        MinValue="1" 
        MaxValue="10" />
    <uc:CourseMenu id="SubMenu" 
        runat="server" 
        MinValue="1" 
        MaxValue="10" />
        <a href="<%response.write( global_asax.WebPath)%>Course/CreateZone">Ajouter une zone</a>
    <h2>Liste des Zones</h2>
    <div>
   <%  
       Dim dt As CoursE.coursedata.zoneDataTable = Me.ViewData.Item("tablezone")
     
       %><table class="table_client"><tr><th width="129">Code</th><th width="564">Description</th><th width="37"></th></tr><%
       For intCpt As Integer = 0 To dt.Rows.Count - 1
       %><tr><td><%
                     Response.Write(dt.Item(intCpt).ZONE_CODE)
       %></td><td><%
                      Response.Write(dt.Item(intCpt).ZONE_DESCRIPTION)
       %></td><td><a href="DetailsZone/<% Response.Write(dt.Item(intCpt).ZONE_ID) %>">Voir</a></td></tr><%
             Next
                    %></table><%
       Response.Write("<br />Total : " & dt.Rows.Count)
   %> 
    
    </div>
</body>
</html>
