- Timestamp:
- 05/07/11 10:41:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Filter/Index.aspx
r6097 r6141 1 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 2 3 <%@ Import Namespace="HLWebOKBQueryPlugin.Models" %> 4 <%@ Import Namespace="HLWebOKBQueryPlugin.OKBQueryService" %> 3 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 4 6 Index 5 7 </asp:Content> 6 8 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 7 <h2>Filter</h2> 9 <h2> 10 Filter</h2> 8 11 <!-- 9 12 This is the "user control" for the filters. This will call the action "AddFilter" 10 13 in the controller, after the Action "Index" is called (for rendering the page). 14 15 16 ch130 TSP (imported from TSPLIB) 17 18 11 19 --> 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 13 51 </asp:Content>
Note: See TracChangeset
for help on using the changeset viewer.