Exemplo n.º 1
0
        public ActionResult MyContent()
        {
            string Status = DataConverter.CStr(Request["status"]);

            if (NodeID != 0)
            {
                M_Node     nod            = nodeBll.SelReturnModel(NodeID);
                M_Templata tempMod        = tempBll.SelReturnModel(NodeID);
                B_Page     pageBll        = new B_Page(tempMod.Modelinfo);
                string     AddContentlink = "";
                foreach (DataRow dr in pageBll.modeldt.Rows)
                {
                    M_ModelInfo infoMod = modBll.SelReturnModel(Convert.ToInt32(dr["modelid"]));
                    if (infoMod.IsNull)
                    {
                        continue;
                    }
                    AddContentlink += "<a href='AddContent?NodeID=" + NodeID + "&ModelID=" + infoMod.ModelID + "' class='btn btn-info' style='margin-right:5px;' target='_parent'><i class='zi zi_plus'></i> 添加" + infoMod.ItemName + "</a>";
                }
                ViewBag.addhtml = AddContentlink;
            }
            M_PageReg prMod = regBll.SelModelByUid(mu.UserID);

            ViewBag.pageid = DataConverter.CLng(prMod.ID);
            ViewBag.NodeID = NodeID;
            ViewBag.Status = Status;
            ViewBag.PageID = prMod.ID;
            PageSetting setting = conBll.Page_Sel(CPage, PSize, NodeID, Status, mu.UserName, Request["skey"]);

            return(View(setting));
        }
Exemplo n.º 2
0
        public ActionResult PageContent()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.page, "manage"))
            {
                return(null);
            }
            int         nodeID  = DataConvert.CLng(Request.QueryString["TemplateID"]);
            PageSetting setting = conBll.Page_Sel(CPage, PSize, nodeID, DataConvert.CStr(Request.QueryString["status"]), Request["inputer_t"], Request["title_t"]);

            if (function.isAjax())
            {
                return(PartialView("PageContent_List", setting));
            }
            return(View(setting));
        }