Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/31/10 18:36:51 (14 years ago)
Author:
wtollsch
Message:

#1198 MVC2 plugin template added for HL OKBWebClient

Location:
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/AlgorithmClass
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/AlgorithmClass/Index.aspx

    r4952 r5186  
    1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    2 
    3 <script runat="server">
    4 
    5     void lbAlgorithmClassOnClick(object sender, EventArgs e) {
    6       txtName.Text = "aaa";
    7    }
    8 
    9 </script>
    10 
    11 
     1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<HLWebPluginHost.OKBService.AlgorithmClass>>" %>
     2<%@ Import Namespace="HLWebOKBAdminPlugin.Helpers" %>
    123<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    134  Index
    145</asp:Content>
    15    
    166
    177<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    188
    19     <form id="form1" runat="server">
     9    <h2>Index</h2>
    2010
     11    <table>
     12        <tr>
     13            <th></th>
     14            <th>
     15                Description
     16            </th>
     17            <th>
     18                Name
     19            </th>
     20            <th>
     21                Id
     22            </th>
     23        </tr>
    2124
    22     <h2>AlgorithmClasses</h2>
     25    <% foreach (var item in Model) { %>
    2326   
    24     <%--<ul>
    25         <%foreach (HLWebPluginHost.OKBService.AlgorithmClass ac in Model.AlgorithmClassList) { %>
    26             <li>
    27                 <%: ac.Name %>
    28             </li>
    29         <%} %>
    30     </ul>--%>
     27        <tr>
     28            <td>
     29                <%: Html.ActionLink("Edit", "Edit", new { id=item.Id }) %> |
     30                <%: Html.ActionLink("Details", "Details", new { id=item.Id })%> |
     31                <%: Html.ActionLink("Delete", "Delete", new { id = item.Id })%>
     32            </td>
     33            <td>
     34                <%: Html.Truncate(item.Description,25) %>
     35            </td>
     36            <td>
     37                <%: Html.Truncate(item.Name, 25)%>
     38            </td>
     39            <td>
     40                <%: item.Id %>
     41            </td>
     42        </tr>
    3143   
    32     <asp:Panel ID="Panel1" runat="server">
    33         <asp:ImageButton ID="btnAddAlgorithmClass" runat="server"
    34             ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" BorderColor="Black"
    35             CommandArgument="Id" CommandName="AddAlgorithmClass" />
    36         <asp:ImageButton ID="btnDeleteAlgorithmClass" runat="server"
    37             ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class"
    38             CommandArgument="Id" CommandName="lgorithmClass" />
    39         <asp:ImageButton ID="btnUpdateAlgorithmClass" runat="server"
    40             CommandArgument="Id" CommandName="UpdAlgorithmClass"
    41             ImageUrl="~/Resources/Update.bmp" />
    42     </asp:Panel>
     44    <% } %>
     45
     46    </table>
     47
    4348    <p>
    44         <asp:ListBox ID="lbAlgorithmClass" runat="server" DataSourceID="ODSAlgorithmClasses"
    45             DataTextField="Name" DataValueField="Id" Height="350px" style="margin-top: 0px"
    46             Width="246px">
    47         </asp:ListBox>
    48         <asp:ObjectDataSource ID="ODSAlgorithmClasses" runat="server"
    49             SelectMethod="AlgorithmClassGetAll"
    50             TypeName="HLWebPluginHost.Models.AlgorithmClassModel">
    51         </asp:ObjectDataSource>
    52         <asp:Button ID="Button1" Text="Select" OnClick="lbAlgorithmClassOnClick" runat="server"/>
    53 
     49        <%: Html.ActionLink("Create New", "Create") %>
    5450    </p>
    55    
    56 
    57     <asp:Panel ID="Panel2" runat="server" Height="139px">
    58         <asp:Label ID="lbName" runat="server" Text="Name:"></asp:Label>
    59         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    60         <asp:TextBox ID="txtName" runat="server" Width="197px"></asp:TextBox>
    61         <br />
    62         Description:
    63         <asp:TextBox ID="txtDescription" runat="server" Width="197px"></asp:TextBox>
    64     </asp:Panel>
    65    
    66 
    67     </form>
    68 
    69    
    7051
    7152</asp:Content>
     53
Note: See TracChangeset for help on using the changeset viewer.