ASP Classic blog framework - BrainOrdure
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

44 lines
1.2KB

  1. <div class="d-flex align-items-center justify-content-between mb-4">
  2. <div>
  3. <h1 class="h3 mb-1">Categories</h1>
  4. <p class="text-muted mb-0">Browse post categories from ASPBlogBrainOrdure.</p>
  5. </div>
  6. <a class="btn btn-primary" href="/categories/new">New Category</a>
  7. </div>
  8. <%
  9. Dim categoryIter, categoryItem
  10. Set categoryIter = categories.Iterator()
  11. If categories.Count = 0 Then
  12. %>
  13. <div class="alert alert-secondary">No categories are available yet.</div>
  14. <%
  15. Else
  16. %>
  17. <div class="row gy-3">
  18. <%
  19. Do While categoryIter.HasNext
  20. Set categoryItem = categoryIter.GetNext()
  21. %>
  22. <div class="col-12">
  23. <article class="card shadow-sm">
  24. <div class="card-body">
  25. <h2 class="h5 mb-2">
  26. <a href="/categories/<%= Server.URLEncode(CStr(categoryItem.CategoryID)) %>" class="text-decoration-none">
  27. <%= H(categoryItem.Name) %>
  28. </a>
  29. </h2>
  30. <p class="text-muted mb-3"><%= H(categoryItem.Description) %></p>
  31. <a class="btn btn-sm btn-outline-primary" href="/categories/<%= Server.URLEncode(CStr(categoryItem.CategoryID)) %>">View</a>
  32. </div>
  33. </article>
  34. </div>
  35. <%
  36. Loop
  37. %>
  38. </div>
  39. <%
  40. End If
  41. %>

Powered by TurnKey Linux.