Guest User

Untitled

a guest
Oct 22nd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.48 KB | None | 0 0
  1. @model IEnumerable<StaffBaze.Models.Staff>
  2.  
  3. @{
  4.     ViewBag.Title = "SearchIndex";
  5. }
  6.  
  7. <h2>SearchIndex</h2>
  8.  
  9. <p>
  10.     @Html.ActionLink("Create New", "Create")
  11.     @using (Html.BeginForm()){  
  12.          <p>Post: @Html.DropDownList("staffPost", "All")  
  13.         &nbsp;  Title: @Html.TextBox("SearchString")  
  14.          <input type="submit" value="Filter" /></p>
  15.         }
  16.     @using (Html.BeginForm()){  
  17.          <p>Genre: @Html.DropDownList("staffProjectName", "All")  
  18.         &nbsp;  Title: @Html.TextBox("SearchString")  
  19.          <input type="submit" value="Filter" /></p>
  20.         }
  21.  
  22.    
  23. </p>
  24. <table>
  25.     <tr>
  26.         <th>
  27.             Name
  28.         </th>
  29.         <th>
  30.             BirthDay
  31.         </th>
  32.         <th>
  33.             Post
  34.         </th>
  35.         <th>
  36.             ProjectName
  37.         </th>
  38.         <th></th>
  39.     </tr>
  40.  
  41. @foreach (var item in Model) {
  42.     <tr>
  43.         <td>
  44.             @Html.DisplayFor(modelItem => item.Name)
  45.         </td>
  46.         <td>
  47.             @Html.DisplayFor(modelItem => item.BirthDay)
  48.         </td>
  49.         <td>
  50.             @Html.DisplayFor(modelItem => item.Post)
  51.         </td>
  52.         <td>
  53.             @Html.DisplayFor(modelItem => item.ProjectName)
  54.         </td>
  55.         <td>
  56.             @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
  57.             @Html.ActionLink("Details", "Details", new { id=item.ID }) |
  58.             @Html.ActionLink("Delete", "Delete", new { id=item.ID })
  59.         </td>
  60.     </tr>
  61. }
  62.  
  63. </table>
Add Comment
Please, Sign In to add comment