TKZX.cshtml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @using M55128_rec.Models.ViewModels.GallerMangerModel;
  2. @model List<ImageMenuInfoModel>
  3. @if (ViewBag.t == "1")
  4. {
  5. if (Model != null && Model.Count > 0)
  6. {
  7. <div class="tuku-list-wrapper row tk-newlist" id="tknewwrapper">
  8. @if (ViewBag.p == 1)
  9. {
  10. <input type="hidden" id="totalpage" value="@ViewBag.totalp" />
  11. }
  12. @foreach (ImageMenuInfoModel subitem in Model)
  13. {
  14. <div class="tuku-list border-1px col-xs-12 col-sm-8 col-md-6 col-lg-4">
  15. <a @(subitem.HasImage == 1 ? "href="+ ViewBag.qs + "_"+subitem.AreaCode+subitem.PK+".html" : "style=color:rgba(0,0,0,0.4);")>
  16. @(subitem.AreaCode)@(subitem.GalleryNumber < 10 ? "0" + subitem.GalleryNumber.ToString() : subitem.GalleryNumber.ToString()) @subitem.GalleryName
  17. </a>
  18. </div>
  19. }
  20. </div>
  21. }
  22. <input type="hidden" id="totalpage" value="@ViewBag.totalp" />
  23. }
  24. else
  25. {
  26. if (Model != null && Model.Count > 0)
  27. {
  28. if (ViewBag.p == 1)
  29. {
  30. <input type="hidden" id="totalpage" value="@ViewBag.totalp" />
  31. }
  32. foreach (ImageMenuInfoModel subitem in Model)
  33. {
  34. <div class="tuku-list border-1px col-xs-12 col-sm-8 col-md-6 col-lg-4">
  35. <a @(subitem.HasImage == 1 ? "href="+ ViewBag.qs + "_"+subitem.AreaCode+subitem.PK+".html" : "style=color:rgba(0,0,0,0.4);")>
  36. @(subitem.AreaCode)@(subitem.GalleryNumber < 10 ? "0" + subitem.GalleryNumber.ToString() : subitem.GalleryNumber.ToString()) @subitem.GalleryName
  37. </a>
  38. </div>
  39. }
  40. }
  41. }