25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.asp 4.0KB

8 달 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <h2><%= H(Model.Title) %></h2>
  2. <div class="row">
  3. <div class="col-md-8 col-sm-8 col-xs-12">
  4. <%= H(Model.RecordCount) %> Jurisdiction found. Showing <%= H(Model.PageSize) %> records per page.
  5. <%= HTML.LinkToExt("<i class='bi bi-plus-square-fill'></i> New","Jurisdiction", "Create", empty, Array("class", "btn btn-xs btn-primary")) %>
  6. </div>
  7. <div class="col-md-4 col-sm-4 col-xs-12">
  8. <%= HTML.FormTag("Jurisdiction", "Search", empty, empty) %>
  9. <div class="col-md-10 col-sm-10 col-xs-12">
  10. <label class="sr-only" for="search">Search</label>
  11. <div class="input-group">
  12. <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">
  13. <span class="input-group-addon group-icon"><span class="glyphicon glyphicon-eye-open"></span>
  14. <button type="submit" class="btn btn-success"><i class="bi bi-search"></i>Search</buttton>
  15. </div>
  16. </div>
  17. </form>
  18. </div>
  19. </div>
  20. <table id="Jurisdiction" class="table table-striped">
  21. <thead>
  22. <tr>
  23. <th></th>
  24. <th style="text-align: left">JCode</th>
  25. <th style="text-align: left">Name</th>
  26. <th style="text-align: left">Mailing_Address</th>
  27. <th style="text-align: left">CSZ</th>
  28. <th style="text-align: left">IMB</th>
  29. <th style="text-align: left">IMB_Digits</th>
  30. <th></th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <% dim it : set it = Model.Jurisdiction.Iterator %>
  35. <% dim Jurisdiction %>
  36. <% While it.HasNext %>
  37. <% set Jurisdiction = it.GetNext() %>
  38. <tr>
  39. <td>
  40. <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "Jurisdiction", "Edit", Array("Id", Jurisdiction.JCode), Array("class", "btn btn-primary")) %>
  41. </td>
  42. <td><% = H(Jurisdiction.JCode) %></td>
  43. <td><% = H(Jurisdiction.Name) %></td>
  44. <td><% = H(Jurisdiction.Mailing_Address) %></td>
  45. <td><% = H(Jurisdiction.CSZ) %></td>
  46. <td><% = H(Jurisdiction.IMB) %></td>
  47. <td><% = H(Jurisdiction.IMB_Digits) %></td>
  48. <td>
  49. <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "Kit", "create", Array("Id", Jurisdiction.JCode), Array("class", "btn btn-primary")) %>
  50. </td>
  51. </tr>
  52. <% Wend %>
  53. </tbody>
  54. </table>
  55. <div>
  56. <% If Model.CurrentPageNumber <> 1 then %>
  57. <%= 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")) %>
  58. &nbsp;
  59. <%= 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")) %>
  60. &nbsp;
  61. <% Else %>
  62. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i></a>
  63. &nbsp;
  64. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i></a>
  65. &nbsp;
  66. <% End If %>
  67. <% If CInt(Model.CurrentPageNumber) < CInt(Model.PageCount) then %>
  68. <%= 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")) %>
  69. &nbsp;
  70. <%= 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")) %>
  71. &nbsp;
  72. <% Else %>
  73. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i></a>
  74. &nbsp;
  75. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i></a>
  76. &nbsp;
  77. <% End If %>
  78. </div>
  79. </div>

Powered by TurnKey Linux.