Changeset 6290
- Timestamp:
- 05/25/11 15:00:44 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBAdminPlugin
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AdminController.cs
r6246 r6290 10 10 using HLWebOKBAdminPlugin.Helpers; 11 11 using HLWebOKBAdminPlugin.Models; 12 using System.Reflection; 12 13 13 14 namespace HLWebOKBAdminPlugin.Controllers { … … 28 29 29 30 public ActionResult Menu() { 31 30 32 return View(); 31 33 }//ActionResult Men -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AlgorithmClassController.cs
r6283 r6290 14 14 // GET: /AlgorithmClass/ 15 15 16 public ActionResult Index() 17 { 16 public ActionResult Index() { 17 18 18 Session["SelectedSubMenu"] = "AlgorithmClass"; 19 19 AlgorithmClassModel acm = new AlgorithmClassModel(); -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Properties/AssemblyInfo.cs
r6050 r6290 37 37 [assembly: AssemblyVersion("1.0.0.0")] 38 38 [assembly: AssemblyFileVersion("1.0.0.0")] 39 [assembly: WebResource("HLWebOKBAdminPlugin.Resources.Delete.bmp", "image/bmp")] 40 [assembly: WebResource("HLWebOKBAdminPlugin.Resources.Plus.bmp", "image/bmp")] 41 [assembly: WebResource("HLWebOKBAdminPlugin.Resources.Update.bmp", "image/bmp")] 39 42 40 [assembly: HLWebPluginViewLocations( 43 41 new string[] { "~/Plugins/HLWebOKBAdminPlugin.dll/HLWebOKBAdminPlugin.Views.{1}.{0}.aspx", "~/Plugins/HLWebOKBAdminPlugin.dll/HLWebOKBAdminPlugin.Views.{1}.{0}.ascx" }, -
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> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Detail.aspx
r6271 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/AlgorithmClass/Index.aspx
r6271 r6290 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 6 7 6 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 8 7 Index 9 8 </asp:Content> 10 9 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 10 <% Html.RenderAction("Menu", "Admin"); %> 11 </asp:Content> 11 12 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 13 -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/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/Problem/Index.aspx
r6246 r6290 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 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"> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Detail.aspx
r6246 r6290 6 6 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 7 7 Detail 8 </asp:Content> 9 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 10 <% Html.RenderAction("Menu", "Admin"); %> 8 11 </asp:Content> 9 12 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Index.aspx
r6246 r6290 8 8 Index 9 9 </asp:Content> 10 10 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 11 <% Html.RenderAction("Menu", "Admin"); %> 12 </asp:Content> 11 13 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 14 -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Shared/Site.Master
r4985 r6290 4 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 5 <head runat="server"> 6 <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> 7 <link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> 6 <title> 7 <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 8 </title> 9 <link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> 8 10 </head> 11 <body> 12 <div class="page"> 13 <div id="header"> 14 <div id="title"> 15 <h1> 16 My MVC Application</h1> 17 </div> 18 <div id="logindisplay"> 19 <% Html.RenderPartial("LogOnUserControl"); %> 20 </div> 21 <div id="menucontainer"> 22 <ul id="menu"> 23 <li> 24 <%: Html.ActionLink("Home", "Index", "Home")%></li> 25 <li> 26 <%: Html.ActionLink("About", "About", "Home")%></li> 27 </ul> 28 </div> 29 </div> 9 30 10 <body> 11 <div class="page"> 12 13 <div id="header"> 14 <div id="title"> 15 <h1>My MVC Application</h1> 16 </div> 17 18 <div id="logindisplay"> 19 <% Html.RenderPartial("LogOnUserControl"); %> 20 </div> 21 22 <div id="menucontainer"> 23 24 <ul id="menu"> 25 <li><%: Html.ActionLink("Home", "Index", "Home")%></li> 26 <li><%: Html.ActionLink("About", "About", "Home")%></li> 27 </ul> 28 29 </div> 30 </div> 31 32 <div id="main"> 33 <asp:ContentPlaceHolder ID="MainContent" runat="server" /> 34 35 <div id="footer"> 36 </div> 37 </div> 31 <div id="main"> 32 <div id="master-submenu"> 33 <asp:ContentPlaceHolder ID="SubMenuContent" runat="server" /> 38 34 </div> 35 <asp:ContentPlaceHolder ID="MainContent" runat="server" /> 36 <div id="footer"> 37 </div> 38 </div> 39 </div> 39 40 </body> 40 41 </html>
Note: See TracChangeset
for help on using the changeset viewer.