Advertisement
Guest User

Untitled

a guest
May 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. @using TeamMVC1.Models
  2. @using PagedList.Mvc;
  3. @model PagedList.PagedList<SACH>
  4. <!-- model List<SACH>-->
  5. @{
  6. ViewBag.Title = "Index";
  7. }
  8.  
  9. <style>
  10. .dropdown {
  11. position: relative;
  12. display: inline-block;
  13. }
  14.  
  15. .dropdown-content {
  16. display: none;
  17. position: absolute;
  18. background-color: #f9f9f9;
  19. min-width: 160px;
  20. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  21. padding: 12px 16px;
  22. z-index: 1;
  23. }
  24.  
  25. .dropdown:hover .dropdown-content {
  26. display: block;
  27. }
  28. </style>
  29.  
  30. <!--using (Html.BeginForm("Index","Home", FormMethod.Post)) -->
  31.  
  32. @foreach (var item in Model)
  33. {
  34. <div class="product">
  35. <ul class="homeproduct ">
  36. <li>
  37. <a href="@Url.Action("Details", new { @x = item.MaSach })">
  38. <img src="@Url.Content("~/HinhAnhSP/"+item.AnhBia)" />
  39. <h3>@item.TenSach</h3>
  40. <strong>@item.GiaBan ₫</strong>
  41. <button>Mua ngay</button>
  42. </a>
  43. @*<div class="dropdown-content">
  44. <span>@item.TenSach</span>
  45. <span><strong>@item.GiaBan</strong></span>
  46.  
  47. </div>*@
  48.  
  49. @*<figure class="bginfo">
  50. <a @Url.Action("Details", new { @MaSP = item.ID_SP })>
  51.  
  52. <span class="name"> @item.TenSP</span><br />
  53. <span><strong>@item.Gia ₫</strong></span>
  54.  
  55. <span>@item.Loai</span>
  56. <span>@item.MauSac</span>
  57. <span>@item.HangSX</span>
  58.  
  59. </a>
  60.  
  61. </figure>*@
  62. </li>
  63.  
  64. </ul>
  65. </div>
  66. }
  67.  
  68.  
  69. <div style="clear:both"></div><!-- cai nay de xuong dong-->
  70. Trang @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber)/ @Model.PageCount
  71. <p>
  72. @Html.PagedListPager(Model, page => Url.Action("Index", new { page = page }))
  73. </p>
  74. <!--MenuTrang k anh huong-->
  75. <style>
  76. MenuTrang li {
  77. display: inline;
  78. }
  79. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement