private void AddRoleNameColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleNameColumn = new ComponentArt.Web.UI.ClientTemplate(); roleNameColumn.ID = "roleNameColumn"; roleNameColumn.Text = "## parseRoleNameFromGspRoleName(DataItem.getMember('RoleName').get_value()) ##"; gdRoles.ClientTemplates.Add(roleNameColumn); }
private void AddLoadingPanelClientTemplate() { // Add loading panel client template ComponentArt.Web.UI.ClientTemplate loadingPanelClientTemplate = new ComponentArt.Web.UI.ClientTemplate(); loadingPanelClientTemplate.Text = String.Format(CultureInfo.InvariantCulture, @" <p class=""gsp_h3 gsp_textcenter"" style=""margin-top: 200px;"">{0}</p> <p class=""gsp_textcenter""><img src=""{1}"" style=""width: 16px; height: 16px;"" alt="""" /></p>" , Resources.GalleryServerPro.Admin_Manage_Roles_Processing_Text, Util.GetUrl("images/componentart/callback/spinner.gif")); cbEditRole.LoadingPanelClientTemplate = loadingPanelClientTemplate; }
private void AddEditColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleEditColumn = new ComponentArt.Web.UI.ClientTemplate(); roleEditColumn.ID = "roleEditColumn"; roleEditColumn.Text = String.Format(CultureInfo.InvariantCulture, @"<p> <a id=""## makeValidForId(DataItem.getMember('RoleName').get_value()) ##"" href=""javascript:editRole(decodeURI('## getRoleName(DataItem) ##'));"" title=""{0}"">{1}</a> <a href=""javascript:hideUserMessage();if (ConfirmDelete(decodeURI('## getRoleName(DataItem) ##'))) gdRoles.deleteItem(gdRoles.getItemFromKey(0, '## getRoleNameNoEncode(DataItem) ##'));""> {2}</a> </p>" , Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Tooltip_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Hyperlink_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Delete_Role_Hyperlink_Text); gdRoles.ClientTemplates.Add(roleEditColumn); }
private void AddUploadDialogClientTemplate() { // Add loading panel client template ComponentArt.Web.UI.ClientTemplate uploadDialogClientTemplate = new ComponentArt.Web.UI.ClientTemplate(); uploadDialogClientTemplate.ID = "UploadContent"; uploadDialogClientTemplate.Text = String.Format(CultureInfo.InvariantCulture, @" <div class=""ttl"" onmousedown=""UploadDialog.StartDrag(event);""> <div class=""ttlt""> <div class=""ttlt-l""> </div> <div class=""ttlt-m""> <a class=""close"" href=""javascript:void(0);"" onclick=""Upload1.abort();UploadDialog.close();this.blur();return false;""> </a><span>{0}</span> </div> <div class=""ttlt-r""> </div> </div> <div class=""ttlb""> <div class=""ttlb-l""> </div> <div class=""ttlb-m""> </div> <div class=""ttlb-r""> </div> </div> </div> <!-- for contents & footer, see upload progress client template --> <div id=""upload-progress""> </div> ", Resources.GalleryServerPro.Admin_Backup_Restore_Restore_Tab_Upload_Dialog_Uploading_Text); UploadDialog.ClientTemplates.Add(uploadDialogClientTemplate); UploadDialog.Visible = true; }
private void AddEditColumnClientTemplate() { ComponentArt.Web.UI.ClientTemplate roleEditColumn = new ComponentArt.Web.UI.ClientTemplate(); roleEditColumn.ID = "roleEditColumn"; roleEditColumn.Text = String.Format(CultureInfo.InvariantCulture, @"<p> <a id=""## getRoleName(DataItem) ##"" href=""javascript:editRole('## getRoleName(DataItem) ##');"" title=""{0}"">{1}</a> <a href=""javascript:hideUserMessage();if (ConfirmDelete('## getRoleName(DataItem) ##')) gdRoles.deleteItem(gdRoles.getItemFromKey(0, '## getRoleName(DataItem) ##'));""> {2}</a> </p>", Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Tooltip_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Edit_Role_Hyperlink_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Delete_Role_Hyperlink_Text); gdRoles.ClientTemplates.Add(roleEditColumn); }
private void AddLoadingPanelClientTemplate() { // Add loading panel client template ComponentArt.Web.UI.ClientTemplate loadingPanelClientTemplate = new ComponentArt.Web.UI.ClientTemplate(); loadingPanelClientTemplate.Text = String.Format(CultureInfo.InvariantCulture, @"<h3 style=""margin-top: 200px; text-align: center;""> {0}</h3> <p style=""text-align: center;""> <img src=""../images/componentart/callback/spinner.gif"" style=""width: 16px; height: 16px;"" alt="""" /></p> ", Resources.GalleryServerPro.Admin_Manage_Roles_Processing_Text); cbEditRole.LoadingPanelClientTemplate = loadingPanelClientTemplate; }
private void AddUploadDialogClientTemplate() { // Add loading panel client template ComponentArt.Web.UI.ClientTemplate uploadDialogClientTemplate = new ComponentArt.Web.UI.ClientTemplate(); uploadDialogClientTemplate.ID = "UploadContent"; uploadDialogClientTemplate.Text = String.Format(CultureInfo.InvariantCulture, @" <div class=""ttl"" onmousedown=""UploadDialog.StartDrag(event);""> <div class=""ttlt""> <div class=""ttlt-l""> </div> <div class=""ttlt-m""> <a class=""close"" href=""javascript:void(0);"" onclick=""Upload1.abort();UploadDialog.close();this.blur();return false;""> </a><span>{0}</span> </div> <div class=""ttlt-r""> </div> </div> <div class=""ttlb""> <div class=""ttlb-l""> </div> <div class=""ttlb-m""> </div> <div class=""ttlb-r""> </div> </div> </div> <!-- for contents & footer, see upload progress client template --> <div id=""upload-progress""> </div> ", Resources.GalleryServerPro.Admin_Backup_Restore_Restore_Tab_Upload_Dialog_Uploading_Text); UploadDialog.ClientTemplates.Add(uploadDialogClientTemplate); UploadDialog.Visible = true; }
private ComponentArt.Web.UI.ClientTemplate AddEditColumnClientTemplate() { // Add edit column client template ComponentArt.Web.UI.ClientTemplate userEditColumn = new ComponentArt.Web.UI.ClientTemplate(); userEditColumn.ID = "userEditColumn"; userEditColumn.Text = String.Format(CultureInfo.InvariantCulture, @"<p> <a id=""## makeValidForId(DataItem.getMember('UserName').get_value()) ##"" href=""javascript:editUser(decodeURI('## getUserName(DataItem) ##'));"" title=""{0}"">{1}</a> <a href=""javascript:hideUserMessage();if (ConfirmDelete(decodeURI('## getUserName(DataItem) ##'))) gdUsers.deleteItem(gdUsers.getItemFromKey(0, '## getUserNameNoEncode(DataItem) ##'));""> {2}</a> </p>", Resources.GalleryServerPro.Admin_Manage_Roles_Edit_User_Tooltip_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Edit_User_Hyperlink_Text, Resources.GalleryServerPro.Admin_Manage_Roles_Delete_User_Hyperlink_Text); gdUsers.ClientTemplates.Add(userEditColumn); return userEditColumn; }
private void AddLoadingPanelClientTemplate() { // Add loading panel client template ComponentArt.Web.UI.ClientTemplate loadingPanelClientTemplate = new ComponentArt.Web.UI.ClientTemplate(); loadingPanelClientTemplate.Text = String.Format(CultureInfo.InvariantCulture, @" <p class=""gsp_h3 gsp_textcenter"" style=""margin-top: 200px;"">{0}</p> <p class=""gsp_textcenter""><img src=""{1}"" style=""width: 16px; height: 16px;"" alt="""" /></p>", Resources.GalleryServerPro.Admin_Manage_Users_Processing_Text, Util.GetUrl("images/componentart/callback/spinner.gif")); cbEditUser.LoadingPanelClientTemplate = loadingPanelClientTemplate; cbAddUser.LoadingPanelClientTemplate = loadingPanelClientTemplate; }