Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.30 KB | None | 0 0
  1. <tr>
  2. <td colspan="2" style="text-align: center;">
  3. <span class="m2_labeltext">@Resources.Common.MyCreditCards:</span>
  4. </td>
  5. </tr>
  6. @if (Model.CreditCardProfiles != null && Model.CreditCardProfiles.Any())
  7. {
  8. if (Model.CreditCardProfiles.Count == 1)
  9. {
  10. var profile = Model.CreditCardProfiles[0];
  11. if (profile != null)
  12. {
  13. <tr>
  14. <td colspan="2">
  15. <div class="cardProfile" style="background-color: white; width:50%; margin: auto;" onclick="ParkerMyProfileIndex.removeCreditCard(@profile.String4Value);">
  16. <table style="width: 100%;">
  17. <tr>
  18. <td style="text-align: center;">
  19. @if (profile.String3Value == "Visa")
  20. {
  21. <img src="~/Include/gfx/Visa.jpg" class="p_creditCardImgSmall" />
  22. }
  23. @if (profile.String3Value == "Master Card" || profile.String3Value == "MasterCard")
  24. {
  25. <img src="~/Include/gfx/MasterCard.jpg" class="p_creditCardImgSmall" />
  26. }
  27. @if (profile.String3Value == "American Express" || profile.String3Value == "AmericanExpress")
  28. {
  29. <img src="~/Include/gfx/american_express1.png" class="p_creditCardImgSmall" />
  30. }
  31. @if (profile.String3Value == "Diners Club" || profile.String3Value == "DinersClub" || profile.String3Value == "Diner's Club")
  32. {
  33. <img src="~/Include/gfx/DinersClubInternational.jpg" class="p_creditCardImgSmall" />
  34. }
  35. @if (profile.String3Value == "Discover")
  36. {
  37. <img src="~/Include/gfx/Discover.jpg" class="p_creditCardImgSmall" />
  38. }
  39. @if (profile.String3Value == "JCB")
  40. {
  41. <img src="~/Include/gfx/JCB.jpg" class="p_creditCardImgSmall" />
  42. }
  43. </td>
  44. <td>
  45. @profile.String2Value.Replace("***", string.Empty)
  46. </td>
  47. <td style="text-align: right;">
  48. <img src="~/Include/gfx/removeCreditCard.png" style="width: 40px;" alt="@textButtonLanguageConfiguration.DefaultRemoveText" />
  49. </td>
  50. </tr>
  51. </table>
  52. </div>
  53. </td>
  54. </tr>
  55. }
  56. }
  57. else
  58. {
  59. int limit = 2;
  60. int l = 0;
  61. while (l < Model.CreditCardProfiles.Count())
  62. {
  63. <tr>
  64. @for (var j = 1; j <= limit; j++)
  65. {
  66. var profile = Model.CreditCardProfiles[l];
  67. if (profile != null)
  68. {
  69. <td>
  70. <div class="cardProfile" style="background-color: white;" onclick="ParkerMyProfileIndex.removeCreditCard('@profile.String4Value');">
  71. <table style="width: 100%;">
  72. <tr>
  73. <td style="text-align: center;">
  74. @if (profile.String3Value == "Visa")
  75. {
  76. <img src="~/Include/gfx/Visa.jpg" class="p_creditCardImgSmall" />
  77. }
  78. @if (profile.String3Value == "Master Card" || profile.String3Value == "MasterCard")
  79. {
  80. <img src="~/Include/gfx/MasterCard.jpg" class="p_creditCardImgSmall" />
  81. }
  82. @if (profile.String3Value == "American Express" || profile.String3Value == "AmericanExpress")
  83. {
  84. <img src="~/Include/gfx/american_express1.png" class="p_creditCardImgSmall" />
  85. }
  86. @if (profile.String3Value == "Diners Club" || profile.String3Value == "DinersClub" || profile.String3Value == "Diner's Club")
  87. {
  88. <img src="~/Include/gfx/DinersClubInternational.jpg" class="p_creditCardImgSmall" />
  89. }
  90. @if (profile.String3Value == "Discover")
  91. {
  92. <img src="~/Include/gfx/Discover.jpg" class="p_creditCardImgSmall" />
  93. }
  94. @if (profile.String3Value == "JCB")
  95. {
  96. <img src="~/Include/gfx/JCB.jpg" class="p_creditCardImgSmall" />
  97. }
  98. </td>
  99. <td>
  100. @profile.String2Value.Replace("***", string.Empty)
  101. </td>
  102. <td style="text-align: right;">
  103. <img src="~/Include/gfx/removeCreditCard.png" style="width: 40px;" alt="@textButtonLanguageConfiguration.DefaultRemoveText" />
  104. </td>
  105. </tr>
  106. </table>
  107. </div>
  108. </td>
  109. }
  110. if (++l == limit) { break; }
  111. if (l == Model.CreditCardProfiles.Count()) { break; }
  112. }
  113. </tr>
  114. }
  115. }
  116. }
  117. @*<tr>
  118. <td colspan="2">
  119. <div style="width: 50%; margin: auto;">
  120. <a href="@Url.Action("Index", "ParkerNewCCProfile", new { id = Model.RequestStringID })">
  121. @Html.Raw(T2P.Mobi.Controllers.Utils.HtmlItemUtility.CreateButton("m2_button_long", "", @Resources.Common.AddNewCreditCard, "", string.Empty, "color: #363636 !important;"))
  122. </a>
  123. </div>
  124. </td>
  125. </tr>*@
  126. <tr>
  127. <td colspan="2" style="height: 15px;"></td>
  128. </tr>
  129. <tr>
  130. <td colspan="2" style="text-align: center;">
  131. <span class="m2_labeltext">@Resources.Common.MyLicensePlates:</span>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td colspan="2">
  136. <div style="min-width: 250px; max-width: 350px; max-height: 110px; overflow-y: auto;">
  137. @foreach (var plate in Model.PlatesList)
  138. {
  139. <div class="cardProfile" style="background-color: white; display: inline-block; width:40%" onclick="ParkerMyProfileIndex.removePlate('@plate.Id');">
  140. @plate.plate
  141. <img src="~/Include/gfx/removeCreditCard.png" style="width: 30px;" alt="@textButtonLanguageConfiguration.DefaultRemoveText" />
  142. </div>
  143. }
  144. </div>
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement