Example #1
0
        private void RenderRatingTable(List <BlogInfo> ratings)
        {
            mainContainer.Body = new PlaceHolder();

            if (ratings == null || ratings.Count == 0)
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("blog_icon.png", Constants.ModuleId),
                    Header   = BlogsResource.EmptyScreenBlogCaption,
                    Describe = BlogsResource.EmptyScreenBlogText
                };

                if (CommunitySecurity.CheckPermissions(new PersonalBlogSecObject(CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID)), Constants.Action_AddPost))
                {
                    emptyScreenControl.ButtonHTML = String.Format("<a class='linkAddMediumText' href='addblog.aspx'>{0}</a>", BlogsResource.EmptyScreenBlogLink);
                }

                mainContainer.Body.Controls.Add(emptyScreenControl);
                return;
            }

            var sb = new StringBuilder();

            sb = new StringBuilder();

            sb.Append("<div id=\"blg_rating_list\">");
            sb.Append(FillData(ratings));
            sb.Append("</div>");

            mainContainer.Body.Controls.Add(new LiteralControl(sb.ToString()));
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(GetType());

            Master.DisabledSidePanel = true;

            Title = HeaderStringHelper.GetPageTitle(Resource.Search);

            var productID = !String.IsNullOrEmpty(Request["productID"]) ? new Guid(Request["productID"]) : Guid.Empty;
            var moduleID  = !String.IsNullOrEmpty(Request["moduleID"]) ? new Guid(Request["moduleID"]) : Guid.Empty;

            SearchText = Request["search"] ?? "";

            var searchResultsData = new List <SearchResult>();

            if (!string.IsNullOrEmpty(SearchText))
            {
                List <ISearchHandlerEx> handlers = null;

                var products = !String.IsNullOrEmpty(Request["products"]) ? Request["products"] : string.Empty;
                if (!string.IsNullOrEmpty(products))
                {
                    try
                    {
                        var productsStr  = products.Split(new[] { ',' });
                        var productsGuid = productsStr.Select(p => new Guid(p)).ToArray();

                        handlers = SearchHandlerManager.GetHandlersExForProductModule(productsGuid);
                    }
                    catch
                    {
                    }
                }

                if (handlers == null)
                {
                    handlers = SearchHandlerManager.GetHandlersExForProductModule(productID, moduleID);
                }

                searchResultsData = GetSearchresultByHandlers(handlers, SearchText);
            }

            if (searchResultsData.Count <= 0)
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("empty_search.png"),
                    Header   = Resource.SearchNotFoundMessage,
                    Describe = Resource.SearchNotFoundDescript
                };
                SearchContent.Controls.Add(emptyScreenControl);
            }
            else
            {
                searchResultsData = GroupSearchresult(productID, searchResultsData);
                var oSearchView = (SearchResults)LoadControl(SearchResults.Location);
                oSearchView.SearchResultsData = searchResultsData;
                SearchContent.Controls.Add(oSearchView);
            }
        }
Example #3
0
        protected string RenderForumCategories()
        {
            List <ThreadCategory> categories;
            List <Thread>         threads;

            ForumDataProvider.GetThreadCategories(TenantProvider.CurrentTenantID, out categories, out threads);

            var sb = new StringBuilder();

            HasCategories = categories.Count > 0;

            if (HasCategories)
            {
                foreach (var category in categories)
                {
                    sb.Append(RenderForumCategory(category, threads.FindAll(t => t.CategoryID == category.ID)));
                }
            }
            else
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("forums_icon.png", ForumManager.Settings.ModuleID),
                    Header     = Resources.ForumResource.EmptyScreenForumCaption,
                    Describe   = Resources.ForumResource.EmptyScreenForumText,
                    ButtonHTML = String.Format("<a class='link underline blue plus' href='NewForum.aspx'>{0}</a>", Resources.ForumResource.EmptyScreenForumLink)
                };
                EmptyContent.Controls.Add(emptyScreenControl);
            }

            return(sb.ToString());
        }
Example #4
0
        private void CreateEmptyPanel()
        {
            var buttons = "<a id='uploadFirstFile' class='baseLinkAction'>" + MenuUploadFile + "</a><br/>" +
                          "<a id='createFirstDocument' class='baseLinkAction'>" + MenuNewDocument + "</a><img id='firstDocComb' src= '" + VirtualPathUtility.ToAbsolute("~/UserControls/Common/Attachments/Images/combobox_black.png") + "' class='newDocComb'/>";

            if (ModuleName != "crm")
            {
                buttons += "<br/><a id='attachProjDocuments' class='baseLinkAction'>" + MenuProjectDocuments + "</a>";
            }

            var emptyParticipantScreenControl = new EmptyScreenControl
            {
                ImgSrc   = VirtualPathUtility.ToAbsolute("~/UserControls/Common/Attachments/Images/documents-logo.png"),
                Header   = Resources.UserControlsCommonResource.EmptyListDocumentsHead,
                Describe = String.Format(Resources.UserControlsCommonResource.EmptyListDocumentsDescr,
                                         //create
                                         "<span class='hintCreate baseLinkAction' >", "</span>",
                                         //upload
                                         "<span class='hintUpload baseLinkAction' >", "</span>",
                                         //open
                                         "<span class='hintOpen baseLinkAction' >", "</span>",
                                         //edit
                                         "<span class='hintEdit baseLinkAction' >", "</span>"),
                ButtonHTML = buttons
            };

            _phEmptyDocView.Controls.Add(emptyParticipantScreenControl);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _templateConatainerPanel.Options.IsPopup = true;
            _templatePanel.Options.IsPopup           = true;

            var entityType = StringToEntityType(Request["view"]);

            RegisterClientScript(entityType);

            //var cntrlCategorySelector = (CategorySelector)LoadControl(CategorySelector.Location);
            //cntrlCategorySelector.Categories = Global.DaoFactory.ListItemDao.GetItems(ListType.TaskCategory);
            //cntrlCategorySelector.ID = "taskTemplateCategorySelector";
            //phCategorySelector.Controls.Add(cntrlCategorySelector);

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_tasks.png", ProductEntryPoint.ID),
                Header     = CRMSettingResource.EmptyContentTaskTemplates,
                Describe   = CRMSettingResource.EmptyContentTaskTemplatesDescript,
                ButtonHTML = String.Format("<a id='addTag' class='link dotline plus' onclick='ASC.CRM.TaskTemplateView.showTemplateConatainerPanel();'>{0}</a>",
                                           CRMSettingResource.AddTaskTemplateContainer)
            };

            _phEmptyContent.Controls.Add(emptyScreenControl);

            //init task responsible
            //there should be user selector with id = "taskTemplateResponsibleSelector"

            RegisterScript();
        }
        private void FillSelectedPage(List <Post> posts, BlogsEngine engine)
        {
            var currentUser = CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID);

            if (posts == null || posts.Count == 0)
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("blog_icon.png", ASC.Blogs.Core.Constants.ModuleId),
                    Header   = BlogsResource.EmptyScreenBlogCaption,
                    Describe = currentUser.IsVisitor() ? BlogsResource.EmptyScreenBlogTextVisitor : BlogsResource.EmptyScreenBlogText
                };

                if (CommunitySecurity.CheckPermissions(new PersonalBlogSecObject(currentUser), ASC.Blogs.Core.Constants.Action_AddPost) &&
                    string.IsNullOrEmpty(UserID) && string.IsNullOrEmpty(Search))
                {
                    emptyScreenControl.ButtonHTML = String.Format("<a class='link underline blue plus' href='AddBlog.aspx'>{0}</a>", BlogsResource.EmptyScreenBlogLink);
                }

                placeContent.Controls.Add(emptyScreenControl);
                return;
            }


            PostsAndCommentsCount = engine.GetPostsCommentsCount(posts);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(TemplateList));
            List<ReportTemplate> Templates = Global.EngineFactory.GetReportEngine().GetTemplates(SecurityContext.CurrentAccount.ID);

            if (UrlParameters.ActionType == "autogenerate")
            {
                Templates = Templates.FindAll(t => t.AutoGenerated);
            }

            EmptyScreenControl emptyScreenControl = new EmptyScreenControl();
            emptyScreenControl.HeaderContent = ReportResource.Empty;
            emptyScreenControl.HeaderDescribe = String.Empty;
            plhEmptyScreen.Controls.Add(emptyScreenControl);

            if (Templates.Count > 0)
            {
                repeaterTemplateList.DataSource = Templates;
                plhTemplateActionButtons.Visible = true;
                HasData = true;
            }
            else
            {
                repeaterTemplateList.DataSource = null;
                plhTemplateActionButtons.Visible = false;
                HasData = false;
            }

            repeaterTemplateList.DataBind();

        }
Example #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!((CRMSecurity.IsAdmin || VoipNumberData.CanMakeOrReceiveCall) && VoipNumberData.Allowed))
            {
                Response.Redirect(PathProvider.StartURL() + "Settings.aspx");
            }

            var emptyScreenControl = new EmptyScreenControl
            {
                ID       = "voip-calls-empty-list-box",
                ImgSrc   = WebPath.GetPath("UserControls/Feed/images/empty_screen_feed.png"),
                Header   = UserControlsCommonResource.VoipCallsNotFound,
                Describe = UserControlsCommonResource.VoipCallsNotFoundDescription
            };

            controlsHolder.Controls.Add(emptyScreenControl);

            var emptyScreenFilterControl = new EmptyScreenControl
            {
                ID         = "voip-calls-empty-filter-box",
                ImgSrc     = WebPath.GetPath("UserControls/Feed/images/empty_filter.png"),
                Header     = UserControlsCommonResource.FilterNoVoipCalls,
                Describe   = UserControlsCommonResource.FilterNoVoipCallsDescription,
                ButtonHTML = string.Format("<a href='javascript:void(0)' class='baseLinkAction clearFilterButton'>{0}</a>",
                                           UserControlsCommonResource.ResetFilter)
            };

            controlsHolder.Controls.Add(emptyScreenFilterControl);

            Page.RegisterBodyScripts(PathProvider.GetFileStaticRelativePath("voip.calls.js"));
        }
Example #9
0
        private void BindRepeater()
        {
            var resultToShow = Wiki.GetFiles();

            UpdateHasFilesToDelete(resultToShow);

            HasFiles = resultToShow.Count > 0;

            if (HasFiles)
            {
                rptFilesList.DataSource = resultToShow;
                rptFilesList.DataBind();
            }
            else
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("WikiLogo150.png", WikiManager.ModuleId),
                    Header   = WikiResource.EmptyScreenWikiFilesCaption,
                    Describe = WikiResource.EmptyScreenWikiFilesText,
                };

                if (CanUpload)
                {
                    emptyScreenControl.ButtonHTML = String.Format("<a class='link underline blue plus' href='javascript:ShowUploadFileBox();'>{0}</a>", WikiResource.menu_AddNewFile);
                }

                EmptyContent.Controls.Add(emptyScreenControl);
            }
        }
Example #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ForumManager.Instance.SetCurrentPage(ForumPage.Default);

            List <ThreadCategory> categories;
            List <Thread>         threads;

            ForumDataProvider.GetThreadCategories(TenantProvider.CurrentTenantID, true, out categories, out threads);

            if (0 < categories.Count)
            {
                var categoryListControl = LoadControl(ForumManager.Settings.UserControlsVirtualPath + "/ThreadCategoryListControl.ascx") as UserControls.Forum.ThreadCategoryListControl;
                categoryListControl.Categories = categories;
                categoryListControl.Threads    = threads;
                categoryListControl.SettingsID = ForumManager.Settings.ID;
                forumListHolder.Controls.Add(categoryListControl);

                (Master as ForumMasterPage).CurrentPageCaption = ForumResource.ForumsBreadCrumbs;
            }
            else
            {
                _headerHolder.Visible = false;

                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("forums_icon.png", ForumManager.Settings.ModuleID),
                    Header     = ForumResource.EmptyScreenForumCaption,
                    Describe   = ForumResource.EmptyScreenForumText,
                    ButtonHTML = ForumManager.Instance.ValidateAccessSecurityAction(ForumAction.GetAccessForumEditor, null) ? String.Format("<a class='link underline blue plus' href='NewForum.aspx'>{0}</a>", ForumResource.EmptyScreenForumLink) : String.Empty
                };
                forumListHolder.Controls.Add(emptyScreenControl);
            }

            Title = HeaderStringHelper.GetPageTitle((Master as ForumMasterPage).CurrentPageCaption ?? ForumResource.AddonName);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Utility.RegisterTypeForAjax(this.GetType());

            _templateConatainerPanel.Options.IsPopup = true;
            _templatePanel.Options.IsPopup           = true;

            var entityType = StringToEntityType(Request["view"]);

            InitViewSwitcher(entityType);

            RegisterClientScript(entityType);

            var cntrlCategorySelector = (CategorySelector)LoadControl(CategorySelector.Location);

            cntrlCategorySelector.Categories = Global.DaoFactory.GetListItemDao().GetItems(ListType.TaskCategory);
            cntrlCategorySelector.ID         = "taskTemplateCategorySelector";
            phCategorySelector.Controls.Add(cntrlCategorySelector);

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_tasks.png", ProductEntryPoint.ID),
                Header     = CRMSettingResource.EmptyContentTaskTemplates,
                Describe   = CRMSettingResource.EmptyContentTaskTemplatesDescript,
                ButtonHTML = String.Format("<a id='addTag' class='linkAddMediumText baseLinkAction' onclick='ASC.CRM.TaskTemplateView.showTemplateConatainerPanel();'>{0}</a>",
                                           CRMSettingResource.AddTaskTemplateContainer)
            };

            _phEmptyContent.Controls.Add(emptyScreenControl);
        }
Example #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ForumManager.Instance.SetCurrentPage(ForumPage.TopicList);

            int idThread;

            if (!int.TryParse(Request["f"], out idThread))
            {
                Response.Redirect("default.aspx");
            }

            var thread = ForumDataProvider.GetThreadByID(TenantProvider.CurrentTenantID, idThread);

            if (thread == null)
            {
                Response.Redirect("default.aspx");
            }

            if (thread.TopicCount > 0)
            {
                var topicsControl = LoadControl(ForumManager.Settings.UserControlsVirtualPath + "/TopicListControl.ascx") as UserControls.Forum.TopicListControl;
                topicsControl.SettingsID = ForumManager.Settings.ID;
                topicsControl.ThreadID   = thread.ID;
                topicsHolder.Controls.Add(topicsControl);
            }
            else
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("forums_icon.png", ForumManager.Settings.ModuleID),
                    Header     = Resources.ForumResource.EmptyScreenTopicCaption,
                    Describe   = Resources.ForumResource.EmptyScreenTopicText,
                    ButtonHTML = ForumManager.Instance.ValidateAccessSecurityAction(ForumAction.TopicCreate, thread) ? String.Format("<a class='linkAddMediumText' href='newpost.aspx?f=" + thread.ID + "&m=0'>{0}</a>", Resources.ForumResource.EmptyScreenTopicLink) : String.Empty
                };

                topicsHolder.Controls.Add(emptyScreenControl);
            }

            Utility.RegisterTypeForAjax(typeof(Subscriber));
            var subscriber = new Subscriber();

            var isThreadSubscribe = subscriber.IsThreadSubscribe(thread.ID);

            var master = Master as ForumMasterPage;

            master.ActionsPlaceHolder.Controls.Add(new HtmlMenuItem(subscriber.RenderThreadSubscription(!isThreadSubscribe, thread.ID)));

            //bread crumbs
            var breadCrumbs = (Master as ForumMasterPage).BreadCrumbs;

            breadCrumbs.Add(new BreadCrumb {
                Caption = Resources.ForumResource.ForumsBreadCrumbs, NavigationUrl = "default.aspx"
            });
            breadCrumbs.Add(new BreadCrumb {
                Caption = thread.Title
            });

            Title = HeaderStringHelper.GetPageTitle(Resources.ForumResource.AddonName, breadCrumbs);
        }
Example #13
0
        private void InitTags()
        {
            ServiceHelper.SetPagination();

            IList <Tag> tags;

            switch (sortUtil.SortBy)
            {
            case SortByEnum.Name:
                tags = ServiceHelper.GetTagsSortedByName();
                break;

            case SortByEnum.Popularity:
                tags = ServiceHelper.GetMostPopularTags();
                break;

            default:
                tags = ServiceHelper.GetMostRecentTags();
                break;
            }

            if (tags == null || tags.Count == 0)
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("bookmarks_icon.png", BookmarkingSettings.ModuleId),
                    Header     = BookmarkingUCResource.EmptyScreenTagsCaption,
                    Describe   = BookmarkingUCResource.EmptyScreenText,
                    ButtonHTML = String.Format("<a class='linkAddMediumText' href='CreateBookmark.aspx'>{0}</a>", BookmarkingUCResource.EmptyScreenLink)
                };

                TagsContainer.Controls.Add(emptyScreenControl);
                TagsSortingPanel.Visible = false;
                return;
            }
            var i = 0;

            var bookmarks = ServiceHelper.GetMostPopularBookmarksByTag(tags);

            foreach (var tag in tags)
            {
                using (var c = LoadControl(BookmarkUserControlPath.TagInfoUserControlPath) as TagInfoUserControl)
                {
                    c.Tag          = tag;
                    c.BookmarkList = GetBookmarksByTag(bookmarks, tag);
                    c.IsOdd        = i++ % 2 == 0;
                    TagsContainer.Controls.Add(c);
                }
            }
            SetBookmarkingPagination();
        }
Example #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.RegisterBodyScripts(ResolveUrl("~/usercontrols/management/loginhistory/js/loginhistory.js"));
            Page.RegisterStyleControl(VirtualPathUtility.ToAbsolute("~/usercontrols/management/loginhistory/css/loginhistory.less"));

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc   = WebPath.GetPath("usercontrols/management/loginhistory/img/login_history_empty_screen.jpg"),
                Header   = AuditResource.LoginHistoryEmptyScreenHeader,
                Describe = AuditResource.LoginHistoryEmptyScreenDscr
            };

            emptyScreenHolder.Controls.Add(emptyScreenControl);
        }
        public static EmptyScreenControl RenderEmptyScreenForFilter(string headerText, string description)
        {
            var emptyScreenControlFilter = new EmptyScreenControl
            {
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_filter.png"),
                Header     = headerText,
                Describe   = description,
                ID         = "emptyScreenForFilter",
                ButtonHTML = String.Format("<a class='baseLinkAction clearFilterButton'>{0}</a>",
                                           ProjectsFilterResource.ClearFilter)
            };

            return(emptyScreenControlFilter);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _documentUploader.Options.IsPopup = true;
            InitScripts();
            var emptyParticipantScreenControl = new EmptyScreenControl
            {
                ImgSrc         = VirtualPathUtility.ToAbsolute("~/UserControls/Common/ProjectDocumentsPopup/Images/project-documents.png"),
                Header         = UserControlsCommonResource.ProjectDocuments,
                HeaderDescribe = UserControlsCommonResource.EmptyDocsHeaderDescription,
                Describe       = Resources.UserControlsCommonResource.EmptyDocsDescription
            };

            _phEmptyDocView.Controls.Add(emptyParticipantScreenControl);
        }
Example #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TariffPageLink = TenantExtra.GetTariffPageLink();
            Page.RegisterBodyScripts("~/UserControls/Management/AuditTrail/js/audittrail.js")
                .RegisterStyle("~/UserControls/Management/AuditTrail/css/audittrail.less");

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc = WebPath.GetPath("UserControls/Management/AuditTrail/img/audit_trail_empty_screen.jpg"),
                Header = AuditResource.AuditTrailEmptyScreenHeader,
                Describe = AuditResource.AuditTrailEmptyScreenDscr
            };
            emptyScreenHolder.Controls.Add(emptyScreenControl);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _documentUploader.Options.IsPopup = true;
            InitScripts();
            var emptyParticipantScreenControl = new EmptyScreenControl
            {
                ImgSrc         = VirtualPathUtility.ToAbsolute("~/UserControls/Common/DocumentsPopup/css/images/project-documents.png"),
                Header         = "", //UserControlsCommonResource.DocumentsProduct,
                HeaderDescribe = UserControlsCommonResource.EmptyDocsHeaderDescription,
                Describe       = ""  //"<a id='empty_screen_back_link' href='javascript:;' onclick='DocumentsPopup.openPreviosFolder(); return false;'>Back</a>"//Resources.UserControlsCommonResource.EmptyDocsDescription
            };

            _phEmptyDocView.Controls.Add(emptyParticipantScreenControl);
        }
        private void ExecPeopleView()
        {
            ContactsTab.TabAnchorName = "contacts";
            var people = Global.DaoFactory.GetContactDao().GetContacts(Global.DaoFactory.GetDealDao().GetMembers(TargetDeal.ID));

            //ContactsTab.TabName = people.Count > 0 ? String.Format("{0} ({1})", CRMDealResource.PeopleInDeal, people.Count) : CRMDealResource.PeopleInDeal;
            ContactsTab.TabName = CRMDealResource.PeopleInDeal;
            //init ListContactView
            var listContactView = (ListContactView)LoadControl(ListContactView.Location);

            listContactView.IsSimpleView = true;
            listContactView.EntityID     = TargetDeal.ID;
            listContactView.EntityType   = EntityType.Opportunity;
            _phContactsView.Controls.Add(listContactView);

            //init ContactSelector
            var selector = (ContactSelector)LoadControl(ContactSelector.Location);

            selector.CurrentType      = ContactSelector.SelectorType.All;
            selector.SelectedContacts = people;
            if (TargetDeal.ContactID != 0)
            {
                selector.ExcludedArrayIDs = new List <int> {
                    TargetDeal.ContactID
                }
            }
            ;
            selector.ShowOnlySelectorContent = true;
            selector.ShowNewCompanyContent   = true;
            selector.ShowNewContactContent   = true;
            selector.ID = "dealContactSelector";
            selector.DescriptionText = CRMCommonResource.FindContactByName;
            phContactSelector.Controls.Add(selector);

            //init EmptyScreen
            var emptyParticipantScreenControl = new EmptyScreenControl
            {
                ID         = "emptyDealParticipantPanel",
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_opportunity_participants.png", ProductEntryPoint.ID),
                Header     = CRMDealResource.EmptyPeopleInDealContent,
                Describe   = CRMDealResource.EmptyPeopleInDealDescript,
                ButtonHTML = String.Format(@"
                                                            <a class='linkAddMediumText baseLinkAction' onclick='javascript:jq(""#dealParticipantPanel"").show();jq(""#emptyDealParticipantPanel"").hide();'>{0}</a>",
                                           CRMCommonResource.AddParticipant)
            };

            _phEmptyPeopleView.Controls.Add(emptyParticipantScreenControl);
        }
Example #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            userInfo = CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID);
            IsAdmin  = userInfo.IsAdmin();
            Actions  = new AllowedActions(userInfo);

            var quota = TenantExtra.GetTenantQuota();

            IsFreeTariff = quota.Free && !quota.Open;

            _confirmationDeleteDepartmentPanel.Options.IsPopup = true;
            _resendInviteDialog.Options.IsPopup     = true;
            _changeStatusDialog.Options.IsPopup     = true;
            _changeTypeDialog.Options.IsPopup       = true;
            _deleteUsersDialog.Options.IsPopup      = true;
            _deleteProfileContainer.Options.IsPopup = true;

            var emptyContentForPeopleFilter = new EmptyScreenControl
            {
                ID         = "emptyContentForPeopleFilter",
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_filter.png"),
                Header     = PeopleResource.NotFoundTitle,
                Describe   = PeopleResource.NotFoundDescription,
                ButtonHTML = String.Format(@"<a class='clearFilterButton link dotline' href='javascript:void(0);' 
                                            onclick='ASC.People.PeopleController.resetAllFilters();'>{0}</a>",
                                           PeopleResource.ClearButton),
                CssClass = "display-none"
            };

            emptyScreen.Controls.Add(emptyContentForPeopleFilter);


            var controlEmailChange = (UserEmailChange)LoadControl(UserEmailChange.Location);

            controlEmailChange.UserInfo = userInfo;
            userEmailChange.Controls.Add(controlEmailChange);

            loaderHolder.Controls.Add(LoadControl(LoaderPage.Location));
            userConfirmationDelete.Controls.Add(LoadControl(ConfirmationDeleteUser.Location));

            if (Actions.AllowEdit)
            {
                userPwdChange.Controls.Add(LoadControl(PwdTool.Location));
            }
            Title = HeaderStringHelper.GetPageTitle(PeopleResource.ProductName);
        }
Example #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _manageTagPopup.Options.IsPopup = true;

            var entityType = StringToEntityType(Request["view"]);

            _switcherEntityType.SortItemsHeader = CRMCommonResource.Show + ":";

            _forContacts.SortLabel  = CRMSettingResource.BothPersonAndCompany;
            _forContacts.SortUrl    = "settings.aspx?type=tag";
            _forContacts.IsSelected = entityType == EntityType.Contact;


            _forDeals.SortLabel  = CRMCommonResource.DealModuleName;
            _forDeals.SortUrl    = String.Format("settings.aspx?type=tag&view={0}", EntityType.Opportunity.ToString().ToLower());
            _forDeals.IsSelected = entityType == EntityType.Opportunity;


            _forCases.SortLabel  = CRMCommonResource.CasesModuleName;
            _forCases.SortUrl    = String.Format("settings.aspx?type=tag&view={0}", EntityType.Case.ToString().ToLower());
            _forCases.IsSelected = entityType == EntityType.Case;


            var tagList = Global.DaoFactory.GetTagDao().GetAllTags(entityType).ToList();

            Page.ClientScript.RegisterClientScriptBlock(typeof(TagSettingsView), "e7302d41-5ae9-4a0a-b156-0b11515ec67c",
                                                        "tagList = "
                                                        + JavaScriptSerializer.Serialize(tagList.ConvertAll(item => new { value = item.HtmlEncode() }))
                                                        + "; ", true);
            Page.ClientScript.RegisterClientScriptBlock(typeof(TagSettingsView), "4b363cea-b734-4f85-91d8-72f70c150a24",
                                                        String.Format("relativeItemsCountArray = {0};", Global.DaoFactory.GetTagDao().GetTagsLinkCountJSON(entityType)),
                                                        true);

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_tags.png", ProductEntryPoint.ID),
                Header     = CRMSettingResource.EmptyContentTags,
                Describe   = CRMSettingResource.EmptyContentTagsDescript,
                ButtonHTML = String.Format("<a id='addTag' class='linkAddMediumText baseLinkAction' onclick='ASC.CRM.TagSettingsView.showAddTagPanel();' >{0}</a>",
                                           CRMSettingResource.AddTag)
            };

            _phEmptyContent.Controls.Add(emptyScreenControl);
        }
Example #22
0
        private void RenderEmptyScreens()
        {
            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("empty_screen_milestones.png", ProductEntryPoint.ID),
                Header   = MilestoneResource.MilestoneNotFound_Header,
                Describe = String.Format(MilestoneResource.MilestonesMarkMajorTimestamps),
                ID       = "emptyListMilestone"
            };

            if (RequestContext.CanCreateMilestone(true))
            {
                emptyScreenControl.ButtonHTML = String.Format("<a class='baseLinkAction addFirstElement'>{0}</a>", MilestoneResource.PlanFirstMilestone);
            }

            _emptyScreenPlaceHolder.Controls.Add(emptyScreenControl);

            _emptyScreenPlaceHolder.Controls.Add(Masters.BasicTemplate.RenderEmptyScreenForFilter(MilestoneResource.FilterNoMilestones, MilestoneResource.DescrEmptyListMilFilter));
        }
Example #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CoreContext.Configuration.Standalone || !SetupInfo.IsVisibleSettings(ManagementType.AuditTrail.ToString()))
            {
                Response.Redirect(CommonLinkUtility.GetDefault(), true);
                return;
            }

            Page.RegisterBodyScripts("~/UserControls/Management/AuditTrail/js/audittrail.js")
            .RegisterStyle("~/UserControls/Management/AuditTrail/css/audittrail.less");

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc   = WebPath.GetPath("UserControls/Management/AuditTrail/img/audit_trail_empty_screen.jpg"),
                Header   = AuditResource.AuditTrailEmptyScreenHeader,
                Describe = AuditResource.AuditTrailEmptyScreenDscr
            };

            emptyScreenHolder.Controls.Add(emptyScreenControl);
        }
Example #24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _documentUploader.Options.IsPopup = true;
            InitScripts();
            var empty_participant_screen_control = new EmptyScreenControl
            {
                ImgSrc         = VirtualPathUtility.ToAbsolute("~/addons/mail/controls/documentspopup/css/images/project-documents.png"),
                Header         = "",
                HeaderDescribe = UserControlsCommonResource.EmptyDocsHeaderDescription,
                Describe       = ""
            };

            _phEmptyDocView.Controls.Add(empty_participant_screen_control);

            var tree = (Tree)LoadControl(Tree.Location);

            tree.ID           = "documentSelectorTree";
            tree.WithoutTrash = false;
            TreeHolder.Controls.Add(tree);
        }
Example #25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _templateConatainerPanel.Options.IsPopup = true;
            _templatePanel.Options.IsPopup           = true;

            var entityType = StringToEntityType(Request["view"]);

            InitViewSwitcher(entityType);

            RegisterClientScript(entityType);

            //var cntrlCategorySelector = (CategorySelector)LoadControl(CategorySelector.Location);
            //cntrlCategorySelector.Categories = Global.DaoFactory.GetListItemDao().GetItems(ListType.TaskCategory);
            //cntrlCategorySelector.ID = "taskTemplateCategorySelector";
            //phCategorySelector.Controls.Add(cntrlCategorySelector);

            var emptyScreenControl = new EmptyScreenControl
            {
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_tasks.png", ProductEntryPoint.ID),
                Header     = CRMSettingResource.EmptyContentTaskTemplates,
                Describe   = CRMSettingResource.EmptyContentTaskTemplatesDescript,
                ButtonHTML = String.Format("<a id='addTag' class='link dotline blue plus' onclick='ASC.CRM.TaskTemplateView.showTemplateConatainerPanel();'>{0}</a>",
                                           CRMSettingResource.AddTaskTemplateContainer)
            };

            _phEmptyContent.Controls.Add(emptyScreenControl);

            //init task responsible
            var taskTemplateResponsibleSelector = new AdvancedUserSelector
            {
                ID           = "taskTemplateResponsibleSelector",
                IsLinkView   = false,
                EmployeeType = EmployeeType.User,
                LinkText     = CustomNamingPeople.Substitute <CRMCommonResource>("AddUser"),
                ParentContainerHtmlSelector = "#taskTemplateViewAdvUsrSrContainer"
            };

            AdvancedUserSelector.RegisterStartupScripts(Page, taskTemplateResponsibleSelector);

            RegisterScript();
        }
        protected void ExecPeopleContainerView(int companyID)
        {
            ContactsTab.TabAnchorName = "contacts";
            var people = Global.DaoFactory.GetContactDao().GetMembers(companyID);

            //ContactsTab.TabName = people.Count > 0 ? String.Format("{0} ({1})", CRMContactResource.Persons, people.Count) : CRMContactResource.Persons;
            ContactsTab.TabName = CRMContactResource.Persons;
            //init ListContactView
            var listContactView = (ListContactView)LoadControl(ListContactView.Location);

            listContactView.IsSimpleView = true;
            listContactView.EntityID     = companyID;
            listContactView.EntityType   = EntityType.Company;
            _phPeopleInCompany.Controls.Add(listContactView);

            //init ContactSelector
            var selector = (ContactSelector)LoadControl(ContactSelector.Location);

            selector.CurrentType             = ContactSelector.SelectorType.PersonsWithoutCompany;
            selector.SelectedContacts        = people;
            selector.ShowOnlySelectorContent = true;
            selector.ShowNewContactContent   = true;
            selector.ID = "contactSelector";
            selector.DescriptionText = CRMContactResource.FindContactByName;
            phPeopleInCompanySelector.Controls.Add(selector);

            //init EmptyScreen
            var emptyParticipantScreenControl = new EmptyScreenControl
            {
                ID         = "emptyPeopleInCompanyPanel",
                ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("empty_screen_company_participants.png", ProductEntryPoint.ID),
                Header     = CRMContactResource.EmptyContentPeopleHeader,
                Describe   = CRMContactResource.EmptyContentPeopleDescribe,
                ButtonHTML = String.Format(@"
                                                            <a class='linkAssignContacts baseLinkAction' onclick='javascript:jq(""#peopleInCompanyPanel"").show();jq(""#emptyPeopleInCompanyPanel"").hide();'>{0}</a>",
                                           CRMContactResource.AssignContact)
            };

            _phEmptyPeopleInCompany.Controls.Add(emptyParticipantScreenControl);
        }
Example #27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ForumManager.Instance.SetCurrentPage(ForumPage.Default);

            List <ThreadCategory> categories;
            List <Thread>         threads;

            ForumDataProvider.GetThreadCategories(TenantProvider.CurrentTenantID, true, out categories, out threads);

            if (0 < categories.Count)
            {
                var categoryListControl = LoadControl(ForumManager.Settings.UserControlsVirtualPath + "/ThreadCategoryListControl.ascx") as UserControls.Forum.ThreadCategoryListControl;
                categoryListControl.Categories = categories;
                categoryListControl.Threads    = threads;
                categoryListControl.SettingsID = ForumManager.Settings.ID;
                forumListHolder.Controls.Add(categoryListControl);
            }
            else
            {
                _headerHolder.Visible = false;

                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("forums_icon.png", ForumManager.Settings.ModuleID),
                    Header     = Resources.ForumResource.EmptyScreenForumCaption,
                    Describe   = Resources.ForumResource.EmptyScreenForumText,
                    ButtonHTML = ForumManager.Instance.ValidateAccessSecurityAction(ForumAction.GetAccessForumEditor, null) ? String.Format("<a class='linkAddMediumText' href='javascript:ForumMakerProvider.ShowForumMakerDialog(false,\"window.location.reload(true)\");'>{0}</a>", Resources.ForumResource.EmptyScreenForumLink) : String.Empty
                };
                forumListHolder.Controls.Add(emptyScreenControl);
            }

            var breadCrumbs = (Master as ForumMasterPage).BreadCrumbs;

            breadCrumbs.Add(new BreadCrumb {
                Caption = Resources.ForumResource.ForumsBreadCrumbs, NavigationUrl = "default.aspx"
            });

            Title = HeaderStringHelper.GetPageTitle(Resources.ForumResource.AddonName, breadCrumbs);
        }
Example #28
0
        private void LoadUserAllPhoto(string userID, Data.Storage.IDataStore store)
        {
            mainContainer.BreadCrumbs.Add(new Web.Controls.BreadCrumb {
                Caption = PhotoManagerResource.PhotoTitle, NavigationUrl = PhotoConst.PAGE_DEFAULT
            });
            mainContainer.BreadCrumbs.Add(new Web.Controls.BreadCrumb {
                Caption = DisplayUserSettings.GetFullUserName(new Guid(userID), false)
            });

            var list = StorageFactory.GetStorage().GetAlbums(0, userID);

            if (list == null || list.Count == 0)
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("150x_photo_icon.png", PhotoConst.ModuleID),
                    Describe = PhotoManagerResource.EmptyScreenText
                };

                if (userID == SecurityContext.CurrentAccount.ID.ToString())
                {
                    emptyScreenControl.Header     = PhotoManagerResource.YouHaveNoPhotosTitle;
                    emptyScreenControl.ButtonHTML = CommunitySecurity.CheckPermissions(PhotoConst.Action_AddPhoto) ? String.Format("<a class='linkAddMediumText' href='" + PhotoConst.PAGE_ADD_PHOTO + "'>{0}</a>", PhotoManagerResource.EmptyScreenLink) : String.Empty;
                }
                else
                {
                    emptyScreenControl.Header = PhotoManagerResource.UserHaveNoPhotosTitle;
                }

                _contentHolder.Controls.Add(emptyScreenControl);
            }
            else
            {
                _contentHolder.Controls.Add(new Literal {
                    Text = ImageHTMLHelper.DrawAlbumsAlone(list, store)
                });
            }
        }
        private void CreateEmptyPanel()
        {
            var buttons = "<a id='uploadFirstFile' class='baseLinkAction'>" + MenuUploadFile + "</a><br/>" +
                          "<a id='createFirstDocument' class='baseLinkAction'>" + MenuNewDocument + "</a>" +
                          "<span class='sort-down-black newDocComb'></span>";

            var emptyParticipantScreenControl = new EmptyScreenControl
            {
                ImgSrc   = VirtualPathUtility.ToAbsolute("~/UserControls/Common/Attachments/images/documents-logo.png"),
                Header   = UserControlsCommonResource.EmptyListDocumentsHead,
                Describe = String.Format(FileUtility.ExtsWebEdited.Any() ? UserControlsCommonResource.EmptyListDocumentsDescr.HtmlEncode() : UserControlsCommonResource.EmptyListDocumentsDescrPoor.HtmlEncode(),
                                         //create
                                         "<span class='hintCreate baseLinkAction' >", "</span>",
                                         //upload
                                         "<span class='hintUpload baseLinkAction' >", "</span>",
                                         //open
                                         "<span class='hintOpen baseLinkAction' >", "</span>",
                                         //edit
                                         "<span class='hintEdit baseLinkAction' >", "</span>"),
                ButtonHTML = buttons
            };

            _phEmptyDocView.Controls.Add(emptyParticipantScreenControl);
        }
Example #30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ForumManager.Instance.SetCurrentPage(ForumPage.TopicList);
            Utility.RegisterTypeForAjax(typeof(ForumEditor), this.Page);
            int idThread;

            if (!int.TryParse(Request["f"], out idThread))
            {
                Response.Redirect("default.aspx");
            }

            var thread = ForumDataProvider.GetThreadByID(TenantProvider.CurrentTenantID, idThread);

            if (thread == null)
            {
                Response.Redirect("default.aspx");
            }

            if (thread.TopicCount > 0)
            {
                var topicsControl = LoadControl(ForumManager.Settings.UserControlsVirtualPath + "/TopicListControl.ascx") as UserControls.Forum.TopicListControl;
                topicsControl.SettingsID = ForumManager.Settings.ID;
                topicsControl.ThreadID   = thread.ID;
                topicsHolder.Controls.Add(topicsControl);
            }
            else
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc     = WebImageSupplier.GetAbsoluteWebPath("forums_icon.png", ForumManager.Settings.ModuleID),
                    Header     = Resources.ForumResource.EmptyScreenTopicCaption,
                    Describe   = Resources.ForumResource.EmptyScreenTopicText,
                    ButtonHTML = ForumManager.Instance.ValidateAccessSecurityAction(ForumAction.TopicCreate, thread) ? String.Format("<a class='link underline blue plus' href='newpost.aspx?f=" + thread.ID + "&m=0'>{0}</a>", Resources.ForumResource.EmptyScreenTopicLink) : String.Empty
                };

                topicsHolder.Controls.Add(emptyScreenControl);
            }

            Utility.RegisterTypeForAjax(typeof(Subscriber));
            var subscriber = new Subscriber();

            var isThreadSubscribe   = subscriber.IsThreadSubscribe(thread.ID);
            var subscribeThreadLink = subscriber.RenderThreadSubscription(!isThreadSubscribe, thread.ID);

            SubscribeLinkBlock.Text = subscribeThreadLink;

            //var master = Master as ForumMasterPage;
            //     master.ActionsPlaceHolder.Controls.Add(new HtmlMenuItem(subscriber.RenderThreadSubscription(!isThreadSubscribe, thread.ID)));

            ForumTitle       = thread.Title;
            ForumParentTitle = Resources.ForumResource.ForumsBreadCrumbs;
            ForumParentURL   = "default.aspx";

            Title        = HeaderStringHelper.GetPageTitle((Master as ForumMasterPage).CurrentPageCaption ?? Resources.ForumResource.AddonName);
            EnableDelete = ForumManager.Instance.ValidateAccessSecurityAction(ForumAction.GetAccessForumEditor, null);
            var sb = new StringBuilder();

            sb.Append("<div id=\"forumsActionsMenuPanel\" class=\"studio-action-panel topics\">");
            sb.Append("<ul class=\"dropdown-content\">");
            if (EnableDelete)
            {
                sb.Append("<li><a class=\"dropdown-item\" href=\"javascript:ForumMakerProvider.DeleteThreadTopic('" + thread.ID + "','" + thread.CategoryID + "');\">" + Resources.ForumResource.DeleteButton + "</a></li>");
            }
            sb.Append("</ul>");
            sb.Append("</div>");
            topicsHolder.Controls.Add(new Literal {
                Text = sb.ToString()
            });

            SubscribeStatus = isThreadSubscribe ? "subscribed" : "unsubscribed";
        }
Example #31
0
        private void BindRepeater()
        {
            phListResult.Visible = phTableResult.Visible = false;
            if (isByUser || isShowNew || isShowFresh)
            {
                phListResult.Visible = true;
                List <Page> dataSource;
                var         emptyScreenCaption = string.Empty;
                var         emptyScreenText    = string.Empty;

                if (isByUser)
                {
                    dataSource = Wiki.GetPages(byUserID);
                }
                else if (isShowNew)
                {
                    dataSource         = Wiki.GetNewPages(MaxNewResults);
                    emptyScreenCaption = WikiResource.EmptyScreenWikiNewPagesCaption;
                    emptyScreenText    = WikiResource.EmptyScreenWikiNewPagesText;
                }
                else
                {
                    dataSource         = Wiki.GetRecentEditedPages(MaxNewResults);
                    emptyScreenCaption = WikiResource.EmptyScreenWikiRecentlyEditedCaption;
                    emptyScreenText    = WikiResource.EmptyScreenWikiRecentlyEditedText;
                }

                //foreach (Pages p in dataSource)
                //{
                //    p.PageName = HttpUtility.HtmlEncode(p.PageName);
                //}

                if (dataSource.Count > 0)
                {
                    rptPageList.DataSource = dataSource;
                    rptPageList.DataBind();
                }
                else
                {
                    var emptyScreenControl = new EmptyScreenControl
                    {
                        ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("WikiLogo150.png", WikiManager.ModuleId),
                        Header   = emptyScreenCaption,
                        Describe = emptyScreenText
                    };

                    if (CommunitySecurity.CheckPermissions(Community.Wiki.Common.Constants.Action_AddPage))
                    {
                        emptyScreenControl.ButtonHTML = String.Format("<a class='link underline blue plus' href='default.aspx?action=New'>{0}</a>", WikiResource.menu_AddNewPage);
                    }

                    phListResult.Controls.Add(emptyScreenControl);
                }
            }
            else
            {
                phTableResult.Visible = true;
                List <Page> result;
                result = isShowCat ? Wiki.GetPages(categoryName) : Wiki.GetPages();

                result.RemoveAll(pemp => string.IsNullOrEmpty(pemp.PageName));

                var letters = new List <string>(WikiResource.wikiCategoryAlfaList.Split(','));

                var otherSymbol = string.Empty;
                if (letters.Count > 0)
                {
                    otherSymbol = letters[0];
                    letters.Remove(otherSymbol);
                }

                var dictList = new List <PageDictionary>();
                foreach (var page in result)
                {
                    page.PageName = HttpUtility.HtmlEncode(page.PageName);

                    var firstLetter = new string(page.PageName[0], 1);

                    if (!letters.Exists(lt => lt.Equals(firstLetter, StringComparison.InvariantCultureIgnoreCase)))
                    {
                        firstLetter = otherSymbol;
                    }

                    PageDictionary pageDic;
                    if (!dictList.Exists(dl => dl.HeadName.Equals(firstLetter, StringComparison.InvariantCultureIgnoreCase)))
                    {
                        pageDic = new PageDictionary {
                            HeadName = firstLetter
                        };
                        pageDic.Pages.Add(page);
                        dictList.Add(pageDic);
                    }
                    else
                    {
                        pageDic = dictList.Find(dl => dl.HeadName.Equals(firstLetter, StringComparison.InvariantCultureIgnoreCase));
                        pageDic.Pages.Add(page);
                    }
                }

                dictList.Sort(SortPageDict);

                var countAll  = dictList.Count * 3 + result.Count; //1 letter is like 2 links to category
                var perColumn = (int)(Math.Round((decimal)countAll / 3));

                var mainDictList = new List <List <PageDictionary> >();

                int index = 0, lastIndex = 0, count = 0;

                for (int i = 0; i < dictList.Count; i++)
                {
                    var p = dictList[i];

                    count += 3;
                    count += p.Pages.Count;
                    index++;
                    if (count >= perColumn || i == dictList.Count - 1)
                    {
                        count = count - perColumn;
                        mainDictList.Add(dictList.GetRange(lastIndex, index - lastIndex));
                        lastIndex = index;
                    }
                }

                if (mainDictList.Count > 0)
                {
                    rptMainPageList.DataSource = mainDictList;
                    rptMainPageList.DataBind();
                }
                else
                {
                    var emptyScreenControl = new EmptyScreenControl
                    {
                        ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("WikiLogo150.png", WikiManager.ModuleId),
                        Header   = WikiResource.EmptyScreenWikiIndexCaption,
                        Describe = WikiResource.EmptyScreenWikiIndexText
                    };

                    if (CommunitySecurity.CheckPermissions(Community.Wiki.Common.Constants.Action_AddPage))
                    {
                        emptyScreenControl.ButtonHTML = String.Format("<a class='link underline blue plus' href='default.aspx?action=New'>{0}</a>", WikiResource.menu_AddNewPage);
                    }

                    phTableResult.Controls.Add(emptyScreenControl);
                }
            }
        }
        protected void InitControls()
        {

            EmptyScreenControl emptyScreenControl = new EmptyScreenControl();

            switch (CurrentFilter)
            {

                case ProjectFilter.My:
                case ProjectFilter.Default:
                    emptyScreenControl.HeaderContent = ShowClosedProjects ? ProjectResource.EmptyScreenMyProjectsHeaderContent : ProjectResource.EmptyScreenMyActiveProjectsHeaderContent;
                    break;

                case ProjectFilter.All:
                    emptyScreenControl.HeaderContent = ShowClosedProjects ? ProjectResource.EmptyScreenAllProjectsHeaderContent : ProjectResource.EmptyScreenAllActiveProjectsHeaderContent;
                    break;

                case ProjectFilter.Following:
                    emptyScreenControl.HeaderContent = ShowClosedProjects ? ProjectResource.EmptyScreenKeepTrackProjectsHeaderContent : ProjectResource.EmptyScreenKeepTrackActiveProjectsHeaderContent;
                    break;

                case ProjectFilter.ByLabel:
                    emptyScreenControl.HeaderContent = ShowClosedProjects ? ProjectResource.EmptyScreenByLabelProjectsHeaderContent : ProjectResource.EmptyScreenByLabelActiveProjectsHeaderContent;
                    break;
            }

            _phEmptyScreen.Controls.Add(emptyScreenControl);

        }