Line 1: #pragma checksum "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "008B006E2B6EAF2ABCC7D13A2896309D8A2090A0"
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\News.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_News_cshtml : System.Web.Mvc.WebViewPage<PagedList.IPagedList<AdminPanel.Models.CategoryDataModal>> {
Line 38:
Line 39: #line hidden
Line 40:
Line 41: public _Page_Views_Home_News_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\News.cshtml"
Line 53:
Line 54: ViewBag.Title = "News";
Line 55: Layout = "~/Views/Shared/_HomeLayout.cshtml";
Line 56:
Line 57:
Line 58: #line default
Line 59: #line hidden
Line 60: WriteLiteral(@"
Line 61:
Line 62: <style>
Line 63: .well {
Line 64: margin-top: 10px;
Line 65: margin-bottom: 35px;
Line 66: padding-bottom: 30px;
Line 67: }
Line 68:
Line 69: .eventdate {
Line 70: margin-top: 0px;
Line 71: }
Line 72:
Line 73: .read {
Line 74: position: absolute;
Line 75: right: 45px;
Line 76: bottom: 10px;
Line 77: float: right;
Line 78: font-weight: 500;
Line 79: text-decoration: underline;
Line 80: }
Line 81:
Line 82: .NewsSingle {
Line 83: padding-bottom: 20px;
Line 84: }
Line 85: .pagehead h1{
Line 86: width:300px;
Line 87: }
Line 88:
Line 89: </style>
Line 90:
Line 91: <div");
Line 92:
Line 93: WriteLiteral(" class=\"container\"");
Line 94:
Line 95: WriteLiteral(">\r\n <div");
Line 96:
Line 97: WriteLiteral(" class=\"pagehead\"");
Line 98:
Line 99: WriteLiteral(">\r\n <h1>NEWS UPDATES</h1>\r\n </div>\r\n <div");
Line 100:
Line 101: WriteLiteral(" class=\"row\"");
Line 102:
Line 103: WriteLiteral(">\r\n <div");
Line 104:
Line 105: WriteLiteral(" class=\"col-md-10 col-md-offset-1\"");
Line 106:
Line 107: WriteLiteral(">\r\n");
Line 108:
Line 109:
Line 110: #line 43 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 111:
Line 112:
Line 113: #line default
Line 114: #line hidden
Line 115:
Line 116: #line 43 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 117: foreach (var data in Model)
Line 118: {
Line 119:
Line 120:
Line 121: #line default
Line 122: #line hidden
Line 123: WriteLiteral(" <div");
Line 124:
Line 125: WriteLiteral(" class=\"NewsSingle\"");
Line 126:
Line 127: WriteLiteral(">\r\n <div");
Line 128:
Line 129: WriteLiteral(" class=\"col-sm-10\"");
Line 130:
Line 131: WriteLiteral(" style=\"font-size: x-large; color:green;\"");
Line 132:
Line 133: WriteLiteral(">");
Line 134:
Line 135:
Line 136: #line 46 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 137: Write(data.DataCaption);
Line 138:
Line 139:
Line 140: #line default
Line 141: #line hidden
Line 142: WriteLiteral("</div>\r\n <div");
Line 143:
Line 144: WriteLiteral(" class=\"col-sm-2 eventdate\"");
Line 145:
Line 146: WriteLiteral(">\r\n");
Line 147:
Line 148:
Line 149: #line 48 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 150:
Line 151:
Line 152: #line default
Line 153: #line hidden
Line 154:
Line 155: #line 48 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 156: if (data.Date == null) { }
Line 157: else
Line 158: {
Line 159:
Line 160:
Line 161: #line default
Line 162: #line hidden
Line 163:
Line 164: #line 51 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 165: Write(data.Date.Value.ToString("dd-MMM-yyyy"));
Line 166:
Line 167:
Line 168: #line default
Line 169: #line hidden
Line 170:
Line 171: #line 51 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 172:
Line 173: }
Line 174:
Line 175:
Line 176: #line default
Line 177: #line hidden
Line 178: WriteLiteral(" </div>\r\n\r\n <div");
Line 179:
Line 180: WriteLiteral(" class=\"col-sm-12 well\"");
Line 181:
Line 182: WriteLiteral(">\r\n");
Line 183:
Line 184:
Line 185: #line 56 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 186:
Line 187:
Line 188: #line default
Line 189: #line hidden
Line 190:
Line 191: #line 56 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 192: if (data.DataDescription.Length < 600)
Line 193: {
Line 194:
Line 195:
Line 196: #line default
Line 197: #line hidden
Line 198: WriteLiteral(" <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 59 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 208: Write(data.DataDescription);
Line 209:
Line 210:
Line 211: #line default
Line 212: #line hidden
Line 213: WriteLiteral("\r\n </div>\r\n");
Line 214:
Line 215: WriteLiteral(" <a");
Line 216:
Line 217: WriteLiteral(" class=\"read\"");
Line 218:
Line 219: WriteAttribute("onclick", Tuple.Create(" onclick=\"", 1646), Tuple.Create("\"", 1682)
Line 220: , Tuple.Create(Tuple.Create("", 1656), Tuple.Create("NewsDetail(\'", 1656), true)
Line 221:
Line 222: #line 61 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 223: , Tuple.Create(Tuple.Create("", 1668), Tuple.Create<System.Object, System.Int32>(data.DataID
Line 224:
Line 225: #line default
Line 226: #line hidden
Line 227: , 1668), false)
Line 228: , Tuple.Create(Tuple.Create("", 1680), Tuple.Create("\')", 1680), true)
Line 229: );
Line 230:
Line 231: WriteLiteral(">Read More</a>\r\n");
Line 232:
Line 233:
Line 234: #line 62 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 235: }
Line 236: else
Line 237: {
Line 238:
Line 239:
Line 240: #line default
Line 241: #line hidden
Line 242: WriteLiteral(" <div");
Line 243:
Line 244: WriteLiteral(" class=\"DescBox\"");
Line 245:
Line 246: WriteLiteral(">\r\n");
Line 247:
Line 248: WriteLiteral(" ");
Line 249:
Line 250:
Line 251: #line 66 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 252: Write(data.DataDescription.Substring(0, 600));
Line 253:
Line 254:
Line 255: #line default
Line 256: #line hidden
Line 257: WriteLiteral("\r\n </div>\r\n");
Line 258:
Line 259: WriteLiteral(" <a");
Line 260:
Line 261: WriteLiteral(" class=\"read\"");
Line 262:
Line 263: WriteAttribute("onclick", Tuple.Create(" onclick=\"", 1986), Tuple.Create("\"", 2022)
Line 264: , Tuple.Create(Tuple.Create("", 1996), Tuple.Create("NewsDetail(\'", 1996), true)
Line 265:
Line 266: #line 68 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 267: , Tuple.Create(Tuple.Create("", 2008), Tuple.Create<System.Object, System.Int32>(data.DataID
Line 268:
Line 269: #line default
Line 270: #line hidden
Line 271: , 2008), false)
Line 272: , Tuple.Create(Tuple.Create("", 2020), Tuple.Create("\')", 2020), true)
Line 273: );
Line 274:
Line 275: WriteLiteral(">Read More</a>\r\n");
Line 276:
Line 277:
Line 278: #line 69 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 279: }
Line 280:
Line 281:
Line 282: #line default
Line 283: #line hidden
Line 284: WriteLiteral(" </div>\r\n\r\n </div>\r\n");
Line 285:
Line 286:
Line 287: #line 73 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 288: }
Line 289:
Line 290:
Line 291: #line default
Line 292: #line hidden
Line 293: WriteLiteral(" </div>\r\n\r\n </div>\r\n\r\n <div");
Line 294:
Line 295: WriteLiteral(" id=\"container text-center MyPagination\"");
Line 296:
Line 297: WriteLiteral(">\r\n <div");
Line 298:
Line 299: WriteLiteral(" class=\"pagination\"");
Line 300:
Line 301: WriteLiteral(">\r\n");
Line 302:
Line 303: WriteLiteral(" ");
Line 304:
Line 305:
Line 306: #line 80 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 307: Write(Html.PagedListPager(Model, id => Url.Action("News", new { id })));
Line 308:
Line 309:
Line 310: #line default
Line 311: #line hidden
Line 312: WriteLiteral("\r\n <div");
Line 313:
Line 314: WriteLiteral(" class=\"pageCount\"");
Line 315:
Line 316: WriteLiteral(">\r\n Page ");
Line 317:
Line 318:
Line 319: #line 82 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 320: Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);
Line 321:
Line 322:
Line 323: #line default
Line 324: #line hidden
Line 325: WriteLiteral(" of ");
Line 326:
Line 327:
Line 328: #line 82 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 329: Write(Model.PageCount);
Line 330:
Line 331:
Line 332: #line default
Line 333: #line hidden
Line 334: WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n ");
Line 335:
Line 336: WriteLiteral("\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!-- The Modal -->\r\n<div");
Line 337:
Line 338: WriteLiteral(" class=\"modal\"");
Line 339:
Line 340: WriteLiteral(" id=\"myModal\"");
Line 341:
Line 342: WriteLiteral(" data-keyboard=\"false\"");
Line 343:
Line 344: WriteLiteral(" data-backdrop=\"static\"");
Line 345:
Line 346: WriteLiteral(">\r\n <div");
Line 347:
Line 348: WriteLiteral(" class=\"modal-dialog animated fadeIn\"");
Line 349:
Line 350: WriteLiteral(">\r\n <div");
Line 351:
Line 352: WriteLiteral(" class=\"modal-content\"");
Line 353:
Line 354: WriteLiteral(">\r\n\r\n <!-- Modal Header -->\r\n <div");
Line 355:
Line 356: WriteLiteral(" class=\"modal-header\"");
Line 357:
Line 358: WriteLiteral(">\r\n <h4");
Line 359:
Line 360: WriteLiteral(" class=\"modal-title\"");
Line 361:
Line 362: WriteLiteral(" id=\"lblCaption\"");
Line 363:
Line 364: WriteLiteral(">News</h4>\r\n ");
Line 365:
Line 366: WriteLiteral("\r\n </div>\r\n\r\n <!-- Modal body -->\r\n <div");
Line 367:
Line 368: WriteLiteral(" class=\"modal-body\"");
Line 369:
Line 370: WriteLiteral(">\r\n <h5");
Line 371:
Line 372: WriteLiteral(" id=\"lblDate\"");
Line 373:
Line 374: WriteLiteral("></h5>\r\n <div");
Line 375:
Line 376: WriteLiteral(" id=\"lblDescription\"");
Line 377:
Line 378: WriteLiteral(" class=\"DescBox\"");
Line 379:
Line 380: WriteLiteral("></div>\r\n </div>\r\n\r\n <!-- Modal footer -->\r\n <di" +
Line 381: "v");
Line 382:
Line 383: WriteLiteral(" class=\"modal-footer\"");
Line 384:
Line 385: WriteLiteral(">\r\n <button");
Line 386:
Line 387: WriteLiteral(" type=\"button\"");
Line 388:
Line 389: WriteLiteral(" class=\"btn btn-danger ModalButton\"");
Line 390:
Line 391: WriteLiteral(" data-dismiss=\"modal\"");
Line 392:
Line 393: WriteLiteral(">Close</button>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n" +
Line 394: "<script>\r\n function NewsDetail(id) {\r\n $.ajax({\r\n url: \'");
Line 395:
Line 396:
Line 397: #line 136 "D:\WEBSPACE\sscollege.ac.in\httpdocs\Views\Home\News.cshtml"
Line 398: Write(Url.Action("GetNews", "Home"));
Line 399:
Line 400:
Line 401: #line default
Line 402: #line hidden
Line 403: WriteLiteral(@"',
Line 404: data: { 'id': id },
Line 405: type: 'GET',
Line 406: dataType: 'JSON',
Line 407: success: function (data) {
Line 408: var DataID = data.DataID;
Line 409: $(""#lblCaption"").html(data.DataCaption);
Line 410: $(""#lblDescription"").html(data.DataDescription);
Line 411: var DataText = data.DataText;
Line 412: var pieces = DecodeJsonDate(data.Date).split('/');
Line 413: $(""#lblDate"").html(pieces.join('-'));
Line 414: $('#myModal').modal('show');
Line 415: }
Line 416: });
Line 417: }
Line 418: </script>
Line 419: ");
Line 420:
Line 421: }
Line 422: }
Line 423: }
Line 424:
|