TKRM.cshtml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @using M55128_rec.Models.ViewModels.GallerMangerModel
  2. @model Tuple<List<HotMenuModel>, List<ImageMenuInfoModel>, string>
  3. @if (Model.Item3 == "1")
  4. {
  5. if (Model.Item1!= null && Model.Item1.Count > 0)
  6. {
  7. <div class="tuku-area">
  8. <div class="tuku-area-item area-selected">
  9. <span>@Model.Item1[0].ItemName</span>
  10. </div>
  11. @for (int i = 1; i < Model.Item1.Count; i++)
  12. {
  13. <div class="tuku-area-item">
  14. <span>@Model.Item1[i].ItemName</span>
  15. </div>
  16. }
  17. </div>
  18. }
  19. if (Model.Item2 != null)
  20. {
  21. <ul class="tuku-list-wrapper row">
  22. @if (ViewBag.p == 1)
  23. {
  24. <input type="hidden" id="totalpage" value="@ViewBag.totalp" />
  25. }
  26. @foreach (ImageMenuInfoModel subitem in Model.Item2)
  27. {
  28. <li class="tuku-list border-1px col-xs-12 col-sm-8 col-md-6 col-lg-4">
  29. <a @(subitem.HasImage == 1 ? "href="+ ViewBag.qs + "_"+subitem.AreaCode+subitem.PK+".html" : "style=color:rgba(0,0,0,0.4);")>
  30. @(subitem.AreaCode)@(subitem.GalleryNumber < 10 ? "0" + subitem.GalleryNumber.ToString() : subitem.GalleryNumber.ToString()) @subitem.GalleryName
  31. </a>
  32. </li>
  33. }
  34. </ul>
  35. }
  36. }
  37. else if (Model.Item2 != null)
  38. {
  39. if (ViewBag.p == 1)
  40. {
  41. <input type="hidden" id="totalpage" value="@ViewBag.totalp" />
  42. }
  43. foreach (ImageMenuInfoModel subitem in Model.Item2)
  44. {
  45. <li class="tuku-list border-1px col-xs-12 col-sm-8 col-md-6 col-lg-4">
  46. <a @(subitem.HasImage == 1 ? "href="+ ViewBag.qs + "_"+subitem.AreaCode+subitem.PK+".html" : "style=color:rgba(0,0,0,0.4);")>
  47. @(subitem.AreaCode)@(subitem.GalleryNumber < 10 ? "0" + subitem.GalleryNumber.ToString() : subitem.GalleryNumber.ToString()) @subitem.GalleryName
  48. </a>
  49. </li>
  50. }
  51. }