protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "ADManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                string ChartID = base.Request.QueryString["ChartID"];
                chart = B_ADZone.getChartByChartID(DataConverter.CLng(ChartID));
                int    ChartWidth  = chart.ChartWidth;
                int    ChartHeight = chart.ChartHeight;
                string ChartTitle  = chart.ChartTitle;
                string ChartUnit   = chart.ChartUnit;
                string strUrl      = HttpContext.Current.Request.Url.Authority.ToString();
                //string strRaw = HttpContext.Current.Request.Url.PathAndQuery.ToString();
                string ChartType = Request["ChartType"];
                strUrl = "http://" + strUrl;
                string str = "";
                str += "<iframe src=\"" + strUrl;

                str += "/Plugins/Chart/Show.aspx?Did=" + ChartID;

                str += "\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\"  scrolling=\"no\" ";
                str += "width=\"" + (ChartWidth + 80) + "\"" + " height=\"" + (ChartHeight + 80) + "\"" + ">";
                str += "</iframe>";

                TxtChartCode.Text = str;
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='" + customPath2 + "Plus/ADManage.aspx'>广告管理</a></li><li><a href='../Plus/ChartManage.aspx'>图表管理</a></li><li class='active'>获取图表代码</li>");
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ZoomLa.Common.function.AccessRulo();
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();

                if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "ShopModelEdit"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"]))
                {
                    function.WriteErrMsg("没有指定要修改字段的字段ID!");
                }
                int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]);
                int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]);
                this.HdfFieldID.Value = FieldID.ToString();
                M_ModelField field = this.bll.GetModelByIDXML(FieldID);
                ModelID = field.ModelID;
                // M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID);
                //int ModelID = field.ModelID;
                M_ModelInfo model = this.bModel.GetModelById(ModelID);
                this.lblModel.Text    = model.ModelName;
                this.HdfModelID.Value = ModelID.ToString();
                this.GetShow(field);
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     RPT.SPage = MyBind;
     if (!B_ARoleAuth.Check(ZLEnum.Auth.user, "UserManage"))
     {
         function.WriteErrMsg(Resources.L.没有权限进行此项操作);
     }
     if (!IsPostBack)
     {
         if (!string.IsNullOrEmpty(Request.QueryString["lblkey"]))
         {
             preAction = DropDownList2.SelectedValue;
             preValue  = Request.QueryString["lblkey"];
         }
         else if (!string.IsNullOrEmpty(Request.QueryString["keyWord"]))
         {
             preAction = "keyword";
             preValue  = Request.QueryString["keyWord"];
         }
         else if (DataConverter.CLng(Request.QueryString["GroupID"]) > 0)
         {
             preAction = "groupid";
             preValue  = Request.QueryString["GroupID"];
         }
         else if (PUserID > 0)
         {
             preAction = "puser";
             preValue  = PUserID.ToString();
         }
         RPT.DataBind();
         function.Script(this, "ShowOrderIcon('ID_A')");
         DPBind();
         BindProvince();
     }
 }
Beispiel #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                Isuse.Checked      = WaterModuleConfig.WaterConfig.IsUsed;
                ThumbWidth_T.Text  = SiteConfig.ThumbsConfig.ThumbsWidth.ToString();
                ThumbHeight_T.Text = SiteConfig.ThumbsConfig.ThumbsHeight.ToString();

                RadioButtonList1.SelectedValue = WaterModuleConfig.WaterConfig.WaterClassType.ToString();
                waterType.SelectedValue        = WaterModuleConfig.WaterConfig.WaterClass.ToString();
                ILogo_UP.FileUrl        = WaterModuleConfig.WaterConfig.imgLogo;
                iAlp.Text               = WaterModuleConfig.WaterConfig.imgAlph.ToString();
                waterWord.Text          = WaterModuleConfig.WaterConfig.WaterWord.ToString();
                WordType.SelectedValue  = WaterModuleConfig.WaterConfig.WaterWordType.ToString();
                WordStyle.SelectedValue = WaterModuleConfig.WaterConfig.WaterWordStyle.ToString();
                txt_dfg.Text            = WaterModuleConfig.WaterConfig.WaterWordColor.ToString();
                localP.SelectedValue    = WaterModuleConfig.WaterConfig.lopostion;
                //PX.Text = WaterModuleConfig.WaterConfig.loX.ToString();
                //PY.Text = WaterModuleConfig.WaterConfig.loY.ToString();
                WordSize.Text       = WaterModuleConfig.WaterConfig.WaterWordSize.ToString();
                txt_waterimgs.Value = WaterModuleConfig.WaterConfig.WaterImgs;

                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='SiteInfo.aspx'>系统设置</a></li><li><a href='SiteInfo.aspx'>网站配置</a></li><li class=\"active\">缩略图配置</li>" + Call.GetHelp(6));
            }
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageModelManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"]))
                {
                    function.WriteErrMsg("没有指定要修改字段的字段ID!");
                }
                int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]);
                int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]);
                this.HdfFieldID.Value = FieldID.ToString();

                M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID);
                //int ModelID = field.ModelID;

                M_ModelInfo model = this.bModel.GetModelById(ModelID);
                this.HdfModelID.Value = ModelID.ToString();
                this.GetShow(field);
                Call.SetBreadCrumb(Master, "<li>后台管理</li><li>企业黄页</li><li>字段列表</li><li>修改[" + model.ModelName + "模型]字段</li>");
            }
        }
Beispiel #6
0
        private string g_content; //短信内容

        protected void Page_Load(object sender, EventArgs e)
        {
            function.AccessRulo();
            B_Admin badmin = new B_Admin();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!this.IsPostBack)
            {
                WebSMS wsm = new WebSMS();
                g_uid     = SiteConfig.SiteOption.G_uid;
                g_eid     = SiteConfig.SiteOption.G_eid;
                g_pwd     = SiteConfig.SiteOption.G_pwd;
                g_gate_id = SiteConfig.SiteOption.G_gate_id;
                g_content = SiteConfig.SiteOption.G_content;

                this.x_uid.Value      = g_uid.ToString();
                this.x_eid.Value      = g_eid.ToString();
                this.x_pwd_md5.Value  = g_pwd.ToString();
                this.h_gate_id.Value  = g_gate_id.ToString();
                this.txtContent.Value = g_content.ToString();

                string strIdentity = wsm.GetIdentityMark(Int32.Parse(g_eid), g_uid, g_pwd, Int32.Parse(g_gate_id));
                this.Label1.Text = "当前余额:" + wsm.GetMoney(strIdentity).ToString("0.00");
                if (g_uid == "" || g_eid == "" || g_pwd == "" || g_gate_id == "")
                {
                    Response.Write("参数不全!");
                    return;
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Call.SetBreadCrumb(this.Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='UserManage.aspx'>用户管理</a></li><li> <a href='AdminManage.aspx'>管理员管理</a></li><li><a href='" + Request.RawUrl + "' >动态口令加密</a></li>");
         if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "DevCenter"))
         {
             function.WriteErrMsg("你没有对该模块的访问权限");
         }
         if (!badmin.CheckSPwd(Session["Spwd"] as string))
         {
             SPwd.Visible = true;
         }
         else
         {
             if (string.IsNullOrEmpty(SiteConfig.SiteOption.AdminKey))
             {
                 SetImgKey();
             }
             else
             {
                 Mybind();
             }
         }
     }
 }
Beispiel #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (function.isAjax())
     {
         int       pid  = DataConvert.CLng(Request.Form["pid"]);
         string    json = "";
         DataTable dt   = bll.GetChildGroup(pid);
         json = JsonConvert.SerializeObject(dt);
         Response.Clear();
         Response.Write(json);
         Response.End();
         return;
     }
     if (!IsPostBack)
     {
         if (!B_ARoleAuth.Check(ZLEnum.Auth.user, "UserGroup"))
         {
             function.WriteErrMsg(Resources.L.没有权限进行此项操作);
         }
         if (!string.IsNullOrEmpty(Request.QueryString["action"]) && !string.IsNullOrEmpty(Request.QueryString["id"]))
         {
             if (Action == "default")
             {
                 bll.SetDefaultGroup(GID);
             }
             else if (Action == "del")
             {
                 this.bll.Del(GID);
             }
             Response.Redirect("GroupManage.aspx");
         }
     }
     Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>" + Resources.L.工作台 + "</a></li><li><a href='UserManage.aspx'>" + Resources.L.用户管理 + "</a></li> <li class='active'>" + Resources.L.会员组管理 + "<a href=\"Group.aspx\">[" + Resources.L.添加会员组 + "]</a></li>" + Call.GetHelp(38) + "<div class='pull-right'><a href='javascript:;' onclick='location.reload();'><i class='fa fa-refresh'></i></a></div>");
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            B_Admin badmin = new B_Admin();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.store, "StoreinfoManage"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                M_Shopconfig sinfos = sll.GetShopconfig();
                this.Anonymity.Checked  = sinfos.Anonymity;
                this.Comment.Checked    = sinfos.Comment;
                this.Dummymoney.Checked = sinfos.Dummymoney;
                this.IsOpen.Checked     = sinfos.IsOpen;
                this.Pointcard.Checked  = sinfos.Pointcard;
                this.goodpl.Text        = sinfos.Goodpl.ToString();
                this.centerpl.Text      = sinfos.Centerpl.ToString();
                this.badpl.Text         = sinfos.Badpl.ToString();
                this.Auditing.Checked   = sinfos.Auditing == 1 ? true : false;
                this.ScorePoint.Text    = sinfos.ScorePoint.ToString();
                this.ChangOrder.Checked = sinfos.ChangeOrder;
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='StoreManage.aspx'>店铺管理</a></li><li class='active'>店铺信息配置</li>" + Call.GetHelp(91));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ZoomLa.Common.function.AccessRulo();
            B_Admin badmin = new B_Admin();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.store, "StoreManage"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            ShowGrid();
            M_CommonData mc       = cbll.GetCommonData(DataConverter.CLng(Request.QueryString["Id"]));
            int          i        = mc.ModelID;
            DataTable    UserData = cbll.GetContentByItems(mc.TableName, Convert.ToInt32(Request.QueryString["Id"]));

            if (UserData.Rows.Count > 0)
            {
                DetailsView1.DataSource = UserData.DefaultView;
                DetailsView1.DataBind();
            }
            if (!IsPostBack)
            {
                ViewState["id"] = Request.QueryString["id"];
                mc = cbll.GetCommonData(DataConverter.CLng(Request.QueryString["Id"]));
                M_Node nnn = bn.GetNodeXML(DataConverter.CLng(UserData.Rows[0]["NodeID"]));
                mc.Hits = mc.Hits + 1;
                cbll.Update(mc);
                GetInit();
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='../Shop/ProductManage.aspx'>商城管理</a></li><li><a href='StoreManage.aspx'>店铺管理</a></li><li class='active'>查看店铺信息</li>");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                TxtMssUser.Attributes.Add("value", SiteConfig.SiteOption.MssUser);
                TxtMssPsw.Attributes.Add("value", SiteConfig.SiteOption.MssPsw);

                txtg_eid.Attributes.Add("value", SiteConfig.SiteOption.G_eid);
                txtg_uid.Attributes.Add("value", SiteConfig.SiteOption.G_uid);
                txtg_pwd.Attributes.Add("value", SiteConfig.SiteOption.G_pwd);
                txt_h_gate_id.Attributes.Add("value", SiteConfig.SiteOption.G_gate_id);
                userMobilAuth.SelectedValue = SiteConfig.UserConfig.UserMobilAuth;
                smskeyT.Text = SiteConfig.SiteOption.sms_key;
                smspwdT.Attributes.Add("value", SiteConfig.SiteOption.sms_pwd);
                blackList.Text   = SiteConfig.SiteOption.G_blackList;
                MaxIpMsg.Text    = SiteConfig.SiteOption.MaxIpMsg.ToString();
                MaxPhoneMsg.Text = SiteConfig.SiteOption.MaxMobileMsg.ToString();

                CCAppID_T.Text    = SiteConfig.SiteOption.CCPAppID;
                CCAccount_T.Text  = SiteConfig.SiteOption.CCPAccount_SID;
                CCToken_T.Text    = SiteConfig.SiteOption.CCPToken;
                CCTemplate_T.Text = SiteConfig.SiteOption.CCPMsgTempID.ToString();

                ddlMessageCheck_DP.SelectedValue = SiteConfig.SiteOption.DefaultSMS;
                ChangeConfig();
                string bread = "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='SiteInfo.aspx'>系统设置</a></li><li><a href='SiteInfo.aspx'>网站配置</a></li><li class=\"active\">短信配置</li>";
                bread += " [<a href='http://www.z01.com/server' target='_blank'>联系官方购买短信授权</a>]";
                bread += Call.GetHelp(4);
                Call.SetBreadCrumb(Master, bread);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ZoomLa.Common.function.AccessRulo();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.store, "StoreinfoManage"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                string menu = Request.QueryString["menu"];
                if (menu == "edit")
                {
                    int             id = DataConverter.CLng(Request.QueryString["id"]);
                    M_Manufacturers rs = bll.GetManufacturersByid(id);
                    this.ID_Hid.Value      = rs.id.ToString();
                    this.Producername.Text = rs.Producername.ToString();
                    this.Smallname.Text    = rs.Smallname.ToString();
                    this.CreateTime.Text   = rs.CreateTime.ToString();
                    this.Coadd.Text        = rs.Coadd.ToString();
                    this.Telpho.Text       = rs.Telpho.ToString();
                    this.FaxCode.Text      = rs.FaxCode.ToString();
                    this.PostCode.Text     = rs.PostCode.ToString();
                    this.CoWebsite.Text    = rs.CoWebsite.ToString();
                    this.Email.Text        = rs.Email.ToString();
                    this.CoClass.Text      = rs.CoClass.ToString();
                    this.CoPhoto.Text      = rs.CoPhoto.ToString();
                    this.Content.Value     = rs.Content.ToString();
                    this.uptype.Value      = "update";
                    this.Label1.Text       = "修改厂商";
                }
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='StoreManage.aspx'>店铺管理</a><li><a href='ProducerManage.aspx'>厂商管理</a></li><li class='active'>添加厂商</li>");
        }
Beispiel #13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         B_Admin badmin = new B_Admin();
         if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageModel"))
         {
             function.WriteErrMsg("没有权限进行此项操作");
         }
         string id = base.Request.QueryString["ModelID"];
         if (!string.IsNullOrEmpty(id))
         {
             this.HdnModelId.Value = id;
         }
         else
         {
             this.HdnModelId.Value = "0";
             id = "0";
         }
         if (id != "0")
         {
             this.LTitle.Text = "修改申请样式";
             M_ModelInfo info = this.bll.GetModelById(DataConverter.CLng(id));
             this.TxtModelName.Text      = info.ModelName;
             this.LblTablePrefix.Text    = "";
             this.LblTablePrefix.Visible = false;
             this.TxtTableName.Text      = info.TableName;
             this.TxtDescription.Text    = info.Description;
             this.TxtTableName.Enabled   = false;
         }
     }
     Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li class='active'>添加申请模型</li>");
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.label, "LabelManage"))
     {
         function.WriteErrMsg(Resources.L.没有权限进行此项操作);
     }
     if (!IsPostBack)
     {
         if (bll.SelAllLabel().Rows.Count <= 1 && Directory.Exists(Server.MapPath(SiteConfig.SiteOption.TemplateDir + "/配置库/标签/")))
         {
             Response.Redirect("LabelExport.aspx"); return;
         }
         Call.HideBread(Master);
         DataTable CateTable = bll.GetLabelCateListXML();//标签类别
         CateTable.Columns.Add("label");
         DataRow allrow = CateTable.NewRow();
         allrow["name"]  = "";
         allrow["label"] = Resources.L.全部标签;
         CateTable.Rows.InsertAt(allrow, 0);
         LabelTypeData_Hid.Value = JsonConvert.SerializeObject(CateTable);
         //-----------------
         KeyWord = Request.QueryString["KeyWord"] ?? "";
         DataTable dt = bll.SelAllLabel(LabelCate, KeyWord);
         RPT.DataSource = dt;
         RPT.DataBind();
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            int type = DataConverter.CLng(Request.QueryString["type"]);  //类型:0为网站管理员,1为店铺管理员,2为客户

            if (type == 0)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "OrderList"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
            }
            else
            {
                B_User.CheckIsLogged();
            }
            int id = DataConverter.CLng(Request.QueryString["id"]);

            hforderid.Value = id.ToString();
            M_OrderList orderinfo = oll.GetOrderListByid(id);

            if (!IsPostBack)
            {
                if (orderinfo != null && orderinfo.id > 0)
                {
                    ddstate.SelectedValue = orderinfo.Developedvotes.ToString();
                    if (ddstate.SelectedValue == "1")
                    {
                        fahuo.Visible = true;
                    }
                    else
                    {
                        fahuo.Visible = false;
                    }
                }
                //类型:0为网站管理员,1为店铺管理员,2为客户
                if (type == 0 || type == 1)
                {
                    if (orderinfo.Aside != 1 && orderinfo.Settle != 1)
                    {
                        ddstate.Enabled    = true;
                        txtContent.Enabled = true;
                        btn.Enabled        = true;
                    }
                    else
                    {
                        ddstate.Enabled    = false;
                        txtContent.Enabled = false;
                        btn.Enabled        = false;
                    }
                }
                else
                {
                    ddstate.Enabled    = false;
                    txtContent.Enabled = false;
                    btn.Enabled        = false;
                }
            }
            Call.SetBreadCrumb(Master, "<li>商城管理</li><li><a href='UserOrderlist.aspx'>店铺订单</a></li><li>发票信息处理</li>");
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         B_Admin badmin = new B_Admin();
         if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "AddPageModel"))
         {
             function.WriteErrMsg("没有权限进行此项操作");
         }
         this.TxtItemIcon.Attributes.Add("onchange", "ChangeImgItemIcon(this.value);");
         string id = base.Request.QueryString["ModelID"];
         if (!string.IsNullOrEmpty(id))
         {
             this.HdnModelId.Value = id;
             LNav_Hid.Value        = "修改内容模型";
             this.LTitle.Text      = "修改内容模型";
             M_ModelInfo info = this.bll.GetModelById(int.Parse(id));
             this.TxtModelName.Text      = info.ModelName;
             this.LblTablePrefix.Visible = false;
             this.TxtTableName.Text      = info.TableName;
             this.TxtTableName.Enabled   = false;
             this.TxtItemName.Text       = info.ItemName;
             this.TxtItemUnit.Text       = info.ItemUnit;
             string selectValue = string.IsNullOrEmpty(info.ItemIcon) ? "Default.gif" : info.ItemIcon;
             this.TxtItemIcon.Text    = info.ItemIcon;
             this.TxtDescription.Text = info.Description;
         }
         else
         {
             this.HdnModelId.Value = "0";
         }
     }
     Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li><a href='ModelManage.aspx'>黄页模型管理</a></li><li>" + LNav_Hid.Value + "</li>");
 }
Beispiel #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "DevCenter"))
                {
                    function.WriteErrMsg("你没有对该模块的访问权限");
                }
                if (!badmin.CheckSPwd(Session["Spwd"] as string))
                {
                    SPwd.Visible = true;
                }
                else
                {
                    maindiv.Visible = true;
                }
                if (Request.UrlReferrer == null || string.IsNullOrEmpty(Request.UrlReferrer.AbsoluteUri))
                {
                    function.WriteErrMsg("错误的Url或非法的请求!", "");
                }

                string dataname  = DBHelper.GetAttrByStr(SqlHelper.ConnectionString, "Initial Catalog");
                string dataname2 = DBHelper.GetAttrByStr(SqlHelper.PlugConnectionString, "Initial Catalog");

                this.DatabaseList.Items.Add(new ListItem("主数据库", dataname));
                this.DatabaseList.Items.Add(new ListItem("从数据库", dataname2));
                changedbtabledownlist();
            }
            txt_DatabaseList = DatabaseList.SelectedValue;
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='DatalistProfile.aspx'>扩展功能</a></li> <li><a href='RunSql.aspx'>开发中心</a></li><li><a href='DataAssert.aspx'>表内容批处理</a></li>" + Call.GetHelp(66));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_Admin.IsSuperManage(badmin.GetAdminLogin().AdminId))
     {
         function.WriteErrMsg("只有超级管理员才能访问该页!!");
     }
     if (function.isAjax())
     {
         //返回进度
         Response.Write(ZipClass.GetPercent(ZipClass.zipTotal, ZipClass.zipProgress));
         Response.Flush();
         Response.End();
     }
     database = StrHelper.GetAttrByStr(SqlHelper.ConnectionString, "initial catalog");
     if (!IsPostBack)
     {
         if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "DevCenter"))
         {
             function.WriteErrMsg("你没有对该模块的访问权限");
         }
         if (!badmin.CheckSPwd(Session["Spwd"] as string))
         {
             SPwd.Visible = true;
         }
         else
         {
             maindiv.Visible = true;
         }
         this.DatabasePath.Value = DateTime.Now.ToString("MMdd") + "ZoomlaCMS";
         this.SiteText.Value     = DateTime.Now.ToString("yyyyMMdd_HHmmss") + "全站备份";
         MyBind();
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='DatalistProfile.aspx'>扩展功能</a></li> <li><a href='RunSql.aspx'>开发中心</a></li><li><a href='BackupRestore.aspx'>备份与还原数据</a></li>" + Call.GetHelp(69));
     }
 }
Beispiel #19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "TotalSale"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     if (!IsPostBack)
     {
         //按支付平台和日为单位统计,必须指定结束日期
         if (!string.IsNullOrEmpty(Request.QueryString["stime"]))
         {
             SDate_T.Text = Request.QueryString["stime"];
             EDate_T.Text = Request.QueryString["etime"];
         }
         else
         {
             SDate_T.Text = STime.ToString("yyyy/MM/dd");
             EDate_T.Text = ETime.ToString("yyyy/MM/dd");
         }
         Years_Li.Text  = rpBll.Html_Date("year", STime.Year.ToString());
         Months_Li.Text = rpBll.Html_Date("month", STime.Month.ToString());
         MyBind();
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='TotalSale.aspx'>按日销售统计</a></li>");
     }
 }
Beispiel #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.user, "UserManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                int userNameLimit = 3;
                int userNameMax   = 20;
                if (SiteConfig.UserConfig.UserNameLimit > 0)
                {
                    userNameLimit = SiteConfig.UserConfig.UserNameLimit;
                }
                if (SiteConfig.UserConfig.UserNameMax >= userNameLimit)
                {
                    userNameMax = SiteConfig.UserConfig.UserNameMax;
                }
                B_Group bgr = new B_Group();

                this.DDLGroup.DataSource     = bgr.GetGroupList();
                this.DDLGroup.DataTextField  = "GroupName";
                this.DDLGroup.DataValueField = "GroupID";
                this.DDLGroup.DataBind();
                lblHtml.Text = ubfbll.GetHtml();
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='AdminManage.aspx'>用户管理</a></li><li><a href='UserManage.aspx'>会员管理</a></li><li class='active'>添加会员</li>");
        }
Beispiel #21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.content, "ComentManage"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     if (function.isAjax(Request))
     {
         int flag = 0;
         if (Request.Form["action"] == "add")
         {
             flag = replyBut_Click() ? 1 : 2;
         }
         else if (Request.Form["action"] == "update")
         {
             flag = replyEdit_Click() ? 1 : 2;
         }
         Response.Write(flag); Response.Flush(); Response.End();
     }
     if (!this.IsPostBack && !string.IsNullOrEmpty(Request["ID"]))
     {
         int id = Int32.Parse(Request["ID"]);
         m_ask                   = b_ask.SelReturnModel(id);
         askName.Text           += m_ask.UserName;
         askTime.Text           += m_ask.AddTime.ToString("yyyy年MM月dd日 HH:mm");
         askContent.Text         = m_ask.Qcontent;
         this.ViewState["cType"] = "";//this.m_type.ToString();
         DataBind();
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ContentManage.aspx'>内容管理</a></li><li><a href='WdCheck.aspx'>百科问答</a></li><li class='active'>问题回复</li>");
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "DevCenter"))
         {
             function.WriteErrMsg("你没有对该模块的访问权限");
         }
         if (!badmin.CheckSPwd(Session["Spwd"] as string))
         {
             SPwd.Visible = true;
         }
         else
         {
             maindiv.Visible = true;
         }
         if (Request.UrlReferrer == null || string.IsNullOrEmpty(Request.UrlReferrer.AbsoluteUri))
         {
             function.WriteErrMsg("错误的Url或非法的请求!", "");
         }
         ListItem item = new ListItem();
         item.Text  = "选择一个数据表";
         item.Value = "";
         DataTable listtable = this.b_Label.GetTableName(SqlHelper.ConnectionString);
         listtable.DefaultView.Sort          = "TABLE_NAME asc";
         this.DbTableDownList.DataSource     = listtable;
         this.DbTableDownList.DataTextField  = "TABLENAME";
         this.DbTableDownList.DataValueField = "TABLE_NAME";
         this.DbTableDownList.DataBind();
         this.DbTableDownList.Items.Insert(0, item);
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='DatalistProfile.aspx'>扩展功能</a></li> <li><a href='RunSql.aspx'>开发中心</a></li><li><a href='Optimization.aspx'>数据库优化</a></li>" + Call.GetHelp(70));
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageModelManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                DataBaseList();
            }
            string menu = base.Request.QueryString["menu"];

            if (menu == "del")
            {
                int modeid = DataConverter.CLng(Request.QueryString["id"]);
                if (bll.DelModel(modeid))
                {
                    Response.Write("<script language=javascript>alert('删除成功!');location.href='UserModelManage.aspx';</script>");
                }
                else
                {
                    Response.Write("<script language=javascript>alert('删除失败!');</script>");
                }
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li class='active'>黄页申请设置<a href='UserModel.aspx'>[添加申请模型]</a></li>" + Call.GetHelp(85));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         B_Admin badmin = new B_Admin();
         if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "ProductManage"))
         {
             function.WriteErrMsg("没有权限进行此项操作");
         }
         string id = base.Request.QueryString["id"];
         if (string.IsNullOrEmpty(id))
         {
             function.WriteErrMsg("没有指定要移动的商品ID", "ProductMove.aspx");
         }
         else
         {
             this.TxtContentID.Text = id.Trim();
         }
         //this.DDLNode.DataSource = this.bnode.CreateDP(0);
         //this.DDLNode.DataTextField = "NodeName";
         //this.DDLNode.DataValueField = "NodeID";
         //this.DDLNode.DataBind();
         Node_Lit.Text = nll.CreateDP(nll.GetAllShopNode());
     }
     Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li><li class='active'>商品批量移动</li>");
 }
Beispiel #25
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     if (!IsPostBack)
     {
         SiteName_T.Text        = SiteConfig.SiteInfo.SiteName;
         SiteTitle_T.Text       = SiteConfig.SiteInfo.SiteTitle;
         SiteUrl_T.Text         = SiteConfig.SiteInfo.SiteUrl;
         LogoUrl_T.Text         = SiteConfig.SiteInfo.LogoUrl;
         QRCode_T.Text          = SiteConfig.SiteInfo.BannerUrl;
         Webmaster_T.Text       = SiteConfig.SiteInfo.Webmaster;
         MasterPhone_T.Text     = SiteConfig.SiteInfo.MasterPhone;
         WebmasterEmail_T.Text  = SiteConfig.SiteInfo.WebmasterEmail;
         Copyright_T.Text       = SiteConfig.SiteInfo.Copyright;
         MetaKeywords_T.Text    = SiteConfig.SiteInfo.MetaKeywords;
         MetaDescription_T.Text = SiteConfig.SiteInfo.MetaDescription;
         LogoAdmin_T.Text       = SiteConfig.SiteInfo.LogoAdmin;
         LogoPlatName_T.Text    = SiteConfig.SiteInfo.LogoPlatName;
         CustomPath.Text        = CustomerPageAction.baseCustomPath;
         allSiteJS.Text         = SiteConfig.SiteInfo.AllSiteJS;
         ComName_T.Text         = SiteConfig.SiteInfo.CompanyName;
         //取://到/之间的值
         Regex rg = new Regex("(?<=(://))[.\\s\\S]*?(?=(/))", RegexOptions.IgnoreCase);
         siteurl.Text = "http://" + rg.Match(Request.Url.AbsoluteUri).Value;
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='SiteInfo.aspx'>系统设置</a></li><li><a href='SiteInfo.aspx'>网站配置</a></li><li class=\"active\">网站信息配置</li>" + Call.GetHelp(2));
     }
 }
Beispiel #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "ProductManage"))
     {
         function.WriteErrMsg("没有权限进行此项操作");
     }
     else if (ProID < 1 && ModelID == 0)
     {
         function.WriteErrMsg("没有指定要添加内容的模型ID!");
     }
     else if (ProID < 1 && NodeID == 0)
     {
         function.WriteErrMsg("没有指定要添加内容的栏目节点ID!");
     }
     if (!IsPostBack)
     {
         ProGuid         = System.Guid.NewGuid().ToString();
         Group_Hid.Value = JsonConvert.SerializeObject(DBCenter.SelWithField("ZL_Group", "GroupID,GroupName"));
         RangeValidator1.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator1.MaximumValue = Convert.ToString(Int32.MaxValue);
         RangeValidator2.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator2.MaximumValue = Convert.ToString(Int32.MaxValue);
         RangeValidator3.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator3.MaximumValue = Convert.ToString(Int32.MaxValue);
         RangeValidator4.MinimumValue = Convert.ToString(Int32.MinValue);
         RangeValidator4.MaximumValue = Convert.ToString(Int32.MaxValue);
         MyBind();
     }
 }
        //B_Zone_SheetStyle bzss = new B_Zone_SheetStyle();
        protected void Page_Load(object sender, EventArgs e)
        {
            B_Admin badmin = new B_Admin();

            if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "AddPageStyle"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            if (!IsPostBack)
            {
                string menu = DataSecurity.FilterBadChar(Request.QueryString["menu"]);
                int    sid  = Convert.ToInt32(Request.QueryString["sid"]);
                if (menu == "edit")
                {
                    //M_Zone_SheetStyle mzs = bzss.Select(sid);
                    //this.Alias.Text = mzs.Alias;
                    //this.Lname.Text = mzs.Lname;
                    //this.ShowImg.Text = mzs.Img;
                    //this.Price.Text = mzs.Price.ToString();
                    //this.lblid.Value = mzs.ID.ToString();
                    //this.Ltype.SelectedValue = mzs.Groups.ToString();
                    //this.Button1.Text = "修改";
                    //Label1_Hid.Value = "修改样式";
                }
                else
                {
                    Label1_Hid.Value = "添加样式";
                }
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li> <li><a href='SheetStyleManage.aspx'>黄页标签管理</a></li><li>" + Label1_Hid.Value + "</li>");
            }
        }
Beispiel #28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "ModelEdit"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                if (string.IsNullOrEmpty(base.Request.QueryString["FieldID"]))
                {
                    function.WriteErrMsg("没有指定要修改字段的字段ID!");
                }
                int FieldID = DataConverter.CLng(base.Request.QueryString["FieldID"]);
                int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]);

                this.HdfFieldID.Value = FieldID.ToString();
                M_ModelField field = this.bll.GetModelByID(ModelID.ToString(), FieldID);
                //int ModelID = field.ModelID;
                this.m_mdid = ModelID.ToString();
                M_ModelInfo model = this.bModel.GetModelById(ModelID);
                this.Literal1.Text    = model.ModelName;
                Label1.Text           = "当前表:" + model.TableName;
                this.HdfModelID.Value = ModelID.ToString();
                this.GradeOptionType_Cate.DataSource     = B_GradeOption.GetCateList();
                this.GradeOptionType_Cate.DataTextField  = "CateName";
                this.GradeOptionType_Cate.DataValueField = "CateID";
                this.GradeOptionType_Cate.DataBind();
                this.GradeOptionType_Cate.Items.Insert(0, new ListItem("选择多级选项分类", "0"));
                this.GetShow(field);
                Call.SetBreadCrumb(Master, "<li>后台管理</li><li>企业黄页</li><li><a href='/manage/Page/PageModelManage.aspx'>模型管理</a></li><li>修改[" + model.ModelName + "模型]字段</li>");
            }
        }
Beispiel #29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ProductManage.aspx'>商城管理</a></li>  <li>加盟商管理[<a href='AddBoss.aspx?nodeid=1'>添加加盟商 </a>]</li>");
            if (!this.Page.IsPostBack)
            {
                if (Request.QueryString["type"] != null && Request.QueryString["id"] != null)
                {
                    if (Request.QueryString["type"].ToString() == "del")
                    {
                        b_Boss.GetDelete(DataConverter.CLng(Request.QueryString["id"].ToString()));
                    }
                }
                B_Node bll  = new B_Node();
                string menu = string.IsNullOrEmpty(Request.QueryString["menu"]) ? "0" : Request.QueryString["menu"].ToString();
            }
            if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "DeliverType"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            DataTable dt = b_Boss.Sel();

            RPT.DataSource = dt;
            RPT.DataBind();
            string types = Request.QueryString["types"];
            string Nid   = Request.QueryString["nodeid"];

            if (types != null)
            {
                b_Boss.DelByNodeId(Convert.ToInt32(Nid));
                function.WriteSuccessMsg("删除成功!", "Bosstree.aspx");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         B_Admin badmin = new B_Admin();
         if (!B_ARoleAuth.Check(ZLEnum.Auth.model, "AddPageModel"))
         {
             function.WriteErrMsg("没有权限进行此项操作");
         }
         if (string.IsNullOrEmpty(base.Request.QueryString["ModelID"]))
         {
             function.WriteErrMsg("没有指定要添加字段的模型ID!");
         }
         int ModelID = DataConverter.CLng(base.Request.QueryString["ModelID"]);
         this.HdfModelID.Value = ModelID.ToString();
         M_ModelInfo model = this.bModel.GetModelById(ModelID);
         this.HdfTableName.Value = model.TableName;
         this.GradeOptionType_Cate.DataSource     = B_GradeOption.GetCateList();
         this.GradeOptionType_Cate.DataTextField  = "CateName";
         this.GradeOptionType_Cate.DataValueField = "CateID";
         this.GradeOptionType_Cate.DataBind();
         this.GradeOptionType_Cate.Items.Insert(0, new ListItem("选择多级选项分类", "0"));
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li><a href='UserModelManage.aspx'>黄页申请设置</a></li><li><a href='UserModelField.aspx?ModelID=" + Request.QueryString["ModelID"] + "'>样式字段列表</a></li><li class='active'>添加[" + model.ModelName + "]字段</li>");
     }
 }