|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/dc15253c/377bd30d/ |
?#pragma checksum "D:\wwwroot\jmxbaogao\wwwroot\Counter\Advertising.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4B7CF67EC48BE2B6EA886E183B34C277"
#line 1 "D:\wwwroot\jmxbaogao\wwwroot\Counter\Advertising.ashx"
/****************************************
* 版权所有:南昌金启软件有限公司
* 网 址:www.21it.com
****************************************/
using System;
using System.Data;
using System.Text;
using System.Web;
using Com.Huji.DataBll;
using Com.Huji.DataModel;
using Com.Huji.DataTools;
using Com.Huji.Web.Pager;
namespace Com.Huji.Web.Counter
{
public class Advertising : BaseHandler
{
public override void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
if (!ProcessRequestError()) return;
//获得告白位的ID
if (String.IsNullOrEmpty(context.Request.Params["id"]))
{
context.Response.Write("document.write('谬误:无法显示的告白。');");
return;
}
int aid = Converts.ToInt32(context.Request.Params["id"]);
//查抄告白位是否存在
NewAdvertisingBll abll = new NewAdvertisingBll();
//获得该告白位具体信息
NewAdvertisingData aModel = abll.GetNewAdvertisingModel(aid);
if (aModel.AdvertisingId == 0)
{
context.Response.Write("document.write('谬误:告白不存在。');");
return;
}
//输出该告白位下的告白条,不显示未起头、过期、暂停告白
NewAdvertisingChildBll bbll = new NewAdvertisingChildBll();
DataTable ds = bbll.GetNewAdvertisingChild(aModel.AdvertisingNum, 1, " and t.status=1 and getdate() between t.[start_date] and dateadd(day,1,t.[end_date]) and t.advertising_id=" + aid, out TotalRecord);
if (ds.Rows.Count < 1)
{
context.Response.Write("document.write('该告白位下暂无告白内容');");
return;
}
string AdTarget = aModel.UrlType == 1 ? "_blank" : "_self";
//=================判断告白位类别,输出告白条======================
switch (aModel.AdvertisingType.ToString())
{
case AdvertisingType.Text: //文字
context.Response.Write("document.write('<ul>');\n");
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= aModel.AdvertisingNum)
break;
DataRow dr = ds.Rows[i];
context.Response.Write("document.write('<li>');");
if (dr["advertising_child_url"].ToString().IndexOf("#") == -1)
context.Response.Write("document.write('<a title=\"" + dr["advertising_child_name"] + "\" target=\"" + AdTarget + "\" href=\"" + dr["advertising_child_url"] + "\">" + dr["advertising_child_name"] + "</a>');");
else
context.Response.Write("document.write('" + dr["advertising_child_name"] + "');");
context.Response.Write("document.write('</li>');\n");
}
context.Response.Write("document.write('</ul>');\n");
break;
case AdvertisingType.Image: //图片
if (ds.Rows.Count == 1)
{
DataRow dr = ds.Rows[0];
if (dr["advertising_child_url"].ToString().IndexOf("#") == -1)
{
context.Response.Write("document.write('<a title=\"" + dr["advertising_child_name"] + "\" target=\"" + AdTarget + "\" href=\"" + dr["advertising_child_url"] + "\">');");
context.Response.Write("document.write('<img src=\"" + dr["file_url"] + "\" width=" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + " height=" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + " border=0 />');");
context.Response.Write("document.write('</a>');");
}
else
context.Response.Write("document.write('<img src=\"" + dr["file_url"] + "\" width=" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + " height=" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + " border=0 />');");
}
else
{
context.Response.Write("document.write('<ul>');\n");
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= aModel.AdvertisingNum)
break;
DataRow dr = ds.Rows[i];
context.Response.Write("document.write('<li>');");
if (dr["advertising_child_url"].ToString().IndexOf("#") == -1)
{
context.Response.Write("document.write('<a title=\"" + dr["advertising_child_name"] + "\" target=\"" + AdTarget + "\" href=\"" + dr["advertising_child_url"] + "\">');");
context.Response.Write("document.write('<img src=\"" + dr["file_url"] + "\" width=" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + " height=" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + " border=0 />');");
context.Response.Write("document.write('</a>');\n");
}
else
context.Response.Write("document.write('<img src=\"" + dr["file_url"] + "\" width=" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + " height=" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + " border=0 />');");
context.Response.Write("document.write('</li>');\n");
}
context.Response.Write("document.write('</ul>');\n");
}
break;
case AdvertisingType.Slides: //幻灯片
StringBuilder picTitle = new StringBuilder();
StringBuilder picUrl = new StringBuilder();
StringBuilder picLink = new StringBuilder();
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= aModel.AdvertisingNum)
break;
DataRow dr = ds.Rows[i];
//picTitle.Append(dr["advertising_child_name"].ToString());
picUrl.Append(dr["file_url"].ToString());
if (dr["advertising_child_url"].ToString().IndexOf("#") == -1)
picLink.Append(dr["advertising_child_url"].ToString().Replace("&", "%26"));
if (i < ds.Rows.Count - 1)
{
//picTitle.Append("|");
picUrl.Append("|");
picLink.Append("|");
}
}
context.Response.Write("document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\">');\n");
context.Response.Write("document.write('<param name=\"movie\" value=\"/images/system/focus.swf\" />');\n");
context.Response.Write("document.write('<param name=\"quality\" value=\"high\" />');\n");
context.Response.Write("document.write('<param name=\"wmode\" value=\"transparent\" />');\n");
context.Response.Write("document.write('<param name=\"FlashVars\" value=\"bcastr_config=0xffffff|2|0xff6600|60|0xffffff|0xff6600|0x000033|3|2|1|_blank&bcastr_file=" + picUrl + "&bcastr_link=" + picLink + "&bcastr_title=" + picTitle + "\" />');\n");
context.Response.Write("document.write('<embed src=\"/images/system/focus.swf\" flashvars=\"bcastr_config=0xffffff|2|0xff6600|60|0xffffff|0xff6600|0x000033|3|2|1|_blank&bcastr_file=" + picUrl + "&bcastr_link=" + picLink + "&bcastr_title=" + picTitle + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" loop=\"false\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" salign=\"T\" menu=\"false\" wmode=\"transparent\"></embed>');\n");
context.Response.Write("document.write('</object>');\n");
break;
case AdvertisingType.Animation: //动画
if (ds.Rows.Count == 1)
{
DataRow dr = ds.Rows[0];
ObjectFlash(context, dr, aModel);
}
else
{
context.Response.Write("document.write('<ul>');\n");
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= aModel.AdvertisingNum)
break;
DataRow dr = ds.Rows[i];
ObjectFlash(context, dr, aModel);
// if ((!String.IsNullOrEmpty(dr["advertising_child_url"].ToString())) && dr["advertising_child_url"].ToString().IndexOf("http://") != -1)
// context.Response.Write("document.write('<div style=\"width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "px; height:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "px; position:relative;\">');\n");
// context.Response.Write("document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\">');\n");
// context.Response.Write("document.write('<param name=\"movie\" value=\"" + dr["file_url"] + "\">');\n");
// context.Response.Write("document.write('<param name=\"quality\" value=\"high\">');\n");
// context.Response.Write("document.write('<param name=\"wmode\" value=\"transparent\">');\n");
// context.Response.Write("document.write('<param name=\"menu\" value=\"false\">');\n");
// context.Response.Write("document.write('<embed src=\"" + dr["file_url"] + "\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" quality=\"High\" wmode=\"transparent\">');\n");
// context.Response.Write("document.write('</embed>');\n");
// context.Response.Write("document.write('</object>');\n");
// if ((!String.IsNullOrEmpty(dr["advertising_child_url"].ToString())) && dr["advertising_child_url"].ToString().IndexOf("http://") != -1)
// {
// context.Response.Write("document.write('<div style=\"position:absolute; left:0; top:0; width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "px; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "px; z-index:9999;\">');\n");
// context.Response.Write("document.write('<a href=\"" + dr["advertising_child_url"] + "\" target=\"_blank\" style=\"width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "px; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "px; text-indent:-999999px; display:block; \">" + dr["advertising_child_name"].ToString() + "</a>');\n");
// context.Response.Write("document.write('</div>');\n");
// context.Response.Write("document.write('<span style=\"width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "px; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "px; position:absolute; left:0; top:0; z-index:999; background:#FFF;filter:alpha(opacity=00); -moz-opacity:0.0;opacity: 0.0;\"></span>');\n");
// context.Response.Write("document.write('</div>');\n");
// }
}
context.Response.Write("document.write('</ul>');\n");
}
break;
case AdvertisingType.FLVideo://视频
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= 1)
break;
DataRow dr = ds.Rows[i];
context.Response.Write("document.write('<object type=\"application/x-shockwave-flash\" data=\"/images/system/video.swf\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" id=\"video1\">');\n");
context.Response.Write("document.write('<param name=\"movie\" value=\"/images/system/video.swf\"/>' );\n");
context.Response.Write("document.write('<param name=\"allowFullScreen\" value=\"true\" />');\n");
context.Response.Write("document.write('<param name=\"wmode\" value=\"transparent\" />');\n");
context.Response.Write("document.write('<param name=\"Play\" value=\"false\" />');\n");
context.Response.Write("document.write('<param name=\"FlashVars\" value=\"xml=<vcastr><channel><item><source>" + dr["file_url"] + "</source><duration></duration><title></title></item></channel><config><isAutoPlay>false</isAutoPlay></config></vcastr>\"/>');\n");
context.Response.Write("document.write('</object>');\n");
}
break;
case AdvertisingType.Code://代码
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= 1)
break;
DataRow dr = ds.Rows[i];
StringBuilder sb = new StringBuilder(dr["code_contents"].ToString());
sb.Replace("<", "<");
sb.Replace(">", ">");
sb.Replace("\"", "'");
context.Response.Write("document.write(\"" + sb + "\")");
}
break;
case AdvertisingType.Floating://漂浮
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= 1)
break;
DataRow dr = ds.Rows[i];
context.Response.Write("document.write('<DIV id=imgfloating style=\"Z-INDEX: 100; LEFT: 2px; WIDTH: " + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString() + "px") + "; POSITION: absolute; TOP: 43px; HEIGHT: " + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString() + "px") + "; visibility: visible;\">' );\n");
if (Converts.SubFileExt(dr["file_url"].ToString()).ToLower() == "swf")
ObjectFlash(context, dr, aModel);
else
{
if (dr["advertising_child_url"].ToString().IndexOf("#") == -1)
context.Response.Write("document.write('<a href=\"" + dr["advertising_child_url"] + "\" target=\"_blank\"><img src=\"" + dr["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\"></a>' );\n");
else
context.Response.Write("document.write('<img src=\"" + dr["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\">' );\n");
}
context.Response.Write("document.write('</DIV>' );\n");
context.Response.Write("document.write('<script type=\"text/javascript\" src=\"/Js/floating.js\"></script>');");
}
break;
case AdvertisingType.Couplets://春联
//若是超出限度告白数量,则退出循环
if (ds.Rows.Count == 2)
{
context.Response.Write("document.writeln('<div id=\"leftCoupletsDiv\" style=\"top:40px;left:5px\">');\n");
context.Response.Write("document.writeln('<div id=\"leftCouplets1\" class=\"itemFloat\">');\n");
if (Converts.SubFileExt(ds.Rows[0]["file_url"].ToString()).ToLower() == "swf")
ObjectFlash(context, ds.Rows[0], aModel);
else
{
if (ds.Rows[0]["advertising_child_url"].ToString().IndexOf("#") == -1)
context.Response.Write("document.write('<div><a href=\"" + ds.Rows[0]["advertising_child_url"] + "\" target=\"_blank\"><img src=\"" + ds.Rows[0]["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\"></a></div>' );\n");
else
context.Response.Write("document.write('<div><img src=\"" + ds.Rows[0]["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\"></div>' );\n");
}
context.Response.Write("document.writeln('<div><a href=\"javascript:close_leftCouplets1();\" title=\"关关上面的告白\"><img src=\"/Images/system/close.gif\" width=\"50\" height=\"20\" border=\"0\"></a></div>');\n");
context.Response.Write("document.writeln('</div>');\n");
context.Response.Write("document.writeln('</div>');\n");
context.Response.Write("document.writeln('<div id=\"rightCoupletsDiv\" style=\"top:40px;right:5px\">');\n");
context.Response.Write("document.writeln('<div id=\"rightCouplets1\" class=\"itemFloat\">');\n");
if (Converts.SubFileExt(ds.Rows[1]["file_url"].ToString()).ToLower() == "swf")
ObjectFlash(context, ds.Rows[1], aModel);
else
{
if (ds.Rows[0]["advertising_child_url"].ToString().IndexOf("#") == -1)
context.Response.Write("document.write('<div><a href=\"" + ds.Rows[1]["advertising_child_url"] + "\" target=\"_blank\"><img src=\"" + ds.Rows[1]["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\"></a></div>' );\n");
else
context.Response.Write("document.write('<div><img src=\"" + ds.Rows[1]["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\"></div>' );\n");
}
context.Response.Write("document.writeln('<div><a href=\"javascript:close_rightCouplets1();\" title=\"关关上面的告白\"><img src=\"/Images/system/close.gif\" width=\"50\" height=\"20\" border=\"0\"></a></div>');\n");
context.Response.Write("document.writeln('</div>');\n");
context.Response.Write("document.writeln('</div>');\n");
context.Response.Write("document.write('<script type=\"text/javascript\" src=\"/Js/couplets.js\"></script>');\n");
}
break;
case AdvertisingType.FullScreen://全屏
for (int i = 0; i < ds.Rows.Count; i++)
{
//若是超出限度告白数量,则退出循环
if (i >= 1)
break;
DataRow dr = ds.Rows[i];
context.Response.Write("document.write('<div class=\"screenfull\">');\n");
context.Response.Write("document.write('<div class=\"screenfbtn\"><a style=\"display: none\" class=\"screenfreplay\" title=\"沉播\" href=\"#\"></a><a class=screenfclose title=\"关关\" href=\"#\"></a></div>');\n");
context.Response.Write("document.write('<div class=\"screenfcon\">');\n");
if (Converts.SubFileExt(dr["file_url"].ToString()).ToLower() == "swf")
ObjectFlash(context, dr, aModel);
else
{
if (ds.Rows[0]["advertising_child_url"].ToString().IndexOf("#") == -1)
context.Response.Write("document.write('<a href=\"" + dr["advertising_child_url"] + "\" target=\"_blank\"><img src=\"" + dr["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\"></a>' );\n");
else
context.Response.Write("document.write('<img src=\"" + dr["file_url"] + "\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" border=\"0\">' );\n");
}
context.Response.Write("document.write('</div>');\n");
context.Response.Write("document.write('</div>');\n");
context.Response.Write("document.write('<script type=\"text/javascript\" src=\"/Js/fullscreen.js\"></script>');\n");
}
break;
}
}
private static void ObjectFlash(HttpContext context, DataRow dr, NewAdvertisingData aModel)
{
if ((!String.IsNullOrEmpty(dr["advertising_child_url"].ToString()) && dr["advertising_child_url"].ToString().IndexOf("#") == -1) || (!String.IsNullOrEmpty(dr["advertising_child_url"].ToString()) && dr["advertising_child_url"].ToString().IndexOf("http://") != -1))
context.Response.Write("document.write('<div style=\"width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString() + "px") + "; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString() + "px") + "; position:relative;\">');\n");
context.Response.Write("document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\">');\n");
context.Response.Write("document.write('<param name=\"movie\" value=\"" + dr["file_url"] + "\">');\n");
context.Response.Write("document.write('<param name=\"quality\" value=\"high\">');\n");
context.Response.Write("document.write('<param name=\"wmode\" value=\"transparent\">');\n");
context.Response.Write("document.write('<param name=\"menu\" value=\"false\">');\n");
context.Response.Write("document.write('<embed src=\"" + dr["file_url"] + "\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString()) + "\" height=\"" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString()) + "\" quality=\"High\" wmode=\"transparent\">');\n");
context.Response.Write("document.write('</embed>');\n");
context.Response.Write("document.write('</object>');\n");
if ((!String.IsNullOrEmpty(dr["advertising_child_url"].ToString()) && dr["advertising_child_url"].ToString().IndexOf("#") == -1) || (!String.IsNullOrEmpty(dr["advertising_child_url"].ToString()) && dr["advertising_child_url"].ToString().IndexOf("http://") != -1))
{
context.Response.Write("document.write('<div style=\"position:absolute; left:0; top:0; width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString() + "px") + "; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString() + "px") + "; z-index:9999;\">');\n");
context.Response.Write("document.write('<a href=\"" + dr["advertising_child_url"] + "\" target=\"_blank\" style=\"width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString() + "px") + "; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString() + "px") + "; text-indent:-999999px; display:block; \">" + dr["advertising_child_name"] + "</a>');\n");
context.Response.Write("document.write('</div>');\n");
context.Response.Write("document.write('<span style=\"width:" + (aModel.AdvertisingWidth == -1 ? "100%" : aModel.AdvertisingWidth.ToString() + "px") + "; height:" + (aModel.AdvertisingHeight == -1 ? "100%" : aModel.AdvertisingHeight.ToString() + "px") + "; position:absolute; left:0; top:0; z-index:999; background:#FFF;filter:alpha(opacity=00); -moz-opacity:0.0;opacity: 0.0;\"></span>');\n");
context.Response.Write("document.write('</div>');\n");
}
}
}
}
#line default
#line hidden