Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/11 22:07:58 (14 years ago)
Author:
wtollsch
Message:

#1433 AlgorithmClass, Algorithm, ProblemClass, Problem create/update appropriate controller/models/views, File upload (Algorithm / Problem)

Location:
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views
Files:
6 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/Algorithm.aspx

    r6117 r6246  
    11<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    2 
    3 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
    4    <% Html.RenderAction("Menu"); %>
    5 </asp:Content>
    62
    73<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/AlgorithmClass.aspx

    r6162 r6246  
    99    <h2>
    1010        AlgorithmClass</h2>
    11     <asp:ListBox ID="lbxAlgorithmClasses" runat="server" DataTextField="Name" DataValueField="Id"
     11    <%--<asp:ListBox ID="lbxAlgorithmClasses" runat="server" DataTextField="Name" DataValueField="Id"
    1212        Height="350px" Style="margin-top: 0px" Width="240px" DataSourceID="odsAlgorithmClasses">
    1313    </asp:ListBox>
     
    1919    <p>
    2020        <%: Html.ActionLink("Create New", "Create") %>
    21     </p>
     21    </p>--%>
    2222
    2323    </form>
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/Menu.ascx

    r6213 r6246  
    33<ul>
    44<li <% if(Session["SelectedSubMenu"] == "AlgorithmClass") {%> class="selected" <%}%>>
    5     <%: Html.ActionLink("AlgorithmClass", "AlgorithmClass", "Admin")%>
     5    <%: Html.ActionLink("AlgorithmClass", "Index", "AlgorithmClassPlgin")%>
    66</li>
    77<li <% if(Session["SelectedSubMenu"] == "Algorithm") {%> class="selected" <%}%>>
     
    99</li>
    1010<li <% if(Session["SelectedSubMenu"] == "ProblemClass") {%> class="selected" <%}%>>
    11     <%: Html.ActionLink("ProblemClass", "ProblemClass", "Admin")%>
     11    <%: Html.ActionLink("ProblemClass", "Index", "ProblemClass")%>
    1212</li>
    1313<li <% if(Session["SelectedSubMenu"] == "Problem") {%> class="selected" <%}%>>
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/Problem.aspx

    r6050 r6246  
    11<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    22
    3 
    4 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
    5    <% Html.RenderAction("Menu"); %>
    6 </asp:Content>
    73
    84<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/ProblemClass.aspx

    r6050 r6246  
    11<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    2 
    3 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
    4    <% Html.RenderAction("Menu"); %>
    5 </asp:Content>
    62
    73<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Detail.aspx

    r6162 r6246  
    9595        </tr>
    9696    </table>   
    97     <%: Html.ActionLink("back to Index","Index") %>
     97   
    9898    <% } %>
     99
     100    <% using (Html.BeginForm("UploadFile", "Problem", FormMethod.Post, new { enctype = "multipart/form-data" }))
     101    {%><br />
     102        <% Problem p = ((ProblemModel)Model).Problem; %>       
     103        <table border="1">
     104            <tr>
     105                <td>
     106                    File:
     107                </td>
     108                <td>
     109                    <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString()) %>
     110                    <input type="file" name="files" id="file2" size="25" />
     111                </td>
     112            </tr>
     113            <tr>
     114                <td>
     115                    Action:
     116                </td>
     117                <td>
     118                    <input type="submit" value="Upload file" />
     119                </td>
     120            </tr>
     121        </table>                             
     122        <%: Html.ActionLink("back to Index","Index") %>
     123        <% } %>
     124       
     125
    99126</asp:Content>
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Index.aspx

    r6162 r6246  
    2222            <tr>
    2323                <td>
    24                     <%: Html.ActionLink(p.Name, "Detail",new {p.Id}) %>
     24                    <%: Html.Label(p.Name)%>
    2525                </td>
    2626                <td>
     
    2929                <td>
    3030                    <%: Html.Label(p.DataTypeName)%>
     31                </td>
     32                <td>
     33                    <%: Html.ActionLink("detail", "Detail", new { p.Id })%>
    3134                </td>
    3235                <td>
Note: See TracChangeset for help on using the changeset viewer.