protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action = PLEnums.ActionEnum.Edit.ToString();//修改类型
                if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.manager().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_list", PLEnums.ActionEnum.View.ToString()); //检查权限
                Model.manager model = GetAdminInfo();                              //取得管理员信息
                RoleBind(ddlRoleId, model.role_type);
                if (action == PLEnums.ActionEnum.Edit.ToString())                  //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            this.id = PLRequest.GetQueryInt("id");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action = PLEnums.ActionEnum.Edit.ToString();//修改类型
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.manager_role().Exists(this.id))
                {
                    JscriptMsg("角色不存在或已被删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_role", PLEnums.ActionEnum.View.ToString()); //检查权限
                RoleTypeBind();                                                    //绑定角色类型
                NavBind();                                                         //绑定导航
                if (action == PLEnums.ActionEnum.Edit.ToString())                  //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action = PLEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = PLRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.channel().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("sys_channel_manage", PLEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();                                                              //绑定类别
                FieldBind();                                                             //绑定扩展字段
                if (action == PLEnums.ActionEnum.Edit.ToString())                        //修改
                {
                    ShowInfo(this.id);
                }
                else
                {
                    txtName.Attributes.Add("ajaxurl", "../../tools/admin_ajax.ashx?action=channel_name_validate");
                }
            }
        }
Exemple #4
0
 /// <summary>
 /// 重写虚方法,此方法将在Init事件前执行
 /// </summary>
 protected override void ShowPage()
 {
     action   = PLRequest.GetQueryString("action");
     username = PLRequest.GetQueryString("username");
     username = Utils.DropHTML(username);
     //检查是否关闭会员注册服务
     if (action == "" && uconfig.regstatus == 0)
     {
         HttpContext.Current.Response.Redirect(linkurl("register", "?action=close"));
         return;
     }
     //Email验证
     if (action == "checkmail")
     {
         string          code  = PLRequest.GetQueryString("code");
         BLL.user_code   bll   = new BLL.user_code();
         Model.user_code model = bll.GetModel(code);
         if (model == null) //返回出错
         {
             HttpContext.Current.Response.Redirect(linkurl("register", "?action=checkerror"));
             return;
         }
         //修改申请码状态
         model.status = 1;
         bll.Update(model);
         //修改用户状态
         new BLL.users().UpdateField(model.user_id, "status=0");
     }
 }
Exemple #5
0
        protected int totalcount;                 //OUT数据总数

        /// <summary>
        /// 重写虚方法,此方法将在Init事件前执行
        /// </summary>
        protected override void ShowPage()
        {
            page    = PLRequest.GetQueryInt("page", 1);
            tags    = PLRequest.GetQueryString("tags").Replace("'", string.Empty);
            keyword = PLRequest.GetQueryString("keyword").Replace("'", string.Empty);
            channel = PLRequest.GetQueryString("channel").Replace("'", string.Empty);
        }
        private int id        = 0;            //公众账户ID

        protected void Page_Load(object sender, EventArgs e)
        {
            this.action = PLRequest.GetQueryString("action"); //获取消息类型
            this.id     = PLRequest.GetQueryInt("id", 0);     //获取公众账户ID
            if (action.ToLower() == "default")
            {
                ChkAdminLevel("weixin_subscribe_default", PLEnums.ActionEnum.View.ToString()); //检查权限
                hideReqestType.Value = "0";                                                    //默认回复
                litPosition1.Text    = litPosition2.Text = "默认回复";
            }
            else if (action.ToLower() == "cancel")
            {
                ChkAdminLevel("weixin_subscribe_cancel", PLEnums.ActionEnum.View.ToString()); //检查权限
                hideReqestType.Value = "7";                                                   //取消关注
                litPosition1.Text    = litPosition2.Text = "取消回复";
            }
            else
            {
                ChkAdminLevel("weixin_subscribe_subscribe", PLEnums.ActionEnum.View.ToString()); //检查权限
                hideReqestType.Value = "6";                                                      //关注回复
                litPosition1.Text    = litPosition2.Text = "关注回复";
            }

            if (!Page.IsPostBack)
            {
                TreeBind(); //绑定公众账户
                if (this.id > 0)
                {
                    ShowInfo(this.id);
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.channel_id  = PLRequest.GetQueryInt("channel_id");
     this.category_id = PLRequest.GetQueryInt("category_id");
     this.area_id     = PLRequest.GetQueryInt("area_id");
     this.keywords    = PLRequest.GetQueryString("keywords");
     this.property    = PLRequest.GetQueryString("property");
     if (channel_id == 0)
     {
         JscriptMsg("频道参数不正确!", "back");
         return;
     }
     this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
     this.pageSize     = GetPageSize(10);                                   //每页数量
     this.prolistview  = Utils.GetCookie("article_list_view");              //显示方式
     //获取页面所有操作权限
     auths               = GetAdminAuth("channel_" + this.channel_name + "_list");
     btnSave.Visible     = auths[PLEnums.ActionEnum.Edit];
     btnAudit.Visible    = auths[PLEnums.ActionEnum.Audit];
     btnReturned.Visible = auths[PLEnums.ActionEnum.Returned];
     btnDelete.Visible   = auths[PLEnums.ActionEnum.Delete];
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("channel_" + this.channel_name + "_list", PLEnums.ActionEnum.View.ToString()); //检查权限
         TreeBind(this.channel_id);                                                                   //绑定类别
         TreeBindArea();                                                                              //绑定地区
         RptBind(this.channel_id, this.category_id, this.area_id, "id>0" + CombSqlTxt(this.keywords, this.property), "sort_id asc,add_time desc,id desc");
     }
 }
        private void UpLoadFile(HttpContext context)
        {
            Model.siteconfig siteConfig   = new BLL.siteconfig().loadConfig();
            string           _delfile     = PLRequest.GetString("DelFilePath");
            HttpPostedFile   _upfile      = context.Request.Files["Filedata"];
            bool             _iswater     = false; //默认不打水印
            bool             _isthumbnail = false; //默认不生成缩略图

            if (PLRequest.GetQueryString("IsWater") == "1")
            {
                _iswater = true;
            }
            if (PLRequest.GetQueryString("IsThumbnail") == "1")
            {
                _isthumbnail = true;
            }
            if (_upfile == null)
            {
                context.Response.Write("{\"status\": 0, \"msg\": \"请选择要上传文件!\"}");
                return;
            }
            UpLoad upFiles = new UpLoad();
            string msg     = upFiles.fileSaveAs(_upfile, _isthumbnail, _iswater);

            //删除已存在的旧文件,旧文件不为空且应是上传文件,防止跨目录删除
            if (!string.IsNullOrEmpty(_delfile) && _delfile.IndexOf("../") == -1 &&
                _delfile.ToLower().StartsWith(siteConfig.webpath.ToLower() + siteConfig.filepath.ToLower()))
            {
                Utils.DeleteUpFile(_delfile);
            }
            //返回成功信息
            context.Response.Write(msg);
            context.Response.End();
        }
Exemple #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action = PLEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = PLRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.article_attribute_field().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel(" sys_channel_field", PLEnums.ActionEnum.View.ToString());                                                                          //检查权限
                dlIsPassWord.Visible = dlIsHtml.Visible = dlEditorType.Visible = dlDataType.Visible
                                                                                     = dlDataLength.Visible = dlDataPlace.Visible = dlItemOption.Visible = false; //隐藏相应控件
                if (action == PLEnums.ActionEnum.Edit.ToString())                                                                                                 //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
        private int id        = 0;                                 //公众账户ID

        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action = PLEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = PLRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.weixin_account().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("weixin_custom_menu", PLEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();                                                              //绑定公众账户
                if (action == PLEnums.ActionEnum.Edit.ToString())                        //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action = PLEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = PLRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.sms_template().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_sms_template", PLEnums.ActionEnum.View.ToString()); //检查权限
                if (action == PLEnums.ActionEnum.Edit.ToString())                       //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
Exemple #12
0
        private void feedback_add(HttpContext context)
        {
            StringBuilder strTxt = new StringBuilder();

            BLL.feedback   bll   = new BLL.feedback();
            Model.feedback model = new Model.feedback();

            string _site_path  = PLRequest.GetQueryString("site");
            string _code       = PLRequest.GetFormString("txtCode");
            string _title      = PLRequest.GetFormString("txtTitle");
            string _content    = PLRequest.GetFormString("txtContent");
            string _user_name  = PLRequest.GetFormString("txtUserName");
            string _user_tel   = PLRequest.GetFormString("txtUserTel");
            string _user_qq    = PLRequest.GetFormString("txtUserQQ");
            string _user_email = PLRequest.GetFormString("txtUserEmail");

            //检查站点目录
            if (string.IsNullOrEmpty(_site_path))
            {
                context.Response.Write("{\"status\":0, \"msg\":\"对不起,网站传输参数有误!\"}");
                return;
            }
            //校检验证码
            if (string.IsNullOrEmpty(_code))
            {
                context.Response.Write("{\"status\":0, \"msg\":\"对不起,请输入验证码!\"}");
                return;
            }
            if (context.Session[PLKeys.SESSION_CODE] == null)
            {
                context.Response.Write("{\"status\":0, \"msg\":\"对不起,验证码已过期!\"}");
                return;
            }
            if (_code.ToLower() != (context.Session[PLKeys.SESSION_CODE].ToString()).ToLower())
            {
                context.Response.Write("{\"status\":0, \"msg\":\"验证码与系统的不一致!\"}");
                return;
            }
            if (string.IsNullOrEmpty(_content))
            {
                context.Response.Write("{\"status\": 0, \"msg\": \"对不起,请输入留言的内容!\"}");
                return;
            }
            model.site_path  = Utils.DropHTML(_site_path);
            model.title      = Utils.DropHTML(_title);
            model.content    = Utils.ToHtml(_content);
            model.user_name  = Utils.DropHTML(_user_name);
            model.user_tel   = Utils.DropHTML(_user_tel);
            model.user_qq    = Utils.DropHTML(_user_qq);
            model.user_email = Utils.DropHTML(_user_email);
            model.add_time   = DateTime.Now;
            model.is_lock    = 1; //不需要审核,请改为0
            if (bll.Add(model) > 0)
            {
                context.Response.Write("{\"status\": 1, \"msg\": \"恭喜您,留言提交成功!\"}");
                return;
            }
            context.Response.Write("{\"status\": 0, \"msg\": \"对不起,保存过程中发生错误!\"}");
            return;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == PLEnums.ActionEnum.Edit.ToString())
            {
                this.action  = PLEnums.ActionEnum.Edit.ToString();//修改类型
                this.urlName = PLRequest.GetQueryString("name");
                if (string.IsNullOrEmpty(this.urlName))
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("sys_url_rewrite", PLEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();                                                           //绑定频道
                if (action == PLEnums.ActionEnum.Edit.ToString())                     //修改
                {
                    ShowInfo(urlName);
                }
                else
                {
                    txtName.Attributes.Add("ajaxurl", "../../tools/admin_ajax.ashx?action=urlrewrite_name_validate");
                }
            }
        }
Exemple #14
0
        /// <summary>
        /// 生成静态文件方法
        /// </summary>
        /// <param name="context"></param>
        public void handleHtml(HttpContext context)
        {
            string lang          = PLRequest.GetQueryString("lang");
            string aspx_filename = PLRequest.GetQueryString("aspx_filename");
            string catalogue     = PLRequest.GetQueryString("catalogue");

            CreateIndexHtml(lang, aspx_filename, catalogue);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.keywords = PLRequest.GetQueryString("keywords");
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("user_group", PLEnums.ActionEnum.View.ToString()); //检查权限
         RptBind("id>0" + CombSqlTxt(this.keywords));
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.keywords = PLRequest.GetQueryString("keywords");
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("manager_role", PLEnums.ActionEnum.View.ToString()); //检查权限
         Model.manager model = GetAdminInfo();                              //取得当前管理员信息
         RptBind("role_type>=" + model.role_type + CombSqlTxt(this.keywords));
     }
 }
Exemple #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //取得返回参数
            string state = PLRequest.GetQueryString("state");
            string code  = PLRequest.GetQueryString("code");

            string access_token = string.Empty;
            string expires_in   = string.Empty;
            string client_id    = string.Empty;
            string openid       = string.Empty;

            if (Session["oauth_state"] == null || Session["oauth_state"].ToString() == "" || state != Session["oauth_state"].ToString())
            {
                Response.Write("出错啦,state未初始化!");
                return;
            }

            //第一步:获取Access Token
            Dictionary <string, object> dic1 = qq_helper.get_access_token(code, state);

            if (dic1 == null || !dic1.ContainsKey("access_token"))
            {
                Response.Write("错误代码:,无法获取Access Token,请检查App Key是否正确!");
                return;
            }
            access_token = dic1["access_token"].ToString();
            expires_in   = dic1["expires_in"].ToString();

            //第二步:通过Access Token来获取用户的OpenID
            Dictionary <string, object> dic2 = qq_helper.get_open_id(access_token);

            if (dic2 == null || !dic2.ContainsKey("openid"))
            {
                if (dic2.ContainsKey("error"))
                {
                    Response.Write("error:" + dic2["error"] + ",error_description:" + dic2["error_description"]);
                }
                else
                {
                    Response.Write("出错啦,无法获取用户授权Openid!");
                }
                return;
            }
            client_id = dic2["client_id"].ToString();
            openid    = dic2["openid"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "qq";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //第三步:跳转到指定页面
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            //Response.Write("\access_token:" + access_token + ",openid:" + openid);
            return;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = PLRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_point_log", PLEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("id>0" + CombSqlTxt(keywords), "add_time desc,id desc");
            }
        }
Exemple #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = PLRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("sys_site_manage", PLEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("id>0" + CombSqlTxt(this.keywords), "sort_id asc,id desc");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = PLRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("weixin_response_sound", PLEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("request_type=1 and response_type=3" + CombSqlTxt(this.keywords), "sort_id asc,id desc");
            }
        }
Exemple #21
0
        public void ProcessRequest(HttpContext context)
        {
            //取得处事类型
            string action = PLRequest.GetQueryString("action");

            switch (action)
            {
            case "add":     //发布留言
                feedback_add(context);
                break;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.channel = PLRequest.GetQueryString("channel");
            this.type    = PLRequest.GetQueryString("type");

            if (!Page.IsPostBack)
            {
                ChkAdminLevel("sys_url_rewrite", PLEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();
                RptBind(this.channel, this.type);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = PLRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_list", PLEnums.ActionEnum.View.ToString()); //检查权限
                Model.manager model = GetAdminInfo();                              //取得当前管理员信息
                RptBind("role_type>=" + model.role_type + CombSqlTxt(keywords), "add_time asc,id desc");
            }
        }
        //页面加载事件
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = PLRequest.GetQueryString("action");

            if (this.channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            //如果是编辑或复制则检查信息是否存在
            if (_action == PLEnums.ActionEnum.Edit.ToString() || _action == PLEnums.ActionEnum.Copy.ToString())
            {
                this.action = _action;//修改或复制类型
                this.id     = PLRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.article().Exists(this.id))
                {
                    JscriptMsg("信息不存在或已被删除!", "back");
                    return;
                }
                //如果roletype==1即是超级管理组
                if (GetAdminInfo().role_type != 1 && new BLL.article().GetModel(this.id).user_id != GetAdminInfo().id)
                {
                    JscriptMsg("无权修改该信息!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_list", PLEnums.ActionEnum.View.ToString());      //检查权限
                ShowSysField(this.channel_id);                                                                    //显示相应的默认控件
                TreeBind(this.channel_id);                                                                        //绑定类别
                TreeBindArea();                                                                                   //绑定地区
                RptBind("parent_id=0", "sort_id asc,id desc");                                                    //绑定规格
                if (action == PLEnums.ActionEnum.Edit.ToString() || action == PLEnums.ActionEnum.Copy.ToString()) //修改
                {
                    ShowInfo(this.id);
                }
                //所有操作以后都是待审核
                if (action == PLEnums.ActionEnum.Add.ToString() || action == PLEnums.ActionEnum.Copy.ToString() || action == PLEnums.ActionEnum.Edit.ToString())
                {
                    if (GetAdminInfo().role_type != 1)
                    {
                        rblStatus.Enabled = false;
                    }
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ChkAdminLevel("user_list", PLEnums.ActionEnum.View.ToString()); //检查权限
            this.group_id = PLRequest.GetQueryInt("group_id");
            this.keywords = PLRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                TreeBind("is_lock=0"); //绑定类别
                RptBind("id>0" + CombSqlTxt(this.group_id, this.keywords), "reg_time desc,id desc");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.username = PLRequest.GetQueryString("username"); //获得用户名
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("user_recharge_log", PLEnums.ActionEnum.View.ToString()); //检查权限
         if (!string.IsNullOrEmpty(username))
         {
             txtUserName.Text = username;             //赋值用户名
         }
         TreeBind("type=1");                          //绑定支付方式
         txtRechargeNo.Text = Utils.GetOrderNumber(); //随机生成订单号
     }
 }
        protected string skinName = string.Empty; //模板目录

        protected void Page_Load(object sender, EventArgs e)
        {
            skinName = PLRequest.GetQueryString("skin");
            if (string.IsNullOrEmpty(skinName))
            {
                JscriptMsg("传输参数不正确!", "back");
                return;
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("sys_site_templet", PLEnums.ActionEnum.View.ToString()); //检查权限
                RptBind(skinName);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //取得返回参数
            string state = PLRequest.GetQueryString("state");
            string code  = PLRequest.GetQueryString("code");

            string access_token = string.Empty;
            string expires_in   = string.Empty;
            string client_id    = string.Empty;
            string openid       = string.Empty;

            if (Session["oauth_state"] == null || Session["oauth_state"].ToString() == "" || state != Session["oauth_state"].ToString())
            {
                Response.Write("出错啦,state未初始化!");
                return;
            }

            //第一步:获取Access Token
            Dictionary <string, object> dic1 = kaixin_helper.get_access_token(code, state);

            if (dic1 == null)
            {
                Response.Write("出错了,无法获取Access Token,请检查App Key是否正确!");
                return;
            }
            access_token = dic1["access_token"].ToString();
            expires_in   = dic1["expires_in"].ToString();

            //第二步:通过Access Token来获取用户的ID
            Dictionary <string, object> dic2 = kaixin_helper.get_info(access_token, "uid");

            if (dic2 == null)
            {
                Response.Write("出错啦,无法获取用户授权uid!");
                return;
            }
            openid = dic2["uid"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "kaixin";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //第三步:跳转到指定页面
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            return;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = PLRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                string getAdminInfo = "";
                //如果roletype==1即是超级管理组
                if (GetAdminInfo().role_type != 1)
                {
                    getAdminInfo = "and seller_id=" + GetAdminInfo().id;
                }
                ChkAdminLevel("order_list", PLEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("status=1 " + getAdminInfo + CombSqlTxt(this.keywords), "add_time desc,id desc");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     order_no = PLRequest.GetQueryString("order_no");
     if (order_no == "")
     {
         JscriptMsg("传输参数不正确!", "back");
         return;
     }
     if (!new BLL.orders().Exists(order_no))
     {
         JscriptMsg("订单不存在或已被删除!", "back");
         return;
     }
     if (!Page.IsPostBack)
     {
         ShowInfo(order_no);
     }
 }