Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Filter/Index.aspx @ 6141

Last change on this file since 6141 was 6141, checked in by mjesner, 13 years ago

#1499 new (non-recursive) view/architecture

File size: 1.3 KB
Line 
1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
2
3<%@ Import Namespace="HLWebOKBQueryPlugin.Models" %>
4<%@ Import Namespace="HLWebOKBQueryPlugin.OKBQueryService" %>
5<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
6    Index
7</asp:Content>
8<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
9    <h2>
10        Filter</h2>
11    <!--
12     This is the "user control" for the filters. This will call the action "AddFilter"
13     in the controller, after the Action "Index" is called (for rendering the page).
14
15
16     ch130 TSP (imported from TSPLIB)
17
18
19     -->
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
51</asp:Content>
Note: See TracBrowser for help on using the repository browser.