Line 1: #pragma checksum "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DEAA63C42A2A23EF236446795C87D8E340298FCD"
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 Orchard.Mvc.Html;
Line 28: using WebMatrix.WebData;
Line 29: using WebMatrix.Data;
Line 30:
Line 31:
Line 32: public class _Page_Themes_Scg_Views_boxfooter_cshtml : Orchard.Mvc.ViewEngines.Razor.WebViewPage<dynamic> {
Line 33:
Line 34: #line hidden
Line 35:
Line 36: public _Page_Themes_Scg_Views_boxfooter_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:
Line 47: #line 1 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 48:
Line 49: Func<dynamic, dynamic> Zone = x => Display(x);
Line 50: var db = Database.Open("databaseconnect");
Line 51: var selectQueryString = " ";
Line 52: var promo_uri = "";
Line 53: var chat_image = "/Media/Default/2020/Home/FixFooter/banner01.jpg";
Line 54:
Line 55: if (@Request.Url.AbsoluteUri.IndexOf("dealer/scg-experience") != -1)
Line 56: {
Line 57: promo_uri = "/th/form/consult-register?promo_code=SCGXP";
Line 58: }
Line 59: else if (@Request.Url.AbsoluteUri.IndexOf("dealer/scg-home-solution") != -1)
Line 60: {
Line 61: promo_uri = "/th/form/consult-register?promo_code=SCGHS";
Line 62: }
Line 63: else if (@Request.Url.AbsoluteUri.IndexOf("dealer/home-solution") != -1)
Line 64: {
Line 65: promo_uri = "/th/form/consult-register?promo_code=SCGHS";
Line 66: }
Line 67: else if (@Request.Url.AbsoluteUri.IndexOf("th/home-solution") != -1)
Line 68: {
Line 69: promo_uri = "/th/form/consult-register?promo_code=SCGHS";
Line 70: }
Line 71: else
Line 72: {
Line 73: promo_uri = "/th/form/consult-register";
Line 74: }
Line 75: if (
Line 76: @Request.Url.AbsoluteUri.IndexOf("/solution/active-air-flow") != -1
Line 77: ){
Line 78: promo_uri = "/th/form/roof/aaf-consult";
Line 79: }
Line 80: if (
Line 81: @Request.Url.AbsoluteUri.IndexOf("/solution/active-airquality") != -1
Line 82: ){
Line 83: promo_uri = "/th/form/roof-scg-active-airquality";
Line 84: }
Line 85: if (
Line 86: @Request.Url.AbsoluteUri.IndexOf("/solution/heatsolutions") != -1 || @Request.Url.AbsoluteUri.IndexOf("/solution/heatsolutions-newhouse") != -1
Line 87: ){
Line 88: promo_uri = "/th/form/roof/heat-solution-consult";
Line 89: }
Line 90: if (
Line 91: @Request.Url.AbsoluteUri.IndexOf("/solution/living-comfort-solutions") != -1
Line 92: ){
Line 93: promo_uri = "/th/form/roof/living-comfort-consult";
Line 94: }
Line 95:
Line 96:
Line 97: //var promo_uri = "";
Line 98: //var openchat = " onclick=\"window.convolab.toggleChat()\" ";
Line 99: var button_header_text = "";
Line 100: var button_header_url = "";
Line 101: var button_header_enabled = " display:none; ";
Line 102: var shopnow_header_text = "";
Line 103: var shopnow_header_url = "";
Line 104: var shopnow_header_enabled = " display:none; ";
Line 105: var chat_text = "แชทกับเรา";
Line 106: var footer_fix_hide = "";
Line 107: var footer_jquery = " $('.footer-fix').fadeIn('3000');";
Line 108: var search_jquery = " $('.search-icon-mobile1').fadeIn('3000'); ";
Line 109: var google_js_map = "";
Line 110: var selectQueryString_urlcustom = "";
Line 111: var consult = "";
Line 112:
Line 113: string[] hhlink = new string[20];
Line 114: selectQueryString_urlcustom="select top 1 isnull(urlname,'') urlname,isnull(urlcontain,'') urlcontain,isnull(urldoenotcontain,'') urldoenotcontain,isnull(active_utm,'') active_utm,isnull(active_utm2,'') active_utm2,isnull(active_utm3,'') active_utm3,isnull(url_utm,'') url_utm,isnull(utm_header,'') utm_header,isnull(utm_banner,'') utm_banner,isnull(utm_footer,'') utm_footer,isnull(shownow,'') shownow,isnull(url_show,'') url_show,isnull(shop_header,'') shop_header,isnull(shop_banner,'') shop_banner,isnull(shop_footer,'') shop_footer,isnull(active_shop,'') active_shop,isnull(active_shop2,'') active_shop2,isnull(active_shop3,'') active_shop3,isnull(active,'') active,isnull(recorddate,'') recorddate,isnull(userid,'') userid,isnull(utm_name,'') utm_name,isnull(shop_name,'') shop_name ";
Line 115: selectQueryString_urlcustom +=" from Orchard_Url_custom ";
Line 116: selectQueryString_urlcustom += "where active='1' and (((PATINDEX('%'+urlcontain+'%','" + Request.Url.AbsolutePath.ToString() + "') > 0) and ( urldoenotcontain='' or PATINDEX('%'+urldoenotcontain+'%','" + Request.Url.AbsolutePath.ToString() + "') = 0 ))) or id = 1";
Line 117: selectQueryString_urlcustom +=" order by id desc";
Line 118:
Line 119: foreach (var rownewCall in db.Query(selectQueryString_urlcustom))
Line 120: {
Line 121: hhlink[0]=rownewCall.urlname.ToString();
Line 122: hhlink[1]=rownewCall.urlcontain.ToString();
Line 123: hhlink[2]=rownewCall.urldoenotcontain.ToString();
Line 124: hhlink[3]=rownewCall.active_utm.ToString();
Line 125: hhlink[4]=rownewCall.active_utm2.ToString();
Line 126: hhlink[5]=rownewCall.active_utm3.ToString();
Line 127: hhlink[6]=rownewCall.url_utm.ToString();
Line 128: hhlink[7]=rownewCall.utm_header.ToString();
Line 129: hhlink[8]=rownewCall.utm_banner.ToString();
Line 130: hhlink[9]=rownewCall.utm_footer.ToString();
Line 131: hhlink[10]=rownewCall.shownow.ToString();
Line 132: hhlink[11]=rownewCall.url_show.ToString();
Line 133: hhlink[12]=rownewCall.shop_header.ToString();
Line 134: hhlink[13]=rownewCall.shop_banner.ToString();
Line 135: hhlink[14]=rownewCall.shop_footer.ToString();
Line 136: hhlink[15]=rownewCall.active_shop.ToString();
Line 137: hhlink[16]=rownewCall.active_shop2.ToString();
Line 138: hhlink[17]=rownewCall.active_shop3.ToString();
Line 139: hhlink[18]=rownewCall.utm_name.ToString();
Line 140: hhlink[19]=rownewCall.shop_name.ToString();
Line 141:
Line 142: if (Request["debug"]!=null)
Line 143: {
Line 144: //Response.Write("<!--ID=" + rownewCall.id.ToString(); + "-->");
Line 145: Response.Write("<!--ชื่อปุ่ม=" + hhlink[18] + "[" + rownewCall.utm_name.ToString() + "]"+ "-->");
Line 146: Response.Write("<!--เปิด Header=" + hhlink[3] + "-->");
Line 147: Response.Write("<!--เปิด Banner=" + hhlink[4] + "-->");
Line 148: Response.Write("<!--เปิด Footer=" + hhlink[5] + "-->");
Line 149: Response.Write("<!--URL Header=" + hhlink[7] + "[" + rownewCall.utm_header.ToString() + "]" + "-->");
Line 150: Response.Write("<!--URL Banner=" + hhlink[8] + "-->");
Line 151: Response.Write("<!--URL Footer=" + hhlink[9] + "-->");
Line 152: Response.Write("<!------------------------------------->");
Line 153: Response.Write("<!--ชื่อปุ่ม=" + hhlink[19] + "-->");
Line 154: Response.Write("<!--เปิด Header=" + hhlink[15] + "-->");
Line 155: Response.Write("<!--เปิด Banner=" + hhlink[16] + "-->");
Line 156: Response.Write("<!--เปิด Footer=" + hhlink[17] + "-->");
Line 157: Response.Write("<!--URL Header=" + hhlink[12] + "-->");
Line 158: Response.Write("<!--URL Banner=" + hhlink[13] + "-->");
Line 159: Response.Write("<!--URL Footer=" + hhlink[14] + "-->");
Line 160: }
Line 161:
Line 162: button_banner_text = hhlink[18];
Line 163: if (hhlink[4]=="1"){ button_banner_enabled = ""; }
Line 164: button_banner_url = hhlink[8];
Line 165:
Line 166: shopnow_banner_text = hhlink[19];
Line 167: if (hhlink[16]=="1"){ shopnow_banner_enabled = ""; }
Line 168: shopnow_banner_url = hhlink[13];
Line 169:
Line 170: if(button_banner_text=="ปรึกษาเรา") { chat_image = "/Media/Default/2020/Home/FixFooter/banner01-.jpg"; }else{ opentarget = ""; }
Line 171: }
Line 172:
Line 173: if (day_date_time != DayOfWeek.Saturday && day_date_time != DayOfWeek.Sunday){
Line 174: if (hour_date_time>=8 && hour_date_time<=17 || (hour_date_time==17 && min_date_time<=30)){
Line 175: //openchat = " onclick=\"open_avaya_bottom()\" ";
Line 176: /*Response.Write("<!--day_date_time=" + day_date_time + "-->");
Line 177: Response.Write("<!--hour_date_time=" + hour_date_time + "-->");
Line 178: Response.Write("<!--min_date_time=" + min_date_time + "-->");*/
Line 179: }
Line 180: }
Line 181:
Line 182:
Line 183:
Line 184: #line default
Line 185: #line hidden
Line 186: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 6978, 10, true);
Line 187:
Line 188: WriteLiteral("\r\n<section");
Line 189:
Line 190: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 6978, 10, true);
Line 191:
Line 192: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 6988, 53, true);
Line 193:
Line 194: WriteLiteral(" class=\"blog blog-block blog-ad-bottom non-printable\"");
Line 195:
Line 196: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 6988, 53, true);
Line 197:
Line 198: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7041, 13, true);
Line 199:
Line 200: WriteLiteral(">\r\n\r\n <div");
Line 201:
Line 202: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7041, 13, true);
Line 203:
Line 204: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7054, 18, true);
Line 205:
Line 206: WriteLiteral(" class=\"container\"");
Line 207:
Line 208: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7054, 18, true);
Line 209:
Line 210: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7072, 17, true);
Line 211:
Line 212: WriteLiteral(">\r\n\r\n <div");
Line 213:
Line 214: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7072, 17, true);
Line 215:
Line 216: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7089, 12, true);
Line 217:
Line 218: WriteLiteral(" class=\"row\"");
Line 219:
Line 220: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7089, 12, true);
Line 221:
Line 222: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7101, 22, true);
Line 223:
Line 224: WriteLiteral("> \r\n\r\n <div");
Line 225:
Line 226: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7101, 22, true);
Line 227:
Line 228: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7123, 29, true);
Line 229:
Line 230: WriteLiteral(" class=\"col-md-6 text-center\"");
Line 231:
Line 232: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7123, 29, true);
Line 233:
Line 234: WriteAttribute("style", Tuple.Create(" style=\"", 7152), Tuple.Create("\"", 7192)
Line 235:
Line 236: #line 142 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 237: , Tuple.Create(Tuple.Create("", 7160), Tuple.Create<System.Object, System.Int32>(Html.Raw(button_banner_enabled)
Line 238:
Line 239: #line default
Line 240: #line hidden
Line 241: , 7160), false)
Line 242: );
Line 243:
Line 244: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7193, 21, true);
Line 245:
Line 246: WriteLiteral(">\r\n <a");
Line 247:
Line 248: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7193, 21, true);
Line 249:
Line 250: WriteAttribute("href", Tuple.Create(" href=\"", 7214), Tuple.Create("\"", 7249)
Line 251:
Line 252: #line 143 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 253: , Tuple.Create(Tuple.Create("", 7221), Tuple.Create<System.Object, System.Int32>(Html.Raw(button_banner_url)
Line 254:
Line 255: #line default
Line 256: #line hidden
Line 257: , 7221), false)
Line 258: );
Line 259:
Line 260: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7250, 1, true);
Line 261:
Line 262: WriteLiteral(" ");
Line 263:
Line 264: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7250, 1, true);
Line 265:
Line 266: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7252, 20, false);
Line 267:
Line 268:
Line 269: #line 143 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 270: Write(Html.Raw(opentarget));
Line 271:
Line 272:
Line 273: #line default
Line 274: #line hidden
Line 275: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7252, 20, false);
Line 276:
Line 277: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7272, 6, true);
Line 278:
Line 279: WriteLiteral(" ><img");
Line 280:
Line 281: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7272, 6, true);
Line 282:
Line 283: WriteAttribute("src", Tuple.Create(" src=\"", 7278), Tuple.Create("\"", 7305)
Line 284:
Line 285: #line 143 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 286: , Tuple.Create(Tuple.Create("", 7284), Tuple.Create<System.Object, System.Int32>(Html.Raw(chat_image)
Line 287:
Line 288: #line default
Line 289: #line hidden
Line 290: , 7284), false)
Line 291: );
Line 292:
Line 293: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7306, 7, true);
Line 294:
Line 295: WriteLiteral(" alt=\"\"");
Line 296:
Line 297: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7306, 7, true);
Line 298:
Line 299: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7313, 47, true);
Line 300:
Line 301: WriteLiteral(" /></a>\r\n </div>\r\n\r\n <div");
Line 302:
Line 303: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7313, 47, true);
Line 304:
Line 305: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7360, 29, true);
Line 306:
Line 307: WriteLiteral(" class=\"col-md-6 text-center\"");
Line 308:
Line 309: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7360, 29, true);
Line 310:
Line 311: WriteAttribute("style", Tuple.Create(" style=\"", 7389), Tuple.Create("\"", 7430)
Line 312:
Line 313: #line 146 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 314: , Tuple.Create(Tuple.Create("", 7397), Tuple.Create<System.Object, System.Int32>(Html.Raw(shopnow_banner_enabled)
Line 315:
Line 316: #line default
Line 317: #line hidden
Line 318: , 7397), false)
Line 319: );
Line 320:
Line 321: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7431, 21, true);
Line 322:
Line 323: WriteLiteral(">\r\n <a");
Line 324:
Line 325: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7431, 21, true);
Line 326:
Line 327: WriteAttribute("href", Tuple.Create(" href=\"", 7452), Tuple.Create("\"", 7488)
Line 328:
Line 329: #line 147 "D:\inetpub\wwwroot\Themes\Scg\Views\boxfooter.cshtml"
Line 330: , Tuple.Create(Tuple.Create("", 7459), Tuple.Create<System.Object, System.Int32>(Html.Raw(shopnow_banner_url)
Line 331:
Line 332: #line default
Line 333: #line hidden
Line 334: , 7459), false)
Line 335: );
Line 336:
Line 337: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7489, 16, true);
Line 338:
Line 339: WriteLiteral(" target=\"_blank\"");
Line 340:
Line 341: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7489, 16, true);
Line 342:
Line 343: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7505, 5, true);
Line 344:
Line 345: WriteLiteral("><img");
Line 346:
Line 347: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7505, 5, true);
Line 348:
Line 349: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7510, 54, true);
Line 350:
Line 351: WriteLiteral(" src=\"/Media/Default/2020/Home/FixFooter/banner02.jpg\"");
Line 352:
Line 353: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7510, 54, true);
Line 354:
Line 355: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7564, 7, true);
Line 356:
Line 357: WriteLiteral(" alt=\"\"");
Line 358:
Line 359: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7564, 7, true);
Line 360:
Line 361: BeginContext("~/Themes/Scg/Views/boxfooter.cshtml", 7571, 73, true);
Line 362:
Line 363: WriteLiteral(" /></a>\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n</section>");
Line 364:
Line 365: EndContext("~/Themes/Scg/Views/boxfooter.cshtml", 7571, 73, true);
Line 366:
Line 367: }
Line 368: }
Line 369: }
Line 370:
|