Changeset 6317 for branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views
- Timestamp:
- 05/27/11 19:09:49 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/Index.aspx
r6050 r6317 2 2 3 3 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 4 4 <% Html.RenderAction("Menu"); %> 5 5 </asp:Content> 6 7 6 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 8 7 Index 9 8 </asp:Content> 10 11 9 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 13 <h2>Index</h2> 14 10 <h2> 11 Index</h2> 15 12 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/Menu.ascx
r6310 r6317 1 1 <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 3 2 <ul> 4 <li <% if(Session["SelectedSubMenu"] == "Platform") {%> class="selected" <%}%>>3 <li <% if(Session["SelectedSubMenu"] == "Platform") {%> class="selected" <%}%>> 5 4 <%: Html.ActionLink("Platform", "Index", "Platform")%> 6 </li>7 <li <% if(Session["SelectedSubMenu"] == "AlgorithmClass") {%> class="selected" <%}%>>5 </li> 6 <li <% if(Session["SelectedSubMenu"] == "AlgorithmClass") {%> class="selected" <%}%>> 8 7 <%: Html.ActionLink("AlgorithmClass", "Index", "AlgorithmClass")%> 9 </li>10 <li <% if(Session["SelectedSubMenu"] == "Algorithm") {%> class="selected" <%}%>>8 </li> 9 <li <% if(Session["SelectedSubMenu"] == "Algorithm") {%> class="selected" <%}%>> 11 10 <%: Html.ActionLink("Algorithm", "Index", "Algorithm")%> 12 </li>13 <li <% if(Session["SelectedSubMenu"] == "ProblemClass") {%> class="selected" <%}%>>11 </li> 12 <li <% if(Session["SelectedSubMenu"] == "ProblemClass") {%> class="selected" <%}%>> 14 13 <%: Html.ActionLink("ProblemClass", "Index", "ProblemClass")%> 15 </li>16 <li <% if(Session["SelectedSubMenu"] == "Problem") {%> class="selected" <%}%>>14 </li> 15 <li <% if(Session["SelectedSubMenu"] == "Problem") {%> class="selected" <%}%>> 17 16 <%: Html.ActionLink("Problem", "Index", "Problem") %> 18 </li>17 </li> 19 18 </ul> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Algorithm/Detail.aspx
r6304 r6317 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 6 Detail 7 7 </asp:Content> 8 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 9 <% Html.RenderAction("Menu", "Admin"); %> 10 10 </asp:Content> 11 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 <% using(Html.BeginForm("SaveChanges", "Algorithm")) %>13 14 15 16 12 <% using (Html.BeginForm("SaveChanges", "Algorithm")) %> 13 <% { %> 14 <h2> 15 Detail</h2> 16 <% 17 17 18 19 20 21 18 // The Model will be filled via the Controller 19 // Maybe we can use here the Problem instead 20 // of the ProblemModel. But this must be changed 21 // in the Controller too! 22 22 23 Algorithm p = ((AlgorithmModel)Model).Algorithm; 24 %> 25 26 <div class="hl-menuButtons"> 27 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 28 </div> 29 30 <table class="hl-table"> 31 <tr> 32 <th> 33 Id: 34 </th> 35 <td> 36 <%: Html.Label(p.Id.ToString())%> 37 </td> 38 <%: Html.Hidden("AlgorithmId", p.Id.ToString(), p.Id.ToString())%> 39 </tr> 40 <tr> 41 <th> 42 Name: 43 </th> 44 <td> 45 <%: Html.TextBox("AlgorithmName", p.Name, p.Name)%> 46 </td> 47 </tr> 48 <tr> 49 <th> 50 Description: 51 </th> 52 <td> 53 <%: Html.TextBox("AlgorithmDescription", p.Description, p.Description)%> 54 </td> 55 </tr> 56 <tr> 57 <th> 58 DataTypeName: 59 </th> 60 <td> 61 <%: Html.TextBox("AlgorithmDataTypeName", p.DataTypeName, p.DataTypeName)%> 62 </td> 63 </tr> 64 <tr> 65 <th> 66 Algorith Class: 67 </th> 68 <td> 69 <select name="AlgorithmClassId"> 70 <% foreach(AlgorithmClass pc in ((AlgorithmModel)Model).AlgorithmClasses) { %> 71 <% if(p.AlgorithmClassId == pc.Id) { %> 72 <option selected="selected" value="<%=pc.Id%>"><%=pc.Name%></option> 73 <% } else { %> 74 <option value="<%=pc.Id%>"><%=pc.Name%></option> 75 <% } %> 76 <% } %> 77 </select> 78 </td> 79 </tr> 80 <tr> 81 <th> 82 Platform: 83 </th> 84 <td> 85 <select name="PlatformId"> 86 <% foreach(Platform pc in ((AlgorithmModel)Model).Platforms) { %> 87 <% if(p.PlatformId == pc.Id) { %> 88 <option selected="selected" value="<%=pc.Id%>"><%=pc.Name%></option> 89 <% } else { %> 90 <option value="<%=pc.Id%>"><%=pc.Name%></option> 91 <% } %> 92 <% } %> 93 </select> 94 </td> 95 </tr> 96 <tr> 97 <th> 98 Action: 99 </th> 100 <td> 101 <input type="submit" value="save" /> 102 </td> 103 </tr> 104 </table> 105 106 <% } %> 107 108 <% using (Html.BeginForm("UploadFile", "Algorithm", FormMethod.Post, new { enctype = "multipart/form-data" })) 109 {%><br /> 110 <% Algorithm p = ((AlgorithmModel)Model).Algorithm; %> 111 <table class="hl-table"> 112 <tr> 113 <th> 114 File: 115 </th> 116 <td> 117 <%: Html.Hidden("AlgorithmId", p.Id.ToString(), p.Id.ToString())%> 118 <input type="file" name="files" id="file2" size="25" /> 119 </td> 120 </tr> 121 <tr> 122 <th> 123 Action: 124 </th> 125 <td> 126 <input type="submit" value="Upload file" /> 127 </td> 128 </tr> 129 </table> 130 131 <% } %> 132 133 23 Algorithm p = ((AlgorithmModel)Model).Algorithm; 24 %> 25 <div class="hl-menuButtons"> 26 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 27 </div> 28 <table class="hl-table"> 29 <tr> 30 <th> 31 Id: 32 </th> 33 <td> 34 <%: Html.Label(p.Id.ToString())%> 35 </td> 36 <%: Html.Hidden("AlgorithmId", p.Id.ToString(), p.Id.ToString())%> 37 </tr> 38 <tr> 39 <th> 40 Name: 41 </th> 42 <td> 43 <%: Html.TextBox("AlgorithmName", p.Name, p.Name)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Description: 49 </th> 50 <td> 51 <%: Html.TextBox("AlgorithmDescription", p.Description, p.Description)%> 52 </td> 53 </tr> 54 <tr> 55 <th> 56 DataTypeName: 57 </th> 58 <td> 59 <%: Html.TextBox("AlgorithmDataTypeName", p.DataTypeName, p.DataTypeName)%> 60 </td> 61 </tr> 62 <tr> 63 <th> 64 Algorith Class: 65 </th> 66 <td> 67 <select name="AlgorithmClassId"> 68 <% foreach (AlgorithmClass pc in ((AlgorithmModel)Model).AlgorithmClasses) { %> 69 <% if (p.AlgorithmClassId == pc.Id) { %> 70 <option selected="selected" value="<%=pc.Id%>"> 71 <%=pc.Name%></option> 72 <% } else { %> 73 <option value="<%=pc.Id%>"> 74 <%=pc.Name%></option> 75 <% } %> 76 <% } %> 77 </select> 78 </td> 79 </tr> 80 <tr> 81 <th> 82 Platform: 83 </th> 84 <td> 85 <select name="PlatformId"> 86 <% foreach (Platform pc in ((AlgorithmModel)Model).Platforms) { %> 87 <% if (p.PlatformId == pc.Id) { %> 88 <option selected="selected" value="<%=pc.Id%>"> 89 <%=pc.Name%></option> 90 <% } else { %> 91 <option value="<%=pc.Id%>"> 92 <%=pc.Name%></option> 93 <% } %> 94 <% } %> 95 </select> 96 </td> 97 </tr> 98 <tr> 99 <th> 100 Action: 101 </th> 102 <td> 103 <input type="submit" value="save" /> 104 </td> 105 </tr> 106 </table> 107 <% } %> 108 <% using (Html.BeginForm("UploadFile", "Algorithm", FormMethod.Post, new { enctype = "multipart/form-data" })) {%><br /> 109 <% Algorithm p = ((AlgorithmModel)Model).Algorithm; %> 110 <table class="hl-table"> 111 <tr> 112 <th> 113 File: 114 </th> 115 <td> 116 <%: Html.Hidden("AlgorithmId", p.Id.ToString(), p.Id.ToString())%> 117 <input type="file" name="files" id="file2" size="25" /> 118 </td> 119 </tr> 120 <tr> 121 <th> 122 Action: 123 </th> 124 <td> 125 <input type="submit" value="Upload file" /> 126 </td> 127 </tr> 128 </table> 129 <% } %> 134 130 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Algorithm/Index.aspx
r6310 r6317 14 14 <% long? id = null; %> 15 15 <div class="hl-menuButtons"> 16 <%: Html.ActionLink("New Algorithm", "Detail", new { id }, new { @class = "hl-button-text-plus" })%>16 <%: Html.ActionLink("New Algorithm", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 17 17 </div> 18 18 <table class="hl-dataTable"> 19 19 <thead> 20 20 <tr> 21 <th>Name</th> 22 <th>Description</th> 23 <th>Type</th> 24 <th>Actions</th> 21 <th> 22 Name 23 </th> 24 <th> 25 Description 26 </th> 27 <th> 28 Type 29 </th> 30 <th> 31 Actions 32 </th> 25 33 </tr> 26 34 </thead> … … 38 46 <%: p.DataTypeName %> 39 47 </td> 40 41 42 43 48 <td class="hl-iconcell"> 49 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 50 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 51 </td> 44 52 </tr> 45 53 <% } %> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Detail.aspx
r6304 r6317 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 6 Detail 7 7 </asp:Content> 8 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 9 <% Html.RenderAction("Menu", "Admin"); %> 10 10 </asp:Content> 11 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 13 14 <h2>Detail</h2>15 <div class="hl-menuButtons">16 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%>17 </div>18 <% AlgorithmClass ac = ((AlgorithmClassModel)Model).AlgorithmClass; %>19 <table class="hl-table">20 <tr>21 <th>22 Id:23 </th>24 <td>25 <%: Html.Label(ac.Id.ToString())%>26 </td>27 <%: Html.Hidden("AlgorithmClassId", ac.Id.ToString(), ac.Id.ToString())%>28 </tr>29 <tr>30 <th>31 Name:32 </th>33 <td>34 <%: Html.TextBox("AlgorithmClassName", ac.Name, ac.Name)%>35 </td>36 </tr>37 <tr>38 <th>39 Description:40 </th>41 <td>42 <%: Html.TextBox("AlgorithmClassDescription", ac.Description, ac.Description)%>43 </td>44 </tr>45 <tr>46 <th>47 Action:48 </th>49 <td>50 <input type="submit" value="save" />51 </td>52 </tr>53 </t able>54 55 12 <% using (Html.BeginForm("SaveChanges", "AlgorithmClass")) %> 13 <% { %> 14 <h2> 15 Detail</h2> 16 <div class="hl-menuButtons"> 17 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 18 </div> 19 <% AlgorithmClass ac = ((AlgorithmClassModel)Model).AlgorithmClass; %> 20 <table class="hl-table"> 21 <tr> 22 <th> 23 Id: 24 </th> 25 <td> 26 <%: Html.Label(ac.Id.ToString())%> 27 </td> 28 <%: Html.Hidden("AlgorithmClassId", ac.Id.ToString(), ac.Id.ToString())%> 29 </tr> 30 <tr> 31 <th> 32 Name: 33 </th> 34 <td> 35 <%: Html.TextBox("AlgorithmClassName", ac.Name, ac.Name)%> 36 </td> 37 </tr> 38 <tr> 39 <th> 40 Description: 41 </th> 42 <td> 43 <%: Html.TextBox("AlgorithmClassDescription", ac.Description, ac.Description)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Action: 49 </th> 50 <td> 51 <input type="submit" value="save" /> 52 </td> 53 </tr> 54 </table> 55 <% } %> 56 56 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx
r6310 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 7 6 Index 8 7 </asp:Content> 9 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 10 9 <% Html.RenderAction("Menu", "Admin"); %> 11 10 </asp:Content> 12 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 13 14 <h2>AlgorithmClass</h2> 15 16 <% long? id = null; %> 17 <div class="hl-menuButtons"> 12 <h2> 13 AlgorithmClass</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 18 16 <%: Html.ActionLink("New AlgorithmClass", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 19 </div> 20 21 22 <table class="hl-dataTable"> 23 <thead> 24 <tr> 25 <th>Name</th> 26 <th>Description</th> 27 <th>Actions</th> 28 </tr> 29 </thead> 30 <tbody> 31 <!--// We get this from the Controller (Index)--> 32 <% foreach (AlgorithmClass p in ((AlgorithmClassModel)Model).AlgorithmClasses) { %> 33 <tr> 34 <td> 35 <%: p.Name %> 36 </td> 37 <td> 38 <%: p.Description %> 39 </td> 40 <td class="hl-iconcell"> 41 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 42 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 43 </td> 44 </tr> 45 <% } %> 46 </tbody> 47 </table> 48 17 </div> 18 <table class="hl-dataTable"> 19 <thead> 20 <tr> 21 <th> 22 Name 23 </th> 24 <th> 25 Description 26 </th> 27 <th> 28 Actions 29 </th> 30 </tr> 31 </thead> 32 <tbody> 33 <!--// We get this from the Controller (Index)--> 34 <% foreach (AlgorithmClass p in ((AlgorithmClassModel)Model).AlgorithmClasses) { %> 35 <tr> 36 <td> 37 <%: p.Name %> 38 </td> 39 <td> 40 <%: p.Description %> 41 </td> 42 <td class="hl-iconcell"> 43 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 44 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 45 </td> 46 </tr> 47 <% } %> 48 </tbody> 49 </table> 49 50 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Home/About.aspx
r6050 r6317 2 2 3 3 <asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server"> 4 4 About 5 5 </asp:Content> 6 7 6 <asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server"> 8 <h2>About</h2> 9 <p> 10 Put content here. 11 </p> 7 <h2> 8 About</h2> 9 <p> 10 Put content here. 11 </p> 12 12 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Home/Index.aspx
r6050 r6317 2 2 3 3 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 4 4 Home Page 5 5 </asp:Content> 6 7 6 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 8 <h2><%: ViewData["Message"] %></h2> 9 <p> 10 To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>. 11 </p> 7 <h2> 8 <%: ViewData["Message"] %></h2> 9 <p> 10 To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website"> 11 http://asp.net/mvc</a>. 12 </p> 12 13 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Platform/Detail.aspx
r6310 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 7 6 Detail 8 7 </asp:Content> 9 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 10 9 <% Html.RenderAction("Menu", "Admin"); %> 11 10 </asp:Content> 12 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 13 <% using(Html.BeginForm("SaveChanges", "Platform")) %> 14 <% { %> 15 <h2>Detail</h2> 16 <div class="hl-menuButtons"> 17 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 18 </div> 19 <% Platform pc = ((PlatformModel)Model).Platform; %> 20 <table class="hl-table"> 21 <tr> 22 <th> 23 Id: 24 </th> 25 <td> 26 <%: Html.Label(pc.Id.ToString())%> 27 </td> 28 <%: Html.Hidden("PlatformId", pc.Id.ToString(), pc.Id.ToString())%> 29 </tr> 30 <tr> 31 <th> 32 Name: 33 </th> 34 <td> 35 <%: Html.TextBox("PlatformName", pc.Name, pc.Name)%> 36 </td> 37 </tr> 38 <tr> 39 <th> 40 Description: 41 </th> 42 <td> 43 <%: Html.TextBox("PlatformDescription", pc.Description, pc.Description)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Action: 49 </th> 50 <td> 51 <input type="submit" value="save" /> 52 </td> 53 </tr> 54 </table> 55 <% } %> 12 <% using (Html.BeginForm("SaveChanges", "Platform")) %> 13 <% { %> 14 <h2> 15 Detail</h2> 16 <div class="hl-menuButtons"> 17 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 18 </div> 19 <% Platform pc = ((PlatformModel)Model).Platform; %> 20 <table class="hl-table"> 21 <tr> 22 <th> 23 Id: 24 </th> 25 <td> 26 <%: Html.Label(pc.Id.ToString())%> 27 </td> 28 <%: Html.Hidden("PlatformId", pc.Id.ToString(), pc.Id.ToString())%> 29 </tr> 30 <tr> 31 <th> 32 Name: 33 </th> 34 <td> 35 <%: Html.TextBox("PlatformName", pc.Name, pc.Name)%> 36 </td> 37 </tr> 38 <tr> 39 <th> 40 Description: 41 </th> 42 <td> 43 <%: Html.TextBox("PlatformDescription", pc.Description, pc.Description)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Action: 49 </th> 50 <td> 51 <input type="submit" value="save" /> 52 </td> 53 </tr> 54 </table> 55 <% } %> 56 56 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Platform/Index.aspx
r6310 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 7 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 8 6 Index 9 7 </asp:Content> 10 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 11 9 <% Html.RenderAction("Menu", "Admin"); %> 12 10 </asp:Content> 13 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 14 15 <h2>Platform</h2> 16 17 <% long? id = null; %> 18 <div class="hl-menuButtons"> 12 <h2> 13 Platform</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 19 16 <%: Html.ActionLink("New Platform", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 20 </div> 21 22 <table class="hl-dataTable"> 23 <thead> 24 <tr> 25 <th>Name</th> 26 <th>Description</th> 27 <th>Actions</th> 28 </tr> 29 </thead> 30 <tbody> 31 <!--// We get this from the Controller (Index)--> 32 <% foreach (Platform p in ((PlatformModel)Model).Platforms) { %> 33 <tr> 34 <td> 35 <%: p.Name %> 36 </td> 37 <td> 38 <%: p.Description %> 39 </td> 40 <td class="hl-iconcell"> 41 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 42 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 43 </td> 44 45 </tr> 46 <% } %> 47 </tbody> 48 </table> 49 17 </div> 18 <table class="hl-dataTable"> 19 <thead> 20 <tr> 21 <th> 22 Name 23 </th> 24 <th> 25 Description 26 </th> 27 <th> 28 Actions 29 </th> 30 </tr> 31 </thead> 32 <tbody> 33 <!--// We get this from the Controller (Index)--> 34 <% foreach (Platform p in ((PlatformModel)Model).Platforms) { %> 35 <tr> 36 <td> 37 <%: p.Name %> 38 </td> 39 <td> 40 <%: p.Description %> 41 </td> 42 <td class="hl-iconcell"> 43 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 44 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 45 </td> 46 </tr> 47 <% } %> 48 </tbody> 49 </table> 50 50 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Detail.aspx
r6304 r6317 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 6 Detail 7 7 </asp:Content> 8 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 9 <% Html.RenderAction("Menu", "Admin"); %> 10 10 </asp:Content> 11 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 <% using(Html.BeginForm("SaveChanges", "Problem")) %>13 14 15 16 12 <% using (Html.BeginForm("SaveChanges", "Problem")) %> 13 <% { %> 14 <h2> 15 Detail</h2> 16 <% 17 17 18 19 20 21 18 // The Model will be filled via the Controller 19 // Maybe we can use here the Problem instead 20 // of the ProblemModel. But this must be changed 21 // in the Controller too! 22 22 23 Problem p = ((ProblemModel)Model).Problem; 24 %> 25 <div class="hl-menuButtons"> 26 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 27 </div> 28 <table class="hl-table"> 29 <tr> 30 <th> 31 Id: 32 </th> 33 <td> 34 <%: Html.Label(p.Id.ToString())%> 35 </td> 36 <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString())%> 37 </tr> 38 <tr> 39 <th> 40 Name: 41 </th> 42 <td> 43 <%: Html.TextBox("ProblemName", p.Name, p.Name)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Description: 49 </th> 50 <td> 51 <%: Html.TextBox("ProblemDescription", p.Description, p.Description)%> 52 </td> 53 </tr> 54 <tr> 55 <th> 56 DataTypeName: 57 </th> 58 <td> 59 <%: Html.TextBox("ProblemDataTypeName", p.DataTypeName, p.DataTypeName)%> 60 </td> 61 </tr> 62 <tr> 63 <th> 64 Problem Class: 65 </th> 66 <td> 67 <select name="ProblemClassId"> 68 <% foreach(ProblemClass pc in ((ProblemModel)Model).ProblemClasses) { %> 69 <% if(p.ProblemClassId == pc.Id) { %> 70 <option selected="selected" value="<%=pc.Id%>"><%=pc.Name%></option> 71 <% } else { %> 72 <option value="<%=pc.Id%>"><%=pc.Name%></option> 73 <% } %> 74 <% } %> 75 </select> 76 </td> 77 </tr> 78 <tr> 79 <th> 80 Platform: 81 </th> 82 <td> 83 <select name="PlatformId"> 84 <% foreach(Platform pc in ((ProblemModel)Model).Platforms) { %> 85 <% if(p.PlatformId == pc.Id) { %> 86 <option selected="selected" value="<%=pc.Id%>"><%=pc.Name%></option> 87 <% } else { %> 88 <option value="<%=pc.Id%>"><%=pc.Name%></option> 89 <% } %> 90 <% } %> 91 </select> 92 </td> 93 </tr> 94 <tr> 95 <th> 96 Action: 97 </th> 98 <td> 99 <input type="submit" value="save" /> 100 </td> 101 </tr> 102 </table> 103 104 <% } %> 105 106 <% using (Html.BeginForm("UploadFile", "Problem", FormMethod.Post, new { enctype = "multipart/form-data" })) 107 {%><br /> 108 <% Problem p = ((ProblemModel)Model).Problem; %> 109 <table class="hl-table"> 110 <tr> 111 <th> 112 File: 113 </th> 114 <td> 115 <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString()) %> 116 <input type="file" name="files" id="file2" size="25" /> 117 </td> 118 </tr> 119 <tr> 120 <th> 121 Action: 122 </th> 123 <td> 124 <input type="submit" value="Upload file" /> 125 </td> 126 </tr> 127 </table> 128 <% } %> 129 130 23 Problem p = ((ProblemModel)Model).Problem; 24 %> 25 <div class="hl-menuButtons"> 26 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 27 </div> 28 <table class="hl-table"> 29 <tr> 30 <th> 31 Id: 32 </th> 33 <td> 34 <%: Html.Label(p.Id.ToString())%> 35 </td> 36 <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString())%> 37 </tr> 38 <tr> 39 <th> 40 Name: 41 </th> 42 <td> 43 <%: Html.TextBox("ProblemName", p.Name, p.Name)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Description: 49 </th> 50 <td> 51 <%: Html.TextBox("ProblemDescription", p.Description, p.Description)%> 52 </td> 53 </tr> 54 <tr> 55 <th> 56 DataTypeName: 57 </th> 58 <td> 59 <%: Html.TextBox("ProblemDataTypeName", p.DataTypeName, p.DataTypeName)%> 60 </td> 61 </tr> 62 <tr> 63 <th> 64 Problem Class: 65 </th> 66 <td> 67 <select name="ProblemClassId"> 68 <% foreach (ProblemClass pc in ((ProblemModel)Model).ProblemClasses) { %> 69 <% if (p.ProblemClassId == pc.Id) { %> 70 <option selected="selected" value="<%=pc.Id%>"> 71 <%=pc.Name%></option> 72 <% } else { %> 73 <option value="<%=pc.Id%>"> 74 <%=pc.Name%></option> 75 <% } %> 76 <% } %> 77 </select> 78 </td> 79 </tr> 80 <tr> 81 <th> 82 Platform: 83 </th> 84 <td> 85 <select name="PlatformId"> 86 <% foreach (Platform pc in ((ProblemModel)Model).Platforms) { %> 87 <% if (p.PlatformId == pc.Id) { %> 88 <option selected="selected" value="<%=pc.Id%>"> 89 <%=pc.Name%></option> 90 <% } else { %> 91 <option value="<%=pc.Id%>"> 92 <%=pc.Name%></option> 93 <% } %> 94 <% } %> 95 </select> 96 </td> 97 </tr> 98 <tr> 99 <th> 100 Action: 101 </th> 102 <td> 103 <input type="submit" value="save" /> 104 </td> 105 </tr> 106 </table> 107 <% } %> 108 <% using (Html.BeginForm("UploadFile", "Problem", FormMethod.Post, new { enctype = "multipart/form-data" })) {%><br /> 109 <% Problem p = ((ProblemModel)Model).Problem; %> 110 <table class="hl-table"> 111 <tr> 112 <th> 113 File: 114 </th> 115 <td> 116 <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString()) %> 117 <input type="file" name="files" id="file2" size="25" /> 118 </td> 119 </tr> 120 <tr> 121 <th> 122 Action: 123 </th> 124 <td> 125 <input type="submit" value="Upload file" /> 126 </td> 127 </tr> 128 </table> 129 <% } %> 131 130 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Index.aspx
r6310 r6317 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 6 Index 7 7 </asp:Content> 8 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 9 <% Html.RenderAction("Menu", "Admin"); %> 10 10 </asp:Content> 11 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 <h2>Problems</h2> 13 14 15 16 <% long? id = null; %> 17 <div class="hl-menuButtons"> 12 <h2> 13 Problems</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 18 16 <%: Html.ActionLink("New Problem", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 19 </div> 20 21 <table class="hl-dataTable"> 22 <thead> 23 <tr> 24 <th>Name</th> 25 <th>Description</th> 26 <th>Type</th> 27 <th>Actions</th> 28 </tr> 29 </thead> 30 <tbody> 31 <!--// We get this from the Controller (Index)--> 32 <% foreach(Problem p in ((ProblemModel)Model).Problems) { %> 33 <tr> 34 <td> 35 <%: p.Name%> 36 </td> 37 <td> 38 <%: p.Description %> 39 </td> 40 <td> 41 <%: p.DataTypeName %> 42 </td> 43 <td class="hl-iconcell"> 44 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 45 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 46 </td> 47 </tr> 48 <% } %> 49 </tbody> 50 </table> 51 17 </div> 18 <table class="hl-dataTable"> 19 <thead> 20 <tr> 21 <th> 22 Name 23 </th> 24 <th> 25 Description 26 </th> 27 <th> 28 Type 29 </th> 30 <th> 31 Actions 32 </th> 33 </tr> 34 </thead> 35 <tbody> 36 <!--// We get this from the Controller (Index)--> 37 <% foreach (Problem p in ((ProblemModel)Model).Problems) { %> 38 <tr> 39 <td> 40 <%: p.Name%> 41 </td> 42 <td> 43 <%: p.Description %> 44 </td> 45 <td> 46 <%: p.DataTypeName %> 47 </td> 48 <td class="hl-iconcell"> 49 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 50 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 51 </td> 52 </tr> 53 <% } %> 54 </tbody> 55 </table> 52 56 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Detail.aspx
r6304 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 7 6 Detail 8 7 </asp:Content> 9 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 10 9 <% Html.RenderAction("Menu", "Admin"); %> 11 10 </asp:Content> 12 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 13 <% using(Html.BeginForm("SaveChanges", "ProblemClass")) %> 14 <% { %> 15 <h2>Detail</h2> 16 <div class="hl-menuButtons"> 17 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 18 </div> 19 <% ProblemClass pc = ((ProblemClassModel)Model).ProblemClass; %> 20 <table class="hl-table"> 21 <tr> 22 <th> 23 Id: 24 </th> 25 <td> 26 <%: Html.Label(pc.Id.ToString())%> 27 </td> 28 <%: Html.Hidden("ProblemClassId", pc.Id.ToString(), pc.Id.ToString())%> 29 </tr> 30 <tr> 31 <th> 32 Name: 33 </th> 34 <td> 35 <%: Html.TextBox("ProblemClassName", pc.Name, pc.Name)%> 36 </td> 37 </tr> 38 <tr> 39 <th> 40 Description: 41 </th> 42 <td> 43 <%: Html.TextBox("ProblemClassDescription", pc.Description, pc.Description)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Action: 49 </th> 50 <td> 51 <input type="submit" value="save" /> 52 </td> 53 </tr> 54 </table> 55 <% } %> 12 <% using (Html.BeginForm("SaveChanges", "ProblemClass")) %> 13 <% { %> 14 <h2> 15 Detail</h2> 16 <div class="hl-menuButtons"> 17 <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%> 18 </div> 19 <% ProblemClass pc = ((ProblemClassModel)Model).ProblemClass; %> 20 <table class="hl-table"> 21 <tr> 22 <th> 23 Id: 24 </th> 25 <td> 26 <%: Html.Label(pc.Id.ToString())%> 27 </td> 28 <%: Html.Hidden("ProblemClassId", pc.Id.ToString(), pc.Id.ToString())%> 29 </tr> 30 <tr> 31 <th> 32 Name: 33 </th> 34 <td> 35 <%: Html.TextBox("ProblemClassName", pc.Name, pc.Name)%> 36 </td> 37 </tr> 38 <tr> 39 <th> 40 Description: 41 </th> 42 <td> 43 <%: Html.TextBox("ProblemClassDescription", pc.Description, pc.Description)%> 44 </td> 45 </tr> 46 <tr> 47 <th> 48 Action: 49 </th> 50 <td> 51 <input type="submit" value="save" /> 52 </td> 53 </tr> 54 </table> 55 <% } %> 56 56 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Index.aspx
r6310 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 7 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 8 6 Index 9 7 </asp:Content> 10 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 11 9 <% Html.RenderAction("Menu", "Admin"); %> 12 10 </asp:Content> 13 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 14 15 <h2>ProblemClass</h2> 16 17 <% long? id = null; %> 18 <div class="hl-menuButtons"> 12 <h2> 13 ProblemClass</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 19 16 <%: Html.ActionLink("New ProblemClass", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 20 </div> 21 22 <table class="hl-dataTable"> 23 <thead> 24 <tr> 25 <th>Name</th> 26 <th>Description</th> 27 <th>Actions</th> 28 </tr> 29 </thead> 30 <tbody> 31 <!--// We get this from the Controller (Index)--> 32 <% foreach (ProblemClass p in ((ProblemClassModel)Model).ProblemClasses) { %> 33 <tr> 34 <td> 35 <%: p.Name%> 36 </td> 37 <td> 38 <%: p.Description %> 39 </td> 40 <td class="hl-iconcell"> 41 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 42 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 43 </td> 44 45 </tr> 46 <% } %> 47 </tbody> 48 </table> 49 17 </div> 18 <table class="hl-dataTable"> 19 <thead> 20 <tr> 21 <th> 22 Name 23 </th> 24 <th> 25 Description 26 </th> 27 <th> 28 Actions 29 </th> 30 </tr> 31 </thead> 32 <tbody> 33 <!--// We get this from the Controller (Index)--> 34 <% foreach (ProblemClass p in ((ProblemClassModel)Model).ProblemClasses) { %> 35 <tr> 36 <td> 37 <%: p.Name%> 38 </td> 39 <td> 40 <%: p.Description %> 41 </td> 42 <td class="hl-iconcell"> 43 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 44 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 45 </td> 46 </tr> 47 <% } %> 48 </tbody> 49 </table> 50 50 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ServiceTest/Index.aspx
r4985 r6317 2 2 3 3 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 4 4 Index 5 5 </asp:Content> 6 7 6 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 8 9 <form id="form1" runat="server"> 10 11 <h2>Index</h2> 12 <p> 13 <asp:GridView ID="GridView1" runat="server"> 14 </asp:GridView> 15 </p> 16 17 </form> 18 7 <form id="form1" runat="server"> 8 <h2> 9 Index</h2> 10 <p> 11 <asp:GridView ID="GridView1" runat="server"> 12 </asp:GridView> 13 </p> 14 </form> 19 15 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Shared/Error.aspx
r4985 r6317 2 2 3 3 <asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server"> 4 4 Error 5 5 </asp:Content> 6 7 6 <asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server"> 8 9 10 7 <h2> 8 Sorry, an error occurred while processing your request. 9 </h2> 11 10 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Shared/LogOnUserControl.ascx
r4985 r6317 1 1 <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 2 <% 3 3 if (Request.IsAuthenticated) { 4 4 %> 5 Welcome <b><%: Page.User.Identity.Name %></b>! 6 [ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ] 5 Welcome <b> 6 <%: Page.User.Identity.Name %></b>! [ 7 <%: Html.ActionLink("Log Off", "LogOff", "Account") %> 8 ] 7 9 <% 8 } 9 else { 10 %> 11 [ <%: Html.ActionLink("Log On", "LogOn", "Account") %> ] 10 } else { 11 %> 12 [ 13 <%: Html.ActionLink("Log On", "LogOn", "Account") %> 14 ] 12 15 <% 13 16 } 14 17 %> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Shared/Site.Master
r6290 r6317 28 28 </div> 29 29 </div> 30 31 30 <div id="main"> 32 33 <asp:ContentPlaceHolder ID="SubMenuContent" runat="server" />34 </div>31 <div id="master-submenu"> 32 <asp:ContentPlaceHolder ID="SubMenuContent" runat="server" /> 33 </div> 35 34 <asp:ContentPlaceHolder ID="MainContent" runat="server" /> 36 35 <div id="footer">
Note: See TracChangeset
for help on using the changeset viewer.