Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

73 wiersze
3.5KB

  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) %> Kit found. Showing <%= H(Model.PageSize) %> records per page.
  5. <%'= HTML.LinkToExt("<i class='bi bi-plus-square-fill'></i> New","Kit", "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("Kit", "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="Kit" 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">JobNumber</th>
  26. <th style="text-align: left">Jcode</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <% dim it : set it = Model.Kit.Iterator %>
  31. <% dim Kit %>
  32. <% While it.HasNext %>
  33. <% set Kit = it.GetNext() %>
  34. <tr>
  35. <td>
  36. <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "Kit", "Edit", Array("Id", Kit.ID), Array("class", "btn btn-primary")) %>
  37. </td>
  38. <td><% = H(Kit.ID) %></td>
  39. <td><% = H(Kit.JobNumber) %></td>
  40. <td><% = H(Kit.Jcode) %></td>
  41. </tr>
  42. <% Wend %>
  43. </tbody>
  44. </table>
  45. <div>
  46. <% If Model.CurrentPageNumber <> 1 then %>
  47. <%= 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")) %>
  48. &nbsp;
  49. <%= 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")) %>
  50. &nbsp;
  51. <% Else %>
  52. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i></a>
  53. &nbsp;
  54. <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i></a>
  55. &nbsp;
  56. <% End If %>
  57. <% If CInt(Model.CurrentPageNumber) < CInt(Model.PageCount) then %>
  58. <%= 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")) %>
  59. &nbsp;
  60. <%= 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")) %>
  61. &nbsp;
  62. <% Else %>
  63. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i></a>
  64. &nbsp;
  65. <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i></a>
  66. &nbsp;
  67. <% End If %>
  68. </div>
  69. </div>

Powered by TurnKey Linux.