Advertisement
Guest User

Untitled

a guest
Jun 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.00 KB | None | 0 0
  1. @model IEnumerable<object>
  2. @{
  3. List<bookStore.Models.Genre> lstGenre = Model.ToList()[0] as List<bookStore.Models.Genre>;
  4. List<bookStore.Models.Author> lstAuthor = Model.ToList()[1] as List<bookStore.Models.Author>;
  5. List<bookStore.Models.Book> lstBook = Model.ToList()[2] as List<bookStore.Models.Book>;
  6. ViewBag.Title = "Дома";
  7. }
  8.  
  9. <div id="templatemo_container">
  10. <div id="templatemo_header" style="background-image: url('../Content/images/templatemo_header_bg.jpg')">
  11. </div>
  12.  
  13. <div id="templatemo_content">
  14. <div id="templatemo_content_left" @*style="width: 210px"*@>
  15. <div class="templatemo_content_left_section">
  16. <h1>Омилени жанрови</h1>
  17. <ul>
  18. @foreach (var item in lstGenre)
  19. {
  20. <li><a href="/Genres/Details/@item.Id">@item.Name</a></li>
  21. }
  22. </ul>
  23. </div>
  24.  
  25. <div class="templatemo_content_left_section">
  26. <h1>Омилени автори</h1>
  27. <ul>
  28. @foreach (var item in lstAuthor)
  29. {
  30. <li><a href="/Authors/Details/@item.Id">@item.Name</a></li>
  31. }
  32. </ul>
  33. </div>
  34. </div>
  35.  
  36. <div id="templatemo_content_right">
  37. <div class="templatemo_product_box">
  38. <h1>
  39. @{
  40. var i = lstBook[0].Name;
  41. var c = lstBook[0].Author.Name;
  42. var url = lstBook[0].ImageURL;
  43. var price = lstBook[0].Price;
  44. var bookId = lstBook[0].Id;
  45. }
  46. @i
  47. <span>(од @c)</span>
  48. </h1>
  49. <img src="@url" alt="image">
  50. <div class="product_info">
  51. <h3>@price МКД</h3>
  52. <div class="buy_now_button">
  53. <a href="@Url.Action("OrderNow", "ShoppingCart", new { id = bookId})">Кошничка</a>
  54. </div>
  55. <div class="detail_button">
  56. <a href="@Url.Action("Details", "Books", new { id = bookId})">Детали</a>
  57. </div>
  58. </div>
  59. <div class="cleaner">&nbsp;</div>
  60. </div>
  61. <div class="cleaner_with_width">&nbsp;</div>
  62.  
  63.  
  64.  
  65. <div class="templatemo_product_box">
  66. <h1>
  67. @{
  68. var i1 = lstBook[1].Name;
  69. var c1 = lstBook[1].Author.Name;
  70. var url1 = lstBook[1].ImageURL;
  71. var price1 = lstBook[1].Price;
  72. var bookId1 = lstBook[1].Id;
  73. }
  74. @i1
  75. <span>(од @c1)</span>
  76. </h1>
  77. <img src="@url1" alt="image">
  78. <div class="product_info">
  79. <h3>@price1 МКД</h3>
  80. <div class="buy_now_button">
  81. <a href="@Url.Action("OrderNow", "ShoppingCart", new { id = bookId1})">Кошничка</a>
  82. </div>
  83. <div class="detail_button">
  84. <a href="@Url.Action("Details", "Books", new { id = bookId1})">Детали</a>
  85. </div>
  86. </div>
  87. <div class="cleaner">&nbsp;</div>
  88. </div>
  89. <div class="cleaner_with_width">&nbsp;</div>
  90.  
  91.  
  92. <div class="templatemo_product_box">
  93. <h1>
  94. @{
  95. var i11 = lstBook[2].Name;
  96. var c11 = lstBook[2].Author.Name;
  97. var url11 = lstBook[2].ImageURL;
  98. var price11 = lstBook[2].Price;
  99. var bookId11 = lstBook[2].Id;
  100. }
  101. @i1
  102. <span>(од @c11)</span>
  103. </h1>
  104. <img src="@url11" alt="image">
  105. <div class="product_info">
  106. <h3>@price11 МКД</h3>
  107. <div class="buy_now_button">
  108. <a href="@Url.Action("OrderNow", "ShoppingCart", new { id = bookId11})">Кошничка</a>
  109. </div>
  110. <div class="detail_button">
  111. <a href="@Url.Action("Details", "Books", new { id = bookId11})">Детали</a>
  112. </div>
  113. </div>
  114. <div class="cleaner">&nbsp;</div>
  115. </div>
  116. <div class="cleaner_with_width">&nbsp;</div>
  117.  
  118.  
  119. <div class="templatemo_product_box">
  120. <h1>
  121. @{
  122. var i12 = lstBook[3].Name;
  123. var c12 = lstBook[3].Author.Name;
  124. var url12 = lstBook[3].ImageURL;
  125. var price12 = lstBook[3].Price;
  126. var bookId12 = lstBook[3].Id;
  127. }
  128. @i1
  129. <span>(од @c12)</span>
  130. </h1>
  131. <img src="@url12" alt="image">
  132. <div class="product_info">
  133. <h3>@price12 МКД</h3>
  134. <div class="buy_now_button">
  135. <a href="@Url.Action("OrderNow", "ShoppingCart", new { id = bookId12})">Кошничка</a>
  136. </div>
  137. <div class="detail_button">
  138. <a href="@Url.Action("Details", "Books", new { id = bookId12})">Детали</a>
  139. </div>
  140. </div>
  141. <div class="cleaner">&nbsp;</div>
  142. </div>
  143. <div class="cleaner_with_width">&nbsp;</div>
  144. </div>
  145. </div>
  146.  
  147. <div id="templatemo_footer">
  148.  
  149. Copyright © @DateTime.Now.Year
  150. </div>
  151.  
  152. </div>
  153.  
  154. <style>
  155. #templatemo_container {
  156. width: 960px;
  157. margin: 0 auto;
  158. padding: 0 10px;
  159. background: #1c1c1b url(images/templatemo_bg.jpg) repeat-y;
  160. }
  161.  
  162. #templatemo_footer {
  163. clear: both;
  164. width: 960px;
  165. padding: 20px 0px 20px 0;
  166. text-align: center;
  167. border-top: 1px solid #25211e;
  168. color: #999;
  169. background-color: #111110;
  170. margin-left: -10px;
  171. }
  172. .cleaner_with_width {
  173. float: left;
  174. width: 20px;
  175. height: 30px;
  176. font-size: 1px;
  177. }
  178.  
  179. .cleaner {
  180. clear: both;
  181. width: 100%;
  182. height: 1px;
  183. font-size: 1px;
  184. }
  185. .detail_button a {
  186. clear: both;
  187. text-align: center;
  188. display: block;
  189. width: 100px;
  190. padding: 4px 0 5px 0;
  191. margin-bottom: 10px;
  192. background: url(../Content/images/templatemo_btn_01.jpg) no-repeat;
  193. color: #ffffff;
  194. font-weight: bold;
  195. text-decoration: none;
  196. margin-left: 137px;
  197. }
  198. body {
  199. margin: 0;
  200. padding: 0;
  201. line-height: 1.5em;
  202. font-family: Verdana, Arial, san-serif;
  203. font-size: 11px;
  204. color: #ffffff;
  205. background: #4b4743;
  206. }
  207. .buy_now_button a {
  208. margin-left: 139px;
  209. margin-top: -158px;
  210. clear: both;
  211. text-align: center;
  212. display: block;
  213. width: 100px;
  214. padding: 4px 0 5px 0;
  215. margin-bottom: 10px;
  216. background: url(../Content/images/templatemo_btn_02.jpg) no-repeat;
  217. color: #ffffff;
  218. font-weight: bold;
  219. text-decoration: none;
  220. }
  221. #templatemo_content_right h3 {
  222. padding: 0;
  223. margin: 0 0 20px 0;
  224. font-size: 18px;
  225. color: #ffffff;
  226. }
  227. .templatemo_product_box .product_info {
  228. float: left;
  229. width: 180px;
  230. }
  231.  
  232. div{
  233. display:block;
  234. }
  235. .templatemo_product_box img {
  236. float: left;
  237. margin-right: 20px;
  238. }
  239. img {
  240. margin-top: -14px;
  241. padding: 2px;
  242. margin-left: 8px;
  243. border: none;
  244. max-width: 165px;
  245. max-height: 145px;
  246. }
  247. .templatemo_product_box h1 span {
  248. font-weight: normal;
  249. }
  250. #templatemo_content_right h1 {
  251. padding: 10px;
  252. margin: 0 0 20px 0;
  253. font-size: 15px;
  254. color: #cbc750;
  255. background: url(images/templatemo_h1_bg.jpg);
  256. }
  257. #templatemo_content_right .templatemo_product_box {
  258. float: left;
  259. width: 303px;
  260. height: 240px;
  261. padding: 10px;
  262. border: 1px solid #333;
  263. margin-bottom: 15px;
  264. }
  265. #templatemo_content #templatemo_content_right {
  266. float: right;
  267. width: 670px;
  268. }
  269. .templatemo_content_left_section ul li a {
  270. font-weight: normal;
  271. text-decoration: none;
  272. color: #969547;
  273. }
  274. .templatemo_content_left_section ul li {
  275. padding: 0 0 3px 10px;
  276. list-style: none;
  277. }
  278. .templatemo_content_left_section ul {
  279. padding: 0;
  280. margin: 0;
  281. }
  282. .templatemo_content_left_section h1 {
  283. font-size: 14px;
  284. color: #cbc750;
  285. padding: 0 0 5px 0;
  286. margin: 0 0 10px 0;
  287. border-bottom: 1px dotted #cbc750;
  288. }
  289. #templatemo_header {
  290. clear: both;
  291. width: 960px;
  292. height: 285px;
  293. padding: 0;
  294. margin: 0;
  295. /*background-image: url(../images/templatemo_header_bg.jpg) no-repeat;*/
  296. margin-bottom: 20px;
  297. margin-left: -10px;
  298. }
  299.  
  300. #templatemo_content {
  301. clear: both;
  302. width: 920px;
  303. padding: 0 20px;
  304. }
  305.  
  306. #templatemo_content #templatemo_content_left {
  307. float: left;
  308. width: 188px;
  309. padding: 10px;
  310. background-color: #171716;
  311. border: 1px solid #212120;
  312. margin-left: -20px;
  313. }
  314.  
  315. #templatemo_content_left .templatemo_content_left_section {
  316. clear: both;
  317. padding-bottom: 10px;
  318. border-bottom: 1px solid #2b2b2a;
  319. margin-bottom: 20px;
  320. }
  321. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement