Ejemplo n.º 1
0
        private string GeneratePageLink(string linkText, int pageNumber)
        {
            string url = "";

            string[] prams = new string[((prs == null) ? 0 : prs.Count) + 1];
            prams[0] = "page=" + pageNumber.ToString();

            if (prs != null)
            {
                for (int i = 1; i < prs.Count + 1; i++)
                {
                    prams[i] = prs[i - 1];
                }
            }


            // yêu cầu tạo từ Global
            if (pmb == null)
            {
                url = DotNetNuke.Common.Globals.NavigateURL(tabid, "", prams);
            }
            else//tạo từ editurl
            {
                url = pmb.EditUrl("", "", key, prams);
            }


            string link = "<a href=\"{0}\">{1}</a>";

            link = String.Format(link, url, linkText);

            return(link);
        }
Ejemplo n.º 2
0
        public virtual ModuleAction GetAction(PortalModuleBase module)
        {
            // ModuleActionCollection is created before OnInit,
            // so need to pass module reference to this method

            return(new ModuleAction(
                       module.GetNextActionID(),
                       // TODO: Action labels require localization
                       EditControlKey.Replace("edit", "Add "),
                       ModuleActionType.AddContent,
                       "",
                       UniversityIcons.Add,
                       module.EditUrl(EditControlKey),
                       "",
                       false,
                       SecurityAccessLevel.Edit,
                       true, false
                       ));
        }
Ejemplo n.º 3
0
 public virtual string GetAddUrl(PortalModuleBase module)
 {
     return(module.EditUrl(EditControlKey));
 }
Ejemplo n.º 4
0
 public virtual string GetEditUrl(PortalModuleBase module, string id)
 {
     return(module.EditUrl(EditQueryKey, id, EditControlKey));
 }
Ejemplo n.º 5
0
 public static string GetEditUrl(PortalModuleBase caller, int appId)
 {
     return(caller.EditUrl(caller.PortalSettings.ActiveTab.TabID, SexyContent.ControlKeys.PipelineManagement, true,
                           "mid=" + caller.ModuleId + "&ReturnUrl=" + HttpUtility.UrlEncode(caller.Request.RawUrl)) + "&AppId=" + appId);        // AppId must be at the end so it's after the ? Character for use in AngularJS
 }