Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/11 10:41:02 (13 years ago)
Author:
mjesner
Message:

#1499 new (non-recursive) view/architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Filter/Index.aspx

    r6097 r6141  
    11<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    22
     3<%@ Import Namespace="HLWebOKBQueryPlugin.Models" %>
     4<%@ Import Namespace="HLWebOKBQueryPlugin.OKBQueryService" %>
    35<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    46    Index
    57</asp:Content>
    68<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    7     <h2>Filter</h2>
     9    <h2>
     10        Filter</h2>
    811    <!--
    912     This is the "user control" for the filters. This will call the action "AddFilter"
    1013     in the controller, after the Action "Index" is called (for rendering the page).
     14
     15
     16     ch130 TSP (imported from TSPLIB)
     17
     18
    1119     -->
    12     <% Html.RenderPartial("Filters"); %>
     20    <%
     21         
     22        FilterModel model = (FilterModel)Model;
     23
     24        if (model != null && model.Content != null)
     25        {
     26            foreach (Filter f in model.Content.Filters)
     27            {
     28    %>
     29 
     30    <% FilterModel fm = new FilterModel((CombinedFilter)f);
     31             
     32    %>
     33    <% Html.RenderPartial("Filters", fm); %>
     34    <%}
     35         }%>
     36
     37         
     38     
     39  <% using (Html.BeginForm("AddFilterOr", "Filter")) %>
     40  <% {     %>
     41 Or filter <input type="submit" value="+" />
     42  <% }     %>
     43
     44
     45 
     46  <% using (Html.BeginForm("GetRuns", "Filter")) %>
     47  <% {     %>
     48 <input type="submit" value="get runs" />
     49  <% }     %>
     50
    1351</asp:Content>
Note: See TracChangeset for help on using the changeset viewer.