protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Response.ContentType = "text/xml"; int id = MyCommFun.RequestInt("id"); if (id <= 0) { return; } BLL.wx_pano_jd pbll = new BLL.wx_pano_jd(); Model.wx_pano_jd pano = pbll.GetModel(id); StringBuilder sb = new StringBuilder(""); sb.Append("<panorama id=\"\">"); sb.Append("<view fovmode=\"0\" pannorth=\"0\"><start pan=\"0\" fov=\"70\" tilt=\"0\"/><min pan=\"0\" fov=\"5\" tilt=\"-90\"/>"); sb.Append("<max pan=\"360\" fov=\"120\" tilt=\"90\"/></view>"); sb.Append("<input tilesize=\"685\" tilescale=\"1.014598540145985\" tile0url=\"" + getPicUrl(pano.pic_front) + "\" tile1url=\"" + getPicUrl(pano.pic_right) + "\" tile2url=\"" + getPicUrl(pano.pic_behind) + "\" tile3url=\"" + getPicUrl(pano.pic_left) + "\" tile4url=\"" + getPicUrl(pano.pic_top) + "\" tile5url=\"" + getPicUrl(pano.pic_bottom) + "\" />"); sb.Append("<userdata title=\"mxweixin_pano\" datetime=\"2011:11:03 09:41:07\" description=\"description\" copyright=\"copyright\" tags=\"tags\" author=\"author\" source=\"source\" comment=\"comment\" info=\"info\" longitude=\"0\" latitude=\"\"/>"); sb.Append("<autorotate speed=\"0.200\" nodedelay=\"0.00\" startloaded=\"1\" returntohorizon=\"0.000\" delay=\"5.00\"/>"); sb.Append("<control sensitivity=\"8\" simulatemass=\"1\" lockedmouse=\"0\" lockedkeyboard=\"0\" lockedwheel=\"0\" invertwheel=\"0\" speedwheel=\"1\" dblclickfullscreen=\"0\" invertcontrol=\"1\" />"); sb.Append("<sounds></sounds>"); sb.Append("</panorama>"); Response.Write(sb.ToString()); } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } litCopyRight.Text = getwebcopyright(wid); BLL.wx_pano_jd bll = new BLL.wx_pano_jd(); IList <Model.wx_pano_jd> jdlist = bll.GetModelList("wid=" + wid + " order by seq asc"); if (jdlist == null || jdlist.Count <= 0) { return; } StringBuilder sb = new StringBuilder(""); for (int i = 0; i < jdlist.Count; i++) { sb.Append("<li><a href=\"pano.aspx?id=" + jdlist[i].id + "\">" + jdlist[i].jdName + "</a></li>"); } litpanoList.Text = sb.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } litCopyRight.Text = getwebcopyright(wid); BLL.wx_pano_jd bll = new BLL.wx_pano_jd(); IList< Model.wx_pano_jd> jdlist = bll.GetModelList("wid="+wid+" order by seq asc"); if (jdlist == null || jdlist.Count <= 0) { return; } StringBuilder sb = new StringBuilder(""); for (int i = 0; i < jdlist.Count; i++) { sb.Append("<li><a href=\"pano.aspx?id=" + jdlist[i].id + "\">" + jdlist[i].jdName + "</a></li>"); } litpanoList.Text = sb.ToString(); } }