Line 1: #pragma checksum "C:\Inetpub\vhosts\mop.gov.kh\httpdocs\Views\Partials\ListFileterNews.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0B115E516E6E079CFD1BD23297E2A1B898CEAF87"
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 WebMatrix.WebData;
Line 29: using WebMatrix.Data;
Line 30:
Line 31:
Line 32: public class _Page_Views_Partials_ListFileterNews_cshtml : System.Web.Mvc.WebViewPage<dynamic> {
Line 33:
Line 34: #line hidden
Line 35:
Line 36: public _Page_Views_Partials_ListFileterNews_cshtml() {
Line 37: }
Line 38:
Line 39: protected ASP.global_asax ApplicationInstance {
Line 40: get {
Line 41: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 42: }
Line 43: }
Line 44:
Line 45: public override void Execute() {
Line 46: WriteLiteral("\r\n");
Line 47:
Line 48:
Line 49: #line 2 "C:\Inetpub\vhosts\mop.gov.kh\httpdocs\Views\Partials\ListFileterNews.cshtml"
Line 50:
Line 51:
Line 52: #line default
Line 53: #line hidden
Line 54:
Line 55: #line 2 "C:\Inetpub\vhosts\mop.gov.kh\httpdocs\Views\Partials\ListFileterNews.cshtml"
Line 56: WebGrid gridProjects = new WebGrid(Model, rowsPerPage: 12);
Line 57:
Line 58: #line default
Line 59: #line hidden
Line 60: WriteLiteral("\r\n");
Line 61:
Line 62: WriteLiteral(" ");
Line 63:
Line 64:
Line 65: #line 3 "C:\Inetpub\vhosts\mop.gov.kh\httpdocs\Views\Partials\ListFileterNews.cshtml"
Line 66: Write(gridProjects.GetHtml(
Line 67: fillEmptyRows: false,
Line 68: mode: WebGridPagerModes.All,
Line 69: firstText: "<< First",
Line 70: nextText: "Next >",
Line 71: previousText: "< Previous",
Line 72: lastText: "Last >>",
Line 73: tableStyle: " m0 mb20 b1-gray font-12 table table-hover ",
Line 74: footerStyle: "text-center",
Line 75: headerStyle: "text-center text-white bg-gray",
Line 76:
Line 77: columns: new[]{
Line 78: gridProjects.Column(format: (item) =>
Line 79: {
Line 80: if (System.Threading.Thread.CurrentThread.CurrentUICulture.ToString().CompareTo("km-KH") == 0)
Line 81: {
Line 82:
Line 83: return Html.Raw(string.Format((string)item.Title_KH));
Line 84:
Line 85: }
Line 86: else
Line 87: {
Line 88: return Html.Raw(string.Format((string)item.Title_EN));
Line 89: }
Line 90:
Line 91: },style:"text-center width-20-per font-10;",header:@Resources.Global.TitleNews
Line 92:
Line 93: ),
Line 94: gridProjects.Column(format: (item) =>
Line 95: {
Line 96: if (System.Threading.Thread.CurrentThread.CurrentUICulture.ToString().CompareTo("km-KH") == 0)
Line 97: {
Line 98:
Line 99: return Html.Raw(("<a href='' data-toggle='modal' data-target='#CarViewModal_" + item.News_ID + "'><img src=" + item.EventImageKH + " style='vertical-align:middle' alt='(No Image)' class='img-rounded' width='50px', height='50px'/></a><div class='modal fade text-left' id='CarViewModal_" + item.News_ID + "' role='dialog'><div class='modal-dialog'><!-- Modal content--><div class='modal-content'><div class='modal-header'><button type='button' class='close' data-dismiss='modal'>×</button><h4 class='modal-title text-bold'>News</h4></div><div class='modal-body'><img src=" + item.EventImageKH + " style='vertical-align:middle' alt='(No Image)' class='img-rounded img-responsive' width='100%', height='100%'/></div><div class='modal-footer'><button type='button' class='btn btn-default' data-dismiss='modal'>Close</button></div></div></div></div>"));
Line 100:
Line 101:
Line 102: }
Line 103: else
Line 104: {
Line 105: return Html.Raw(("<a href='' data-toggle='modal' data-target='#CarViewModal_" + item.News_ID + "AA'><img src=" + item.EventImageEN + " style='vertical-align:middle' alt='(No Image)' class='img-rounded' width='50px', height='50px'/></a><div class='modal fade text-left' id='CarViewModal_" + item.News_ID + "AA' role='dialog'><div class='modal-dialog'><!-- Modal content--><div class='modal-content'><div class='modal-header'><button type='button' class='close' data-dismiss='modal'>×</button><h4 class='modal-title text-bold'>News</h4></div><div class='modal-body'><img src=" + item.EventImageEN + " style='vertical-align:middle' alt='(No Image)' class='img-rounded img-responsive' width='100%', height='100%'/></div><div class='modal-footer'><button type='button' class='btn btn-default' data-dismiss='modal'>Close</button></div></div></div></div>"));
Line 106:
Line 107: }
Line 108:
Line 109: },style:"text-center width-20-per font-10;",header:@Resources.Global.Description
Line 110: ),
Line 111: }
Line 112: ));
Line 113:
Line 114:
Line 115: #line default
Line 116: #line hidden
Line 117: }
Line 118: }
Line 119: }
Line 120:
|