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.

index.asp 4.1KB

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

Powered by TurnKey Linux.