protected void Page_Load(object sender, EventArgs e)
        {
            string menu = DataSecurity.FilterBadChar(Request.QueryString["menu"]);

            if (!IsPostBack)
            {
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li><a href='PageManage.aspx'>黄页管理</a>  <li>查看黄页申请</li>");
                B_Admin badmin = new B_Admin();
                B_Group gll    = new B_Group();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                M_PageReg regMod = b_PageReg.SelReturnModel(Mid);
                int       modid  = regMod.ModelID;//模型ID
                this.ModelID          = modid;
                this.HdnID.Value      = Mid.ToString();
                this.HdnModel.Value   = this.ModelID.ToString();
                UName_T.Text          = regMod.UserName;
                CompName_T.Text       = regMod.CompanyName;
                Logo_T.Text           = regMod.LOGO;
                PageInfo_T.Text       = regMod.PageInfo;
                TxtTemplate_hid.Value = regMod.Template;
                if (menu == "view")//查看黄页资料
                {
                    Label1.Text = "查看黄页资料";
                }
                else if (menu == "modify")
                {
                    Label1.Text = "修改黄页资料";
                }
                int       Umodeid = regMod.ModelID;
                DataTable tbinfo  = mll.SelectTableName(regMod.TableName, "UserName = '******'");
                if (tbinfo.Rows.Count > 0)
                {
                    ModelHtml.Text = mll.InputallHtml(Umodeid, 0, new ModelConfig()
                    {
                        ValueDT = tbinfo
                    });
                }
                else
                {
                    this.ModelHtml.Text = this.mll.InputallHtml(DataConverter.CLng(Umodeid), 0, new ModelConfig());
                }
                Temp_RPT.DataSource = sll.Sel();
                Temp_RPT.DataBind();
                NodeStyle_Hid.Value = regMod.NodeStyle.ToString();
                if (string.IsNullOrEmpty(regMod.Template))//如果没有模板就默认为样式首页模板
                {
                    M_PageStyle stylemod = sll.SelReturnModel(regMod.NodeStyle);
                    TxtTemplate_hid.Value = stylemod.TemplateIndex;
                }
            }
        }
        // 操作
        public void Option()
        {
            if (!string.IsNullOrEmpty(Request["menu"]))
            {
                M_CommonData b_CommonData = new M_CommonData();
                switch (Request["menu"])
                {
                case "cancel":
                    m_PageReg        = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Status = 0;
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('操作成功!');location.href='PageManage.aspx';</script>");
                    break;

                case "Audit":
                    m_PageReg        = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Status = 99;
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('操作成功!');</script>");
                    Response.Redirect("PageManage.aspx");
                    break;

                case "noLevel":
                    m_PageReg = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Recommendation = "0";
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('取消推荐成功!');location.href='PageManage.aspx';</script>");
                    break;

                case "Level":
                    m_PageReg = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Recommendation = "1";
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('推荐成功!');location.href='PageManage.aspx';</script>");
                    break;

                case "del":
                    b_PageReg.Del(Mid);
                    Response.Write("<script>alert('操作成功!');location.href='PageManage.aspx';</script>");
                    break;

                default: break;
                }
            }
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (StyleID < 1)
     {
         function.WriteErrMsg("Style参数错误,用户尚未绑定样式");
     }
     if (!IsPostBack)
     {
         DPBind();
         UserID = DataConverter.CLng(Request.QueryString["UserID"]);
         if (Menu.Equals("del"))
         {
             int did = DataConverter.CLng(Request.QueryString["did"]);
             if (did > 0)
             {
                 delnodes(did);
             }
             Response.Redirect("PageTemplate.aspx?StyleID=" + StyleID);
         }
         //----------------------------------
         if (StyleID > 0)
         {
             if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "AddPageStyle"))
             {
                 function.WriteErrMsg("没有权限进行此项操作");
             }
             String styleName = sll.Getpagestrylebyid(StyleID).PageNodeName;
             StyleName_L.Text = styleName;
             Label1.Text      = "<a href=\"PageStyle.aspx\">黄页样式管理</a> &gt;&gt; <a href=\"PageTemplate.aspx?styleid=" + this.StyleID + "\">样式栏目设置</a> &gt;&gt; " + styleName;
             addtree.Text     = "<a href=\"AddPageTemplate.aspx?styleid=" + StyleID + "\">添加黄页栏目</a>";
         }
         if (Mid > 0)
         {
             M_PageReg regMod    = regBll.SelReturnModel(Mid);
             string    tablename = regMod.TableName;
             DataTable temptable = mll.SelectTableName(tablename, "UserName =@uname", new SqlParameter[] { new SqlParameter("uname", regMod.UserName) });
             this.tempStyleid = DataConverter.CLng(temptable.Rows[0]["Styleid"]);
             UserID           = regMod.UserID;
             Label1.Text      = "黄页管理 &gt;&gt; <a href=\"PageManage.aspx\">黄页用户列表</a> &gt;&gt; <a href=\"PageTemplate.aspx?id=" + Mid + "\">" + regMod.UserName + "</a> &gt;&gt; ";
             addtree.Text     = "<a href=\"AddPageTemplate.aspx?id=" + Mid + "\">添加自定义用户黄页栏目</a>";
         }
         MyBind();
         Call.SetBreadCrumb(Master, "<li><a href='PageManage.aspx'>企业黄页</a><li><a href='PageStyle.aspx'>黄页样式</a></li></li><li class='active'>黄页栏目<a href='AddPageTemplate.aspx?styleid=" + StyleID + "'>[添加栏目]</a></li>");
     }
 }
        /// <summary>
        /// 返回该黄页的模板物理路径
        /// </summary>
        /// <param name="cData">ZL_CommonModel</param>
        /// <param name="tempMod">ZL_PageTemplate:栏目</param>
        private string GetTempPath(M_CommonData cData, M_Templata tempMod, int pageID)
        {
            if (pageID == 0)
            {
                function.WriteErrMsg("未为该黄页栏目指定样式!"); return("");
            }
            B_PageReg    pageBll  = new B_PageReg();
            M_PageReg    pageMod  = pageBll.SelReturnModel(pageID);
            B_PageStyle  styleBll = new B_PageStyle();
            M_PageStyle  styleMod = new M_PageStyle();
            M_CommonData ItemInfo = conBll.GetCommonData(ItemID);//获取栏目信息
            M_Templata   Nodeinfo = tll.Getbyid(ItemInfo.NodeID);

            if (pageMod == null)
            {
                function.WriteErrMsg("未找到黄页信息" + pageID); return("");
            }
            if (pageMod.NodeStyle != 0)//样式优先读取客户自己设定的,再读取我们后台设定的
            {
                styleMod = styleBll.SelReturnModel(pageMod.NodeStyle);
            }
            else if (DataConverter.CLng(Nodeinfo.UserGroup) != 0)
            {
                styleMod = styleBll.SelReturnModel(DataConverter.CLng(Nodeinfo.UserGroup));
            }
            else
            {
                function.WriteErrMsg("该栏目未指定样式!!"); return("");
            }
            string modelist = tempMod.Modelinfo;
            string tempUrl  = "";
            string tempPath = "";

            //------TempUrl为栏目所指定的Html模板路径.
            if (!string.IsNullOrEmpty(modelist))                            //38,内容页/招聘内容页
            {
                if (modelist.IndexOf("|") > 0 && modelist.IndexOf(",") > 0) //如绑定多个模型则以|分隔,每个模型,可绑定不同的黄页
                {
                    string[] modearr = modelist.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
                    for (int i = 0; i < modearr.Length; i++)
                    {
                        string[] arr = modearr[i].Split(new char[] { ',' });
                        if (cData.ModelID == Convert.ToInt32(arr[0]))
                        {
                            tempUrl = arr[1]; break;
                        }
                    }
                }
                else if (modelist.IndexOf(",") > 0)
                {
                    tempUrl = modelist.Split(new char[] { ',' })[1];
                }
            }
            //-----获取该黄页所绑定的样式,将栏目模板与样式模板路径组合,UserGroup即为其所绑定的样式ID
            tempPath = Server.MapPath(styleMod.StylePath + tempUrl);
            return(tempPath);
        }
Ejemplo n.º 5
0
        public ActionResult ApplyInfo()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.page, "manage"))
            {
                return(null);
            }
            M_PageReg regMod = regBll.SelReturnModel(Mid);

            ViewBag.valuedr = regBll.SelUserApplyInfo(regMod);
            DataTable styleDt = styleBll.Sel();

            styleDt.Columns["PageNodeid"].ColumnName       = "TemplateID";
            styleDt.Columns["TemplateIndex"].ColumnName    = "TemplateUrl";
            styleDt.Columns["TemplateIndexPic"].ColumnName = "TemplatePic";
            styleDt.Columns["PageNodeName"].ColumnName     = "rname";
            ViewBag.styleDt    = styleDt;
            ViewBag.applyModDT = modBll.GetListPage();
            return(View(regMod));
        }
Ejemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sid          = DataConverter.CLng(base.Request.QueryString["sid"]);
            id           = DataConverter.CLng(base.Request.QueryString["id"]);
            styleids     = DataConverter.CLng(base.Request.QueryString["styleids"]);
            PageparentID = DataConverter.CLng(base.Request.QueryString["ParentID"]);
            if (!IsPostBack)
            {
                Call.HideBread(Master);
                BindDP();
                #region 判断添加、修改
                //else if (styleids > 0)
                //{
                //    loadmenulist(UserID);
                //    int groupid = DataConverter.CLng(tll.Getbyid(styleids).UserGroup);
                //    string nodename = sll.Getpagestrylebyid(groupid).PageNodeName.ToString();
                //    Label1_Hid.Value = "<a href=\"PageTemplate.aspx?styleid=" + groupid + "\">[黄页栏目管理]</a><a href=\"PageTemplate.aspx?styleid=" + groupid + "\">样式栏目设置</a>" + nodename;
                //    Label2_Hid.Value = "修改黄页栏目";
                //    Label3.Text = "修改黄页栏目";
                //    Button1.Text = "修改栏目";
                //    returnurl = "PageTemplate.aspx?styleid=" + groupid + "";
                //    Tempinfo = tll.Getbyid(styleids);
                //    PageStyle_DP.SelectedValue = Tempinfo.UserGroup;
                //    StyleID_Hid.Value = Tempinfo.UserGroup;
                //}
                if (sid > 0)//修改
                {
                    string nodename = ull.SeachByID(UserID).UserName;
                    loadmenulist(UserID);
                    int       PageStyleid = 0;
                    DataTable regdt       = mll.SelectTableName("ZL_Pagereg", "TableName like 'ZL_Reg_%' and UserName='******'");
                    if (regdt != null && regdt.Rows.Count > 0)
                    {
                        string    PageTableName = regdt.Rows[0]["TableName"].ToString();
                        DataTable pagetable     = mll.SelectTableName(PageTableName, "UserName = '******'");
                        PageStyleid     = DataConverter.CLng(pagetable.Rows[0]["Styleid"]);
                        UserGroup.Value = PageStyleid.ToString();
                        Username.Value  = nodename;
                    }
                    Label1_Hid.Value           = "黄页管理 <a href=\"PageManage.aspx\">[黄页用户列表]</a> <a href=\"PageTemplate.aspx?id=" + UserID + "\">" + nodename + "</a> ";
                    Label2_Hid.Value           = "修改自定义用户黄页栏目";
                    Label3.Text                = "修改栏目";
                    Button1.Text               = "修改栏目";
                    returnurl                  = "PageTemplate.aspx?id=" + UserID + "";
                    Tempinfo                   = tll.Getbyid(sid);
                    PageStyle_DP.SelectedValue = Tempinfo.UserGroup;
                }
                else if (StyleID > 0)//从样式列表处跳转
                {
                    M_PageStyle styleinfo = sll.Getpagestrylebyid(StyleID);
                    string      nodename  = styleinfo.PageNodeName;
                    returnurl       = "PageTemplate.aspx?styleid=" + StyleID + "";
                    UserGroup.Value = StyleID.ToString();
                    loadmenulist(UserID);
                    if (PageparentID > 0)
                    {
                        string snodename = tll.Getbyid(PageparentID).TemplateName;
                        Label1_Hid.Value = "<a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">[黄页栏目管理]</a><a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">样式栏目设置</a> " + nodename;
                        Label2_Hid.Value = "添加黄页子栏目";
                        Label3.Text      = "添加黄页子栏目 [" + snodename + "]";
                    }
                    else
                    {
                        Label1_Hid.Value = "<a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">[黄页栏目管理]</a>  <a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">样式栏目设置</a>" + nodename;
                        Label2_Hid.Value = "添加黄页栏目";
                        Label3.Text      = "添加黄页样式栏目";
                    }
                    PageStyle_DP.SelectedValue = StyleID.ToString();
                }
                else if (id > 0)
                {
                    M_PageReg m_PageReg     = regBll.SelReturnModel(DataConverter.CLng(Request["id"]));
                    string    nodename      = m_PageReg.UserName;
                    DataTable cmdtable      = mll.SelectTableName("ZL_Pagereg", "TableName like 'ZL_Reg_%' and UserName='******'");
                    string    PageTableName = cmdtable.Rows[0]["TableName"].ToString();
                    DataTable pagetable     = mll.SelectTableName(PageTableName, "UserName = '******'");
                    int       PageStyleid   = DataConverter.CLng(pagetable.Rows[0]["Styleid"]);
                    UserGroup.Value = PageStyleid.ToString();
                    Username.Value  = nodename;
                    string tempoptionlist = "<select name=\"ParentID\" id=\"ParentID\">";
                    tempoptionlist = tempoptionlist + "<option value=\"0\">请选择栏目</option>";
                    loadmenulist(UserID);

                    Label1_Hid.Value = "黄页管理  <a href=\"PageTemplate.aspx?id=" + id + "\">[黄页用户列表]</a> <a href=\"PageTemplate.aspx?id=" + id + "\">" + nodename + "</a> ";
                    Label2_Hid.Value = "添加自定义用户黄页栏目";
                    Label3.Text      = "添加自定义用户黄页栏目";
                    returnurl        = "PageTemplate.aspx?id=" + id + "&userid=" + UserID;
                    Userids.Value    = ull.GetUserByName(nodename).UserID.ToString();
                }
                #endregion
                #region 初始化界面默认值
                if (sid > 0 || styleids > 0)
                {
                    if (Tempinfo != null)//修改栏目
                    {
                        if (!IsPostBack)
                        {
                            templateName.Text          = Tempinfo.TemplateName;               //栏目名称
                            templateUrl_hid.Value      = Tempinfo.TemplateUrl.ToString();     //栏目模板地址
                            templateType.Text          = Tempinfo.TemplateType.ToString();    //栏目类型
                            OpenType.Text              = Tempinfo.OpenType.ToString();        //打开方式
                            isTrue.Text                = Tempinfo.IsTrue.ToString();          //启用状态
                            identifiers.Text           = Tempinfo.Identifiers.ToString();     //标识符
                            NodeFileEx.Text            = Tempinfo.NodeFileEx.ToString();      //栏目扩展名
                            ContentFileEx.Text         = Tempinfo.ContentFileEx;              //内容页扩展名
                            addtime.Text               = Tempinfo.Addtime.ToString();         //添加时间
                            Nodeimgurl.Text            = Tempinfo.Nodeimgurl.ToString();      //栏目图片地址
                            Nodeimgtext.Text           = Tempinfo.Nodeimgtext.ToString();     //栏目提示
                            Pagecontent.Text           = Tempinfo.Pagecontent.ToString();     //说明 用于在单页页详细介绍单页信息,支持HTML
                            PageMetakeyword.Text       = Tempinfo.PageMetakeyword.ToString(); //META关键词
                            PageMetakeyinfo.Text       = Tempinfo.PageMetakeyinfo.ToString(); //META网页描述
                            linkurl.Text               = Tempinfo.Linkurl.ToString();         //外部链接地址
                            linkimg.Text               = Tempinfo.Linkimg.ToString();         //外部链接图片地址
                            linktxt.Text               = Tempinfo.Linktxt.ToString();         //外部链接提示
                            OrderID.Text               = Tempinfo.OrderID.ToString();         //排序
                            TemplateID.Value           = Tempinfo.TemplateID.ToString();      //栏目ID
                            UserGroup.Value            = Tempinfo.UserGroup;                  //所属样式ID
                            PageStyle_DP.SelectedValue = Tempinfo.UserGroup;
                            Userids.Value              = Tempinfo.UserID.ToString();          //所属用户ID
                            lblmodelstr.Value          = Tempinfo.Modelinfo.ToString();
                            Username.Value             = Tempinfo.Username.ToString();
                        }
                    }
                }
                else //公用添加栏目
                {
                    TemplateID.Value   = "0";
                    addtime.Text       = DateTime.Now.ToString();
                    OpenType.Text      = "_blank";
                    NodeFileEx.Text    = "html";
                    ContentFileEx.Text = "html";
                    OrderID.Text       = "0";
                }

                #endregion
                DataTable dt = mll.SelectTableName("ZL_Model", "TableName like 'ZL_Page_%'");
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
                #region 判断栏目类型
                switch (templateType.Text)
                {
                case "0":     //默认为栏目
                    typenode.Visible           = true;
                    tempurl.Visible            = true;
                    typetxt.Visible            = false;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "2";
                    break;

                case "1":     //单页
                    typenode.Visible           = false;
                    tempurl.Visible            = true;
                    typetxt.Visible            = true;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = false;
                    templateType.SelectedValue = "1";
                    break;

                case "2":     //栏目
                    tempurl.Visible            = true;
                    typenode.Visible           = true;
                    typetxt.Visible            = true;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "2";
                    break;

                case "3":     //url连接
                    typenode.Visible           = false;
                    tempurl.Visible            = false;
                    typetxt.Visible            = false;
                    urltype.Visible            = true;
                    nodetype.Visible           = false;
                    SelectModel.Visible        = false;
                    templateType.SelectedValue = "3";
                    break;

                case "4":     //功能型栏目
                    typenode.Visible           = false;
                    tempurl.Visible            = true;
                    typetxt.Visible            = false;
                    urltype.Visible            = false;
                    nodetype.Visible           = false;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "4";
                    break;

                default:     //默认为栏目
                    tempurl.Visible            = true;
                    typenode.Visible           = true;
                    typetxt.Visible            = true;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "2";
                    break;
                }
                #endregion
            }
        }
        public void Default()
        {
            if (pageID < 1)
            {
                RepToClient("[产生错误的可能原因:没有找到黄页信息!访问规则:/Page/Default?Pageid=黄页ID]"); return;
            }
            pageMod = pageBll.SelReturnModel(pageID);
            if (pageMod.ID < 0)
            {
                RepToClient("[产生错误的可能原因:您访问的黄页信息不存在!]"); return;
            }
            if (pageMod.Status != 99)
            {
                RepToClient("[产生错误的可能原因:您访问的黄页信息未经过审核!]"); return;
            }
            if (pageMod.TableName.IndexOf("ZL_Reg_") == -1)
            {
                RepToClient("[产生错误的可能原因:您访问的黄页信息不存在!]"); return;
            }
            string pageuser = pageMod.UserName;
            int    Itemid   = DataConverter.CLng(pageMod.InfoID);

            DataTable dt = fieldBll.SelectTableName(pageMod.TableName, "UserName = '******'");

            //pagesmallinfo-黄页详细注册信息
            if (dt.Rows.Count < 1)
            {
                RepToClient("[产生错误的可能原因:您访问的黄页信息不存在!]"); return;
            }
            if (string.IsNullOrEmpty(pageMod.Template))
            {
                RepToClient("[产生错误的可能原因:该黄页未指定模板!]"); return;
            }
            else
            {
                string templateurl = "";
                if (string.IsNullOrEmpty(pageMod.Template))
                {
                }
                else
                {
                    templateurl = pageMod.Template;
                }
                string TemplateDir = "";
                TemplateDir = SiteConfig.SiteOption.TemplateDir + "/" + templateurl;
                int Cpage = 1;
                if (string.IsNullOrEmpty(base.Request.QueryString["p"]))
                {
                    Cpage = 1;
                }
                else
                {
                    Cpage = DataConverter.CLng(base.Request.QueryString["p"]);
                }
                TemplateDir = base.Request.PhysicalApplicationPath + TemplateDir;
                TemplateDir = TemplateDir.Replace("/", @"\").Replace("\\\\", "\\");
                //获取模板html
                string indexstr = FileSystemObject.ReadFile(TemplateDir);
                indexstr = this.createBll.CreateHtml(indexstr, Cpage, pageID, "0"); //黄页最后一个为int类型
                string ContentHtml = indexstr;

                if (!string.IsNullOrEmpty(ContentHtml))
                {
                    /* --------------------判断是否分页 并做处理------------------------------------------------*/
                    string infoContent = ""; //进行处理的内容字段
                    string pagelabel   = "";
                    string infotmp     = "";
                    string pattern     = @"{\#Content}([\s\S])*?{\/\#Content}"; //查找要分页的内容
                    if (Regex.IsMatch(ContentHtml, pattern, RegexOptions.IgnoreCase))
                    {
                        infoContent = Regex.Match(ContentHtml, pattern, RegexOptions.IgnoreCase).Value;
                        infotmp     = infoContent;
                        infoContent = infoContent.Replace("{#Content}", "").Replace("{/#Content}", "");
                    }
                    //查找分页标签
                    bool   isPage   = false;
                    string pattern1 = @"{ZL\.Page([\s\S])*?\/}";
                    if (Regex.IsMatch(ContentHtml, pattern1, RegexOptions.IgnoreCase))
                    {
                        pagelabel = Regex.Match(ContentHtml, pattern1, RegexOptions.IgnoreCase).Value;
                        isPage    = true;
                    }
                    if (isPage)
                    {
                        if (string.IsNullOrEmpty(infoContent)) //没有设定要分页的字段内容
                        {
                            ContentHtml = ContentHtml.Replace(pagelabel, "");
                        }
                        else   //进行内容分页处理
                        {
                            //取分页标签处理结果 返回字符串数组 根据数组元素个数生成几页
                            string         ilbl       = pagelabel.Replace("{ZL.Page ", "").Replace("/}", "").Replace(" ", ",");
                            string         lblContent = "";
                            int            NumPerPage = 500;
                            IList <string> ContentArr = new List <string>();
                            if (string.IsNullOrEmpty(ilbl))
                            {
                                lblContent = "{loop}<a href=\"{$pageurl/}\">{$pageid/}</a>$$$<b>[{$pageid/}]</b>{/loop}"; //默认格式的分页导航
                                ContentArr = this.createBll.GetContentPage(infoContent, NumPerPage);
                            }
                            else
                            {
                                string[] paArr = ilbl.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                                if (paArr.Length == 0)
                                {
                                    lblContent = "{loop}<a href=\"{$pageurl/}\">{$pageid/}</a>$$$<b>[{$pageid/}]</b>{/loop}"; //默认格式的分页导航
                                    ContentArr = this.createBll.GetContentPage(infoContent, NumPerPage);
                                }
                                else
                                {
                                    string lblname = paArr[0].Split(new char[] { '=' })[1].Replace("\"", "");
                                    if (paArr.Length > 1)
                                    {
                                        NumPerPage = DataConverter.CLng(paArr[1].Split(new char[] { '=' })[1].Replace("\"", ""));
                                    }
                                    B_Label blbl = new B_Label();
                                    lblContent = blbl.GetLabelXML(lblname).Content;
                                    if (string.IsNullOrEmpty(lblContent))
                                    {
                                        lblContent = "{loop}<a href=\"{$pageurl/}\">{$pageid/}</a>$$$<b>[{$pageid/}]</b>{/loop}"; //默认格式的分页导航
                                    }
                                    ContentArr = this.createBll.GetContentPage(infoContent, NumPerPage);
                                }
                            }
                            if (ContentArr.Count > 0) //存在分页数据
                            {
                                ContentHtml = ContentHtml.Replace(infotmp, ContentArr[Cpage - 1]);
                                ContentHtml = ContentHtml.Replace(pagelabel, this.createBll.GetPage(lblContent, pageID, Cpage, ContentArr.Count, NumPerPage));
                            }
                            else
                            {
                                ContentHtml = ContentHtml.Replace(infotmp, infoContent);
                                ContentHtml = ContentHtml.Replace(pagelabel, "");
                            }
                        }
                    }
                    else  //没有分页标签
                    {
                        //如果设定了分页内容字段 将该字段内容的分页标志清除
                        if (!string.IsNullOrEmpty(infoContent))
                        {
                            ContentHtml = ContentHtml.Replace(infotmp, infoContent);
                        }
                    }
                }
                /*--------------------- 分页内容处理结束-------------------------------------------------------------------------*/
                Response.Write(ContentHtml);
            }
        }