Line 1: #pragma checksum "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F99C1354D0693388ABD529B82F2F3966E3034633"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Routing;
Line 27: using Doctor_Ketab_Web;
Line 28:
Line 29:
Line 30: public class _Page_Views_Home_ViewBook_cshtml : System.Web.Mvc.WebViewPage<DataLayer.Book> {
Line 31:
Line 32: #line hidden
Line 33:
Line 34: public _Page_Views_Home_ViewBook_cshtml() {
Line 35: }
Line 36:
Line 37: protected ASP.global_asax ApplicationInstance {
Line 38: get {
Line 39: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 40: }
Line 41: }
Line 42:
Line 43: public override void Execute() {
Line 44:
Line 45: #line 2 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 46:
Line 47: ViewBag.Title = "ViewProduct";
Line 48: Layout = "~/Views/Shared/Default.cshtml";
Line 49:
Line 50:
Line 51: #line default
Line 52: #line hidden
Line 53: WriteLiteral("\r\n\r\n<style>\r\n .text-container {\r\n width: 100%;\r\n word-wrap: brea" +
Line 54: "k-word;\r\n }\r\n</style>\r\n\r\n\r\n<div");
Line 55:
Line 56: WriteLiteral(" class=\"row\"");
Line 57:
Line 58: WriteLiteral(">\r\n <div");
Line 59:
Line 60: WriteLiteral(" class=\"col-md-3 col-sm-4\"");
Line 61:
Line 62: WriteLiteral(">\r\n\r\n");
Line 63:
Line 64: WriteLiteral(" ");
Line 65:
Line 66:
Line 67: #line 18 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 68: Write(Html.Action("_similarBooks", new { tagId = Model.BookTagID }));
Line 69:
Line 70:
Line 71: #line default
Line 72: #line hidden
Line 73: WriteLiteral("\r\n <br />\r\n\r\n </div>\r\n\r\n <br />\r\n\r\n <div");
Line 74:
Line 75: WriteLiteral(" class=\"col-md-9 col-sm-8\"");
Line 76:
Line 77: WriteLiteral(">\r\n <section");
Line 78:
Line 79: WriteLiteral(" class=\"single-page\"");
Line 80:
Line 81: WriteLiteral(">\r\n\r\n <article>\r\n <br />\r\n <!-- Gallery " +
Line 82: "-->\r\n <div");
Line 83:
Line 84: WriteLiteral(" class=\"col-md-4 col-sm-12 col-xs-12 pull-right product-gallery\"");
Line 85:
Line 86: WriteLiteral(">\r\n <div");
Line 87:
Line 88: WriteLiteral(" class=\"large-image border-radius\"");
Line 89:
Line 90: WriteLiteral(">\r\n <img");
Line 91:
Line 92: WriteLiteral(" class=\"border-radius\"");
Line 93:
Line 94: WriteAttribute("src", Tuple.Create(" src=\"", 755), Tuple.Create("\"", 793)
Line 95: , Tuple.Create(Tuple.Create("", 761), Tuple.Create<System.Object, System.Int32>(Href("~/images/")
Line 96: , 761), false)
Line 97:
Line 98: #line 33 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 99: , Tuple.Create(Tuple.Create("", 770), Tuple.Create<System.Object, System.Int32>(Model.BookImageAddress
Line 100:
Line 101: #line default
Line 102: #line hidden
Line 103: , 770), false)
Line 104: );
Line 105:
Line 106: WriteLiteral(">\r\n </div>\r\n\r\n <div");
Line 107:
Line 108: WriteLiteral(" class=\"thumbnails-image\"");
Line 109:
Line 110: WriteLiteral(">\r\n <div");
Line 111:
Line 112: WriteLiteral(" class=\"row\"");
Line 113:
Line 114: WriteLiteral(">\r\n");
Line 115:
Line 116:
Line 117: #line 38 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 118:
Line 119:
Line 120: #line default
Line 121: #line hidden
Line 122:
Line 123: #line 38 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 124: if (!string.IsNullOrEmpty(Model.BookImageAddress2))
Line 125: {
Line 126:
Line 127:
Line 128: #line default
Line 129: #line hidden
Line 130: WriteLiteral(" <div");
Line 131:
Line 132: WriteLiteral(" class=\"col-md-3 col-sm-3 col-xs-4 border-radius\"");
Line 133:
Line 134: WriteLiteral("><img");
Line 135:
Line 136: WriteLiteral(" class=\"border-radius\"");
Line 137:
Line 138: WriteAttribute("src", Tuple.Create(" src=\"", 1147), Tuple.Create("\"", 1186)
Line 139: , Tuple.Create(Tuple.Create("", 1153), Tuple.Create<System.Object, System.Int32>(Href("~/images/")
Line 140: , 1153), false)
Line 141:
Line 142: #line 40 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 143: , Tuple.Create(Tuple.Create("", 1162), Tuple.Create<System.Object, System.Int32>(Model.BookImageAddress2
Line 144:
Line 145: #line default
Line 146: #line hidden
Line 147: , 1162), false)
Line 148: );
Line 149:
Line 150: WriteLiteral("></div>\r\n");
Line 151:
Line 152:
Line 153: #line 41 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 154: }
Line 155:
Line 156:
Line 157: #line default
Line 158: #line hidden
Line 159: WriteLiteral(" ");
Line 160:
Line 161:
Line 162: #line 42 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 163: if (!string.IsNullOrEmpty(Model.BookImageAddress3))
Line 164: {
Line 165:
Line 166:
Line 167: #line default
Line 168: #line hidden
Line 169: WriteLiteral(" <div");
Line 170:
Line 171: WriteLiteral(" class=\"col-md-3 col-sm-3 col-xs-4 border-radius\"");
Line 172:
Line 173: WriteLiteral("><img");
Line 174:
Line 175: WriteLiteral(" class=\"border-radius\"");
Line 176:
Line 177: WriteAttribute("src", Tuple.Create(" src=\"", 1452), Tuple.Create("\"", 1491)
Line 178: , Tuple.Create(Tuple.Create("", 1458), Tuple.Create<System.Object, System.Int32>(Href("~/images/")
Line 179: , 1458), false)
Line 180:
Line 181: #line 44 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 182: , Tuple.Create(Tuple.Create("", 1467), Tuple.Create<System.Object, System.Int32>(Model.BookImageAddress3
Line 183:
Line 184: #line default
Line 185: #line hidden
Line 186: , 1467), false)
Line 187: );
Line 188:
Line 189: WriteLiteral("></div>\r\n");
Line 190:
Line 191:
Line 192: #line 45 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 193: }
Line 194:
Line 195:
Line 196: #line default
Line 197: #line hidden
Line 198: WriteLiteral(" <div");
Line 199:
Line 200: WriteLiteral(" class=\"clearfix\"");
Line 201:
Line 202: WriteLiteral("></div>\r\n </div>\r\n </div>\r\n " +
Line 203: " </div>\r\n <!-- End Gallery -->\r\n\r\n <br />\r\n " +
Line 204: " <br />\r\n <header><h3");
Line 205:
Line 206: WriteLiteral(" style=\"font-size:x-large !important; \"");
Line 207:
Line 208: WriteLiteral(" class=\"text-center\"");
Line 209:
Line 210: WriteLiteral(">");
Line 211:
Line 212:
Line 213: #line 54 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 214: Write(Model.BookName);
Line 215:
Line 216:
Line 217: #line default
Line 218: #line hidden
Line 219: WriteLiteral(" </h3> </header>\r\n <br />\r\n <br />\r\n\r\n\r\n " +
Line 220: " <!-- Detail -->\r\n <div");
Line 221:
Line 222: WriteLiteral(" class=\"col-md-8 col-sm-12 col-xs-12 pull-left detail-product\"");
Line 223:
Line 224: WriteLiteral(">\r\n <div>\r\n");
Line 225:
Line 226:
Line 227: #line 62 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 228:
Line 229:
Line 230: #line default
Line 231: #line hidden
Line 232:
Line 233: #line 62 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 234: if (Model.BookDiscount > 0)
Line 235: {
Line 236:
Line 237:
Line 238: #line default
Line 239: #line hidden
Line 240: WriteLiteral(" <span");
Line 241:
Line 242: WriteLiteral(" style=\"color: red; text-decoration: line-through; margin-left:15%;\"");
Line 243:
Line 244: WriteLiteral("> قیمت اصلی : ");
Line 245:
Line 246:
Line 247: #line 64 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 248: Write(Model.BookPrice.ToString("N0"));
Line 249:
Line 250:
Line 251: #line default
Line 252: #line hidden
Line 253: WriteLiteral(" </span>\r\n");
Line 254:
Line 255: WriteLiteral(" <span> قیمت با تخفیف : ");
Line 256:
Line 257:
Line 258: #line 65 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 259: Write(Doctor_Ketab_Web.Models.extentions.CalculatePriceWithDiscount(Model.BookPrice, Model.BookDiscount).ToString("N0"));
Line 260:
Line 261:
Line 262: #line default
Line 263: #line hidden
Line 264: WriteLiteral(" </span>\r\n");
Line 265:
Line 266:
Line 267: #line 66 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 268: }
Line 269: else
Line 270: {
Line 271:
Line 272:
Line 273: #line default
Line 274: #line hidden
Line 275: WriteLiteral(" <span> قیمت : ");
Line 276:
Line 277:
Line 278: #line 69 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 279: Write(Model.BookPrice.ToString("N0"));
Line 280:
Line 281:
Line 282: #line default
Line 283: #line hidden
Line 284: WriteLiteral(" </span>\r\n");
Line 285:
Line 286:
Line 287: #line 70 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 288: }
Line 289:
Line 290:
Line 291: #line default
Line 292: #line hidden
Line 293: WriteLiteral("\r\n </div>\r\n <p");
Line 294:
Line 295: WriteLiteral(" class=\"text-container\"");
Line 296:
Line 297: WriteLiteral(">\r\n");
Line 298:
Line 299: WriteLiteral(" ");
Line 300:
Line 301:
Line 302: #line 74 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 303: Write(Model.BookAttractiveSections);
Line 304:
Line 305:
Line 306: #line default
Line 307: #line hidden
Line 308: WriteLiteral("\r\n </p>\r\n <br />\r\n <div");
Line 309:
Line 310: WriteLiteral(" class=\"button-container\"");
Line 311:
Line 312: WriteLiteral(">\r\n <a");
Line 313:
Line 314: WriteLiteral(" href=\"javascript://\"");
Line 315:
Line 316: WriteLiteral(" class=\"btn btn-success border-radius btn-lg\"");
Line 317:
Line 318: WriteAttribute("onclick", Tuple.Create(" onclick=\"", 3023), Tuple.Create("\"", 3057)
Line 319: , Tuple.Create(Tuple.Create("", 3033), Tuple.Create("addToCart(", 3033), true)
Line 320:
Line 321: #line 78 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 322: , Tuple.Create(Tuple.Create("", 3043), Tuple.Create<System.Object, System.Int32>(Model.BookID
Line 323:
Line 324: #line default
Line 325: #line hidden
Line 326: , 3043), false)
Line 327: , Tuple.Create(Tuple.Create("", 3056), Tuple.Create(")", 3056), true)
Line 328: );
Line 329:
Line 330: WriteLiteral(">افزودن به سبد</a>\r\n");
Line 331:
Line 332:
Line 333: #line 79 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 334:
Line 335:
Line 336: #line default
Line 337: #line hidden
Line 338:
Line 339: #line 79 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 340: if (!string.IsNullOrEmpty(Model.DemoFileAddress))
Line 341: {
Line 342:
Line 343:
Line 344: #line default
Line 345: #line hidden
Line 346: WriteLiteral(" <a");
Line 347:
Line 348: WriteLiteral(" href=\"javascript://\"");
Line 349:
Line 350: WriteLiteral(" class=\"btn btn-info border-radius btn-lg\"");
Line 351:
Line 352: WriteLiteral(">دانلود فایل دمو</a>\r\n");
Line 353:
Line 354:
Line 355: #line 82 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 356: }
Line 357:
Line 358:
Line 359: #line default
Line 360: #line hidden
Line 361: WriteLiteral(" </div>\r\n <br />\r\n </div>\r\n " +
Line 362: " <!-- End Detail -->\r\n\r\n <div");
Line 363:
Line 364: WriteLiteral(" class=\"clearfix\"");
Line 365:
Line 366: WriteLiteral("></div>\r\n </article>\r\n </section>\r\n\r\n\r\n <div");
Line 367:
Line 368: WriteLiteral(" class=\"tabs-product margin-top-25\"");
Line 369:
Line 370: WriteLiteral(">\r\n <ul");
Line 371:
Line 372: WriteLiteral(" class=\"nav nav-tabs\"");
Line 373:
Line 374: WriteLiteral(">\r\n <li");
Line 375:
Line 376: WriteLiteral(" class=\"active\"");
Line 377:
Line 378: WriteLiteral("><a");
Line 379:
Line 380: WriteLiteral(" data-toggle=\"tab\"");
Line 381:
Line 382: WriteLiteral(" href=\"#main-content\"");
Line 383:
Line 384: WriteLiteral("> توضیحات کامل </a></li>\r\n <li><a");
Line 385:
Line 386: WriteLiteral(" data-toggle=\"tab\"");
Line 387:
Line 388: WriteLiteral(" href=\"#properties\"");
Line 389:
Line 390: WriteLiteral("> ویژگی ها </a></li>\r\n <li><a");
Line 391:
Line 392: WriteLiteral(" data-toggle=\"tab\"");
Line 393:
Line 394: WriteLiteral(" href=\"#comments\"");
Line 395:
Line 396: WriteLiteral("> نظرات کاربران </a></li>\r\n </ul>\r\n\r\n <div");
Line 397:
Line 398: WriteLiteral(" class=\"tab-content \"");
Line 399:
Line 400: WriteLiteral(">\r\n\r\n <!-- description -->\r\n <div");
Line 401:
Line 402: WriteLiteral(" id=\"main-content\"");
Line 403:
Line 404: WriteLiteral(" class=\"tab-pane fade in active text-container\"");
Line 405:
Line 406: WriteLiteral(">\r\n <p>\r\n");
Line 407:
Line 408: WriteLiteral(" ");
Line 409:
Line 410:
Line 411: #line 105 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 412: Write(Html.Raw(Model.BookDescription));
Line 413:
Line 414:
Line 415: #line default
Line 416: #line hidden
Line 417: WriteLiteral("\r\n\r\n </p>\r\n </div>\r\n <!-- End de" +
Line 418: "scription -->\r\n <!-- Chart -->\r\n <div");
Line 419:
Line 420: WriteLiteral(" id=\"properties\"");
Line 421:
Line 422: WriteLiteral(" class=\"tab-pane fade\"");
Line 423:
Line 424: WriteLiteral(">\r\n <h3> ویژگی های محصول : </h3>\r\n\r\n <ul>\r\n" +
Line 425: " <li>تاریخ چاپ : ");
Line 426:
Line 427:
Line 428: #line 115 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 429: Write(Model.BookPrintDate);
Line 430:
Line 431:
Line 432: #line default
Line 433: #line hidden
Line 434: WriteLiteral("</li>\r\n <li> تاریخ نشر : ");
Line 435:
Line 436:
Line 437: #line 116 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 438: Write(Model.BookReleaseDate);
Line 439:
Line 440:
Line 441: #line default
Line 442: #line hidden
Line 443: WriteLiteral(" </li>\r\n <li>وزن : ");
Line 444:
Line 445:
Line 446: #line 117 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 447: Write(Model.BookWight);
Line 448:
Line 449:
Line 450: #line default
Line 451: #line hidden
Line 452: WriteLiteral("</li>\r\n <li>قطع :v ");
Line 453:
Line 454:
Line 455: #line 118 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 456: Write(Model.BookSize);
Line 457:
Line 458:
Line 459: #line default
Line 460: #line hidden
Line 461: WriteLiteral("</li>\r\n <li>نوع جلد : ");
Line 462:
Line 463:
Line 464: #line 119 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 465: Write(Model.BookCoverType);
Line 466:
Line 467:
Line 468: #line default
Line 469: #line hidden
Line 470: WriteLiteral("</li>\r\n <li>نام نوسینده : ");
Line 471:
Line 472:
Line 473: #line 120 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 474: Write(Model.BookWriter);
Line 475:
Line 476:
Line 477: #line default
Line 478: #line hidden
Line 479: WriteLiteral("</li>\r\n <li>شابک : ");
Line 480:
Line 481:
Line 482: #line 121 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 483: Write(Model.BookISBN);
Line 484:
Line 485:
Line 486: #line default
Line 487: #line hidden
Line 488: WriteLiteral("</li>\r\n <li>تعداد صفحه : ");
Line 489:
Line 490:
Line 491: #line 122 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 492: Write(Model.BookPageCount);
Line 493:
Line 494:
Line 495: #line default
Line 496: #line hidden
Line 497: WriteLiteral("</li>\r\n <li>دسته بندی : ");
Line 498:
Line 499:
Line 500: #line 123 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 501: Write(Model.Tag.Tag1);
Line 502:
Line 503:
Line 504: #line default
Line 505: #line hidden
Line 506: WriteLiteral("</li>\r\n\r\n </ul>\r\n </div>\r\n <!-- " +
Line 507: "End Chart -->\r\n <!-- Comment -->\r\n <div");
Line 508:
Line 509: WriteLiteral(" id=\"comments\"");
Line 510:
Line 511: WriteLiteral(" class=\"tab-pane fade\"");
Line 512:
Line 513: WriteLiteral(">\r\n <div");
Line 514:
Line 515: WriteLiteral(" class=\"comment-layer\"");
Line 516:
Line 517: WriteLiteral(">\r\n\r\n <div");
Line 518:
Line 519: WriteLiteral(" class=\"col-md-12\"");
Line 520:
Line 521: WriteLiteral(">\r\n <textarea");
Line 522:
Line 523: WriteLiteral(" class=\"form-control\"");
Line 524:
Line 525: WriteLiteral(" id=\"comment\"");
Line 526:
Line 527: WriteLiteral(" placeholder=\"متن دیدگاه\"");
Line 528:
Line 529: WriteLiteral("></textarea>\r\n");
Line 530:
Line 531:
Line 532: #line 134 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 533:
Line 534:
Line 535: #line default
Line 536: #line hidden
Line 537:
Line 538: #line 134 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 539: if (User.Identity.IsAuthenticated)
Line 540: {
Line 541:
Line 542:
Line 543: #line default
Line 544: #line hidden
Line 545: WriteLiteral(" <input");
Line 546:
Line 547: WriteLiteral(" class=\"btn btn-primary\"");
Line 548:
Line 549: WriteAttribute("onclick", Tuple.Create(" onclick=\"", 5549), Tuple.Create("\"", 5586)
Line 550: , Tuple.Create(Tuple.Create("", 5559), Tuple.Create("addComment(\'", 5559), true)
Line 551:
Line 552: #line 136 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 553: , Tuple.Create(Tuple.Create("", 5571), Tuple.Create<System.Object, System.Int32>(Model.BookID
Line 554:
Line 555: #line default
Line 556: #line hidden
Line 557: , 5571), false)
Line 558: , Tuple.Create(Tuple.Create("", 5584), Tuple.Create("\')", 5584), true)
Line 559: );
Line 560:
Line 561: WriteLiteral(" value=\"ثبت دیدگاه \"");
Line 562:
Line 563: WriteLiteral(" type=\"submit\"");
Line 564:
Line 565: WriteLiteral(">\r\n");
Line 566:
Line 567:
Line 568: #line 137 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 569: }
Line 570: else
Line 571: {
Line 572:
Line 573:
Line 574: #line default
Line 575: #line hidden
Line 576: WriteLiteral(" <input");
Line 577:
Line 578: WriteLiteral(" class=\"btn btn-primary\"");
Line 579:
Line 580: WriteLiteral(" value=\"ورود به سیستم وثبت دیدگاه \"");
Line 581:
Line 582: WriteLiteral(" type=\"submit\"");
Line 583:
Line 584: WriteLiteral(">\r\n");
Line 585:
Line 586:
Line 587: #line 141 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 588: }
Line 589:
Line 590:
Line 591: #line default
Line 592: #line hidden
Line 593: WriteLiteral("\r\n </div>\r\n <div");
Line 594:
Line 595: WriteLiteral(" class=\"clearfix\"");
Line 596:
Line 597: WriteLiteral("></div>\r\n\r\n <ul");
Line 598:
Line 599: WriteLiteral(" class=\"comment-list\"");
Line 600:
Line 601: WriteLiteral(">\r\n");
Line 602:
Line 603:
Line 604: #line 147 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 605:
Line 606:
Line 607: #line default
Line 608: #line hidden
Line 609:
Line 610: #line 147 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 611: foreach (DataLayer.Comment comment in Model.Comments.Where(c => c.IsConfirmed).ToList())
Line 612: {
Line 613:
Line 614:
Line 615: #line default
Line 616: #line hidden
Line 617: WriteLiteral(" <li>\r\n <div>\r\n" +
Line 618: " <h5>ارسال شده از : ");
Line 619:
Line 620:
Line 621: #line 151 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 622: Write(comment.username);
Line 623:
Line 624:
Line 625: #line default
Line 626: #line hidden
Line 627: WriteLiteral(" </h5>\r\n <p>\r\n");
Line 628:
Line 629: WriteLiteral(" ");
Line 630:
Line 631:
Line 632: #line 153 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 633: Write(comment.Comment1);
Line 634:
Line 635:
Line 636: #line default
Line 637: #line hidden
Line 638: WriteLiteral("\r\n </p>\r\n " +
Line 639: " </div>\r\n <div");
Line 640:
Line 641: WriteLiteral(" class=\"clearfix\"");
Line 642:
Line 643: WriteLiteral("></div>\r\n </li>\r\n");
Line 644:
Line 645:
Line 646: #line 158 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 647: }
Line 648:
Line 649:
Line 650: #line default
Line 651: #line hidden
Line 652: WriteLiteral("\r\n </ul>\r\n </div>\r\n\r\n </" +
Line 653: "div>\r\n <!-- End Comment -->\r\n\r\n\r\n\r\n </div>\r\n </" +
Line 654: "div>\r\n\r\n <section");
Line 655:
Line 656: WriteLiteral(" class=\"border-radius tags-layer\"");
Line 657:
Line 658: WriteLiteral(">\r\n");
Line 659:
Line 660:
Line 661: #line 172 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 662:
Line 663:
Line 664: #line default
Line 665: #line hidden
Line 666:
Line 667: #line 172 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 668: foreach (DataLayer.KeyWord keyWord in Model.KeyWords)
Line 669: {
Line 670:
Line 671:
Line 672: #line default
Line 673: #line hidden
Line 674: WriteLiteral(" <a");
Line 675:
Line 676: WriteLiteral(" href=\"\"");
Line 677:
Line 678: WriteLiteral(">");
Line 679:
Line 680:
Line 681: #line 174 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 682: Write(keyWord.KeyWord1);
Line 683:
Line 684:
Line 685: #line default
Line 686: #line hidden
Line 687: WriteLiteral("</a>\r\n");
Line 688:
Line 689:
Line 690: #line 175 "C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml"
Line 691: }
Line 692:
Line 693:
Line 694: #line default
Line 695: #line hidden
Line 696: WriteLiteral("\r\n </section>\r\n\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n<div");
Line 697:
Line 698: WriteLiteral(" class=\"clearfix\"");
Line 699:
Line 700: WriteLiteral(@"></div>
Line 701:
Line 702: <script>
Line 703: function addComment(Id) {
Line 704: var comment = $(""#comment"").val();
Line 705: $.ajax({
Line 706: url: ""/Home/AddComment/"",
Line 707: type: ""POST"", // نوع درخواست را بررسی کنید (به عنوان مثال: ""POST"" یا ""GET"")
Line 708: data: { bookId: Id, commentContent: comment }, // اطمینان حاصل کنید که اطلاعات را درون یک شیء جمعآوری کردهاید
Line 709: success: function (result) {
Line 710: Swal.fire(
Line 711: 'موفق!',
Line 712: 'دیدگاه شما ثبت شد پس از بازبینی منتشر خواهد شد',
Line 713: 'success'
Line 714: );
Line 715: }
Line 716: });
Line 717: }
Line 718:
Line 719: function GetCartCount() {
Line 720: $.ajax({
Line 721: url: ""/Cart/GetShopCartItemsCount"",
Line 722: type: ""Get""
Line 723: }).done(function (count) {
Line 724: $(""#CartCount"").html(count);
Line 725: });
Line 726: }
Line 727:
Line 728: function addToCart(id) {
Line 729: $.ajax({
Line 730: url: ""/Cart/AddToCart/"" + id,
Line 731: type: ""Get"",
Line 732: /**/
Line 733: }).done(function (result) {
Line 734: GetCartCount();
Line 735: Swal.fire(
Line 736: 'موفق!',
Line 737: 'با موفقیت به سبد خرید شما اضافه شد!',
Line 738: 'success'
Line 739: )
Line 740:
Line 741: });
Line 742:
Line 743: }
Line 744:
Line 745: </script>
Line 746: <script");
Line 747:
Line 748: WriteAttribute("src", Tuple.Create(" src=\"", 8342), Tuple.Create("\"", 8371)
Line 749: , Tuple.Create(Tuple.Create("", 8348), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/SweetAlert.js")
Line 750: , 8348), false)
Line 751: );
Line 752:
Line 753: WriteLiteral("></script>");
Line 754:
Line 755: }
Line 756: }
Line 757: }
Line 758:
|