Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

před 8 měsíci
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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) %> Contacts found. Showing <%= H(Model.PageSize) %> records per page.
  5. <%= HTML.LinkToExt("<i class='bi bi-plus-square-fill'></i> New","Contacts", "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("Contacts", "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="Contacts" class="table table-striped">
  21. <thead>
  22. <tr>
  23. <th></th>
  24. <th style="text-align: left">ID</th>
  25. <th style="text-align: left">JURISCODE</th>
  26. <th style="text-align: left">TownshipName</th>
  27. <th style="text-align: left">CONTACT_NAME</th>
  28. <th style="text-align: left">TownshipNum</th>
  29. <th style="text-align: left">BUSINESS_ADDRESS</th>
  30. <th style="text-align: left">TITLE</th>
  31. <th style="text-align: left">BUSINESS_ADDRESS2</th>
  32. <th style="text-align: left">BUSINESS_ADDRESS3</th>
  33. <th style="text-align: left">MAILING_ADDRESS</th>
  34. <th style="text-align: left">MAILING_ADDRESS2</th>
  35. <th style="text-align: left">MAILING_ADDRESS3</th>
  36. <th style="text-align: left">RESIDENTIAL_ADDRESS</th>
  37. <th style="text-align: left">RESIDENTIAL_ADDRESS2</th>
  38. <th style="text-align: left">PHONENUM1</th>
  39. <th style="text-align: left">RESIDENTIAL_ADDRESS3</th>
  40. <th style="text-align: left">FAXNUM</th>
  41. <th style="text-align: left">PHONENUM2</th>
  42. <th style="text-align: left">EMAIL</th>
  43. <th></th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <% dim it : set it = Model.Contacts.Iterator %>
  48. <% dim Contacts %>
  49. <% While it.HasNext %>
  50. <% set Contacts = it.GetNext() %>
  51. <tr>
  52. <td>
  53. <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "Contacts", "Edit", Array("Id", Contacts.ID), Array("class", "btn btn-primary")) %>
  54. </td>
  55. <td><% = H(Contacts.ID) %></td>
  56. <td><% = H(Contacts.JURISCODE) %></td>
  57. <td><% = H(Contacts.TownshipName) %></td>
  58. <td><% = H(Contacts.CONTACT_NAME) %></td>
  59. <td><% = H(Contacts.TownshipNum) %></td>
  60. <td><% = H(Contacts.BUSINESS_ADDRESS) %></td>
  61. <td><% = H(Contacts.TITLE) %></td>
  62. <td><% = H(Contacts.BUSINESS_ADDRESS2) %></td>
  63. <td><% = H(Contacts.BUSINESS_ADDRESS3) %></td>
  64. <td><% = H(Contacts.MAILING_ADDRESS) %></td>
  65. <td><% = H(Contacts.MAILING_ADDRESS2) %></td>
  66. <td><% = H(Contacts.MAILING_ADDRESS3) %></td>
  67. <td><% = H(Contacts.RESIDENTIAL_ADDRESS) %></td>
  68. <td><% = H(Contacts.RESIDENTIAL_ADDRESS2) %></td>
  69. <td><% = H(Contacts.PHONENUM1) %></td>
  70. <td><% = H(Contacts.RESIDENTIAL_ADDRESS3) %></td>
  71. <td><% = H(Contacts.FAXNUM) %></td>
  72. <td><% = H(Contacts.PHONENUM2) %></td>
  73. <td><% = H(Contacts.EMAIL) %></td>
  74. </tr>
  75. <% Wend %>
  76. </tbody>
  77. </table>
  78. <div>
  79. <% If Model.CurrentPageNumber <> 1 then %>
  80. <%= 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")) %>
  81. &nbsp;
  82. <%= 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")) %>
  83. &nbsp;
  84. <% Else %>
  85. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i></a>
  86. &nbsp;
  87. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i></a>
  88. &nbsp;
  89. <% End If %>
  90. <% If CInt(Model.CurrentPageNumber) < CInt(Model.PageCount) then %>
  91. <%= 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")) %>
  92. &nbsp;
  93. <%= 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")) %>
  94. &nbsp;
  95. <% Else %>
  96. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i></a>
  97. &nbsp;
  98. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i></a>
  99. &nbsp;
  100. <% End If %>
  101. </div>
  102. </div>

Powered by TurnKey Linux.