You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 line
3.6KB

  1. <h2>Create Kit</h2>
  2. <div class="row">
  3. <div class="col-md-8 col-sm-8 col-xs-12">
  4. <%= H(Model.RecordCount) %> <%= Choice(Model.RecordCount >=2," Jurisdictions"," Jurisdiction") %> found. Showing <%= H(Model.PageSize) %> records per page.
  5. </div>
  6. <div class="col-md-4 col-sm-4 col-xs-12">
  7. <%= HTML.FormTag("Home", "Search", empty, empty) %>
  8. <div class="col-md-10 col-sm-10 col-xs-12">
  9. <label class="sr-only" for="search">Search</label>
  10. <div class="input-group">
  11. <input type="text" class="form-control input-search" value='<%= Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q")) %>' name="q" id="search" placeholder="Search">
  12. <span class="input-group-addon group-icon"><span class="glyphicon glyphicon-eye-open"></span>
  13. <button type="submit" class="btn btn-success"><i class="bi bi-search"></i>Search</buttton>
  14. </div>
  15. </div>
  16. </form>
  17. </div>
  18. </div>
  19. <table id="Jurisdiction" class="table table-striped">
  20. <thead>
  21. <tr>
  22. <th style="text-align: left">JCode</th>
  23. <th style="text-align: left">Name</th>
  24. <th style="text-align: left">Mailing_Address</th>
  25. <th style="text-align: left">CSZ</th>
  26. <th></th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <% dim it : set it = Model.Jurisdiction.Iterator %>
  31. <% dim Jurisdiction %>
  32. <% While it.HasNext %>
  33. <% set Jurisdiction = it.GetNext() %>
  34. <tr>
  35. <td><% = H(Jurisdiction.JCode) %></td>
  36. <td><% = H(Jurisdiction.Name) %></td>
  37. <td><% = H(Jurisdiction.Mailing_Address) %></td>
  38. <td><% = H(Jurisdiction.CSZ) %></td>
  39. <td>
  40. <%= HTML.LinkToExt("<i class='bi bi-play-btn'></i>", "Kit", "createTrackingKit", Array("Id", Jurisdiction.JCode), Array("class", "btn btn-primary")) %>
  41. </td>
  42. </tr>
  43. <% Wend %>
  44. </tbody>
  45. </table>
  46. <div>
  47. <% If Model.CurrentPageNumber <> 1 then %>
  48. <%= HTML.LinkToExt("<i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
  49. &nbsp;
  50. <%= HTML.LinkToExt("<i class='bi bi-chevron-left'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.CurrentPageNumber - 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
  51. &nbsp;
  52. <% Else %>
  53. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i></a>
  54. &nbsp;
  55. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i></a>
  56. &nbsp;
  57. <% End If %>
  58. <% If CInt(Model.CurrentPageNumber) < CInt(Model.PageCount) then %>
  59. <%= HTML.LinkToExt("<i class='bi bi-chevron-right'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.CurrentPageNumber + 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
  60. &nbsp;
  61. <%= HTML.LinkToExt("<i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.PageCount,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
  62. &nbsp;
  63. <% Else %>
  64. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i></a>
  65. &nbsp;
  66. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i></a>
  67. &nbsp;
  68. <% End If %>
  69. </div>
  70. </div>

Powered by TurnKey Linux.