Line 1: #pragma checksum "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7F48BEAA79AE6EFE15856DE723E9FAC33272B1E7"
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.Optimization;
Line 27: using System.Web.Routing;
Line 28: using WebMaster;
Line 29:
Line 30: #line 2 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 31: using PagedList.Mvc;
Line 32:
Line 33: #line default
Line 34: #line hidden
Line 35:
Line 36:
Line 37: public class _Page_Views_Home_Events_cshtml : System.Web.Mvc.WebViewPage<PagedList.IPagedList<AdminPanel.Models.CategoryDataModal>> {
Line 38:
Line 39: #line hidden
Line 40:
Line 41: public _Page_Views_Home_Events_cshtml() {
Line 42: }
Line 43:
Line 44: protected ASP.global_asax ApplicationInstance {
Line 45: get {
Line 46: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 47: }
Line 48: }
Line 49:
Line 50: public override void Execute() {
Line 51:
Line 52: #line 3 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 53:
Line 54: ViewBag.Title = "Events";
Line 55: Layout = "~/Views/Shared/_HomeLayout.cshtml";
Line 56:
Line 57:
Line 58: #line default
Line 59: #line hidden
Line 60: WriteLiteral(@"
Line 61: <style>
Line 62: .EventImg {
Line 63: z-index: 11;
Line 64: text-align: center;
Line 65: }
Line 66:
Line 67: .EventDate {
Line 68: background: #366c4d;
Line 69: z-index: 15;
Line 70: padding: 10px;
Line 71: margin: 0;
Line 72: color: #fff;
Line 73: font-size: 17px;
Line 74: }
Line 75:
Line 76: .EventDiv {
Line 77: background: #fff;
Line 78: height:300px;
Line 79: overflow:auto;
Line 80: }
Line 81: .pagehead h1{
Line 82: width:300px;
Line 83: }
Line 84: </style>
Line 85: <div");
Line 86:
Line 87: WriteLiteral(" class=\"container\"");
Line 88:
Line 89: WriteLiteral(">\r\n <div");
Line 90:
Line 91: WriteLiteral(" class=\"pagehead\"");
Line 92:
Line 93: WriteLiteral(">\r\n <h1>Events & Activities</h1>\r\n </div>\r\n <div");
Line 94:
Line 95: WriteLiteral(" class=\"row\"");
Line 96:
Line 97: WriteLiteral(">\r\n <div");
Line 98:
Line 99: WriteLiteral(" class=\"col-md-8\"");
Line 100:
Line 101: WriteLiteral(">\r\n\r\n \r\n");
Line 102:
Line 103:
Line 104: #line 39 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 105:
Line 106:
Line 107: #line default
Line 108: #line hidden
Line 109:
Line 110: #line 39 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 111: foreach (var data in Model)
Line 112: {
Line 113:
Line 114:
Line 115:
Line 116: #line default
Line 117: #line hidden
Line 118: WriteLiteral(" <div");
Line 119:
Line 120: WriteLiteral(" class=\"col-md-12 Marginbottom\"");
Line 121:
Line 122: WriteLiteral(" style=\"border-bottom:1px solid #eee\"");
Line 123:
Line 124: WriteLiteral(">\r\n <div");
Line 125:
Line 126: WriteLiteral(" class=\"col-md-4 EventImg\"");
Line 127:
Line 128: WriteLiteral(">\r\n <img");
Line 129:
Line 130: WriteAttribute("src", Tuple.Create(" src=\"", 964), Tuple.Create("\"", 1023)
Line 131: , Tuple.Create(Tuple.Create("", 970), Tuple.Create("http://sscollege.ac.in/Uploads/Images/", 970), true)
Line 132:
Line 133: #line 44 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 134: , Tuple.Create(Tuple.Create("", 1008), Tuple.Create<System.Object, System.Int32>(data.ImageName
Line 135:
Line 136: #line default
Line 137: #line hidden
Line 138: , 1008), false)
Line 139: );
Line 140:
Line 141: WriteLiteral(" class=\"img-responsive\"");
Line 142:
Line 143: WriteLiteral(" />\r\n <p");
Line 144:
Line 145: WriteLiteral(" class=\"text-center EventDate\"");
Line 146:
Line 147: WriteLiteral(" style=\"color:white; padding: 20px;\"");
Line 148:
Line 149: WriteLiteral(">\r\n");
Line 150:
Line 151: WriteLiteral(" ");
Line 152:
Line 153:
Line 154: #line 46 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 155: Write(data.Date.Value.ToString("dddd"));
Line 156:
Line 157:
Line 158: #line default
Line 159: #line hidden
Line 160: WriteLiteral("<br />\r\n <strong");
Line 161:
Line 162: WriteLiteral(" style=\"font-size:21px;\"");
Line 163:
Line 164: WriteLiteral(">");
Line 165:
Line 166:
Line 167: #line 47 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 168: Write(data.Date.Value.Day);
Line 169:
Line 170:
Line 171: #line default
Line 172: #line hidden
Line 173: WriteLiteral("</strong> <br />\r\n");
Line 174:
Line 175: WriteLiteral(" ");
Line 176:
Line 177:
Line 178: #line 48 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 179: Write(data.Date.Value.ToString("MMMM"));
Line 180:
Line 181:
Line 182: #line default
Line 183: #line hidden
Line 184: WriteLiteral("\r\n </p>\r\n \r\n \r\n </div>\r\n " +
Line 185: " <div");
Line 186:
Line 187: WriteLiteral(" class=\"col-md-8 EventDiv\"");
Line 188:
Line 189: WriteLiteral(">\r\n <h2>");
Line 190:
Line 191:
Line 192: #line 54 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 193: Write(data.DataCaption);
Line 194:
Line 195:
Line 196: #line default
Line 197: #line hidden
Line 198: WriteLiteral("</h2>\r\n <div");
Line 199:
Line 200: WriteLiteral(" class=\"DescBox\"");
Line 201:
Line 202: WriteLiteral(">\r\n");
Line 203:
Line 204: WriteLiteral(" ");
Line 205:
Line 206:
Line 207: #line 56 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 208: Write(Html.Raw(!String.IsNullOrEmpty(data.DataDescription) ? data.DataDescription.Substring(0, Math.Min(data.DataDescription.Length, 400)) : ""));
Line 209:
Line 210:
Line 211: #line default
Line 212: #line hidden
Line 213: WriteLiteral("\r\n </div>\r\n \r\n <a");
Line 214:
Line 215: WriteLiteral(" class=\"btn btn-default\"");
Line 216:
Line 217: WriteLiteral(" style=\"float: right; margin-top: 12px;margin-right:10px;\"");
Line 218:
Line 219: WriteAttribute("href", Tuple.Create(" href=\"", 1854), Tuple.Create("\"", 1922)
Line 220:
Line 221: #line 59 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 222: , Tuple.Create(Tuple.Create("", 1861), Tuple.Create<System.Object, System.Int32>(Url.Action("EventsDetail", "Home", new { id = data.DataID })
Line 223:
Line 224: #line default
Line 225: #line hidden
Line 226: , 1861), false)
Line 227: );
Line 228:
Line 229: WriteLiteral("><i");
Line 230:
Line 231: WriteLiteral(" class=\"fa fa-calendar\"");
Line 232:
Line 233: WriteLiteral(" aria-hidden=\"true\"");
Line 234:
Line 235: WriteLiteral("></i>Read More</a>\r\n <h5");
Line 236:
Line 237: WriteLiteral(" style=\"float:left;margin-top:15px;\"");
Line 238:
Line 239: WriteLiteral("><i");
Line 240:
Line 241: WriteLiteral(" class=\"fa fa-map-marker\"");
Line 242:
Line 243: WriteLiteral("></i> ");
Line 244:
Line 245:
Line 246: #line 60 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 247: Write(data.Location);
Line 248:
Line 249:
Line 250: #line default
Line 251: #line hidden
Line 252: WriteLiteral("</h5>\r\n </div>\r\n </div>\r\n");
Line 253:
Line 254:
Line 255: #line 63 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 256:
Line 257: }
Line 258:
Line 259:
Line 260: #line default
Line 261: #line hidden
Line 262: WriteLiteral(" \r\n\r\n <div");
Line 263:
Line 264: WriteLiteral(" class=\"col-md-12\"");
Line 265:
Line 266: WriteLiteral(">\r\n <center>\r\n <div");
Line 267:
Line 268: WriteLiteral(" class=\"pageCount\"");
Line 269:
Line 270: WriteLiteral(">\r\n Page ");
Line 271:
Line 272:
Line 273: #line 70 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 274: Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);
Line 275:
Line 276:
Line 277: #line default
Line 278: #line hidden
Line 279: WriteLiteral(" of ");
Line 280:
Line 281:
Line 282: #line 70 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 283: Write(Model.PageCount);
Line 284:
Line 285:
Line 286: #line default
Line 287: #line hidden
Line 288: WriteLiteral("\r\n </div>\r\n");
Line 289:
Line 290: WriteLiteral(" ");
Line 291:
Line 292:
Line 293: #line 72 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 294: Write(Html.PagedListPager(Model, id => Url.Action("News", new { id })));
Line 295:
Line 296:
Line 297: #line default
Line 298: #line hidden
Line 299: WriteLiteral("\r\n </center>\r\n </div>\r\n </div>\r\n\r\n <div");
Line 300:
Line 301: WriteLiteral(" class=\"col-md-4\"");
Line 302:
Line 303: WriteLiteral(" id=\"one\"");
Line 304:
Line 305: WriteLiteral(">\r\n <div");
Line 306:
Line 307: WriteLiteral(" class=\"news\"");
Line 308:
Line 309: WriteLiteral(">\r\n <h2");
Line 310:
Line 311: WriteLiteral(" style=\"width:170px;\"");
Line 312:
Line 313: WriteLiteral(">News Updates</h2>\r\n <hr");
Line 314:
Line 315: WriteLiteral(" class=\"MyLine\"");
Line 316:
Line 317: WriteLiteral(" />\r\n\r\n <div");
Line 318:
Line 319: WriteLiteral(" class=\"vticker\"");
Line 320:
Line 321: WriteLiteral(">\r\n <ul>\r\n");
Line 322:
Line 323:
Line 324: #line 84 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 325:
Line 326:
Line 327: #line default
Line 328: #line hidden
Line 329:
Line 330: #line 84 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 331: foreach (var data in ViewBag.News)
Line 332: {
Line 333:
Line 334:
Line 335: #line default
Line 336: #line hidden
Line 337: WriteLiteral(" <li>\r\n <h6");
Line 338:
Line 339: WriteLiteral(" class=\"newsleft\"");
Line 340:
Line 341: WriteLiteral(" style=\"margin:8px 0;\"");
Line 342:
Line 343: WriteLiteral(">");
Line 344:
Line 345:
Line 346: #line 87 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 347: Write(data.DataCaption);
Line 348:
Line 349:
Line 350: #line default
Line 351: #line hidden
Line 352: WriteLiteral("</h6>\r\n <h6>\r\n");
Line 353:
Line 354:
Line 355: #line 89 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 356:
Line 357:
Line 358: #line default
Line 359: #line hidden
Line 360:
Line 361: #line 89 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 362: if (data.DataDescription.Length > 80)
Line 363: {
Line 364:
Line 365: #line default
Line 366: #line hidden
Line 367:
Line 368: #line 90 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 369: Write(data.DataDescription.Substring(0, 80));
Line 370:
Line 371:
Line 372: #line default
Line 373: #line hidden
Line 374:
Line 375: #line 90 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 376: }
Line 377: else
Line 378: {
Line 379:
Line 380: #line default
Line 381: #line hidden
Line 382:
Line 383: #line 92 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 384: Write(data.DataDescription);
Line 385:
Line 386:
Line 387: #line default
Line 388: #line hidden
Line 389:
Line 390: #line 92 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 391: }
Line 392:
Line 393:
Line 394: #line default
Line 395: #line hidden
Line 396: WriteLiteral(" </h6>\r\n <p");
Line 397:
Line 398: WriteLiteral(" class=\"newsright\"");
Line 399:
Line 400: WriteLiteral(">\r\n <i");
Line 401:
Line 402: WriteLiteral(" class=\"fa fa-calendar\"");
Line 403:
Line 404: WriteLiteral(" aria-hidden=\"true\"");
Line 405:
Line 406: WriteLiteral("></i> ");
Line 407:
Line 408:
Line 409: #line 95 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 410: if (data.Date == null) { }
Line 411: else
Line 412: {
Line 413:
Line 414: #line default
Line 415: #line hidden
Line 416:
Line 417: #line 97 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 418: Write(data.Date.ToShortDateString());
Line 419:
Line 420:
Line 421: #line default
Line 422: #line hidden
Line 423:
Line 424: #line 97 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 425: ;
Line 426: }
Line 427:
Line 428: #line default
Line 429: #line hidden
Line 430: WriteLiteral(" | \r\n " +
Line 431: " <span");
Line 432:
Line 433: WriteLiteral(" class=\"text-right\"");
Line 434:
Line 435: WriteLiteral(">\r\n <a");
Line 436:
Line 437: WriteAttribute("onclick", Tuple.Create(" onclick=\"", 3855), Tuple.Create("\"", 3891)
Line 438: , Tuple.Create(Tuple.Create("", 3865), Tuple.Create("NewsDetail(\'", 3865), true)
Line 439:
Line 440: #line 100 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 441: , Tuple.Create(Tuple.Create("", 3877), Tuple.Create<System.Object, System.Int32>(data.DataID
Line 442:
Line 443: #line default
Line 444: #line hidden
Line 445: , 3877), false)
Line 446: , Tuple.Create(Tuple.Create("", 3889), Tuple.Create("\')", 3889), true)
Line 447: );
Line 448:
Line 449: WriteLiteral(">ReadMore </a>\r\n </span>\r\n " +
Line 450: " </p>\r\n </li>\r\n");
Line 451:
Line 452:
Line 453: #line 104 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 454: }
Line 455:
Line 456:
Line 457: #line default
Line 458: #line hidden
Line 459: WriteLiteral(" </ul>\r\n </div>\r\n <!-- Vticker -" +
Line 460: "->\r\n\r\n <a");
Line 461:
Line 462: WriteLiteral(" class=\"btn btn-default\"");
Line 463:
Line 464: WriteAttribute("href", Tuple.Create(" href=\"", 4182), Tuple.Create("\"", 4216)
Line 465:
Line 466: #line 109 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 467: , Tuple.Create(Tuple.Create("", 4189), Tuple.Create<System.Object, System.Int32>(Url.Action("News", "Home")
Line 468:
Line 469: #line default
Line 470: #line hidden
Line 471: , 4189), false)
Line 472: );
Line 473:
Line 474: WriteLiteral(" style=\"float: right;margin-top: 35px;margin-right: 15px;\"");
Line 475:
Line 476: WriteLiteral("><i");
Line 477:
Line 478: WriteLiteral(" class=\"fa fa-newspaper-o\"");
Line 479:
Line 480: WriteLiteral(" aria-hidden=\"true\"");
Line 481:
Line 482: WriteLiteral(@"></i>All News</a>
Line 483: </div>
Line 484: <!--ENd col-md-3 news-->
Line 485: </div>
Line 486: </div>
Line 487: <!----Events Details-->
Line 488: <!---END Events detls-->
Line 489: </div>
Line 490:
Line 491: <script>
Line 492: $(document).ready(function () {
Line 493: var dd = $('.vticker').easyTicker({
Line 494: direction: 'up',
Line 495: easing: '',
Line 496: speed: 'slow',
Line 497: interval: 3000,
Line 498: height: 444,
Line 499: visible: 3,
Line 500: mousePause: 1,
Line 501:
Line 502: })
Line 503: });
Line 504: </script>
Line 505: <!-- News Modal -->
Line 506: <div");
Line 507:
Line 508: WriteLiteral(" class=\"modal\"");
Line 509:
Line 510: WriteLiteral(" id=\"myModal\"");
Line 511:
Line 512: WriteLiteral(" data-keyboard=\"false\"");
Line 513:
Line 514: WriteLiteral(" data-backdrop=\"static\"");
Line 515:
Line 516: WriteLiteral(">\r\n <div");
Line 517:
Line 518: WriteLiteral(" class=\"modal-dialog animated fadeIn\"");
Line 519:
Line 520: WriteLiteral(">\r\n <div");
Line 521:
Line 522: WriteLiteral(" class=\"modal-content\"");
Line 523:
Line 524: WriteLiteral(">\r\n\r\n <!-- Modal Header -->\r\n <div");
Line 525:
Line 526: WriteLiteral(" class=\"modal-header\"");
Line 527:
Line 528: WriteLiteral(">\r\n <h4");
Line 529:
Line 530: WriteLiteral(" class=\"modal-title\"");
Line 531:
Line 532: WriteLiteral(" id=\"lblCaption\"");
Line 533:
Line 534: WriteLiteral(">News</h4>\r\n ");
Line 535:
Line 536: WriteLiteral("\r\n </div>\r\n\r\n <!-- Modal body -->\r\n <div");
Line 537:
Line 538: WriteLiteral(" class=\"modal-body\"");
Line 539:
Line 540: WriteLiteral(">\r\n <h5");
Line 541:
Line 542: WriteLiteral(" id=\"lblDate\"");
Line 543:
Line 544: WriteLiteral("></h5>\r\n <div");
Line 545:
Line 546: WriteLiteral(" id=\"lblDescription\"");
Line 547:
Line 548: WriteLiteral(" class=\"DescBox\"");
Line 549:
Line 550: WriteLiteral("></div>\r\n </div>\r\n\r\n <!-- Modal footer -->\r\n <di" +
Line 551: "v");
Line 552:
Line 553: WriteLiteral(" class=\"modal-footer\"");
Line 554:
Line 555: WriteLiteral(">\r\n <button");
Line 556:
Line 557: WriteLiteral(" type=\"button\"");
Line 558:
Line 559: WriteLiteral(" class=\"btn btn-danger ModalButton\"");
Line 560:
Line 561: WriteLiteral(" data-dismiss=\"modal\"");
Line 562:
Line 563: WriteLiteral(">Close</button>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n</div>\r\n<!-- E" +
Line 564: "ND News Modal -->\r\n<script>\r\n function NewsDetail(id) {\r\n $.ajax({\r\n " +
Line 565: " url: \'");
Line 566:
Line 567:
Line 568: #line 161 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\Events.cshtml"
Line 569: Write(Url.Action("GetNews", "Home"));
Line 570:
Line 571:
Line 572: #line default
Line 573: #line hidden
Line 574: WriteLiteral(@"',
Line 575: data: { 'id': id },
Line 576: type: 'GET',
Line 577: dataType: 'JSON',
Line 578: success: function (data) {
Line 579: var DataID = data.DataID;
Line 580: $(""#lblCaption"").html(data.DataCaption);
Line 581: $(""#lblDescription"").html(data.DataDescription);
Line 582: var DataText = data.DataText;
Line 583: var pieces = DecodeJsonDate(data.Date).split('/');
Line 584: $(""#lblDate"").html(pieces.join('-'));
Line 585: $('#myModal').modal('show');
Line 586: }
Line 587: });
Line 588: }
Line 589: </script>");
Line 590:
Line 591: }
Line 592: }
Line 593: }
Line 594:
|