- Timestamp:
- 05/25/11 15:00:44 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Algorithm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Algorithm/Detail.aspx
r6246 r6290 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 6 Detail 7 </asp:Content> 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 <% Html.RenderAction("Menu", "Admin"); %> 7 10 </asp:Content> 8 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Algorithm/Index.aspx
r6246 r6290 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 Index 6 Index 7 </asp:Content> 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 <% Html.RenderAction("Menu", "Admin"); %> 7 10 </asp:Content> 8 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 9 <h2>Algorithms</h2> 10 11 12 13 <% long? id = null; %> 14 <%: Html.ActionLink("New Algorithm", "Detail", new {id}) %> 15 <%: Html.ActionLink("Order ASC", "SortAsc")%> 16 <%: Html.ActionLink("Order DESC", "SortDesc")%> 17 18 <div style="height:150px; overflow:scroll;"> 19 <table> 20 <!--// We get this from the Controller (Index)--> 21 <% foreach(Algorithm p in ((AlgorithmModel)Model).Algorithms) { %> 22 <tr> 23 <td> 24 <%: Html.Label(p.Name)%> 25 </td> 26 <td> 27 <%: Html.Label(p.Description) %> 28 </td> 29 <td> 30 <%: Html.Label(p.DataTypeName)%> 31 </td> 32 <td> 33 <%: Html.ActionLink("detail", "Detail",new {p.Id}) %> 34 </td> 35 <td> 36 <%: Html.ActionLink("delete", "Delete",new {p.Id}) %> 37 </td> 38 </tr> 39 <% } %> 40 </table> 41 </div> 12 <h2> 13 Algorithms</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 16 <%: Html.ActionLink("New Algorithm", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 17 </div> 18 <table class="hl-dataTable"> 19 <thead> 20 <tr> 21 <th>Name</th> 22 <th>Description</th> 23 <th>Type</th> 24 <th colspan="2">Actions</th> 25 </tr> 26 </thead> 27 <tbody> 28 <!--// We get this from the Controller (Index)--> 29 <% foreach (Algorithm p in ((AlgorithmModel)Model).Algorithms) { %> 30 <tr> 31 <td> 32 <%: Html.Label(p.Name)%> 33 </td> 34 <td> 35 <%: Html.Label(p.Description) %> 36 </td> 37 <td> 38 <%: Html.Label(p.DataTypeName)%> 39 </td> 40 <td> 41 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 42 </td> 43 <td> 44 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 45 </td> 46 </tr> 47 <% } %> 48 </tbody> 49 </table> 42 50 </asp:Content>
Note: See TracChangeset
for help on using the changeset viewer.