init
This commit is contained in:
parent
135191903d
commit
6de73c33b8
|
|
@ -0,0 +1,63 @@
|
|||
###############################################################################
|
||||
# Set default behavior to automatically normalize line endings.
|
||||
###############################################################################
|
||||
* text=auto
|
||||
|
||||
###############################################################################
|
||||
# Set default behavior for command prompt diff.
|
||||
#
|
||||
# This is need for earlier builds of msysgit that does not have it on by
|
||||
# default for csharp files.
|
||||
# Note: This is only used by command line
|
||||
###############################################################################
|
||||
#*.cs diff=csharp
|
||||
|
||||
###############################################################################
|
||||
# Set the merge driver for project and solution files
|
||||
#
|
||||
# Merging from the command prompt will add diff markers to the files if there
|
||||
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||
# the diff markers are never inserted). Diff markers may cause the following
|
||||
# file extensions to fail to load in VS. An alternative would be to treat
|
||||
# these files as binary and thus will always conflict and require user
|
||||
# intervention with every merge. To do so, just uncomment the entries below
|
||||
###############################################################################
|
||||
#*.sln merge=binary
|
||||
#*.csproj merge=binary
|
||||
#*.vbproj merge=binary
|
||||
#*.vcxproj merge=binary
|
||||
#*.vcproj merge=binary
|
||||
#*.dbproj merge=binary
|
||||
#*.fsproj merge=binary
|
||||
#*.lsproj merge=binary
|
||||
#*.wixproj merge=binary
|
||||
#*.modelproj merge=binary
|
||||
#*.sqlproj merge=binary
|
||||
#*.wwaproj merge=binary
|
||||
|
||||
###############################################################################
|
||||
# behavior for image files
|
||||
#
|
||||
# image files are treated as binary by default.
|
||||
###############################################################################
|
||||
#*.jpg binary
|
||||
#*.png binary
|
||||
#*.gif binary
|
||||
|
||||
###############################################################################
|
||||
# diff behavior for common document formats
|
||||
#
|
||||
# Convert binary document formats to text before diffing them. This feature
|
||||
# is only available from the command line. Turn it on by uncommenting the
|
||||
# entries below.
|
||||
###############################################################################
|
||||
#*.doc diff=astextplain
|
||||
#*.DOC diff=astextplain
|
||||
#*.docx diff=astextplain
|
||||
#*.DOCX diff=astextplain
|
||||
#*.dot diff=astextplain
|
||||
#*.DOT diff=astextplain
|
||||
#*.pdf diff=astextplain
|
||||
#*.PDF diff=astextplain
|
||||
#*.rtf diff=astextplain
|
||||
#*.RTF diff=astextplain
|
||||
|
|
@ -30,4 +30,4 @@ _ReSharper*/
|
|||
.vs/
|
||||
#Nuget packages folder
|
||||
packages/
|
||||
bin
|
||||
bin/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
glob:*.cachefile
|
||||
glob:*.obj
|
||||
glob:*.exe
|
||||
glob:*.pdb
|
||||
glob:*.user
|
||||
glob:*.aps
|
||||
glob:*.pch
|
||||
glob:*.vspscc
|
||||
glob:*_i.c
|
||||
glob:*_p.c
|
||||
glob:*.ncb
|
||||
glob:*.suo
|
||||
glob:*.suo.orig
|
||||
glob:*.tlb
|
||||
glob:*.tlh
|
||||
glob:*.bak
|
||||
glob:*.cache
|
||||
glob:*.ilk
|
||||
glob:*.log
|
||||
glob:*.lib
|
||||
glob:*.sbr
|
||||
glob:*.scc
|
||||
glob:[Bb]in
|
||||
glob:[Db]ebug*/
|
||||
glob:obj/
|
||||
glob:[Rr]elease*/
|
||||
glob:_ReSharper*/
|
||||
glob:[Tt]est[Rr]esult*
|
||||
glob:[Bb]uild[Ll]og.*
|
||||
glob:*.mdf
|
||||
glob:*.ldf
|
||||
glob:*.Publish.xml
|
||||
glob:UI/SearchIndex*/
|
||||
glob:LocalConnectionStrings.config
|
||||
glob:UI/log/
|
||||
glob:UI/Properties/PublishProfiles
|
||||
glob:ProdConnectionStrings.config
|
||||
glob:*.pubxml
|
||||
syntax: glob
|
||||
*.wsp
|
||||
_CustomResponsiveLayouts/_css_sources/node_modules
|
||||
packages/
|
||||
jppsoft.isannointi.filesync/.vs/jppsoft.isannointi.filesync/v15/Server/sqlite3/storage.ide
|
||||
jppsoft.isannointi.filesync/.vs/jppsoft.isannointi.filesync/v15/Server/sqlite3/db.lock
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<webParts>
|
||||
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
|
||||
<metaData>
|
||||
<type name="AECarouselWebpart.AECarousel, AECarouselWebpart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=393679df925d2a00" />
|
||||
<importErrorMessage>Cannot import the AE Carousel Web Part.</importErrorMessage>
|
||||
</metaData>
|
||||
<data>
|
||||
<properties>
|
||||
<property name="Title" type="string">AE Image Carousel (SP2013)</property>
|
||||
<property name="Description" type="string">Displays a picture carousel from a Sharepoint Picture Library</property>
|
||||
</properties>
|
||||
</data>
|
||||
</webPart>
|
||||
</webParts>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1004 B |
Binary file not shown.
|
After Width: | Height: | Size: 42 B |
Binary file not shown.
|
After Width: | Height: | Size: 1020 B |
|
|
@ -0,0 +1,38 @@
|
|||
AMREIN ENGINEERING Sharepoint Web Parts Software License Agreement
|
||||
|
||||
Please carefully read this License Agreement before using the Sharepoint Web Parts. Using this software indicates your acceptance of this Agreement's terms.
|
||||
If you do not agree with any of the terms, do not use this product.
|
||||
|
||||
License
|
||||
You are granted a license to use the Sharepoint Web Parts (the "SOFTWARE PRODUCT") for personal use or in your business or profession.
|
||||
Ownership and Title of the SOFTWARE PRODUCT remains with Amrein Engineering AG.
|
||||
You may not make copies, reproductions, translations or modifications of or to the SOFTWARE PRODUCT, except you may make a single archive copy of the SOFTWARE PRODUCT. The same copyright notice and proprietary marking as appears on the original SOFTWARE PRODUCT must be contained on the archive copy.
|
||||
|
||||
Copies of the SOFTWARE PRODUCT and/or its documentation may not be distributed to anyone without written authorization from Amrein Engineering AG.
|
||||
You may not disassemble, create derivative works, modify, reverse engineer, adapt, decompile, or translate the SOFTWARE PRODUCT.
|
||||
You may not adapt, create derivative works, or translate any part of the documentation without the prior written consent of Amrein Engineering AG.
|
||||
You may not lease, rent, transfer, assign, or sell the SOFTWARE PRODUCT to any other person.
|
||||
You are granted a nonexclusive right to use the SOFTWARE PRODUCT on any Sharepoint Server within your enterprise.
|
||||
|
||||
LIMITED WARRANTY
|
||||
AMREIN ENGINEERING AG IS NOT RESPONSIBLE FOR THE INSTALLATION, USE OF OR RESULTS OBTAINED FROM THE SOFTWARE PRODUCT AND DOCUMENTATION.
|
||||
AMREIN ENGINEERING AG DOES NOT WARRANT YOUR REQUIREMENTS WILL BE MET WITH THE SOFTWARE PRODUCTS FUNCTIONS OR THAT THE DOCUMENTATION AND SOFTWARE PRODUCTS OPERATION WILL BE ERROR-FREE OR UNINTERRUPTED, OR THAT DEFECTS WILL BE CORRECTED.
|
||||
AMREIN ENGINEERING AG HAS USED REASONABLE EFFORTS TO MINIMIZE ERRORS OR DEFECTS IN THE SOFTWARE PRODUCT AND DOCUMENTATION. YOU ASSUME THE RISK OF ANY AND ALL DAMAGE OR LOSS FROM USE, OR INABILITY TO USE THE SOFTWARE PRODUCT AND DOCUMENTATION. THE SOFTWARE PRODUCT AND DOCUMENTATION IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
SOME STATES DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES SO THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS AND YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM STATE TO STATE.
|
||||
IN NO EVENT WILL AMREIN ENGINEERING AG BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING LOSS OF PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR THE USE OF OR INABILITY TO USE SUCH AMREIN ENGINEERING SOFTWARE PRODUCT AND DOCUMENTATION EVEN IF AMREIN ENGINEERING AG OR AMREIN ENGINEERING AUTHORIZED REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
|
||||
SOME STATES DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES SO THE ABOVE LIMITATIONS OR EXCLUSION MAY NOT APPLY TO YOU.
|
||||
|
||||
EXCLUSIVE LIMITATION AND REMEDIES LIABILITIES
|
||||
AMREIN ENGINEERING AG'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY AGAINST AMREIN ENGINEERING AG OR ITS AUTHORIZED REPRESENTATIVES FOR LOSS OR DAMAGE CAUSED BY ANY FAILURE OR DEFECT OF THE SOFTWARE PRODUCT OR DOCUMENTATION, REGARDLESS OF THE FORM OF ACTION, WHETHER IN CONTRACT, TORT INCLUDING NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, SHALL BE THE REPLACEMENT OF THE SOFTWARE PRODUCT. CONTACT YOUR ORIGINAL SOURCE OF PURCHASE TO RECEIVE INSTRUCTIONS ON OBTAINING REPLACEMENT PRODUCT. THIS WILL BE EXCLUSIVE OF ALL OTHER REMEDIES AGAINST AMREIN ENGINEERING AG AND ITS AUTHORIZED REPRESENTATIVE, EXCEPT FOR YOUR RIGHT TO CLAIM DAMAGES FOR BODILY INJURY TO ANY PERSON.
|
||||
|
||||
© 2009-2013 Amrein Engineering AG. All rights reserved.
|
||||
|
||||
AMREIN ENGINEERING AG
|
||||
Rohrerstrasse 100
|
||||
CH-5000 Aarau
|
||||
Switzerland
|
||||
e-mail: info@amrein.com
|
||||
Tel ++41 (0)62 823 7575
|
||||
Fax ++41 (0)62 823 7574
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
Image
|
||||
of
|
||||
show full size..
|
||||
next
|
||||
previous
|
||||
Title
|
||||
Description
|
||||
download image
|
||||
|
|
@ -0,0 +1 @@
|
|||
Version 1.0.49
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
SET STSADM="c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\bin\STSADM.EXE"
|
||||
%STSADM% -o addsolution -filename AECarouselWebpart.wsp
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlertManager.Administration", "AlertManager.Administration\AlertManager.Administration.csproj", "{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPSolutions.Common", "..\SPSolutions.SharePoint.AlertManager\SPSolutions.Common\SPSolutions.Common.csproj", "{B67399F5-510C-4705-B4D7-051A95EEFC6C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPSolutions.SharePoint", "..\SPSolutions.SharePoint.AlertManager\SPSolutions.SharePoint\SPSolutions.SharePoint.csproj", "{6924E88B-7154-4580-80C1-548D1A9EA515}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPSolutions.SharePoint.AlertManager", "..\SPSolutions.SharePoint.AlertManager\SPSolutions.SharePoint.AlertManager\SPSolutions.SharePoint.AlertManager.csproj", "{0DB166EF-12C3-4432-8F72-19052B31CB8A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{B67399F5-510C-4705-B4D7-051A95EEFC6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B67399F5-510C-4705-B4D7-051A95EEFC6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B67399F5-510C-4705-B4D7-051A95EEFC6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B67399F5-510C-4705-B4D7-051A95EEFC6C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6924E88B-7154-4580-80C1-548D1A9EA515}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6924E88B-7154-4580-80C1-548D1A9EA515}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6924E88B-7154-4580-80C1-548D1A9EA515}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6924E88B-7154-4580-80C1-548D1A9EA515}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0DB166EF-12C3-4432-8F72-19052B31CB8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0DB166EF-12C3-4432-8F72-19052B31CB8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0DB166EF-12C3-4432-8F72-19052B31CB8A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{0DB166EF-12C3-4432-8F72-19052B31CB8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0DB166EF-12C3-4432-8F72-19052B31CB8A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0DB166EF-12C3-4432-8F72-19052B31CB8A}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
@ -0,0 +1,425 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a"%>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8"%>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.AddAlertGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Import Namespace="SPSolutions.SharePoint" %>
|
||||
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertTitle" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertTitle.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertRecipients" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertRecipients.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertEventType" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertEventType.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertFilter" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertFilter.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertFrequency" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertFrequency.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertTemplateNotification" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertTemplateNotification.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertSendConfirmation" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertSendConfirmation.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="FilterSection" src="~/_controltemplates/15/SPSolutions/AlertManager/FilterSection.ascx" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
|
||||
<asp:Literal ID="LiteralPageTitle" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<asp:Literal ID="LiteralPageTitleInTitleArea" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">ms-bodyareaframe</asp:Content>
|
||||
|
||||
<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
|
||||
<style>
|
||||
.ms-bodyareaframe {
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
</style>
|
||||
<script language="javascript">
|
||||
|
||||
function SetSelectedList(listId)
|
||||
{
|
||||
document.all.<%= HiddenSelectedList.ClientID %>.value = listId;
|
||||
}
|
||||
function SetSelectedListItem(itemId)
|
||||
{
|
||||
document.all.<%= HiddenSelectedItem.ClientID %>.value = itemId;
|
||||
}
|
||||
function ValidateList(src, args)
|
||||
{
|
||||
// Get selected list id
|
||||
var selectedListId = document.all.<%= HiddenSelectedList.ClientID %>.value;
|
||||
args.IsValid = (selectedListId != null && selectedListId.length > 0);
|
||||
}
|
||||
function ValidateListItem(src, args)
|
||||
{
|
||||
// Get selected list id
|
||||
var selectedListItemId = document.all.<%= HiddenSelectedItem.ClientID %>.value;
|
||||
args.IsValid = (selectedListItemId != null && selectedListItemId.length > 0);
|
||||
}
|
||||
function _spBodyOnLoadWrapper()
|
||||
{
|
||||
if(document.all.LinkAlertTemplateUseExistingOrRevert != null)
|
||||
document.all.LinkAlertTemplateUseExistingOrRevert.disabled = true;
|
||||
|
||||
if(document.all.GlobalTokensGroup != null && document.all.ImgBtnGlobalTokensGroup != null)
|
||||
ShowHideElement(document.all.GlobalTokensGroup,document.all.ImgBtnGlobalTokensGroup);
|
||||
if(document.all.ListTokensGroup != null && document.all.ImgBtnListTokensGroup != null)
|
||||
ShowHideElement(document.all.ListTokensGroup,document.all.ImgBtnListTokensGroup);
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<wssawc:EncodedLiteral ID="LiteralPageDescription" text="<%$Resources:alertmanageradmin,Page_AddAlert_SelectList_Desc %>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
|
||||
|
||||
<!-- Requried controls -->
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<asp:HiddenField ID="HiddenSelectedList" runat="server" />
|
||||
<asp:HiddenField ID="HiddenSelectedItem" runat="server" />
|
||||
<asp:HiddenField ID="HiddenSelectedAccountNames" runat="server" />
|
||||
|
||||
<!-- Begin the wizard control -->
|
||||
<asp:Wizard ID="WizardAddAlert" Width="100%" runat="server" DisplaySideBar="false">
|
||||
<WizardSteps>
|
||||
|
||||
<%-- Select List Template page --%>
|
||||
<asp:TemplatedWizardStep ID="TemplatedWizardStepSelectList" runat="server" Title="Select List">
|
||||
<ContentTemplate>
|
||||
<asp:CustomValidator ID="ValidatorList" CssClass="ms-vb" ClientValidationFunction="ValidateList" ErrorMessage="Please select a list" ValidationGroup="SelectList" runat="server" />
|
||||
<asp:Repeater ID="RepeaterDocumentType" OnItemDataBound="RepeaterDocumentType_ItemDataBound" runat="server">
|
||||
<HeaderTemplate >
|
||||
<table width="100%" cellpadding="6" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th class="ms-vh2-nofilter" style="width:10px"> </th>
|
||||
<th class="ms-vh2-nofilter" style="width:25%">
|
||||
<asp:Literal Text="<%$Resources:alertmanageradmin,Page_AddAlert_RepeaterHeader_ListName %>" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<asp:Literal Text="<%$Resources:alertmanageradmin,Page_AddAlert_RepeaterHeader_Description %>" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<asp:Literal Text="<%$Resources:alertmanageradmin,Page_AddAlert_RepeaterHeader_Items %>" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="width:20%">
|
||||
<asp:Literal Text="<%$Resources:alertmanageradmin,Page_AddAlert_RepeaterHeader_Modified %>" runat="server" />
|
||||
</th>
|
||||
</tr>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="ms-gb" colspan="5"><%# DataBinder.Eval(Container.DataItem, "DocumentType")%></td>
|
||||
</tr>
|
||||
<asp:Repeater ID="RepeaterLists" runat="server">
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<input type="radio" name="RadioButtonList" onclick="SetSelectedList('<%# DataBinder.Eval(Container.DataItem, "ID")%>')" />
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<img src="<%# SPListUtil.GetListIconUrl(Container.DataItem as SPList)%>" style="vertical-align: middle" />
|
||||
<%# DataBinder.Eval(Container.DataItem,"Title") %>
|
||||
</td >
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# DataBinder.Eval(Container.DataItem,"Description") %>
|
||||
</td >
|
||||
<td class="ms-vb" style="text-align:right;vertical-align:top">
|
||||
<%# DataBinder.Eval(Container.DataItem,"ItemCount") %>
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# DataBinder.Eval(Container.DataItem,"LastItemModifiedDate") %>
|
||||
</td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</table>
|
||||
</FooterTemplate>
|
||||
</asp:Repeater>
|
||||
</ContentTemplate>
|
||||
<CustomNavigationTemplate>
|
||||
<wssuc:ButtonSection runat="server">
|
||||
<Template_Buttons>
|
||||
<asp:Button runat="server" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="s" CausesValidation="true" ValidationGroup="SelectList" OnCommand="SelectListItemButton_Click" Text="Select List Item" />
|
||||
<asp:Button runat="server" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="n" CausesValidation="true" ValidationGroup="SelectList" OnCommand="NextButton_Click" Text="Next" />
|
||||
</Template_Buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</CustomNavigationTemplate>
|
||||
</asp:TemplatedWizardStep>
|
||||
|
||||
<%-- Select list page --%>
|
||||
<asp:TemplatedWizardStep ID="TemplatedWizardStepSelectListItem" runat="server" Title="Select List Item">
|
||||
<ContentTemplate >
|
||||
<asp:CustomValidator ID="ValidatorListItem" CssClass="ms-vb" ClientValidationFunction="ValidateListItem" ErrorMessage="Please select a list item" ValidationGroup="SelectListItem" runat="server" />
|
||||
<asp:Repeater ID="RepeaterListItems" runat="server">
|
||||
<HeaderTemplate >
|
||||
<table width="100%" cellpadding="6" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th class="ms-vh2-nofilter" style="width:10px"> </th>
|
||||
<th class="ms-vh2-nofilter" style="width:40%">
|
||||
<asp:Literal Text="Title" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="width:15%">
|
||||
<asp:Literal Text="Created" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="width:15%">
|
||||
<asp:Literal Text="Created By" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="width:15%">
|
||||
<asp:Literal Text="Modified" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="width:15%">
|
||||
<asp:Literal Text="Modified By" runat="server" />
|
||||
</th>
|
||||
</tr>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<input type="radio" name="RadioButtonListItem" onclick="SetSelectedListItem('<%# DataBinder.Eval(Container.DataItem, "ID")%>')" />
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# GetListItemTitle(Container.DataItem, true) %>
|
||||
</td >
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# GetFieldValue(Container.DataItem, "Created")%>
|
||||
</td >
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# GetFieldValue(Container.DataItem,"Created_x0020_By") %>
|
||||
</td >
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# GetFieldValue(Container.DataItem, "Modified")%>
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:top">
|
||||
<%# GetFieldValue(Container.DataItem, "Modified_x0020_By")%>
|
||||
</td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</table>
|
||||
</FooterTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:PlaceHolder ID="PlaceHolderNoListItems" Visible="false" runat="server">
|
||||
<span class="ms-vb" style="padding:10px; color:#CC0000">No list items could be found</span>
|
||||
</asp:PlaceHolder>
|
||||
</ContentTemplate>
|
||||
<CustomNavigationTemplate>
|
||||
<wssuc:ButtonSection runat="server">
|
||||
<Template_Buttons>
|
||||
<asp:Button runat="server" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="p" CausesValidation="false" ValidationGroup="SelectListItem" OnCommand="PreviousButton_Click" Text="Previous" />
|
||||
<asp:Button runat="server" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="n" CausesValidation="true" ValidationGroup="SelectListItem" OnCommand="NextButton_Click" Text="Next" />
|
||||
</Template_Buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</CustomNavigationTemplate>
|
||||
</asp:TemplatedWizardStep>
|
||||
|
||||
<%-- Select users page --%>
|
||||
<asp:TemplatedWizardStep ID="TemplatedWizardStepSelectUser" runat="server" Title="Select User">
|
||||
<ContentTemplate>
|
||||
<div class="ms-navline" ></div>
|
||||
<table width="80%" align=center height="95%" cellpadding=0 cellspacing=0 >
|
||||
<tr height=10%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" width=20% height=15 alt="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=80%>
|
||||
<td width=37% class="ms-titlearea" height="99%" >
|
||||
<wssawc:EncodedLiteral ID="EncodedLiteralUnselectedUsersTitle" text="Un-Selected Site Users:" EncodeMethod="HtmlEncode" runat="server" />
|
||||
<SharePoint:DVListBox ID="ListBoxUnselectedUsers" SelectionMode=Multiple DataTextField="LoginName" DataValueField="LoginName" Height="97%" Width=100% runat="server" BackColor="White" >
|
||||
</SharePoint:DVListBox>
|
||||
</td>
|
||||
<td width=26% height=99%>
|
||||
<table width=100% height=11% >
|
||||
<tr height=100%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=100% height=40% >
|
||||
<tr height=22%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=20%>
|
||||
</td>
|
||||
<td width=60% valign=bottom>
|
||||
<asp:Button ID="ButtonAddAll" Width=100% runat="server" Text="<%$ Resources:alertmanageradmin,Control_ButtonAddAll_Button_CommandName %>"
|
||||
CommandName="<%$ Resources:alertmanageradmin,Control_ButtonAddAll_Button_CommandName %>" OnCommand="ButtonSelectOrRemoveUsers_Click" /></td>
|
||||
</td>
|
||||
<td width=20%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" width=20% height=15 alt="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=20%>
|
||||
</td>
|
||||
<td width=60%>
|
||||
<asp:Button ID="ButtonAddSelected" Width=100% runat="server" Text="<%$ Resources:alertmanageradmin,Control_ButtonAddSelected_Button_CommandName %>"
|
||||
CommandName="<%$ Resources:alertmanageradmin,Control_ButtonAddSelected_Button_CommandName %>" OnCommand="ButtonSelectOrRemoveUsers_Click" /></td>
|
||||
</td>
|
||||
<td width=20%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" width=20% height=15 alt="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=20%>
|
||||
</td>
|
||||
<td width=60%>
|
||||
<asp:Button ID="ButtonRemoveSelected" Width=100% runat="server" Text="<%$ Resources:alertmanageradmin,Control_ButtonRemoveSelected_Button_CommandName %>"
|
||||
CommandName="<%$ Resources:alertmanageradmin,Control_ButtonRemoveSelected_Button_CommandName %>" OnCommand="ButtonSelectOrRemoveUsers_Click" /></td>
|
||||
</td>
|
||||
<td width=20%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" width=20% height=15 alt="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=8%>
|
||||
<td width=20%>
|
||||
</td>
|
||||
<td width=60%>
|
||||
<asp:Button ID="ButtonRemoveAll" Width=100% runat="server" Text="<%$ Resources:alertmanageradmin,Control_ButtonRemoveAll_Button_CommandName %>"
|
||||
CommandName="<%$ Resources:alertmanageradmin,Control_ButtonRemoveAll_Button_CommandName %>" OnCommand="ButtonSelectOrRemoveUsers_Click" /></td>
|
||||
</td>
|
||||
<td width=20%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=22%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=100% height=11% >
|
||||
<tr height=100%>
|
||||
<td width=26% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width=37% class="ms-titlearea" height="99%">
|
||||
<wssawc:EncodedLiteral ID="EncodedLiteralSelectedUsersTitle" text="Selected Site Users:" EncodeMethod="HtmlEncode" runat="server" />
|
||||
<SharePoint:DVListBox ID="ListBoxSelectedUsers" SelectionMode=Multiple DataTextField="LoginName" DataValueField="LoginName" Height="97%" Width=100% runat="server" BackColor="White" >
|
||||
</SharePoint:DVListBox>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width=100% class="ms-vb2" colspan=3>
|
||||
<SPSolutions:FilterSection ID="FilterSectionPeopleEditor" Title="Add users that are not a member of this site" Collapsible="True" Collapsed="True" runat="server">
|
||||
<ControlsTemplate>
|
||||
<wssawc:PeopleEditor id="PeopleEditorGroupPicker" runat="server"
|
||||
ShowCreateButtonInActiveDirectoryAccountCreationMode="false"
|
||||
SingleLine=false
|
||||
ValidatorEnabled="true"
|
||||
MultiSelect="true"
|
||||
SelectionSet="User,SecGroup" />
|
||||
</ControlsTemplate>
|
||||
</SPSolutions:FilterSection>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30%>
|
||||
<td width=100% colspan=3>
|
||||
<IMG SRC="/_layouts/15/images/blank.gif" width=20% height=15 alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
<CustomNavigationTemplate>
|
||||
<wssuc:ButtonSection runat="server">
|
||||
<Template_Buttons>
|
||||
<asp:Button runat="server" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="p" CausesValidation="false" ValidationGroup="SelectUser" OnCommand="PreviousButton_Click" Text="Previous" />
|
||||
<asp:Button runat="server" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="n" CausesValidation="true" ValidationGroup="SelectUser" OnCommand="NextButton_Click" Text="Next" />
|
||||
</Template_Buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</CustomNavigationTemplate>
|
||||
</asp:TemplatedWizardStep>
|
||||
<asp:TemplatedWizardStep ID="TemplatedWizardStepAddAlerts" runat="server" Title="Finish">
|
||||
<ContentTemplate>
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
|
||||
<!-- Alert title section -->
|
||||
<SPSolutions:InputFormSectionAlertTitle ID="SectionAlertTitle" runat="server" />
|
||||
|
||||
<!-- Alert template notification settings section -->
|
||||
<SPSolutions:InputFormSectionAlertTemplateNotification
|
||||
ID="SectionAlertTemplateNotification" runat="server" HideIfNotCustom="false" ForceCustomMode="true" HideRevertButton="true" >
|
||||
<AlertTemplateTemplate/>
|
||||
</SPSolutions:InputFormSectionAlertTemplateNotification>
|
||||
|
||||
<!-- Alert Recipients section -->
|
||||
<SPSolutions:InputFormSectionAlertRecipients ID="SectionAlertRecipients" runat="server">
|
||||
<ViewUsersFooterTemplate>
|
||||
<span style="width:100%;text-align:right;padding-top:10px">
|
||||
<asp:LinkButton ID="LinkButtonModifyUsers" CssClass="ms-vb" Text="Modify Users" CommandName="ModifyUsers" OnClick="LinkButtonModifyUsers_Click" runat="server" />
|
||||
</span>
|
||||
</ViewUsersFooterTemplate>
|
||||
</SPSolutions:InputFormSectionAlertRecipients>
|
||||
|
||||
<!-- Alert Event Type section -->
|
||||
<SPSolutions:InputFormSectionAlertEventType ID="SectionAlertEventType" runat="server" />
|
||||
|
||||
<!-- Alert Filter section -->
|
||||
<SPSolutions:InputFormSectionAlertFilter ID="SectionAlertFilter" EnableCustomFilter="true" runat="server" />
|
||||
|
||||
<!-- Alert Frequency section -->
|
||||
<SPSolutions:InputFormSectionAlertFrequency ID="SectionAlertFrequency" runat="server" />
|
||||
|
||||
<!-- Alert Send Confirmation Email section -->
|
||||
<SPSolutions:InputFormSectionAlertSendConfirmation ID="SectionAlertSendConfirmation" runat="server" />
|
||||
|
||||
</table>
|
||||
</ContentTemplate>
|
||||
<CustomNavigationTemplate>
|
||||
<wssuc:ButtonSection runat="server">
|
||||
<Template_Buttons>
|
||||
<asp:Button ID="ButtonFinish" OnClick="ButtonFinish_Click" Text="<% $Resources:alertmanageradmin,Button_Finish %>" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</Template_Buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</CustomNavigationTemplate>
|
||||
</asp:TemplatedWizardStep>
|
||||
<asp:TemplatedWizardStep ID="TemplatedWizardStepAddAlertError" runat="server" Title="Finish">
|
||||
<ContentTemplate>
|
||||
<span class="ms-vb" style="padding:10px;color:#CC0000">
|
||||
<asp:Label ID="LabelErrorMessage" runat="server" ></asp:Label>
|
||||
</span>
|
||||
</ContentTemplate>
|
||||
</asp:TemplatedWizardStep>
|
||||
|
||||
</WizardSteps>
|
||||
</asp:Wizard>
|
||||
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a"%>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8"%>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.EditAlertGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
|
||||
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertTitle" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertTitle.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertRecipients" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertRecipients.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertEventType" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertEventType.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertFilter" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertFilter.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertFrequency" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertFrequency.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionAlertTemplateNotification" Src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionAlertTemplateNotification.ascx" %>
|
||||
|
||||
<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
|
||||
<style>
|
||||
.ms-bodyareaframe {
|
||||
padding-left: 0px;
|
||||
}
|
||||
.spsol-hidden
|
||||
{
|
||||
display:none;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript">
|
||||
function _spBodyOnLoadWrapper()
|
||||
{
|
||||
if(document.all.LinkAlertTemplateUseExistingOrRevert != null)
|
||||
document.all.LinkAlertTemplateUseExistingOrRevert.disabled = true;
|
||||
|
||||
if(document.all.GlobalTokensGroup != null && document.all.ImgBtnGlobalTokensGroup != null)
|
||||
ShowHideElement(document.all.GlobalTokensGroup,document.all.ImgBtnGlobalTokensGroup);
|
||||
if(document.all.ListTokensGroup != null && document.all.ImgBtnListTokensGroup != null)
|
||||
ShowHideElement(document.all.ListTokensGroup,document.all.ImgBtnListTokensGroup);
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral text="<%$ Resources:alertmanageradmin,Page_EditAlert_Title %>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral text="<%$ Resources:alertmanageradmin,Page_EditAlert_Title %>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
<asp:Label ID="PageTitleLabel" runat="server"></asp:Label>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">ms-bodyareaframe</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_EditAlert_Desc %>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="ms-vb" style="padding:10px;color:#CC0000">
|
||||
<asp:Label ID="LabelErrorMessage" runat="server" Visible="false" ></asp:Label>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
|
||||
<!-- Alert title section -->
|
||||
<SPSolutions:InputFormSectionAlertTitle ID="SectionAlertTitle" runat="server" />
|
||||
|
||||
<!-- Alert template notification settings section -->
|
||||
<SPSolutions:InputFormSectionAlertTemplateNotification
|
||||
ID="SectionAlertTemplateNotification" runat="server" HideIfNotCustom="false" >
|
||||
<AlertTemplateTemplate/>
|
||||
</SPSolutions:InputFormSectionAlertTemplateNotification>
|
||||
|
||||
<!-- Alert Recipients section -->
|
||||
<SPSolutions:InputFormSectionAlertRecipients ID="SectionAlertRecipients" runat="server" />
|
||||
|
||||
<!-- Alert Event Type section -->
|
||||
<SPSolutions:InputFormSectionAlertEventType ID="SectionAlertEventType" runat="server" />
|
||||
|
||||
<!-- Alert Filter section -->
|
||||
<SPSolutions:InputFormSectionAlertFilter ID="SectionAlertFilter" runat="server" EnableCustomFilter="true" />
|
||||
|
||||
<!-- Alert Frequency section -->
|
||||
<SPSolutions:InputFormSectionAlertFrequency ID="SectionAlertFrequency" runat="server" />
|
||||
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection runat="server">
|
||||
<Template_Buttons>
|
||||
<asp:Button ID="ButtonFinish" OnClick="ButtonFinish_Click" Text="<% $Resources:alertmanageradmin,Button_Finish %>" UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</Template_Buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateView.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateInformationView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateInformationView.ascx" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Import Namespace="SPSolutions.SharePoint.AlertManager.Administration.Resources" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
|
||||
Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls"
|
||||
Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls"
|
||||
Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_ManageAlertTemplate_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_ManageAlertTemplate_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_ManageAlertTemplate_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%; height: 100%"
|
||||
class="ms-settingsframe">
|
||||
<tr>
|
||||
<td width="100%" colspan="4" style="padding-top: 0px;">
|
||||
<!-- General Information Section -->
|
||||
<table class="ms-pageinformation" width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td valign="top" style="padding: 10px;" width="80%" height="100px">
|
||||
<wssuc:AlertTemplateInformationView runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateInformationView>
|
||||
</td>
|
||||
<td style="padding: 10px;" valign="top" align="right">
|
||||
<SPSolutions:AlertTemplateSelector ID="AlertTemplateSelector" runat="server" OnContextChange="OnAlertTemplateContextChange"
|
||||
TypeLabelCssClass="ms-descriptiontext" UrlDisplayType="relative" UseCookieInitialization="false" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Information bar -->
|
||||
<asp:PlaceHolder ID="PanelGenericInformationBar" runat="server" Visible="false">
|
||||
<tr>
|
||||
<td colspan="3" style="padding: 4px 0px 4px 0px;" width="100%">
|
||||
<SharePoint:GenericInformationBar ID="GenericInformationBar1" runat="server">
|
||||
<Template_Controls>
|
||||
<asp:PlaceHolder ID="PlaceHolder5" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:wss,listedit_largelist%>"
|
||||
EncodeMethod='HtmlEncode' />
|
||||
<a href="javascript:HelpWindowKey('MS_WSS_LargeList');">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral6" runat="server" Text="<%$Resources:wss,listedit_largelist_help%>"
|
||||
EncodeMethod='HtmlEncode' /></a> </asp:PlaceHolder>
|
||||
</Template_Controls>
|
||||
</SharePoint:GenericInformationBar>
|
||||
</td>
|
||||
</tr>
|
||||
</asp:PlaceHolder>
|
||||
<!-- Action links -->
|
||||
<tr>
|
||||
<td colspan="3" style="padding: 4px 0px 4px 0px;" width="100%" id="_spFocusHere">
|
||||
<table width="100%" cellpadding="1" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td valign="top" width="50%">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:LinkSection runat="server" ID="GeneralLinkSection" Title="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_GeneralSection %>"
|
||||
runat="server">
|
||||
<template_description></template_description>
|
||||
<template_links>
|
||||
<asp:HyperLink NavigateUrl="ManageAlertTemplateGeneral.aspx" ID="ManageAlertTemplateGeneralSettings" runat="server" text="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_GeneralSettings %>" />
|
||||
<asp:HyperLink NavigateUrl="ManageAlertTemplateDelete.aspx" ID="ManageAlertTemplateDelete" runat="server" text="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_Delete %>" />
|
||||
</template_links>
|
||||
<template_othercontrols></template_othercontrols>
|
||||
</wssuc:LinkSection>
|
||||
</table>
|
||||
<td>
|
||||
</td>
|
||||
</td>
|
||||
<td valign="top" width="50%">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:LinkSection runat="server" ID="FormattingLinkSection" Title="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_FormattingSection %>"
|
||||
runat="server">
|
||||
<template_description></template_description>
|
||||
<template_links>
|
||||
<asp:HyperLink NavigateUrl="ManageAlertTemplateStyleSheet.aspx" runat="server" Visible="True" Text="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_Style %>" />
|
||||
<asp:HyperLink NavigateUrl="ManageAlertTemplateBody.aspx" runat="server" Visible="True" Text="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_Body %>" />
|
||||
<asp:HyperLink NavigateUrl="ManageAlertTemplateHeaderFooter.aspx" runat="server" Visible="True" Text="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_HeaderFooter %>" />
|
||||
<asp:HyperLink NavigateUrl="ManageAlertTemplateAlertDetailsTransform.aspx" runat="server" Visible="True" Text="<%$ Resources:alertmanageradmin,AlertTemplateEditActions_AlertDetailsTransform %>" />
|
||||
</template_links>
|
||||
<template_othercontrols></template_othercontrols>
|
||||
</wssuc:LinkSection>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateAlertDetailsTransformGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
|
||||
Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls"
|
||||
Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls"
|
||||
Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateSettingsAlertDetailsTransform"
|
||||
Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateSettingsAlertDetailsTransform.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsAlertDetailsTransform_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsAlertDetailsTransform_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsAlertDetailsTransform_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:AlertTemplateSettingsAlertDetailsTransform ID="AlertTemplateSettingsAlertDetailsTransformControl"
|
||||
runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateSettingsAlertDetailsTransform>
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<template_buttons>
|
||||
<asp:Button ID="ButtonFinish" Text="<% $Resources:alertmanageradmin,Button_Finish %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</template_buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateBodyGlobalAdminPage,SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateView.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateInformationView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateInformationView.ascx" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
|
||||
Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls"
|
||||
Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls"
|
||||
Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateSettingsBody" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateSettingsBody.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
function _spBodyOnLoadWrapper()
|
||||
{
|
||||
if(document.all.GlobalTokensGroup != null && document.all.ImgBtnGlobalTokensGroup != null)
|
||||
ShowHideElement(document.all.GlobalTokensGroup,document.all.ImgBtnGlobalTokensGroup);
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsBody_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsBody_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsBody_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:AlertTemplateSettingsBody ID="AlertTemplateSettingsBodyControl" runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateSettingsBody>
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<Template_Buttons >
|
||||
<asp:Button ID="ButtonFinish" Text="<% $Resources:alertmanageradmin,Button_Finish %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</Template_Buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateDeleteGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateView.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateInformationView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateInformationView.ascx" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
|
||||
Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls"
|
||||
Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls"
|
||||
Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateDelete" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateDelete.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_ManageAlertTemplateDelete_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_ManageAlertTemplateDelete_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_ManageAlertTemplateDelete_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:AlertTemplateDelete ID="AlertTemplateDeleteControl" runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateDelete>
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<template_buttons>
|
||||
<asp:Button ID="ButtonContinue" Text="<% $Resources:alertmanageradmin,Button_Continue %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</template_buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateGeneralGlobalAdminPage" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateView.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateInformationView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateInformationView.ascx" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
|
||||
Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls"
|
||||
Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls"
|
||||
Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateSettingsGeneral" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateSettingsGeneral.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsGeneral_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsGeneral_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral1" Text="<%$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsGeneral_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:AlertTemplateSettingsGeneral id="AlertTemplateSettingsGeneralControl" runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateSettingsGeneral>
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<template_buttons>
|
||||
<asp:Button ID="ButtonFinish" Text="<% $Resources:alertmanageradmin,Button_Finish %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</template_buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateHeaderFooterGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateView.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateInformationView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateInformationView.ascx" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateSettingsHeaderFooter" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateSettingsHeaderFooter.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
function _spBodyOnLoadWrapper()
|
||||
{
|
||||
if(document.all.HeaderGlobalTokensGroup != null && document.all.ImgBtnHeaderGlobalTokensGroup != null)
|
||||
ShowHideElement(document.all.HeaderGlobalTokensGroup,document.all.ImgBtnHeaderGlobalTokensGroup);
|
||||
if(document.all.FooterGlobalTokensGroup != null && document.all.ImgBtnFooterGlobalTokensGroup != null)
|
||||
ShowHideElement(document.all.FooterGlobalTokensGroup,document.all.ImgBtnFooterGlobalTokensGroup);
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsHeaderFooter_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsHeaderFooter_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsHeaderFooter_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:AlertTemplateSettingsHeaderFooter ID="AlertTemplateSettingsHeaderFooterControl"
|
||||
runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateSettingsHeaderFooter>
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<template_buttons>
|
||||
<asp:Button ID="ButtonFinish" Text="<% $Resources:alertmanageradmin,Button_Finish %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</template_buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateSalientGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateView.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateInformationView" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateInformationView.ascx" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateSettingsSalient" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateSettingsSalient.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateCreateNew" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateCreateNew.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
function _spBodyOnLoadWrapper()
|
||||
{
|
||||
if(document.all.GlobalTokensGroup != null && document.all.ImgBtnGlobalTokensGroup != null)
|
||||
ShowHideElement(document.all.GlobalTokensGroup,document.all.ImgBtnGlobalTokensGroup);
|
||||
if(document.all.ListTokensGroup != null && document.all.ImgBtnListTokensGroup != null)
|
||||
ShowHideElement(document.all.ListTokensGroup,document.all.ImgBtnListTokensGroup);
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsSalient_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_ManageAlertTemplate_CreateNew_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" width="100%" align="right">
|
||||
</td>
|
||||
</tr>
|
||||
<wssuc:AlertTemplateCreateNew ID="AlertTemplateCreateNewControl" runat="server">
|
||||
<alerttemplatetemplate/>
|
||||
</wssuc:AlertTemplateCreateNew>
|
||||
<wssuc:AlertTemplateSettingsSalient ID="AlertTemplateSettingsSalientControl" runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateSettingsSalient>
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<template_buttons>
|
||||
<asp:Button ID="ButtonFinish" Text="<% $Resources:alertmanageradmin,Button_Finish %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" ValidationGroup="default" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</template_buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" %>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplateStyleSheetGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="~/_controltemplates/15/LinkSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="AlertTemplateSettingsStyleSheet" Src="~/_controltemplates/15/SPSolutions/AlertManager/AlertTemplateSettingsStyleSheet.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral10" Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsStyleSheet_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral Text="<%$ Resources:alertmanageradmin,Page_EditAlertTemplateSettingsStyleSheet_Title %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="EncodedLiteral3" Text="<%$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsStyleSheet_Desc %>"
|
||||
EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
|
||||
<wssuc:AlertTemplateSettingsStyleSheet ID="AlertTemplateSettingsStyleSheetControl"
|
||||
runat="server">
|
||||
<alerttemplatetemplate />
|
||||
</wssuc:AlertTemplateSettingsStyleSheet>
|
||||
<!-- Buttons -->
|
||||
<wssuc:ButtonSection ShowStandardCancelButton="false" runat="server">
|
||||
<template_buttons>
|
||||
<asp:Button ID="ButtonFinish" Text="<% $Resources:alertmanageradmin,Button_Finish %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
<asp:Button ID="ButtonCancel" Text="<% $Resources:alertmanageradmin,Button_Cancel %>"
|
||||
UseSubmitBehavior="false" class="ms-ButtonHeightWidth" IAccessKey="f" runat="server" />
|
||||
</template_buttons>
|
||||
</wssuc:ButtonSection>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,284 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a"%>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8"%>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertTemplatesGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Import Namespace="SPSolutions.SharePoint.AlertManager" %>
|
||||
<%@ Import Namespace="SPSolutions.SharePoint.AlertManager.Administration.Resources" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionManageAlertFilter" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionManageAlertFilter.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="FilterSection" src="~/_controltemplates/15/SPSolutions/AlertManager/FilterSection.ascx" %>
|
||||
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral text="<%$ Resources:alertmanageradmin,Page_ManageAlertTemplates_Title %>" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral text="<%$ Resources:alertmanageradmin,Page_ManageAlertTemplates_Title %>" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">ms-bodyareaframe</asp:Content>
|
||||
|
||||
<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
|
||||
<style>
|
||||
.ms-bodyareaframe {
|
||||
padding-left: 0px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
var msgConfirmDeleteAlertTemplate = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_ConfirmDeleteAlertTemplate%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
var msgConfirmDeleteAlertTemplates = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_ConfirmDeleteAlertTemplates%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
var msgNoAlertTemplatesSelected = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_NoAlertTemplatesSelected%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
|
||||
function ChangePageSize(pageSize)
|
||||
{
|
||||
document.all.<%=HiddenPageSize.ClientID %>.value = pageSize;
|
||||
<%= Page.GetPostBackEventReference(ButtonChangePageSize) %>;
|
||||
}
|
||||
function DeleteAlertTemplate(alertId)
|
||||
{
|
||||
if(confirm(msgConfirmDeleteAlertTemplate))
|
||||
{
|
||||
document.all.<%=HiddenSelectedAlertTemplates.ClientID %>.value = alertId;
|
||||
<%= Page.GetPostBackEventReference(ButtonDeleteSelectedAlertTemplates) %>;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function DeleteSelectedAlertTemplates()
|
||||
{
|
||||
var selectedAlertTemplates = GetSelectedAlertTemplates();
|
||||
if(selectedAlertTemplates.AlertTemplateIds.length == 0)
|
||||
{
|
||||
alert(msgNoAlertTemplatesSelected);
|
||||
return false;
|
||||
}
|
||||
|
||||
var msg = StBuildParam(msgConfirmDeleteAlertTemplates, selectedAlertTemplates.AlertTemplateNames);
|
||||
if(confirm(msg))
|
||||
{
|
||||
document.all.<%=HiddenSelectedAlertTemplates.ClientID %>.value = selectedAlertTemplates.AlertTemplateIds;
|
||||
<%= Page.GetPostBackEventReference(ButtonDeleteSelectedAlertTemplates) %>;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function AddAlertTemplate()
|
||||
{
|
||||
GoToPageRelativeWithContext('ManageAlertTemplateSalient.aspx');
|
||||
|
||||
}
|
||||
function EditAlertTemplate(alertTemplateId)
|
||||
{
|
||||
GoToPageRelativeWithContext('ManageAlertTemplate.aspx?<%= AlertResourceManager.GetConfigString("QueryString_AlertTemplateId") %>=' + alertTemplateId);
|
||||
}
|
||||
function GetSelectedAlertTemplates()
|
||||
{
|
||||
var alertTemplateIds = "";
|
||||
var alertTemplateNames = "";
|
||||
var separator = ",";
|
||||
|
||||
var checkBoxes = document.getElementsByName("CheckBoxAlertTemplate");
|
||||
for (var i = 0; i < checkBoxes.length; i++)
|
||||
{
|
||||
var chkBox = checkBoxes[i];
|
||||
if (chkBox.checked)
|
||||
{
|
||||
var alertTemplateId = chkBox.getAttribute("alertTemplateId");
|
||||
var alertTemplateName = chkBox.getAttribute("alertTemplateName");
|
||||
|
||||
if(alertTemplateId != null && alertTemplateId.length > 0)
|
||||
alertTemplateIds = AppendValue(alertTemplateId, alertTemplateIds, separator);
|
||||
|
||||
if(alertTemplateName != null && alertTemplateName.length > 0)
|
||||
alertTemplateNames = AppendValue(alertTemplateName, alertTemplateNames, separator);
|
||||
}
|
||||
}
|
||||
return {AlertTemplateIds:alertTemplateIds, AlertTemplateNames:alertTemplateNames};
|
||||
}
|
||||
function AppendValue(value, list, separater)
|
||||
{
|
||||
if(list.length > 0)
|
||||
return list + separater + value;
|
||||
|
||||
return value;
|
||||
}
|
||||
function GoToPageRelativeWithContext(url)
|
||||
{
|
||||
/*
|
||||
var urlSeperator = url.indexOf("?") >= 0 ? "&" : "?";
|
||||
url += urlSeperator +
|
||||
'<%= AlertResourceManager.GetConfigString("QueryString_SiteId") %>=' + alertContext.SiteId +
|
||||
'&<%= AlertResourceManager.GetConfigString("QueryString_WebId") %>=' + alertContext.WebId;
|
||||
*/
|
||||
|
||||
GoToPageRelative(url);
|
||||
}
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="LiteralPageDescription" Text="<% $Resources:alertmanageradmin,Page_ManageAlertTemplates_Desc%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
|
||||
|
||||
<!-- Base controls -->
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
|
||||
<!-- Error messages -->
|
||||
<asp:Label runat="server" ForeColor="red" ID="LabelErrorMessages" />
|
||||
|
||||
<!-- Web selector filter section -->
|
||||
<asp:PlaceHolder ID="PlaceHolderAlertTemplateFilter" Visible="true" runat="server">
|
||||
<SPSolutions:FilterSection Id="FilterSectionAlertTemplateFilter" Title="<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_FilterTitle%>" Collapsible="True" runat="server">
|
||||
<ControlsTemplate>
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td class="ms-descriptiontext" style="padding-left:10px">Keyword:</td>
|
||||
<td class="ms-descriptiontext"><wssawc:InputFormTextBox ID="TextBoxKeyword" runat=server ></wssawc:InputFormTextBox></td>
|
||||
<td class="ms-descriptiontext"><asp:ImageButton ID="ButtonSearch" ImageUrl="/_layouts/15/images/gosearch.gif" OnClick="ButtonSearch_Click" runat="server" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</ControlsTemplate>
|
||||
</SPSolutions:FilterSection>
|
||||
</asp:PlaceHolder>
|
||||
|
||||
<!-- Toolbar -->
|
||||
<wssuc:ToolBar ID="ToolBar" CssClass="ms-toolbar" runat="server">
|
||||
<Template_Buttons >
|
||||
<SharePoint:Menu id="MenuNewSelector" runat="server" Text="<%$ Resources:alertmanageradmin,Control_ManageAlerts_Menu_New %>"
|
||||
TemplateId = "MenuTemplateNew"
|
||||
MenuFormat="ArrowAlwaysVisible"
|
||||
MenuAlignment="Left"
|
||||
HoverCellActiveCssClass="ms-menubuttonactivehover"
|
||||
HoverCellInActiveCssClass="ms-menubuttoninactivehover"
|
||||
ArrowImageUrl="/_layouts/15/images/Menu2.gif"
|
||||
/>
|
||||
<SharePoint:Menu id="MenuActionSelector" runat="server" Text="<%$ Resources:alertmanageradmin,Control_ManageAlerts_Menu_Action %>"
|
||||
TemplateId = "MenuTemplateActions"
|
||||
MenuFormat="ArrowAlwaysVisible"
|
||||
MenuAlignment="Left"
|
||||
HoverCellActiveCssClass="ms-menubuttonactivehover"
|
||||
HoverCellInActiveCssClass="ms-menubuttoninactivehover"
|
||||
ArrowImageUrl="/_layouts/15/images/Menu2.gif"
|
||||
/>
|
||||
</Template_Buttons>
|
||||
<Template_RightButtons>
|
||||
<SPSolutions:SPManualPager ID="ManualPager" runat="server" />
|
||||
|
||||
<SPSolutions:SPMenuSelector ID="MenuPageSize"
|
||||
LabelText="Show:"
|
||||
MenuTemplateId="MenuTemplatePageSize" MenuAlignment="right"
|
||||
MenuWidth="300px" runat="server"
|
||||
/>
|
||||
</Template_RightButtons>
|
||||
</wssuc:ToolBar>
|
||||
<asp:Repeater ID="RepeaterAlertTemplates" OnItemDataBound="RepeaterAlertTemplates_ItemDataBound" runat="server">
|
||||
<HeaderTemplate>
|
||||
<table style="width:100%;" cellpadding="3" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th class="ms-vh2-nofilter" style="width:10px"> </th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_HeaderTemplate_Name%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_HeaderTemplate_Owner%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="text-align:center">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlertTemplates_HeaderTemplate_Status%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
</tr>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="ms-vb" style="vertical-align:middle">
|
||||
<input id="CheckBoxAlertTemplate" Name="CheckBoxAlertTemplate" type="checkbox" alertTemplateId='<%# DataBinder.Eval(Container.DataItem,"Id")%>' alertTemplateName='<%# DataBinder.Eval(Container.DataItem,"FriendlyName")%>' />
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:bottom">
|
||||
<SharePoint:Menu
|
||||
ID="MenuItemContext"
|
||||
TemplateId="MenuTemplateItemContext"
|
||||
UseMaximumWidth="true"
|
||||
runat="server" />
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:middle"><%# DataBinder.Eval(Container.DataItem, "OwnerLoginName")%></td>
|
||||
<td class="ms-vb" style="vertical-align:middle; text-align:center"><%# DataBinder.Eval(Container.DataItem, "InnerSPAlertTemplate.Status")%></td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</table>
|
||||
</FooterTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
<!-- New Menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateNew" LargeIconMode="true" runat="server">
|
||||
<SharePoint:MenuItemTemplate id="MenuItemAddAlert" runat="server"
|
||||
Text="Add Alert Template"
|
||||
MenuGroupId="100"
|
||||
Sequence="100"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-addalert.gif"
|
||||
ClientOnClickScript="return AddAlertTemplate();"
|
||||
/>
|
||||
</SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Actions menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateActions" LargeIconMode="true" runat="server">
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateDeleteAlerts" runat="server"
|
||||
Text="Delete Selected Alert Templates"
|
||||
MenuGroupId="100"
|
||||
Sequence="100"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-deletealert.gif"
|
||||
ClientOnClickScript="return DeleteSelectedAlertTemplates();"
|
||||
/>
|
||||
</SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Page Size menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplatePageSize" runat="server"></SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Context menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateItemContext" LargeIconMode="false" runat="server">
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateEditAlert" runat="server"
|
||||
Text="Edit Alert Template"
|
||||
MenuGroupId="100"
|
||||
Sequence="100"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-small-editalert.gif"
|
||||
ClientOnClickScript="return EditAlertTemplate('%ALERTTEMPLATEID%');"
|
||||
/>
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateDeleteAlert" runat="server"
|
||||
Text="Delete Alert Template"
|
||||
MenuGroupId="100"
|
||||
Sequence="102"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-small-deletealert.gif"
|
||||
ClientOnClickScript="return DeleteAlertTemplate('%ALERTTEMPLATEID%');"
|
||||
/>
|
||||
</SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Hidden controls -->
|
||||
<asp:HiddenField ID="HiddenPageSize" runat="server" />
|
||||
<asp:HiddenField ID="HiddenSelectedAlertTemplates" runat="server" />
|
||||
<asp:Button ID="ButtonChangePageSize" UseSubmitBehavior="false" style="visibility:hidden;" OnClick="ButtonChangePageSize_Click" runat="server" />
|
||||
<asp:Button ID="ButtonDeleteSelectedAlertTemplates" UseSubmitBehavior="false" style="visibility:hidden;" OnClick="ButtonDeleteSelectedAlertTemplates_Click" runat="server" />
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,394 @@
|
|||
<%@ Assembly Name="SPSolutions.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c972339ec3839683"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a"%>
|
||||
<%@ Assembly Name="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04"%>
|
||||
<%@ Assembly Name="SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8"%>
|
||||
<%@ Page Language="C#" Inherits="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages.ManageAlertsGlobalAdminPage, SPSolutions.SharePoint.AlertManager.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46138b5e58f3f9d8" MasterPageFile="~/_admin/admin.master" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint" %>
|
||||
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
|
||||
<%@ Import Namespace="SPSolutions.SharePoint.AlertManager" %>
|
||||
<%@ Import Namespace="SPSolutions.SharePoint.AlertManager.Administration.Resources" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.WebControls" Assembly="SPSolutions.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f326b76eb30b0c2a" %>
|
||||
<%@ Register Tagprefix="SPSolutions" Namespace="SPSolutions.SharePoint.AlertManager.WebControls" Assembly="spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="InputFormSectionManageAlertFilter" src="~/_controltemplates/15/SPSolutions/AlertManager/InputFormSectionManageAlertFilter.ascx" %>
|
||||
<%@ Register TagPrefix="SPSolutions" TagName="FilterSection" src="~/_controltemplates/15/SPSolutions/AlertManager/FilterSection.ascx" %>
|
||||
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/15/InputFormSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/15/InputFormControl.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/15/ButtonSection.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/15/ToolBar.ascx" %>
|
||||
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/15/ToolBarButton.ascx" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
|
||||
<SharePoint:EncodedLiteral text="<%$ Resources:alertmanageradmin,Page_ManageAlerts_Title %>" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
|
||||
<SharePoint:EncodedLiteral text="<%$ Resources:alertmanageradmin,Page_ManageAlerts_Title %>" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">ms-bodyareaframe</asp:Content>
|
||||
|
||||
<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
|
||||
<style>
|
||||
.ms-bodyareaframe {
|
||||
padding-left: 0px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
var msgConfirmToggleAlertStatus = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlerts_ConfirmToggleAlertStatus%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
var msgConfirmDeleteAlert = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlerts_ConfirmDeleteAlert%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
var msgConfirmDeleteAlerts = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlerts_ConfirmDeleteAlerts%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
var msgNoAlertsSelected = "<SharePoint:EncodedLiteral text='<%$Resources:alertmanageradmin,Page_ManageAlerts_NoAlertsSelected%>' EncodeMethod='EcmaScriptStringLiteralEncode' runat='server' />";
|
||||
var alertContext = {SiteId:"<%=AlertContext.CurrentWeb.Site.ID %>", WebId:"<%=AlertContext.CurrentWeb.ID %>"};
|
||||
|
||||
function ChangePageSize(pageSize)
|
||||
{
|
||||
document.all.<%=HiddenPageSize.ClientID %>.value = pageSize;
|
||||
<%= Page.GetPostBackEventReference(ButtonChangePageSize) %>;
|
||||
}
|
||||
function ChangeView(viewName)
|
||||
{
|
||||
document.all.<%=HiddenViewName.ClientID %>.value = viewName;
|
||||
<%= Page.GetPostBackEventReference(ButtonChangeView) %>;
|
||||
}
|
||||
function ToggleAlertStatus(alertId)
|
||||
{
|
||||
if(confirm(msgConfirmToggleAlertStatus))
|
||||
{
|
||||
document.all.<%=HiddenSelectedAlerts.ClientID %>.value = alertId;
|
||||
<%= Page.GetPostBackEventReference(ButtonToggleStatusSelectedAlerts) %>;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function DeleteAlert(alertId)
|
||||
{
|
||||
if(confirm(msgConfirmDeleteAlert))
|
||||
{
|
||||
document.all.<%=HiddenSelectedAlerts.ClientID %>.value = alertId;
|
||||
<%= Page.GetPostBackEventReference(ButtonDeleteSelectedAlerts) %>;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function DeleteSelectedAlerts()
|
||||
{
|
||||
var selectedAlerts = GetSelectedAlerts();
|
||||
if(selectedAlerts.lenth == 0)
|
||||
{
|
||||
alert(msgNoAlertsSelected);
|
||||
return false;
|
||||
}
|
||||
|
||||
var msg = StBuildParam(msgConfirmDeleteAlerts, selectedAlerts.AlertTitles);
|
||||
if(confirm(msg))
|
||||
{
|
||||
document.all.<%=HiddenSelectedAlerts.ClientID %>.value = selectedAlerts.AlertIds;
|
||||
<%= Page.GetPostBackEventReference(ButtonDeleteSelectedAlerts) %>;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function AddAlert(enableLargeUserSelection)
|
||||
{
|
||||
var addAlertUrl = "AddAlert.aspx";
|
||||
if(enableLargeUserSelection)
|
||||
addAlertUrl += '?<%= AlertResourceManager.GetConfigString("QueryString_EnableLargeUserSelection")%>=true';
|
||||
|
||||
GoToPageRelativeWithContext(addAlertUrl);
|
||||
}
|
||||
function AddAlertToAssociation(associationId)
|
||||
{
|
||||
<% if(ViewAssociationGroup == AlertAssociationGroups.User) { %>
|
||||
var associationParm = '<%= AlertResourceManager.GetConfigString("QueryString_UserId") %>';
|
||||
<% } else if(ViewAssociationGroup == AlertAssociationGroups.List) { %>
|
||||
var associationParm = '<%= AlertResourceManager.GetConfigString("QueryString_ListId") %>';
|
||||
<% } else { %>
|
||||
alert("Unknown association");
|
||||
return;
|
||||
<% } %>
|
||||
|
||||
// Ensure association id
|
||||
if(associationId == null || associationId == undefined || associationId == "")
|
||||
associationId = 0;
|
||||
|
||||
GoToPageRelativeWithContext("AddAlert.aspx?" + associationParm + "=" + associationId);
|
||||
}
|
||||
function EditAlert(alertId)
|
||||
{
|
||||
GoToPageRelativeWithContext('EditAlert.aspx?<%= AlertResourceManager.GetConfigString("QueryString_AlertId") %>=' + alertId);
|
||||
}
|
||||
function ManageAlertTemplate(alertId)
|
||||
{
|
||||
GoToPageRelativeWithContext('ManageAlertTemplateSalient.aspx?<%= AlertResourceManager.GetConfigString("QueryString_AlertId") %>=' + alertId);
|
||||
}
|
||||
function GetSelectedAlerts()
|
||||
{
|
||||
var alertIds = "";
|
||||
var alertTitles = "";
|
||||
var separator = ",";
|
||||
|
||||
var checkBoxes = document.getElementsByName("CheckBoxAlert");
|
||||
for (var i = 0; i < checkBoxes.length; i++)
|
||||
{
|
||||
var chkBox = checkBoxes[i];
|
||||
if (chkBox.checked)
|
||||
{
|
||||
var alertId = chkBox.getAttribute("AlertId");
|
||||
var alertTitle = chkBox.getAttribute("AlertTitle");
|
||||
|
||||
if(alertId != null && alertId.length > 0)
|
||||
alertIds = AppendValue(alertId, alertIds, separator);
|
||||
|
||||
if(alertTitle != null && alertTitle.length > 0)
|
||||
alertTitles = AppendValue(alertTitle, alertTitles, separator);
|
||||
}
|
||||
}
|
||||
return {AlertIds:alertIds, AlertTitles:alertTitles};
|
||||
}
|
||||
function AppendValue(value, list, separater)
|
||||
{
|
||||
if(list.length > 0)
|
||||
return list + separater + value;
|
||||
|
||||
return value;
|
||||
}
|
||||
function GoToPageRelativeWithContext(url)
|
||||
{
|
||||
var urlSeperator = url.indexOf("?") >= 0 ? "&" : "?";
|
||||
|
||||
url += urlSeperator +
|
||||
'<%= AlertResourceManager.GetConfigString("QueryString_SiteId") %>=' + alertContext.SiteId +
|
||||
'&<%= AlertResourceManager.GetConfigString("QueryString_WebId") %>=' + alertContext.WebId;
|
||||
|
||||
GoToPageRelative(url);
|
||||
}
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
|
||||
<table class="ms-descriptiontext" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<SharePoint:EncodedLiteral ID="LiteralPageDescription" Text="<% $Resources:alertmanageradmin,Page_ManageAlerts_PageDescription_CentralAdmin%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<SPSolutions:AlertManagerLicenseMessage ID="AlertManagerLicenseMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
|
||||
|
||||
<!-- Base controls -->
|
||||
<SharePoint:FormDigest ID="FormDigest" runat="server" />
|
||||
<SPSolutions:SPScriptManager ID="SPScriptManager" runat="server" />
|
||||
|
||||
<!-- Web selector filter section -->
|
||||
<asp:PlaceHolder ID="PlaceHolderWebSelector" Visible="true" runat="server">
|
||||
<SPSolutions:FilterSection Id="FilterSectionWebSelector" Title="<%$Resources:alertmanageradmin,Page_ManageAlerts_TargetSites%>" Collapsible="True" runat="server">
|
||||
<ControlsTemplate>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="ms-descriptiontext" >
|
||||
<SharePoint:SiteAdministrationSelector id="SiteCollectionSelector" runat="server"
|
||||
AllowAdministrationWebApplication="false"
|
||||
OnContextChange="SiteCollectionSelector_ContextChange"
|
||||
TypeLabelCssClass="ms-descriptiontext" />
|
||||
</td>
|
||||
<td class="ms-descriptiontext" style="vertical-align:top">
|
||||
<SPSolutions:WebSelector id="WebSelector" Width="250" runat="server"
|
||||
OnContextChange="WebSelector_ContextChange"
|
||||
TypeLabelCssClass="ms-descriptiontext"
|
||||
UrlDisplayType="relative" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ControlsTemplate>
|
||||
</SPSolutions:FilterSection>
|
||||
</asp:PlaceHolder>
|
||||
|
||||
<!-- Alert filter section -->
|
||||
<SPSolutions:InputFormSectionManageAlertFilter ID="SectionManageAlertFilter" OnSearch="SectionManageAlertFilter_Search" runat="server" />
|
||||
|
||||
<!-- Toolbar -->
|
||||
<wssuc:ToolBar ID="ToolBar" CssClass="ms-toolbar" runat="server">
|
||||
<Template_Buttons >
|
||||
<SharePoint:Menu id="MenuNewSelector" runat="server" Text="<%$ Resources:alertmanageradmin,Control_ManageAlerts_Menu_New %>"
|
||||
TemplateId = "MenuTemplateNew"
|
||||
MenuFormat="ArrowAlwaysVisible"
|
||||
MenuAlignment="Left"
|
||||
HoverCellActiveCssClass="ms-menubuttonactivehover"
|
||||
HoverCellInActiveCssClass="ms-menubuttoninactivehover"
|
||||
ArrowImageUrl="/_layouts/15/images/Menu2.gif"
|
||||
/>
|
||||
<SharePoint:Menu id="MenuActionSelector" runat="server" Text="<%$ Resources:alertmanageradmin,Control_ManageAlerts_Menu_Action %>"
|
||||
TemplateId = "MenuTemplateActions"
|
||||
MenuFormat="ArrowAlwaysVisible"
|
||||
MenuAlignment="Left"
|
||||
HoverCellActiveCssClass="ms-menubuttonactivehover"
|
||||
HoverCellInActiveCssClass="ms-menubuttoninactivehover"
|
||||
ArrowImageUrl="/_layouts/15/images/Menu2.gif"
|
||||
/>
|
||||
</Template_Buttons>
|
||||
<Template_RightButtons>
|
||||
<SPSolutions:SPManualPager ID="ManualPager" runat="server" />
|
||||
|
||||
<SPSolutions:SPMenuSelector ID="MenuPageSize"
|
||||
LabelText="Show:"
|
||||
MenuTemplateId="MenuTemplatePageSize" MenuAlignment="right"
|
||||
MenuWidth="300px" runat="server"
|
||||
/>
|
||||
<SPSolutions:SPMenuSelector ID="MenuView"
|
||||
LabelText="View:"
|
||||
MenuTemplateId="MenuTemplateView"
|
||||
MenuAlignment="Right"
|
||||
MenuWidth="300px"
|
||||
runat="server"
|
||||
/>
|
||||
</Template_RightButtons>
|
||||
</wssuc:ToolBar>
|
||||
<asp:Repeater ID="RepeaterAlertAssociations" OnItemDataBound="RepeaterAlertAssociations_ItemDataBound" runat="server">
|
||||
<HeaderTemplate>
|
||||
<table style="width:100%;" cellpadding="3" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th class="ms-vh2-nofilter" style="width:10px"> </th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlerts_HeaderTemplate_AlertName%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlerts_HeaderTemplate_AlertFrequency%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlerts_HeaderTemplate_EventType%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlerts_HeaderTemplate_AlertTemplateName%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
<th class="ms-vh2-nofilter" style="text-align:center">
|
||||
<SharePoint:EncodedLiteral text="<%$Resources:alertmanageradmin,Page_ManageAlerts_HeaderTemplate_Status%>" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</th>
|
||||
</tr>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="ms-gb" colspan="6"><%# ManageAlertsDataUtil.ColumnValueAlertAssociationTitle(DataBinder.Eval(Container.DataItem, "AssociationTitle"))%></td>
|
||||
</tr>
|
||||
<asp:Repeater ID="RepeaterAlerts" OnItemDataBound="RepeaterAlerts_ItemDataBound" runat="server">
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="ms-vb" style="vertical-align:middle">
|
||||
<input id="CheckBoxAlert" Name="CheckBoxAlert" type="checkbox" alertId='<%# DataBinder.Eval(Container.DataItem,"ID")%>' alertTitle='<%# DataBinder.Eval(Container.DataItem,"Title")%>' />
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:bottom">
|
||||
<SharePoint:Menu
|
||||
ID="MenuItemContext"
|
||||
TemplateId="MenuTemplateItemContext"
|
||||
UseMaximumWidth="true"
|
||||
runat="server" />
|
||||
</td>
|
||||
<td class="ms-vb" style="vertical-align:middle"><%# ManageAlertsDataUtil.ColumnValueAlertFrequency(Container.DataItem)%></td>
|
||||
<td class="ms-vb" style="vertical-align:middle"><%# ManageAlertsDataUtil.ColumnValueEventType(DataBinder.Eval(Container.DataItem, "EventType"))%></td>
|
||||
<td class="ms-vb" style="vertical-align:middle"><%# ManageAlertsDataUtil.ColumnValueAlertTemplateType(DataBinder.Eval(Container.DataItem, "AlertTemplateName"))%></td>
|
||||
<td class="ms-vb" style="vertical-align:middle; text-align:center"><%# ManageAlertsDataUtil.ColumnValueAlertStatus(DataBinder.Eval(Container.DataItem, "Status"))%></td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="ms-vb" colspan="5">
|
||||
<a href="javascript:" onclick="AddAlertToAssociation('<%# DataBinder.Eval(Container.DataItem, "Id")%>');">
|
||||
<asp:Image ImageUrl="~/_layouts/15/images/SPSolutions/AlertManager/menu-small-addalert.gif" Height="16" ImageAlign="AbsMiddle" runat="server" />
|
||||
<SharePoint:EncodedLiteral Text="Add Alert" EncodeMethod="HtmlEncode" runat="server" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</table>
|
||||
</FooterTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
<!-- New Menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateNew" LargeIconMode="true" runat="server">
|
||||
<SharePoint:MenuItemTemplate id="MenuItemAddAlert" runat="server"
|
||||
Text="Add Alert"
|
||||
MenuGroupId="100"
|
||||
Sequence="100"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-addalert.gif"
|
||||
ClientOnClickScript="return AddAlert(false);"
|
||||
/>
|
||||
<SharePoint:MenuItemTemplate id="MenuItemAddAlertToLargeGroup" runat="server"
|
||||
Text="Add Alert to Large Group"
|
||||
MenuGroupId="100"
|
||||
Sequence="200"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-addgroupalert.gif"
|
||||
ClientOnClickScript="return AddAlert(true);"
|
||||
/>
|
||||
</SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Actions menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateActions" LargeIconMode="true" runat="server">
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateDeleteAlerts" runat="server"
|
||||
Text="Delete Selected Alerts"
|
||||
MenuGroupId="100"
|
||||
Sequence="100"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-deletealert.gif"
|
||||
ClientOnClickScript="return DeleteSelectedAlerts();"
|
||||
/>
|
||||
</SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Page Size menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplatePageSize" runat="server"></SharePoint:MenuTemplate>
|
||||
|
||||
<!-- View menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateView" runat="server"></SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Context menu -->
|
||||
<SharePoint:MenuTemplate id="MenuTemplateItemContext" LargeIconMode="false" runat="server">
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateEditAlert" runat="server"
|
||||
Text="Edit Alert"
|
||||
MenuGroupId="100"
|
||||
Sequence="100"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-small-editalert.gif"
|
||||
ClientOnClickScript="return EditAlert('%ALERTID%');"
|
||||
/>
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateToggleAlertStatus" runat="server"
|
||||
Text="Toggle Alert Status"
|
||||
MenuGroupId="100"
|
||||
Sequence="101"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-small-rotate.gif"
|
||||
ClientOnClickScript="return ToggleAlertStatus('%ALERTID%');"
|
||||
/>
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateDeleteAlert" runat="server"
|
||||
Text="Delete Alert"
|
||||
MenuGroupId="100"
|
||||
Sequence="102"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-small-deletealert.gif"
|
||||
ClientOnClickScript="return DeleteAlert('%ALERTID%');"
|
||||
/>
|
||||
<SharePoint:MenuSeparatorTemplate runat="server"
|
||||
MenuGroupId="100"
|
||||
Sequence="103"
|
||||
/>
|
||||
<SharePoint:MenuItemTemplate id="MenuItemTemplateManageAlertTemplate" runat="server"
|
||||
Text="Manage Alert Template"
|
||||
MenuGroupId="100"
|
||||
Sequence="104"
|
||||
ImageUrl="/_layouts/15/images/SPSolutions/AlertManager/menu-small-alerttemplate.gif"
|
||||
ClientOnClickScript="return ManageAlertTemplate('%ALERTID%');"
|
||||
/>
|
||||
</SharePoint:MenuTemplate>
|
||||
|
||||
<!-- Hidden controls -->
|
||||
<asp:HiddenField ID="HiddenPageSize" runat="server" />
|
||||
<asp:HiddenField ID="HiddenViewName" runat="server" />
|
||||
<asp:HiddenField ID="HiddenSelectedAlerts" runat="server" />
|
||||
<asp:Button ID="ButtonChangePageSize" UseSubmitBehavior="false" style="visibility:hidden;" OnClick="ButtonChangePageSize_Click" runat="server" />
|
||||
<asp:Button ID="ButtonChangeView" UseSubmitBehavior="false" style="visibility:hidden;" OnClick="ButtonChangeView_Click" runat="server" />
|
||||
<asp:Button ID="ButtonToggleStatusSelectedAlerts" UseSubmitBehavior="false" style="visibility:hidden;" OnClick="ButtonToggleStatusSelectedAlerts_Click" runat="server" />
|
||||
<asp:Button ID="ButtonDeleteSelectedAlerts" UseSubmitBehavior="false" style="visibility:hidden;" OnClick="ButtonDeleteSelectedAlerts_Click" runat="server" />
|
||||
</asp:Content>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- _lcid="1033" _version="12.0.4518" _dal="1" -->
|
||||
<!-- _LocalBinding -->
|
||||
<siteMap enableLocalization="true">
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlerts.aspx" title="$Resources:alertmanageradmin,Page_ManageAlerts_Title" parentUrl="/_admin/applications.aspx"></siteMapNode>
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplates.aspx" title="$Resources:alertmanageradmin,Page_ManageAlertTemplates_Title" parentUrl="/_admin/applications.aspx">
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateSalient.aspx" title="$Resources:alertmanageradmin,Page_ManageAlertTemplate_CreateNew_Title" />
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplate.aspx" title="$Resources:alertmanageradmin,Page_ManageAlertTemplate_Title" parentUrl="/_admin/applications.aspx">
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateBody.aspx" title="$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsBody_Title" />
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateAlertDetailsTransform.aspx" title="$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsAlertDetailsTransform_Title" />
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateDelete.aspx" title="$Resources:alertmanageradmin,Page_ManageAlertTemplateDelete_Title" />
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateGeneral.aspx" title="$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsGeneral_Title" />
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateHeaderFooter.aspx" title="$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsHeaderFooter_Title" />
|
||||
<siteMapNode url="/_admin/SPSolutions/AlertManager/ManageAlertTemplateStyleSheet.aspx" title="$Resources:alertmanageradmin,Page_EditAlertTemplateSettingsStyleSheet_Title" />
|
||||
</siteMapNode>
|
||||
</siteMapNode>
|
||||
<siteMapNode url="/_layouts/15/SPSolutions/AlertManager/LicenseInfo.aspx" title="$Resources:alertmanageradmin,Page_LicenseInfo_Title" parentUrl="" />
|
||||
<siteMapNode url="/_layouts/15/SPSolutions/AlertManager/EndUserLicenseAgreement.aspx" title="$Resources:alertmanageradmin,Page_EndUserLicenseAgreement_Title" parentUrl="" />
|
||||
</siteMap>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.MappedFolder" SupportedTrustLevels="FullTrust" SupportedDeploymentScopes="Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<ProjectItemFolder Target="ADMIN" Type="TemplateFile" />
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,247 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{BF3EC7D8-FE99-4A7A-B19D-D2B08D22DF09}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SPSolutions.SharePoint.AlertManager.Administration</RootNamespace>
|
||||
<AssemblyName>SPSolutions.SharePoint.AlertManager.Administration</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetOfficeVersion>15.0</TargetOfficeVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{C1CDDADD-2546-481F-9697-4EA41081F2FC};{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<SandboxedSolution>False</SandboxedSolution>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\Education Site\R & D Projects\ConsoleApplication1\ConsoleApplication1\DLL\Microsoft.SharePoint.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.SharePoint.ApplicationPages.Administration">
|
||||
<HintPath>C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\CONFIG\ADMINBIN\Microsoft.SharePoint.ApplicationPages.Administration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.SharePoint.Security, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL" />
|
||||
<Reference Include="microsoft.sharepoint.WorkflowActions, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CONFIG\Resources\alertmanageradmin.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>alertmanageradmin.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Resources\alertmanageradmin.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>alertmanageradmin.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Resources\alertmanageradmincore.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>alertmanageradmincore.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Resources\ConfigRes.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>ConfigRes.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\AddAlertGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\AlertGlobalAdminPageBase.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\EditAlertGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertsGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateAlertDetailsTransformGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateBodyGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateDeleteGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateGeneralGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateGlobalAdminPageBase.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateHeaderFooterGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateSalientGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateSalientPage.cs" />
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplatesGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages\ManageAlertTemplateStyleSheetGlobalAdminPage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="ADMIN\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{a1534bd7-f13f-4d8a-8373-4141a2840e44}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="CONFIG\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{914a5bbe-b308-4aaa-912d-27a4c05db39c}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="CustomActionGroup_ManageAlerts_Title\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{b54b3ff6-d102-48ec-a469-f1f39e6a3329}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="CustomAction_EndUserLicenseAgreement_Title\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{6ad95a95-ccba-4210-96a2-24b4fbd9d052}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="CustomAction_LicenseInfo_Title\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{608e5fff-a155-49ea-94be-13d11d7f7308}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="CustomAction_ManageAlerts_Title\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{03c1d811-c942-4e0a-a581-096f4f65fd09}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="CustomAction_ManageAlertTemplates_Title\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{ab7363bd-a10e-43dc-984a-f36dd78d226a}</SharePointProjectItemId>
|
||||
</None>
|
||||
<None Include="Features\AlertManagerAdminCustomActions\AlertManagerAdminCustomActions.feature">
|
||||
<FeatureId>{a20e5625-11d9-4324-a7b5-5a738bfc9e9a}</FeatureId>
|
||||
</None>
|
||||
<None Include="key.snk" />
|
||||
<None Include="Package\Package.package">
|
||||
<PackageId>{f0aed51b-4995-4d36-a792-37bd0e51329c}</PackageId>
|
||||
</None>
|
||||
<None Include="Package\Package.Template.xml">
|
||||
<DependentUpon>Package.package</DependentUpon>
|
||||
</None>
|
||||
<None Include="Resources\SharePointProjectItem.spdata">
|
||||
<SharePointProjectItemId>{b2be0e97-acb6-48dc-9978-ab701ba75174}</SharePointProjectItemId>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="ADMIN\SPSolutions\admin.sitemap.alertmanager.xml" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\AddAlert.aspx">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Content>
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\EditAlert.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlerts.aspx">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Content>
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplate.aspx">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Content>
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateAlertDetailsTransform.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateBody.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateDelete.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateGeneral.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateHeaderFooter.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplates.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateSalient.aspx" />
|
||||
<Content Include="ADMIN\SPSolutions\AlertManager\ManageAlertTemplateStyleSheet.aspx" />
|
||||
<EmbeddedResource Include="CONFIG\Resources\alertmanageradmin.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>alertmanageradmin.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Resources\ConfigRes.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>ConfigRes.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Resources\alertmanageradmin.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>alertmanageradmin.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="CustomActionGroup_ManageAlerts_Title\Elements.xml" />
|
||||
<Content Include="CustomAction_EndUserLicenseAgreement_Title\Elements.xml" />
|
||||
<Content Include="CustomAction_LicenseInfo_Title\Elements.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="CustomAction_ManageAlerts_Title\Elements.xml" />
|
||||
<Content Include="CustomAction_ManageAlertTemplates_Title\Elements.xml" />
|
||||
<Content Include="Features\AlertManagerAdminCustomActions\AlertManagerAdminCustomActions.Template.xml">
|
||||
<DependentUpon>AlertManagerAdminCustomActions.feature</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="CONFIG\Resources\alertmanageradmin.en-US.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Resources\alertmanageradmincore.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>alertmanageradmincore.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Resources\alertmanageradmincore.en-US.resx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\SPSolutions.SharePoint.AlertManager\SPSolutions.Common\SPSolutions.Common.csproj">
|
||||
<Project>{b67399f5-510c-4705-b4d7-051a95eefc6c}</Project>
|
||||
<Name>SPSolutions.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\SPSolutions.SharePoint.AlertManager\SPSolutions.SharePoint.AlertManager\SPSolutions.SharePoint.AlertManager.csproj">
|
||||
<Project>{0db166ef-12c3-4432-8f72-19052b31cb8a}</Project>
|
||||
<Name>SPSolutions.SharePoint.AlertManager</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\SPSolutions.SharePoint.AlertManager\SPSolutions.SharePoint\SPSolutions.SharePoint.csproj">
|
||||
<Project>{6924e88b-7154-4580-80c1-548d1a9ea515}</Project>
|
||||
<Name>SPSolutions.SharePoint</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '11.0'">11.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\SharePointTools\Microsoft.VisualStudio.SharePoint.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.MappedFolder" SupportedTrustLevels="FullTrust" SupportedDeploymentScopes="Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<ProjectItemFolder Target="CONFIG" Type="RootFile" />
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<CustomActionGroup Id="SPSolutions.SharePoint.Administration.Alerts" Location="Microsoft.SharePoint.Administration.Applications" Title="$Resources:alertmanagercore,CustomActionGroup_ManageAlerts_Title;" Sequence="50" xmlns="http://schemas.microsoft.com/sharepoint/" ImageUrl="_layouts/15/images/SPSALERT.GIF" />
|
||||
</Elements>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<Files>
|
||||
<ProjectItemFile Source="Elements.xml" Target="CustomActionGroup_ManageAlerts_Title\" Type="ElementManifest" />
|
||||
</Files>
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<CustomAction Id="SPSolutions.SharePoint.AlertManager.LicenseInfoGlobalAdmin" Title="$Resources:alertmanagercore,CustomAction_EndUserLicenseAgreement_Title;" Description="$Resources:alertmanagercore,CustomAction_EndUserLicenseAgreement_Desc;" Location="Microsoft.SharePoint.Administration.Applications" GroupId="SPSolutions.SharePoint.Administration.Alerts" Sequence="113" xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<UrlAction Url="/_layouts/15/SPSolutions/AlertManager/EndUserLicenseAgreement.aspx" />
|
||||
</CustomAction>
|
||||
</Elements>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<Files>
|
||||
<ProjectItemFile Source="Elements.xml" Target="CustomAction_EndUserLicenseAgreement_Title\" Type="ElementManifest" />
|
||||
</Files>
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<CustomAction Id="SPSolutions.SharePoint.AlertManager.LicenseInfoGlobalAdmin" Title="$Resources:alertmanagercore,CustomAction_LicenseInfo_Title;" Description="$Resources:alertmanagercore,CustomAction_LicenseInfo_Desc;" Location="Microsoft.SharePoint.Administration.Applications" GroupId="SPSolutions.SharePoint.Administration.Alerts" Sequence="112" xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<UrlAction Url="/_layouts/15/SPSolutions/AlertManager/LicenseInfo.aspx" />
|
||||
</CustomAction>
|
||||
</Elements>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<Files>
|
||||
<ProjectItemFile Source="Elements.xml" Target="CustomAction_LicenseInfo_Title\" Type="ElementManifest" />
|
||||
</Files>
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<CustomAction Id="SPSolutions.SharePoint.AlertManager.ManageAlertsGlobalAdmin" Title="$Resources:alertmanagercore,CustomAction_ManageAlertTemplates_Title;" Description="$Resources:alertmanagercore,CustomAction_ManageAlertTemplates_Desc;" Location="Microsoft.SharePoint.Administration.Applications" GroupId="SPSolutions.SharePoint.Administration.Alerts" Sequence="111" xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<UrlAction Url="/_admin/SPSolutions/AlertManager/ManageAlertTemplates.aspx" />
|
||||
</CustomAction>
|
||||
</Elements>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<Files>
|
||||
<ProjectItemFile Source="Elements.xml" Target="CustomAction_ManageAlertTemplates_Title\" Type="ElementManifest" />
|
||||
</Files>
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<CustomAction Id="SPSolutions.SharePoint.AlertManager.ManageAlertsGlobalAdmin" Title="$Resources:alertmanagercore,CustomAction_ManageAlerts_Title;" Description="$Resources:alertmanagercore,CustomAction_ManageAlerts_Desc;" Location="Microsoft.SharePoint.Administration.Applications" GroupId="SPSolutions.SharePoint.Administration.Alerts" Sequence="110" xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<UrlAction Url="/_admin/SPSolutions/AlertManager/ManageAlerts.aspx" />
|
||||
</CustomAction>
|
||||
</Elements>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<Files>
|
||||
<ProjectItemFile Source="Elements.xml" Target="CustomAction_ManageAlerts_Title\" Type="ElementManifest" />
|
||||
</Files>
|
||||
</ProjectItem>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" AutoActivateInCentralAdmin="TRUE"
|
||||
Id="76241223-D6D3-4d99-8B7E-3FB383953F15"
|
||||
Title="$Resources:alertmanagercore,Feature_AlertManagerAdminComponents_Title;"
|
||||
Description="$Resources:alertmanagercore,Feature_AlertManagerAdminComponents_Desc;"
|
||||
Version="1.0.0.0"
|
||||
Scope="Site"
|
||||
Hidden="False"
|
||||
ImageUrl="/_layouts/15/Images/SPSolutions/spsolutions-feature.gif"
|
||||
ImageUrlAltText="$Resources:alertmanagercore,Image_SPSolutionsFeature_AltText;">
|
||||
</Feature>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feature xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="76241223-d6d3-4d99-8b7e-3fb383953f15" featureId="76241223-d6d3-4d99-8b7e-3fb383953f15" imageUrl="/_layouts/15/Images/SPSolutions/spsolutions-feature.gif" scope="Site" solutionId="00000000-0000-0000-0000-000000000000" title="$Resources:alertmanagercore,Feature_AlertManagerAdminComponents_Title;" version="" deploymentPath="$SharePoint.Project.FileNameWithoutExtension$_$SharePoint.Feature.FileNameWithoutExtension$" xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/FeatureModel">
|
||||
<projectItems>
|
||||
<projectItemReference itemId="b54b3ff6-d102-48ec-a469-f1f39e6a3329" />
|
||||
<projectItemReference itemId="03c1d811-c942-4e0a-a581-096f4f65fd09" />
|
||||
<projectItemReference itemId="ab7363bd-a10e-43dc-984a-f36dd78d226a" />
|
||||
</projectItems>
|
||||
</feature>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Solution xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
</Solution>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="f0aed51b-4995-4d36-a792-37bd0e51329c" solutionId="f0aed51b-4995-4d36-a792-37bd0e51329c" resetWebServer="true" sharePointProductVersion="15.0" name="SPSolutions.SharePoint.AlertManager.Administration" xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel">
|
||||
<features>
|
||||
<featureReference itemId="a20e5625-11d9-4324-a7b5-5a738bfc9e9a" />
|
||||
</features>
|
||||
<projectItems>
|
||||
<projectItemReference itemId="914a5bbe-b308-4aaa-912d-27a4c05db39c" />
|
||||
<projectItemReference itemId="b2be0e97-acb6-48dc-9978-ab701ba75174" />
|
||||
<projectItemReference itemId="a1534bd7-f13f-4d8a-8373-4141a2840e44" />
|
||||
</projectItems>
|
||||
</package>
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("AlertManager.Administration")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("AlertManager.Administration")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("bf3ec7d8-fe99-4a7a-b19d-d2b08d22df09")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
585
AlertManager/AlertManager.Administration/AlertManager.Administration/Resources/ConfigRes.Designer.cs
generated
Normal file
585
AlertManager/AlertManager.Administration/AlertManager.Administration/Resources/ConfigRes.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,585 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.17929
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.Resources {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class ConfigRes {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal ConfigRes() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SPSolutions.SharePoint.AlertManager.Administration.Resources.ConfigRes", typeof(ConfigRes).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add All.
|
||||
/// </summary>
|
||||
internal static string Control_ButtonAddAll_Button_CommandName {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_ButtonAddAll_Button_CommandName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InputFormSectionAlertEventType.
|
||||
/// </summary>
|
||||
internal static string Control_InputFormSectionAlertEventType_UserControl_ID {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_InputFormSectionAlertEventType_UserControl_ID", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InputFormSectionAlertFilter.
|
||||
/// </summary>
|
||||
internal static string Control_InputFormSectionAlertFilter_UserControl_ID {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_InputFormSectionAlertFilter_UserControl_ID", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InputFormSectionAlertFrequency.
|
||||
/// </summary>
|
||||
internal static string Control_InputFormSectionAlertFrequency_UserControl_ID {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_InputFormSectionAlertFrequency_UserControl_ID", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InputFormSectionAlertRecipients.
|
||||
/// </summary>
|
||||
internal static string Control_InputFormSectionAlertRecipients_UserControl_ID {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_InputFormSectionAlertRecipients_UserControl_ID", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InputFormSectionAlertTitle.
|
||||
/// </summary>
|
||||
internal static string Control_InputFormSectionAlertTitle_UserControl_ID {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_InputFormSectionAlertTitle_UserControl_ID", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Group By List.
|
||||
/// </summary>
|
||||
internal static string Control_ManageAlerts_Menu_ListView {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_ManageAlerts_Menu_ListView", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Group By User.
|
||||
/// </summary>
|
||||
internal static string Control_ManageAlerts_Menu_UserView {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_ManageAlerts_Menu_UserView", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to RadioButtonItemSelection.
|
||||
/// </summary>
|
||||
internal static string Control_RadioButtonItemSelection_RadioButton_ID {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_RadioButtonItemSelection_RadioButton_ID", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Library.
|
||||
/// </summary>
|
||||
internal static string Control_RepeaterDocuments_Repeater_LibraryKey {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_RepeaterDocuments_Repeater_LibraryKey", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to List.
|
||||
/// </summary>
|
||||
internal static string Control_RepeaterDocuments_Repeater_ListKey {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_RepeaterDocuments_Repeater_ListKey", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to RepeaterDocumentType.
|
||||
/// </summary>
|
||||
internal static string Control_RepeaterDocumentType_Repeater_Id {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_RepeaterDocumentType_Repeater_Id", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to MoveNextToAddAlert.
|
||||
/// </summary>
|
||||
internal static string Control_WizardAddAlert_Wizard_ButtonAddAlert {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_WizardAddAlert_Wizard_ButtonAddAlert", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SelectListItem.
|
||||
/// </summary>
|
||||
internal static string Control_WizardAddAlert_Wizard_ButtonSelectListItem {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_WizardAddAlert_Wizard_ButtonSelectListItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SelectUserOrAddAlert.
|
||||
/// </summary>
|
||||
internal static string Control_WizardAddAlert_Wizard_ButtonSelectUserOrAddAlert {
|
||||
get {
|
||||
return ResourceManager.GetString("Control_WizardAddAlert_Wizard_ButtonSelectUserOrAddAlert", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to LoginName.
|
||||
/// </summary>
|
||||
internal static string DataTextField_LoginName {
|
||||
get {
|
||||
return ResourceManager.GetString("DataTextField_LoginName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Title.
|
||||
/// </summary>
|
||||
internal static string DataTextField_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("DataTextField_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ID.
|
||||
/// </summary>
|
||||
internal static string DataValueField_Id {
|
||||
get {
|
||||
return ResourceManager.GetString("DataValueField_Id", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to HideUnmanagedAlertTemplates.
|
||||
/// </summary>
|
||||
internal static string HideUnmanagedAlertTemplates {
|
||||
get {
|
||||
return ResourceManager.GetString("HideUnmanagedAlertTemplates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Subscription Reminders.
|
||||
/// </summary>
|
||||
internal static string List_SubscriptionReminiders {
|
||||
get {
|
||||
return ResourceManager.GetString("List_SubscriptionReminiders", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Use this page to create an e-mail alert notifying you when there are changes to the specified item, document, list, or library..
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_AddAlert_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_AddAlert_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add Alert : Document Library : Shared Documents.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_AddAlert_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_AddAlert_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to DocumentType.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_Column_DocumentType {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_Column_DocumentType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to DocumentLibrary.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_Repeater_DocumentLibrary {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_Repeater_DocumentLibrary", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Lists.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_Repeater_Lists {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_Repeater_Lists", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Use this page to select a list item that will be the target of the new alert..
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_SelectListItem_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_SelectListItem_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add Alert : Select List Item.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_SelectListItem_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_SelectListItem_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Use this page to select a list of user to be alerted..
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_SelectUser_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_SelectUser_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add Alert : Select Users.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_SelectUser_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_SelectUser_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to /View.
|
||||
/// </summary>
|
||||
internal static string Page_AddAlert_XMLDocument_RootNode {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_AddAlert_XMLDocument_RootNode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to AddAlert.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_MenuItem_AddAlert {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_MenuItem_AddAlert", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to EndIndex.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_EndIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_EndIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to EndPagingIndex.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_EndPagingIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_EndPagingIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to InitialIndex.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_InitialIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_InitialIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to IsMenuItempPerformed.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_IsMenuItempPerformed {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_IsMenuItempPerformed", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ListId.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_ListId {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_ListId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to PageSize.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_PageSize {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_PageSize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SelectedPageSizeIndex.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_SelectedPageSizeIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_SelectedPageSizeIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SelectedView.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_SelectedView {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_SelectedView", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to StartIndex.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_StartIndex {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_StartIndex", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to TotalAlerts.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_TotalAlerts {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_TotalAlerts", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to UserId.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlert_ViewState_UserId {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlert_ViewState_UserId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to RepeaterUsersAlerts.
|
||||
/// </summary>
|
||||
internal static string Page_ManageAlerts_Repeater_UsersAlerts {
|
||||
get {
|
||||
return ResourceManager.GetString("Page_ManageAlerts_Repeater_UsersAlerts", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert.
|
||||
/// </summary>
|
||||
internal static string QueryString_AlertId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_AlertId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to AlertTemplate.
|
||||
/// </summary>
|
||||
internal static string QueryString_AlertTemplateId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_AlertTemplateId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to EnableLargeUserSelection.
|
||||
/// </summary>
|
||||
internal static string QueryString_EnableLargeUserSelection {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_EnableLargeUserSelection", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to EnableSharePointGroups.
|
||||
/// </summary>
|
||||
internal static string QueryString_EnableSharePointGroups {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_EnableSharePointGroups", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to HideUnmanagedAlertTemplates.
|
||||
/// </summary>
|
||||
internal static string QueryString_HideUnmanagedAlertTemplates {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_HideUnmanagedAlertTemplates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to List.
|
||||
/// </summary>
|
||||
internal static string QueryString_ListId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_ListId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ListItem.
|
||||
/// </summary>
|
||||
internal static string QueryString_ListItemId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_ListItemId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SelectListItem.
|
||||
/// </summary>
|
||||
internal static string QueryString_SelectListItem {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_SelectListItem", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SiteCollectionUrl.
|
||||
/// </summary>
|
||||
internal static string QueryString_SiteCollectionUrl {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_SiteCollectionUrl", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Site.
|
||||
/// </summary>
|
||||
internal static string QueryString_SiteId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_SiteId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Source.
|
||||
/// </summary>
|
||||
internal static string QueryString_Src {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_Src", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to User.
|
||||
/// </summary>
|
||||
internal static string QueryString_UserId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_UserId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Web.
|
||||
/// </summary>
|
||||
internal static string QueryString_WebId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_WebId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SelectorWebId.
|
||||
/// </summary>
|
||||
internal static string QueryString_WebSelectorWebId {
|
||||
get {
|
||||
return ResourceManager.GetString("QueryString_WebSelectorWebId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SPSolutions.SharePoint.AlertManager.WebControls.WebPickerDialog, spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04.
|
||||
/// </summary>
|
||||
internal static string TypeName_WebPickerDialog {
|
||||
get {
|
||||
return ResourceManager.GetString("TypeName_WebPickerDialog", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,294 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="HideUnmanagedAlertTemplates" xml:space="preserve">
|
||||
<value>HideUnmanagedAlertTemplates</value>
|
||||
</data>
|
||||
<data name="List_SubscriptionReminiders" xml:space="preserve">
|
||||
<value>Subscription Reminders</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_AddAlert_Desc" xml:space="preserve">
|
||||
<value>Use this page to create an e-mail alert notifying you when there are changes to the specified item, document, list, or library.</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_AddAlert_Title" xml:space="preserve">
|
||||
<value>Add Alert : Document Library : Shared Documents</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_Column_DocumentType" xml:space="preserve">
|
||||
<value>DocumentType</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_Repeater_DocumentLibrary" xml:space="preserve">
|
||||
<value>DocumentLibrary</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_Repeater_Lists" xml:space="preserve">
|
||||
<value>Lists</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_SelectListItem_Desc" xml:space="preserve">
|
||||
<value>Use this page to select a list item that will be the target of the new alert.</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_SelectListItem_Title" xml:space="preserve">
|
||||
<value>Add Alert : Select List Item</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_SelectUser_Desc" xml:space="preserve">
|
||||
<value>Use this page to select a list of user to be alerted.</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_SelectUser_Title" xml:space="preserve">
|
||||
<value>Add Alert : Select Users</value>
|
||||
</data>
|
||||
<data name="Page_AddAlert_XMLDocument_RootNode" xml:space="preserve">
|
||||
<value>/View</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlerts_Repeater_UsersAlerts" xml:space="preserve">
|
||||
<value>RepeaterUsersAlerts</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_MenuItem_AddAlert" xml:space="preserve">
|
||||
<value>AddAlert</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_EndIndex" xml:space="preserve">
|
||||
<value>EndIndex</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_EndPagingIndex" xml:space="preserve">
|
||||
<value>EndPagingIndex</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_InitialIndex" xml:space="preserve">
|
||||
<value>InitialIndex</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_IsMenuItempPerformed" xml:space="preserve">
|
||||
<value>IsMenuItempPerformed</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_ListId" xml:space="preserve">
|
||||
<value>ListId</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_PageSize" xml:space="preserve">
|
||||
<value>PageSize</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_SelectedPageSizeIndex" xml:space="preserve">
|
||||
<value>SelectedPageSizeIndex</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_SelectedView" xml:space="preserve">
|
||||
<value>SelectedView</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_StartIndex" xml:space="preserve">
|
||||
<value>StartIndex</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_TotalAlerts" xml:space="preserve">
|
||||
<value>TotalAlerts</value>
|
||||
</data>
|
||||
<data name="Page_ManageAlert_ViewState_UserId" xml:space="preserve">
|
||||
<value>UserId</value>
|
||||
</data>
|
||||
<data name="QueryString_AlertId" xml:space="preserve">
|
||||
<value>Alert</value>
|
||||
</data>
|
||||
<data name="QueryString_AlertTemplateId" xml:space="preserve">
|
||||
<value>AlertTemplate</value>
|
||||
</data>
|
||||
<data name="QueryString_EnableLargeUserSelection" xml:space="preserve">
|
||||
<value>EnableLargeUserSelection</value>
|
||||
</data>
|
||||
<data name="QueryString_EnableSharePointGroups" xml:space="preserve">
|
||||
<value>EnableSharePointGroups</value>
|
||||
</data>
|
||||
<data name="QueryString_HideUnmanagedAlertTemplates" xml:space="preserve">
|
||||
<value>HideUnmanagedAlertTemplates</value>
|
||||
</data>
|
||||
<data name="QueryString_ListId" xml:space="preserve">
|
||||
<value>List</value>
|
||||
</data>
|
||||
<data name="QueryString_ListItemId" xml:space="preserve">
|
||||
<value>ListItem</value>
|
||||
</data>
|
||||
<data name="QueryString_SelectListItem" xml:space="preserve">
|
||||
<value>SelectListItem</value>
|
||||
</data>
|
||||
<data name="QueryString_SiteCollectionUrl" xml:space="preserve">
|
||||
<value>SiteCollectionUrl</value>
|
||||
</data>
|
||||
<data name="QueryString_SiteId" xml:space="preserve">
|
||||
<value>Site</value>
|
||||
</data>
|
||||
<data name="QueryString_Src" xml:space="preserve">
|
||||
<value>Source</value>
|
||||
</data>
|
||||
<data name="QueryString_UserId" xml:space="preserve">
|
||||
<value>User</value>
|
||||
</data>
|
||||
<data name="QueryString_WebId" xml:space="preserve">
|
||||
<value>Web</value>
|
||||
</data>
|
||||
<data name="QueryString_WebSelectorWebId" xml:space="preserve">
|
||||
<value>SelectorWebId</value>
|
||||
</data>
|
||||
<data name="TypeName_WebPickerDialog" xml:space="preserve">
|
||||
<value>SPSolutions.SharePoint.AlertManager.WebControls.WebPickerDialog, spsolutions.sharepoint.alertmanager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc5cedd72f3f1d04</value>
|
||||
</data>
|
||||
<data name="Control_ButtonAddAll_Button_CommandName" xml:space="preserve">
|
||||
<value>Add All</value>
|
||||
</data>
|
||||
<data name="Control_InputFormSectionAlertEventType_UserControl_ID" xml:space="preserve">
|
||||
<value>InputFormSectionAlertEventType</value>
|
||||
</data>
|
||||
<data name="Control_InputFormSectionAlertFilter_UserControl_ID" xml:space="preserve">
|
||||
<value>InputFormSectionAlertFilter</value>
|
||||
</data>
|
||||
<data name="Control_InputFormSectionAlertFrequency_UserControl_ID" xml:space="preserve">
|
||||
<value>InputFormSectionAlertFrequency</value>
|
||||
</data>
|
||||
<data name="Control_InputFormSectionAlertRecipients_UserControl_ID" xml:space="preserve">
|
||||
<value>InputFormSectionAlertRecipients</value>
|
||||
</data>
|
||||
<data name="Control_InputFormSectionAlertTitle_UserControl_ID" xml:space="preserve">
|
||||
<value>InputFormSectionAlertTitle</value>
|
||||
</data>
|
||||
<data name="Control_ManageAlerts_Menu_ListView" xml:space="preserve">
|
||||
<value>Group By List</value>
|
||||
</data>
|
||||
<data name="Control_ManageAlerts_Menu_UserView" xml:space="preserve">
|
||||
<value>Group By User</value>
|
||||
</data>
|
||||
<data name="Control_RadioButtonItemSelection_RadioButton_ID" xml:space="preserve">
|
||||
<value>RadioButtonItemSelection</value>
|
||||
</data>
|
||||
<data name="Control_RepeaterDocuments_Repeater_LibraryKey" xml:space="preserve">
|
||||
<value>Library</value>
|
||||
</data>
|
||||
<data name="Control_RepeaterDocuments_Repeater_ListKey" xml:space="preserve">
|
||||
<value>List</value>
|
||||
</data>
|
||||
<data name="Control_RepeaterDocumentType_Repeater_Id" xml:space="preserve">
|
||||
<value>RepeaterDocumentType</value>
|
||||
</data>
|
||||
<data name="Control_WizardAddAlert_Wizard_ButtonAddAlert" xml:space="preserve">
|
||||
<value>MoveNextToAddAlert</value>
|
||||
</data>
|
||||
<data name="Control_WizardAddAlert_Wizard_ButtonSelectListItem" xml:space="preserve">
|
||||
<value>SelectListItem</value>
|
||||
</data>
|
||||
<data name="Control_WizardAddAlert_Wizard_ButtonSelectUserOrAddAlert" xml:space="preserve">
|
||||
<value>SelectUserOrAddAlert</value>
|
||||
</data>
|
||||
<data name="DataTextField_LoginName" xml:space="preserve">
|
||||
<value>LoginName</value>
|
||||
</data>
|
||||
<data name="DataTextField_Title" xml:space="preserve">
|
||||
<value>Title</value>
|
||||
</data>
|
||||
<data name="DataValueField_Id" xml:space="preserve">
|
||||
<value>ID</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.MappedFolder" SupportedTrustLevels="FullTrust" SupportedDeploymentScopes="Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
|
||||
<ProjectItemFolder Target="Resources" Type="RootFile" />
|
||||
</ProjectItem>
|
||||
3141
AlertManager/AlertManager.Administration/AlertManager.Administration/Resources/alertmanageradmin.Designer.cs
generated
Normal file
3141
AlertManager/AlertManager.Administration/AlertManager.Administration/Resources/alertmanageradmin.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,307 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.17929
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.Resources {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class alertmanageradmincore {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal alertmanageradmincore() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SPSolutions.SharePoint.AlertManager.Administration.Resources.alertmanageradmincor" +
|
||||
"e", typeof(alertmanageradmincore).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert Manager Content Type.
|
||||
/// </summary>
|
||||
internal static string ContentType_GroupName {
|
||||
get {
|
||||
return ResourceManager.GetString("ContentType_GroupName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Advanced Alert management using Alert Manager 2007..
|
||||
/// </summary>
|
||||
internal static string CustomAction_AdvancedAlertMe_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_AdvancedAlertMe_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Advanced Alert Me.
|
||||
/// </summary>
|
||||
internal static string CustomAction_AdvancedAlertMe_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_AdvancedAlertMe_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert Manager 2007 End User License Agreement.
|
||||
/// </summary>
|
||||
internal static string CustomAction_EndUserLicenseAgreement_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_EndUserLicenseAgreement_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert Manager 2007 End User License Agreement.
|
||||
/// </summary>
|
||||
internal static string CustomAction_EndUserLicenseAgreement_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_EndUserLicenseAgreement_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to View your Alert Manager 2007 license information.
|
||||
/// </summary>
|
||||
internal static string CustomAction_LicenseInfo_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_LicenseInfo_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to View your Alert Manager 2007 license information .
|
||||
/// </summary>
|
||||
internal static string CustomAction_LicenseInfo_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_LicenseInfo_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage alerts for site users..
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlerts_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlerts_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage Alerts.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlerts_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlerts_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage alerts for this list.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlertsForList_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlertsForList_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage Alerts for this list.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlertsForList_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlertsForList_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage Alert template for this list.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlertTemplate_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlertTemplate_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage the default Alert template for this list or library.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlertTemplateForList_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlertTemplateForList_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage all available Alert templates.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlertTemplates_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlertTemplates_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage Alert templates.
|
||||
/// </summary>
|
||||
internal static string CustomAction_ManageAlertTemplates_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomAction_ManageAlertTemplates_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert Management.
|
||||
/// </summary>
|
||||
internal static string CustomActionGroup_ManageAlerts_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("CustomActionGroup_ManageAlerts_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Provides centralized alert management capabilities to SharePoint administrators..
|
||||
/// </summary>
|
||||
internal static string Feature_AlertManagerAdminComponents_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("Feature_AlertManagerAdminComponents_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert Manager Admin Components.
|
||||
/// </summary>
|
||||
internal static string Feature_AlertManagerAdminComponents_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Feature_AlertManagerAdminComponents_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Provides advanced alert management capabilities to site users..
|
||||
/// </summary>
|
||||
internal static string Feature_AlertManagerSiteComponents_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("Feature_AlertManagerSiteComponents_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Alert Manager Site Components.
|
||||
/// </summary>
|
||||
internal static string Feature_AlertManagerSiteComponents_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Feature_AlertManagerSiteComponents_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Site ID.
|
||||
/// </summary>
|
||||
internal static string Field_Name_SiteId {
|
||||
get {
|
||||
return ResourceManager.GetString("Field_Name_SiteId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Web ID.
|
||||
/// </summary>
|
||||
internal static string Field_Name_WebId {
|
||||
get {
|
||||
return ResourceManager.GetString("Field_Name_WebId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SharePoint Solutions Feature.
|
||||
/// </summary>
|
||||
internal static string Image_SPSolutionsFeature_AltText {
|
||||
get {
|
||||
return ResourceManager.GetString("Image_SPSolutionsFeature_AltText", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Subscription Reminders.
|
||||
/// </summary>
|
||||
internal static string SubscriptionReminders {
|
||||
get {
|
||||
return ResourceManager.GetString("SubscriptionReminders", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Lists used to store Alert Manager 2007 subscription reminders.
|
||||
/// </summary>
|
||||
internal static string SubscriptionReminders_Desc {
|
||||
get {
|
||||
return ResourceManager.GetString("SubscriptionReminders_Desc", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SubscriptionReminders.
|
||||
/// </summary>
|
||||
internal static string SubscriptionReminders_Folder {
|
||||
get {
|
||||
return ResourceManager.GetString("SubscriptionReminders_Folder", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Subscription Reminders.
|
||||
/// </summary>
|
||||
internal static string SubscriptionReminders_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("SubscriptionReminders_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,201 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="ContentType_GroupName" xml:space="preserve">
|
||||
<value>Alert Manager Content Type</value>
|
||||
</data>
|
||||
<data name="CustomActionGroup_ManageAlerts_Title" xml:space="preserve">
|
||||
<value>Alert Management</value>
|
||||
</data>
|
||||
<data name="CustomAction_AdvancedAlertMe_Desc" xml:space="preserve">
|
||||
<value>Advanced Alert management using Alert Manager 2007.</value>
|
||||
</data>
|
||||
<data name="CustomAction_AdvancedAlertMe_Title" xml:space="preserve">
|
||||
<value>Advanced Alert Me</value>
|
||||
</data>
|
||||
<data name="CustomAction_EndUserLicenseAgreement_Desc" xml:space="preserve">
|
||||
<value>Alert Manager 2007 End User License Agreement</value>
|
||||
</data>
|
||||
<data name="CustomAction_EndUserLicenseAgreement_Title" xml:space="preserve">
|
||||
<value>Alert Manager 2007 End User License Agreement</value>
|
||||
</data>
|
||||
<data name="CustomAction_LicenseInfo_Desc" xml:space="preserve">
|
||||
<value>View your Alert Manager 2007 license information</value>
|
||||
</data>
|
||||
<data name="CustomAction_LicenseInfo_Title" xml:space="preserve">
|
||||
<value>View your Alert Manager 2007 license information </value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertsForList_Desc" xml:space="preserve">
|
||||
<value>Manage alerts for this list</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertsForList_Title" xml:space="preserve">
|
||||
<value>Manage Alerts for this list</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlerts_Desc" xml:space="preserve">
|
||||
<value>Manage alerts for site users.</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlerts_Title" xml:space="preserve">
|
||||
<value>Manage Alerts</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplateForList_Desc" xml:space="preserve">
|
||||
<value>Manage the default Alert template for this list or library</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplates_Desc" xml:space="preserve">
|
||||
<value>Manage all available Alert templates</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplates_Title" xml:space="preserve">
|
||||
<value>Manage Alert templates</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplate_Title" xml:space="preserve">
|
||||
<value>Manage Alert template for this list</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerAdminComponents_Desc" xml:space="preserve">
|
||||
<value>Provides centralized alert management capabilities to SharePoint administrators.</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerAdminComponents_Title" xml:space="preserve">
|
||||
<value>Alert Manager Admin Components</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerSiteComponents_Desc" xml:space="preserve">
|
||||
<value>Provides advanced alert management capabilities to site users.</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerSiteComponents_Title" xml:space="preserve">
|
||||
<value>Alert Manager Site Components</value>
|
||||
</data>
|
||||
<data name="Field_Name_SiteId" xml:space="preserve">
|
||||
<value>Site ID</value>
|
||||
</data>
|
||||
<data name="Field_Name_WebId" xml:space="preserve">
|
||||
<value>Web ID</value>
|
||||
</data>
|
||||
<data name="Image_SPSolutionsFeature_AltText" xml:space="preserve">
|
||||
<value>SharePoint Solutions Feature</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders" xml:space="preserve">
|
||||
<value>Subscription Reminders</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders_Desc" xml:space="preserve">
|
||||
<value>Lists used to store Alert Manager 2007 subscription reminders</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders_Folder" xml:space="preserve">
|
||||
<value>SubscriptionReminders</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders_Title" xml:space="preserve">
|
||||
<value>Subscription Reminders</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,201 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="ContentType_GroupName" xml:space="preserve">
|
||||
<value>Alert Manager Content Type</value>
|
||||
</data>
|
||||
<data name="CustomActionGroup_ManageAlerts_Title" xml:space="preserve">
|
||||
<value>Alert Management</value>
|
||||
</data>
|
||||
<data name="CustomAction_AdvancedAlertMe_Desc" xml:space="preserve">
|
||||
<value>Advanced Alert management using Alert Manager 2007.</value>
|
||||
</data>
|
||||
<data name="CustomAction_AdvancedAlertMe_Title" xml:space="preserve">
|
||||
<value>Advanced Alert Me</value>
|
||||
</data>
|
||||
<data name="CustomAction_EndUserLicenseAgreement_Desc" xml:space="preserve">
|
||||
<value>Alert Manager 2007 End User License Agreement</value>
|
||||
</data>
|
||||
<data name="CustomAction_EndUserLicenseAgreement_Title" xml:space="preserve">
|
||||
<value>Alert Manager 2007 End User License Agreement</value>
|
||||
</data>
|
||||
<data name="CustomAction_LicenseInfo_Desc" xml:space="preserve">
|
||||
<value>View your Alert Manager 2007 license information</value>
|
||||
</data>
|
||||
<data name="CustomAction_LicenseInfo_Title" xml:space="preserve">
|
||||
<value>View your Alert Manager 2007 license information </value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertsForList_Desc" xml:space="preserve">
|
||||
<value>Manage alerts for this list</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertsForList_Title" xml:space="preserve">
|
||||
<value>Manage Alerts for this list</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlerts_Desc" xml:space="preserve">
|
||||
<value>Manage alerts for site users.</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlerts_Title" xml:space="preserve">
|
||||
<value>Manage Alerts</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplateForList_Desc" xml:space="preserve">
|
||||
<value>Manage the default Alert template for this list or library</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplates_Desc" xml:space="preserve">
|
||||
<value>Manage all available Alert templates</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplates_Title" xml:space="preserve">
|
||||
<value>Manage Alert templates</value>
|
||||
</data>
|
||||
<data name="CustomAction_ManageAlertTemplate_Title" xml:space="preserve">
|
||||
<value>Manage Alert template for this list</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerAdminComponents_Desc" xml:space="preserve">
|
||||
<value>Provides centralized alert management capabilities to SharePoint administrators.</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerAdminComponents_Title" xml:space="preserve">
|
||||
<value>Alert Manager Admin Components</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerSiteComponents_Desc" xml:space="preserve">
|
||||
<value>Provides advanced alert management capabilities to site users.</value>
|
||||
</data>
|
||||
<data name="Feature_AlertManagerSiteComponents_Title" xml:space="preserve">
|
||||
<value>Alert Manager Site Components</value>
|
||||
</data>
|
||||
<data name="Field_Name_SiteId" xml:space="preserve">
|
||||
<value>Site ID</value>
|
||||
</data>
|
||||
<data name="Field_Name_WebId" xml:space="preserve">
|
||||
<value>Web ID</value>
|
||||
</data>
|
||||
<data name="Image_SPSolutionsFeature_AltText" xml:space="preserve">
|
||||
<value>SharePoint Solutions Feature</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders" xml:space="preserve">
|
||||
<value>Subscription Reminders</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders_Desc" xml:space="preserve">
|
||||
<value>Lists used to store Alert Manager 2007 subscription reminders</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders_Folder" xml:space="preserve">
|
||||
<value>SubscriptionReminders</value>
|
||||
</data>
|
||||
<data name="SubscriptionReminders_Title" xml:space="preserve">
|
||||
<value>Subscription Reminders</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,924 @@
|
|||
using Microsoft.SharePoint;
|
||||
using Microsoft.SharePoint.Administration;
|
||||
using Microsoft.SharePoint.Utilities;
|
||||
using Microsoft.SharePoint.WebControls;
|
||||
using SPSolutions.SharePoint.AlertManager.Administration.Resources;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using SPSolutions.SharePoint.Alerts;
|
||||
using SPSolutions.Web;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class AddAlertGlobalAdminPage : AlertGlobalAdminPageBase
|
||||
{
|
||||
private const string AMCUSTOMPREFIX = "amcustom ";
|
||||
protected Button ButtonFinish;
|
||||
protected SPGridView GridViewSelectListItems;
|
||||
protected DVListBox ListBoxSelectedUsers;
|
||||
protected DVListBox ListBoxUnselectedUsers;
|
||||
protected Literal LiteralPageTitle;
|
||||
protected Literal LiteralPageTitleInTitleArea;
|
||||
protected EncodedLiteral LiteralPageDescription;
|
||||
protected PeopleEditor PeopleEditorGroupPicker;
|
||||
protected InputFormRadioButton RadioButtonListItemName;
|
||||
protected InputFormSectionAlertEventType SectionAlertEventType;
|
||||
protected InputFormSectionAlertTitle SectionAlertTitle;
|
||||
protected InputFormSectionAlertFilter SectionAlertFilter;
|
||||
protected InputFormSectionAlertFrequency SectionAlertFrequency;
|
||||
protected InputFormSectionAlertRecipients SectionAlertRecipients;
|
||||
protected InputFormSectionAlertTemplateNotification SectionAlertTemplateNotification;
|
||||
protected InputFormSectionAlertSendConfirmation SectionAlertSendConfirmation;
|
||||
protected TemplatedWizardStep TemplatedWizardStepAddAlerts;
|
||||
protected TemplatedWizardStep TemplatedWizardStepSelectList;
|
||||
protected TemplatedWizardStep TemplatedWizardStepSelectListItem;
|
||||
protected TemplatedWizardStep TemplatedWizardStepSelectUser;
|
||||
protected TemplatedWizardStep TemplatedWizardStepAddAlertError;
|
||||
protected Label LabelErrorMessage;
|
||||
protected Wizard WizardAddAlert;
|
||||
protected HiddenField HiddenSelectedList;
|
||||
protected HiddenField HiddenSelectedItem;
|
||||
protected HiddenField HiddenSelectedAccountNames;
|
||||
protected Repeater RepeaterDocumentType;
|
||||
protected Repeater RepeaterLists;
|
||||
protected Repeater RepeaterListItems;
|
||||
protected PlaceHolder PlaceHolderNoListItems;
|
||||
protected FilterSection FilterSectionPeopleEditor;
|
||||
private SPAlertTemplateConfiguration m_alertConfig;
|
||||
private List<SPAlertFilter> m_alertFilters;
|
||||
private List<SPView> m_alertFilterViews;
|
||||
private int? m_alertFilterViewIndex;
|
||||
private AlertContext m_alertContext;
|
||||
private DataTable m_defaultViewTable;
|
||||
private SPDocumentListLibraryContainer m_libraryContext;
|
||||
private SPListItem m_selectedListItem;
|
||||
private Guid m_webId;
|
||||
private SPPrincipalInfoCollection m_selectedPrincipals;
|
||||
private List<string> m_selectedSharePointGroups;
|
||||
private bool? m_enableLargeUseSelection;
|
||||
private bool? m_enableSharePointGroups;
|
||||
private bool? m_selectListItem;
|
||||
private Guid? m_selectedListId;
|
||||
private int? m_selectedItemId;
|
||||
private int? m_selectedUserId;
|
||||
private SPList m_selectedList;
|
||||
public bool EnableLargeUserSelection
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_enableLargeUseSelection.HasValue)
|
||||
{
|
||||
bool value = Convert.ToBoolean(base.Request.QueryString[ConfigRes.QueryString_EnableLargeUserSelection]);
|
||||
this.m_enableLargeUseSelection = new bool?(value);
|
||||
}
|
||||
return this.m_enableLargeUseSelection.Value && !this.EnableSharePointGroups;
|
||||
}
|
||||
}
|
||||
public bool EnableSharePointGroups
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_enableSharePointGroups.HasValue)
|
||||
{
|
||||
bool value = Convert.ToBoolean(base.Request.QueryString[ConfigRes.QueryString_EnableSharePointGroups]);
|
||||
this.m_enableSharePointGroups = new bool?(value);
|
||||
}
|
||||
return this.m_enableSharePointGroups.Value;
|
||||
}
|
||||
}
|
||||
public bool SelectListItem
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_selectListItem.HasValue)
|
||||
{
|
||||
bool value = Convert.ToBoolean(base.Request.QueryString[ConfigRes.QueryString_SelectListItem]);
|
||||
this.m_selectListItem = new bool?(value);
|
||||
}
|
||||
return this.m_selectListItem.Value;
|
||||
}
|
||||
}
|
||||
public SPAlertTemplateConfiguration AlertConfiguration
|
||||
{
|
||||
get
|
||||
{
|
||||
this.EnsureAlertConfiguration();
|
||||
return this.m_alertConfig;
|
||||
}
|
||||
}
|
||||
public List<SPAlertFilter> AlertFilters
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_alertFilters == null)
|
||||
{
|
||||
this.EnsureAlertFilterData();
|
||||
}
|
||||
return this.m_alertFilters;
|
||||
}
|
||||
}
|
||||
public List<SPView> AlertFilterViews
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_alertFilterViews == null)
|
||||
{
|
||||
this.EnsureAlertFilterData();
|
||||
}
|
||||
return this.m_alertFilterViews;
|
||||
}
|
||||
}
|
||||
public int AlertFilterViewIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_alertFilterViewIndex.HasValue)
|
||||
{
|
||||
this.EnsureAlertFilterData();
|
||||
}
|
||||
return this.m_alertFilterViewIndex.Value;
|
||||
}
|
||||
}
|
||||
public bool IsIndexSelected
|
||||
{
|
||||
get
|
||||
{
|
||||
bool result = false;
|
||||
if (this.ViewState["IsIndexSelected"] != null)
|
||||
{
|
||||
result = Convert.ToBoolean(this.ViewState["IsIndexSelected"]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ViewState["IsIndexSelected"] = value;
|
||||
}
|
||||
}
|
||||
public SPList SelectedList
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_selectedList == null && this.SelectedListId != Guid.Empty)
|
||||
{
|
||||
this.m_selectedList = base.AlertContext.CurrentWeb.Lists[this.SelectedListId];
|
||||
}
|
||||
return this.m_selectedList;
|
||||
}
|
||||
}
|
||||
public Guid SelectedListId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (base.RequestedListId != Guid.Empty)
|
||||
{
|
||||
return base.RequestedListId;
|
||||
}
|
||||
if (!this.m_selectedListId.HasValue)
|
||||
{
|
||||
Guid value = (!string.IsNullOrEmpty(this.HiddenSelectedList.Value)) ? new Guid(this.HiddenSelectedList.Value) : Guid.Empty;
|
||||
this.m_selectedListId = new Guid?(value);
|
||||
}
|
||||
return this.m_selectedListId.Value;
|
||||
}
|
||||
}
|
||||
public SPListItem SelectedListItem
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.SelectedListItemId > 0)
|
||||
{
|
||||
this.m_selectedListItem = this.SelectedList.GetItemById(this.SelectedListItemId);
|
||||
}
|
||||
return this.m_selectedListItem;
|
||||
}
|
||||
}
|
||||
public int SelectedListItemId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (base.RequestedItemId > 0)
|
||||
{
|
||||
return base.RequestedItemId;
|
||||
}
|
||||
if (!this.m_selectedItemId.HasValue)
|
||||
{
|
||||
int value;
|
||||
if (!int.TryParse(this.HiddenSelectedItem.Value, out value))
|
||||
{
|
||||
value = 0;
|
||||
}
|
||||
this.m_selectedItemId = new int?(value);
|
||||
}
|
||||
return this.m_selectedItemId.Value;
|
||||
}
|
||||
}
|
||||
public string PageTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.LiteralPageTitle.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.LiteralPageTitle.Text = value;
|
||||
this.LiteralPageTitleInTitleArea.Text = value;
|
||||
}
|
||||
}
|
||||
public int SelectedUserId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_selectedUserId.HasValue)
|
||||
{
|
||||
int value = Convert.ToInt32(base.Request.QueryString[ConfigRes.QueryString_UserId]);
|
||||
this.m_selectedUserId = new int?(value);
|
||||
}
|
||||
return this.m_selectedUserId.Value;
|
||||
}
|
||||
}
|
||||
public DataTable SelectedListItemTable
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_defaultViewTable == null && this.ViewState["SelectedListItemTable"] != null)
|
||||
{
|
||||
this.m_defaultViewTable = (this.ViewState["SelectedListItemTable"] as DataTable);
|
||||
}
|
||||
return this.m_defaultViewTable;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ViewState["SelectedListItemTable"] = value;
|
||||
}
|
||||
}
|
||||
public List<string> SelectedListBoxUserLoginNames
|
||||
{
|
||||
get
|
||||
{
|
||||
List<string> list = new List<string>();
|
||||
foreach (ListItem listItem in this.ListBoxSelectedUsers.Items)
|
||||
{
|
||||
if (!list.Contains(listItem.Value))
|
||||
{
|
||||
list.Add(listItem.Value);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
public SPPrincipalInfoCollection SelectedPrincipals
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_selectedPrincipals == null)
|
||||
{
|
||||
this.m_selectedPrincipals = new SPPrincipalInfoCollection(false);
|
||||
if (this.SectionAlertRecipients.DisplayMode == InputFormSectionAlertRecipients.DisplayModes.AddAlert && !this.SectionAlertRecipients.IsDynamicRecipientSelected)
|
||||
{
|
||||
this.m_selectedPrincipals.AddRange(this.SectionAlertRecipients.SelectedPrincipals);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.SectionAlertRecipients.DisplayMode == InputFormSectionAlertRecipients.DisplayModes.AddAlertToLargeGroup)
|
||||
{
|
||||
List<SPPrincipalInfo> list;
|
||||
if (this.PeopleEditorGroupPicker.ResolvedEntities.Count > 0)
|
||||
{
|
||||
list = SPUserUtil.GetPrincipalsFromResolvedPickerEntities(this.PeopleEditorGroupPicker.ResolvedEntities);
|
||||
this.m_selectedPrincipals.AddRange(list);
|
||||
}
|
||||
else
|
||||
{
|
||||
list = this.GetResolvedAccounts(this.HiddenSelectedAccountNames.Value);
|
||||
this.m_selectedPrincipals.AddRange(list);
|
||||
}
|
||||
list = SPUserUtil.GetPrincipalsFromLoginNames(base.AlertContext.CurrentWeb, this.SelectedListBoxUserLoginNames);
|
||||
this.m_selectedPrincipals.AddRange(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.m_selectedPrincipals;
|
||||
}
|
||||
}
|
||||
public SPPrincipalInfoCollection DefaultPrincipals
|
||||
{
|
||||
get
|
||||
{
|
||||
SPPrincipalInfoCollection sPPrincipalInfoCollection = new SPPrincipalInfoCollection(false);
|
||||
if (this.EnableLargeUserSelection || this.EnableSharePointGroups)
|
||||
{
|
||||
return sPPrincipalInfoCollection;
|
||||
}
|
||||
SPUser sPUser = (this.SelectedUserId != 0) ? base.AlertContext.CurrentWeb.SiteUsers.GetByID(this.SelectedUserId) : base.AlertContext.CurrentWeb.CurrentUser;
|
||||
if (sPUser != null)
|
||||
{
|
||||
SPPrincipalInfo sPPrincipalInfo = SPUserUtil.CreatePrincipalInfo(sPUser);
|
||||
sPPrincipalInfoCollection.Add(sPPrincipalInfo);
|
||||
}
|
||||
return sPPrincipalInfoCollection;
|
||||
}
|
||||
}
|
||||
public List<string> SelectedSharePointGroups
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_selectedSharePointGroups == null)
|
||||
{
|
||||
this.m_selectedSharePointGroups = new List<string>();
|
||||
foreach (SPPrincipalInfo sPPrincipalInfo in this.SelectedPrincipals)
|
||||
{
|
||||
if (sPPrincipalInfo.PrincipalType == SPPrincipalType.SharePointGroup)
|
||||
{
|
||||
this.m_selectedSharePointGroups.Add(sPPrincipalInfo.LoginName);
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.m_selectedSharePointGroups;
|
||||
}
|
||||
}
|
||||
public Guid WebId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_webId == Guid.Empty)
|
||||
{
|
||||
this.m_webId = new Guid(base.Request.QueryString[ConfigRes.QueryString_WebId]);
|
||||
}
|
||||
return this.m_webId;
|
||||
}
|
||||
}
|
||||
public SPDocumentListLibraryContainer WebListLibraryContext
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_libraryContext == null)
|
||||
{
|
||||
this.m_libraryContext = new SPDocumentListLibraryContainer(base.AlertContext.CurrentWeb);
|
||||
}
|
||||
return this.m_libraryContext;
|
||||
}
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.SectionAlertTemplateNotification = (ControlUtil.FindControl(this, "SectionAlertTemplateNotification") as InputFormSectionAlertTemplateNotification);
|
||||
this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.Selected += (new EventHandler(this.AlertTemplate_Selected));
|
||||
this.RepeaterDocumentType = this.EnsureTemplateControl<Repeater>(this.TemplatedWizardStepSelectList, "RepeaterDocumentType");
|
||||
this.RepeaterLists = this.EnsureTemplateControl<Repeater>(this.TemplatedWizardStepSelectList, "RepeaterLists");
|
||||
this.RepeaterListItems = this.EnsureTemplateControl<Repeater>(this.TemplatedWizardStepSelectListItem, "RepeaterListItems");
|
||||
this.PlaceHolderNoListItems = this.EnsureTemplateControl<PlaceHolder>(this.TemplatedWizardStepSelectListItem, "PlaceHolderNoListItems");
|
||||
this.ListBoxSelectedUsers = this.EnsureTemplateControl<DVListBox>(this.TemplatedWizardStepSelectUser, "ListBoxSelectedUsers");
|
||||
this.ListBoxUnselectedUsers = this.EnsureTemplateControl<DVListBox>(this.TemplatedWizardStepSelectUser, "ListBoxUnselectedUsers");
|
||||
this.PeopleEditorGroupPicker = this.EnsureTemplateControl<PeopleEditor>(this.TemplatedWizardStepSelectUser, "PeopleEditorGroupPicker");
|
||||
this.FilterSectionPeopleEditor = this.EnsureTemplateControl<FilterSection>(this.TemplatedWizardStepSelectUser, "FilterSectionPeopleEditor");
|
||||
this.FilterSectionPeopleEditor.Collapsed=(this.PeopleEditorGroupPicker.ResolvedEntities.Count == 0);
|
||||
this.SectionAlertTitle = this.EnsureTemplateControl<InputFormSectionAlertTitle>(this.TemplatedWizardStepAddAlerts, "SectionAlertTitle");
|
||||
this.SectionAlertRecipients = this.EnsureTemplateControl<InputFormSectionAlertRecipients>(this.TemplatedWizardStepAddAlerts, "SectionAlertRecipients");
|
||||
this.SectionAlertEventType = this.EnsureTemplateControl<InputFormSectionAlertEventType>(this.TemplatedWizardStepAddAlerts, "SectionAlertEventType");
|
||||
this.SectionAlertFilter = this.EnsureTemplateControl<InputFormSectionAlertFilter>(this.TemplatedWizardStepAddAlerts, "SectionAlertFilter");
|
||||
this.SectionAlertFrequency = this.EnsureTemplateControl<InputFormSectionAlertFrequency>(this.TemplatedWizardStepAddAlerts, "SectionAlertFrequency");
|
||||
this.SectionAlertSendConfirmation = this.EnsureTemplateControl<InputFormSectionAlertSendConfirmation>(this.TemplatedWizardStepAddAlerts, "SectionAlertSendConfirmation");
|
||||
this.LabelErrorMessage = this.EnsureTemplateControl<Label>(this.TemplatedWizardStepAddAlertError, "LabelErrorMessage");
|
||||
this.PeopleEditorGroupPicker.WebApplicationId=(base.AlertContext.CurrentWeb.Site.WebApplication.Id);
|
||||
this.SectionAlertRecipients.ContextWeb=(base.AlertContext.CurrentWeb);
|
||||
if (this.EnableSharePointGroups)
|
||||
{
|
||||
this.PeopleEditorGroupPicker.SelectionSet=("SPGroup");
|
||||
this.SectionAlertRecipients.SelectionSet=("SPGroup");
|
||||
return;
|
||||
}
|
||||
this.PeopleEditorGroupPicker.SelectionSet=("User,SecGroup");
|
||||
this.SectionAlertRecipients.SelectionSet=("User,SecGroup");
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
if (!this.Page.IsPostBack)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
this.NavigationDecisionMaker();
|
||||
}
|
||||
}
|
||||
private T EnsureTemplateControl<T>(Control parent, string controlId) where T : Control
|
||||
{
|
||||
return (T)((object)ControlUtil.FindControl(parent, controlId));
|
||||
}
|
||||
private List<SPPrincipalInfo> GetResolvedAccounts(string accountNames)
|
||||
{
|
||||
List<SPPrincipalInfo> list = new List<SPPrincipalInfo>();
|
||||
if (string.IsNullOrEmpty(accountNames))
|
||||
{
|
||||
return list;
|
||||
}
|
||||
string[] array = accountNames.Split(new char[]
|
||||
{
|
||||
','
|
||||
});
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
string text = array[i];
|
||||
SPPrincipalInfo sPPrincipalInfo = SPUtility.ResolvePrincipal(base.AlertContext.CurrentWeb.Site.WebApplication, new SPUrlZone?(0), text, SPPrincipalType.All, SPPrincipalSource.All, false);
|
||||
if (sPPrincipalInfo != null)
|
||||
{
|
||||
list.Add(sPPrincipalInfo);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
private void AddAllUsers()
|
||||
{
|
||||
this.ListBoxSelectedUsers.DataSource = this.WebListLibraryContext.Users;
|
||||
this.ListBoxSelectedUsers.DataBind();
|
||||
this.ListBoxUnselectedUsers.Items.Clear();
|
||||
}
|
||||
private void AddSelectedUsers()
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
foreach (ListItem listItem in this.ListBoxUnselectedUsers.Items)
|
||||
{
|
||||
if (listItem.Selected)
|
||||
{
|
||||
this.ListBoxSelectedUsers.Items.Add(listItem);
|
||||
this.ListBoxSelectedUsers.Items[this.ListBoxSelectedUsers.Items.Count - 1].Selected = false;
|
||||
arrayList.Add(listItem);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < arrayList.Count; i++)
|
||||
{
|
||||
this.ListBoxUnselectedUsers.Items.Remove(arrayList[i] as ListItem);
|
||||
}
|
||||
}
|
||||
private void BindUsers()
|
||||
{
|
||||
if (this.ListBoxUnselectedUsers != null)
|
||||
{
|
||||
this.ListBoxUnselectedUsers.DataSource = this.WebListLibraryContext.Users;
|
||||
this.ListBoxUnselectedUsers.DataBind();
|
||||
}
|
||||
}
|
||||
private void CreateBoundColumn(DataColumn activeColumn)
|
||||
{
|
||||
BoundField boundField = new BoundField();
|
||||
boundField.HeaderText = activeColumn.ColumnName;
|
||||
boundField.DataField = activeColumn.ColumnName;
|
||||
boundField.NullDisplayText = "";
|
||||
if (this.GridViewSelectListItems == null)
|
||||
{
|
||||
throw new ArgumentNullException("Can not Find Select List Item Grid View Control");
|
||||
}
|
||||
this.GridViewSelectListItems.Columns.Add(boundField);
|
||||
}
|
||||
private void CreateCustomTemplateColumn(DataColumn activeColumn)
|
||||
{
|
||||
TemplateField templateField = new TemplateField();
|
||||
templateField.ItemTemplate = new DynamicTemplate(DataControlRowType.DataRow, activeColumn.ColumnName);
|
||||
templateField.HeaderTemplate = new DynamicTemplate(DataControlRowType.Header, activeColumn.ColumnName);
|
||||
if (this.GridViewSelectListItems == null)
|
||||
{
|
||||
throw new ArgumentNullException("Can not Find Select List Item Grid View Control");
|
||||
}
|
||||
this.GridViewSelectListItems.Columns.Add(templateField);
|
||||
}
|
||||
private void EnsureAlertConfiguration()
|
||||
{
|
||||
if (this.m_alertConfig != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.m_alertConfig = SPAlertTemplateConfiguration.GetConfiguration(this.SelectedList.AlertTemplate, Convert.ToUInt32(base.Web.Locale.CompareInfo.LCID));
|
||||
}
|
||||
private void EnsureAlertFilterData()
|
||||
{
|
||||
this.m_alertFilters = ((this.AlertConfiguration.AlertFilters != null) ? this.AlertConfiguration.AlertFilters : new List<SPAlertFilter>());
|
||||
this.m_alertFilterViews = new List<SPView>();
|
||||
if (this.SelectedList != null)
|
||||
{
|
||||
foreach (SPView sPView in this.SelectedList.Views)
|
||||
{
|
||||
if (!sPView.Hidden && !string.IsNullOrEmpty(sPView.Title) && !string.IsNullOrEmpty(SPAlertUtil.GetFilter(this.SelectedList.ParentWeb, sPView)))
|
||||
{
|
||||
this.m_alertFilterViews.Add(sPView);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.m_alertFilters.Insert(0, new SPAlertFilter(AlertResourceManager.GetGlobalString("AlertFilters_None")));
|
||||
if (this.m_alertFilterViews.Count > 0)
|
||||
{
|
||||
this.m_alertFilters.Add(new SPAlertFilter(AlertResourceManager.GetGlobalString("AlertFilters_View")));
|
||||
this.m_alertFilterViewIndex = new int?(this.m_alertFilters.Count - 1);
|
||||
return;
|
||||
}
|
||||
this.m_alertFilterViewIndex = new int?(-1);
|
||||
}
|
||||
private DataTable EnsureListColumns()
|
||||
{
|
||||
SPListItemCollection items = this.SelectedList.GetItems(new SPQuery(this.SelectedList.DefaultView));
|
||||
return items.GetDataTable();
|
||||
}
|
||||
private void FillAlertSections()
|
||||
{
|
||||
if (this.SelectedListId != Guid.Empty)
|
||||
{
|
||||
this.SectionAlertTitle.Title = ((this.SelectedListItemId > 0) ? string.Format("{0} : {1}", this.SelectedList.Title, this.GetListItemTitle(this.SelectedListItem, false)) : this.SelectedList.Title);
|
||||
}
|
||||
if (this.AlertConfiguration.ShowAlertEventTypes)
|
||||
{
|
||||
this.SectionAlertEventType.AlertEventTypesDataSource = (this.AlertConfiguration.HasAlertEventTypes ? this.AlertConfiguration.AlertEventTypes : SPSolutions.SharePoint.AlertManager.AlertConfiguration.GetDefaultAlertEventTypes());
|
||||
this.SectionAlertEventType.DataBind();
|
||||
if (this.AlertConfiguration.DefaultAlertEventType != null)
|
||||
{
|
||||
this.SectionAlertEventType.SelectedAlertEventType = (this.AlertConfiguration.DefaultAlertEventType);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertEventType.SelectedAlertEventTypeIndex = (0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertEventType.Visible = false;
|
||||
}
|
||||
if (this.EnableLargeUserSelection)
|
||||
{
|
||||
this.SectionAlertRecipients.DisplayMode = InputFormSectionAlertRecipients.DisplayModes.AddAlertToLargeGroup;
|
||||
this.SectionAlertRecipients.SelectedPrincipals = (this.SelectedPrincipals.ToArray());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertRecipients.DisplayMode = InputFormSectionAlertRecipients.DisplayModes.AddAlert;
|
||||
this.SectionAlertRecipients.SelectedPrincipals = (this.DefaultPrincipals.ToArray());
|
||||
this.SectionAlertRecipients.DynamicRecipientList = (this.SelectedList);
|
||||
this.SectionAlertRecipients.DataBind();
|
||||
}
|
||||
if (this.AlertConfiguration.ShowAlertFilters)
|
||||
{
|
||||
this.SectionAlertFilter.CustomAlertFilterFieldsDataSource = (this.SelectedList.Fields);
|
||||
this.SectionAlertFilter.AlertFilterDataSource = (this.AlertFilters);
|
||||
if (this.AlertFilterViews != null && this.AlertFilterViews.Count > 0)
|
||||
{
|
||||
this.SectionAlertFilter.ForceLoadViews = (true);
|
||||
this.SectionAlertFilter.AlertFilterViewDataSource = (this.AlertFilterViews);
|
||||
this.SectionAlertFilter.ViewFilterIndex = (this.AlertFilterViewIndex);
|
||||
}
|
||||
this.SectionAlertFilter.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertFilter.Visible = false;
|
||||
}
|
||||
if (this.AlertConfiguration.ShowAlertFrequencies)
|
||||
{
|
||||
this.SectionAlertFrequency.AlertFrequencyDataSource = (this.AlertConfiguration.AlertFrequencies);
|
||||
this.SectionAlertFrequency.DataBind();
|
||||
this.SectionAlertFrequency.SelectedAlertFrequency = (this.AlertConfiguration.DefaultAlertFrequency);
|
||||
this.SectionAlertFrequency.SelectedAlertFrequencyTime = (this.AlertConfiguration.DefaultAlertFrequencyTime);
|
||||
return;
|
||||
}
|
||||
this.SectionAlertFrequency.Visible = false;
|
||||
}
|
||||
private void FillListDetailsInGrid(object dataSource)
|
||||
{
|
||||
this.RepeaterDocumentType.DataSource = dataSource;
|
||||
this.RepeaterDocumentType.DataBind();
|
||||
}
|
||||
private void FillListItems()
|
||||
{
|
||||
this.PlaceHolderNoListItems.Visible = (this.SelectedList.ItemCount == 0);
|
||||
this.RepeaterListItems.DataSource = this.SelectedList.Items;
|
||||
this.RepeaterListItems.DataBind();
|
||||
}
|
||||
protected string GetListItemTitle(object objListItem, bool includeIcon)
|
||||
{
|
||||
SPListItem sPListItem = objListItem as SPListItem;
|
||||
if (sPListItem == null)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
if (sPListItem.File != null)
|
||||
{
|
||||
if (!includeIcon)
|
||||
{
|
||||
return sPListItem.Name;
|
||||
}
|
||||
return string.Format("<img src='/_layouts/15/images/{0}' style='vertical-align:middle' /> {1}", sPListItem.File.IconUrl, sPListItem.Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sPListItem.Folder != null)
|
||||
{
|
||||
if (!includeIcon)
|
||||
{
|
||||
return sPListItem.Name;
|
||||
}
|
||||
return string.Format("<img src='/_layouts/15/images/folder.gif' style='vertical-align:middle' /> {0}", sPListItem.Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(sPListItem.Title))
|
||||
{
|
||||
return sPListItem.Title;
|
||||
}
|
||||
return sPListItem.DisplayName;
|
||||
}
|
||||
}
|
||||
}
|
||||
protected string GetFieldValue(object objListItem, string fieldName)
|
||||
{
|
||||
SPListItem sPListItem = objListItem as SPListItem;
|
||||
if (sPListItem == null || !sPListItem.Fields.ContainsField(fieldName))
|
||||
{
|
||||
return " ";
|
||||
}
|
||||
object obj = sPListItem[fieldName];
|
||||
if (obj == null)
|
||||
{
|
||||
return " ";
|
||||
}
|
||||
return obj.ToString();
|
||||
}
|
||||
private void MoveToAddAlertPage()
|
||||
{
|
||||
this.WizardAddAlert.ActiveStepIndex = this.WizardAddAlert.WizardSteps.IndexOf(this.TemplatedWizardStepAddAlerts);
|
||||
this.PageTitle = string.Format(AlertResourceManager.GetGlobalString("Page_AddAlert_AddAlert_Title"), SPUtility.FormatStringWithListType("{0}", this.SelectedList, false), this.SelectedList.Title);
|
||||
this.LiteralPageDescription.Text = alertmanageradmin.Page_AddAlert_AddAlert_Desc;
|
||||
this.FillAlertSections();
|
||||
}
|
||||
private void MovetoSelectListItemPage()
|
||||
{
|
||||
this.WizardAddAlert.ActiveStepIndex = this.WizardAddAlert.WizardSteps.IndexOf(this.TemplatedWizardStepSelectListItem);
|
||||
this.PageTitle = alertmanageradmin.Page_AddAlert_SelectListItem_Title;
|
||||
this.LiteralPageDescription.Text = alertmanageradmin.Page_AddAlert_SelectListItem_Desc;
|
||||
this.WebListLibraryContext.SelectedListName=(this.SelectedList.Title);
|
||||
this.WebListLibraryContext.SelectedList=(this.SelectedList);
|
||||
this.FillListItems();
|
||||
this.HiddenSelectedItem.Value = string.Empty;
|
||||
}
|
||||
private void MoveToSelectListPage()
|
||||
{
|
||||
this.WizardAddAlert.ActiveStepIndex = this.WizardAddAlert.WizardSteps.IndexOf(this.TemplatedWizardStepSelectList);
|
||||
this.PageTitle = alertmanageradmin.Page_AddAlert_SelectList_Title;
|
||||
this.LiteralPageDescription.Text = alertmanageradmin.Page_AddAlert_SelectList_Desc;
|
||||
this.FillListDetailsInGrid(this.WebListLibraryContext.DocumentType);
|
||||
this.HiddenSelectedList.Value = string.Empty;
|
||||
}
|
||||
private void MoveToSelectUserPage()
|
||||
{
|
||||
this.WizardAddAlert.ActiveStepIndex = this.WizardAddAlert.WizardSteps.IndexOf(this.TemplatedWizardStepSelectUser);
|
||||
this.PageTitle = alertmanageradmin.Page_AddAlert_SelectUser_Title;
|
||||
this.LiteralPageDescription.Text = alertmanageradmin.Page_AddAlert_SelectUser_Desc;
|
||||
if (!string.IsNullOrEmpty(this.HiddenSelectedAccountNames.Value))
|
||||
{
|
||||
this.PeopleEditorGroupPicker.CommaSeparatedAccounts=(this.HiddenSelectedAccountNames.Value);
|
||||
this.HiddenSelectedAccountNames.Value = string.Empty;
|
||||
}
|
||||
}
|
||||
private void NavigationDecisionMaker()
|
||||
{
|
||||
if (!(base.RequestedListId != Guid.Empty))
|
||||
{
|
||||
this.MoveToSelectListPage();
|
||||
return;
|
||||
}
|
||||
if (this.SelectListItem)
|
||||
{
|
||||
this.MovetoSelectListItemPage();
|
||||
return;
|
||||
}
|
||||
if (this.EnableLargeUserSelection)
|
||||
{
|
||||
this.MoveToSelectUserPage();
|
||||
this.BindUsers();
|
||||
return;
|
||||
}
|
||||
this.MoveToAddAlertPage();
|
||||
}
|
||||
private void RemoveAllUsers()
|
||||
{
|
||||
this.ListBoxUnselectedUsers.DataSource = this.WebListLibraryContext.Users;
|
||||
this.ListBoxUnselectedUsers.DataBind();
|
||||
this.ListBoxSelectedUsers.Items.Clear();
|
||||
}
|
||||
private void RemoveSelectedUsers()
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
foreach (ListItem listItem in this.ListBoxSelectedUsers.Items)
|
||||
{
|
||||
if (listItem.Selected)
|
||||
{
|
||||
this.ListBoxUnselectedUsers.Items.Add(listItem);
|
||||
this.ListBoxUnselectedUsers.Items[this.ListBoxUnselectedUsers.Items.Count - 1].Selected = false;
|
||||
arrayList.Add(listItem);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < arrayList.Count; i++)
|
||||
{
|
||||
this.ListBoxSelectedUsers.Items.Remove(arrayList[i] as ListItem);
|
||||
}
|
||||
}
|
||||
private List<AlertRecipientTarget> GetAlertRecipients()
|
||||
{
|
||||
List<AlertRecipientTarget> list = new List<AlertRecipientTarget>();
|
||||
if (this.SectionAlertRecipients.IsDynamicRecipientSelected)
|
||||
{
|
||||
if (this.SectionAlertRecipients.SelectedDynamicRecipientField.ToLower().Contains("amcustom "))
|
||||
{
|
||||
list.Add(new AlertRecipientTarget(this.SectionAlertRecipients.SelectedDynamicRecipientField, true));
|
||||
}
|
||||
else
|
||||
{
|
||||
list.Add(new AlertRecipientTarget(this.SectionAlertRecipients.SelectedDynamicRecipientField, false));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
List<SPUser> list2 = SPUserUtil.EnsurePrincipals(base.AlertContext.CurrentWeb, this.SelectedPrincipals.ToList());
|
||||
foreach (SPUser current in list2)
|
||||
{
|
||||
list.Add(new AlertRecipientTarget(current));
|
||||
}
|
||||
if (this.SelectedSharePointGroups != null && this.SelectedSharePointGroups.Count > 0)
|
||||
{
|
||||
list.Add(new AlertRecipientTarget(base.AlertContext.CurrentWeb.CurrentUser, this.SelectedSharePointGroups.ToArray()));
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
private void GetCurrentAlertTemplateFromSelector()
|
||||
{
|
||||
if (this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.CurrentItem != null && this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.CurrentItem != this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager.InnerSPAlertTemplate)
|
||||
{
|
||||
this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager=(new AlertTemplateManager(this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.CurrentItem));
|
||||
}
|
||||
}
|
||||
private void AlertTemplate_Selected(object sender, EventArgs e)
|
||||
{
|
||||
this.GetCurrentAlertTemplateFromSelector();
|
||||
InputFormTextBox inputFormTextBox = ControlUtil.FindControl(this.SectionAlertTemplateNotification, "TextBoxAlertTemplateSubject") as InputFormTextBox;
|
||||
InputFormTextBox inputFormTextBox2 = ControlUtil.FindControl(this.SectionAlertTemplateNotification, "TextBoxAlertTemplateBody") as InputFormTextBox;
|
||||
AlertTemplateSelectorWithPostBack alertTemplateSelectorWithPostBack = sender as AlertTemplateSelectorWithPostBack;
|
||||
AlertTemplateManager alertTemplateManager = new AlertTemplateManager(alertTemplateSelectorWithPostBack.CurrentItem);
|
||||
inputFormTextBox.Text = alertTemplateManager.NotificationMessage.SubjectTemplate;
|
||||
inputFormTextBox2.Text = alertTemplateManager.NotificationMessage.BodyTemplate;
|
||||
}
|
||||
protected void ButtonFinish_Click(object sender, EventArgs args)
|
||||
{
|
||||
SPAlertTemplate sPAlertTemplate = this.SectionAlertTemplateNotification.UpdateDataFromControls(false);
|
||||
List<Exception> list = new List<Exception>();
|
||||
try
|
||||
{
|
||||
foreach (AlertRecipientTarget current in this.GetAlertRecipients())
|
||||
{
|
||||
base.AlertContext.AddAlert(current, this.SelectedList, this.SelectedListItem, this.SectionAlertTitle.Title, this.SectionAlertEventType.SelectedMask, this.SectionAlertEventType.SelectedAlertEventTypeIndex, this.SectionAlertFilter.SelectedQuery, this.SectionAlertFilter.SelectedFilterIndex, this.SectionAlertFilter.SelectedViewId, this.SectionAlertFrequency.SelectedAlertFrequency, this.SectionAlertFrequency.SelectedAlertFrequencyTime, sPAlertTemplate, this.SectionAlertSendConfirmation.SendConfirmation);
|
||||
}
|
||||
}
|
||||
catch (Exception item)
|
||||
{
|
||||
list.Add(item);
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
this.LiteralPageTitleInTitleArea.Text = alertmanageradmin.Page_AddAlert_Error_Title;
|
||||
this.LiteralPageDescription.Text = alertmanageradmin.Page_AddAlert_Error_Desc;
|
||||
foreach (Exception current2 in list)
|
||||
{
|
||||
this.LabelErrorMessage.Text = this.LabelErrorMessage.Text + current2.Message + "<br>";
|
||||
}
|
||||
this.WizardAddAlert.MoveTo(this.TemplatedWizardStepAddAlertError);
|
||||
return;
|
||||
}
|
||||
SPUtility.Redirect("SPSolutions/AlertManager/ManageAlerts.aspx",SPRedirectFlags.RelativeToLayoutsPage, this.Context);
|
||||
}
|
||||
protected void NextButton_Click(object sender, CommandEventArgs args)
|
||||
{
|
||||
if (!this.WizardAddAlert.ActiveStep.Equals(this.TemplatedWizardStepSelectList) && !this.WizardAddAlert.ActiveStep.Equals(this.TemplatedWizardStepSelectListItem))
|
||||
{
|
||||
if (this.WizardAddAlert.ActiveStep.Equals(this.TemplatedWizardStepSelectUser))
|
||||
{
|
||||
this.HiddenSelectedAccountNames.Value = this.PeopleEditorGroupPicker.CommaSeparatedAccounts;
|
||||
this.MoveToAddAlertPage();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (this.EnableLargeUserSelection)
|
||||
{
|
||||
this.MoveToSelectUserPage();
|
||||
this.BindUsers();
|
||||
return;
|
||||
}
|
||||
this.MoveToAddAlertPage();
|
||||
}
|
||||
protected void PreviousButton_Click(object sender, CommandEventArgs args)
|
||||
{
|
||||
if (this.WizardAddAlert.ActiveStep.Equals(this.TemplatedWizardStepSelectListItem))
|
||||
{
|
||||
this.MoveToSelectListPage();
|
||||
return;
|
||||
}
|
||||
if (this.WizardAddAlert.ActiveStep.Equals(this.TemplatedWizardStepSelectUser))
|
||||
{
|
||||
if (this.SelectedListItemId > 0)
|
||||
{
|
||||
this.MovetoSelectListItemPage();
|
||||
return;
|
||||
}
|
||||
this.MoveToSelectListPage();
|
||||
}
|
||||
}
|
||||
protected void SelectListItemButton_Click(object sender, CommandEventArgs e)
|
||||
{
|
||||
this.MovetoSelectListItemPage();
|
||||
}
|
||||
protected void ButtonSelectOrRemoveUsers_Click(object sender, CommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName.Contains(alertmanageradmin.Control_ButtonAddAll_Button_CommandName))
|
||||
{
|
||||
this.AddAllUsers();
|
||||
return;
|
||||
}
|
||||
if (e.CommandName.Contains(alertmanageradmin.Control_ButtonAddSelected_Button_CommandName))
|
||||
{
|
||||
this.AddSelectedUsers();
|
||||
return;
|
||||
}
|
||||
if (e.CommandName.Contains(alertmanageradmin.Control_ButtonRemoveSelected_Button_CommandName))
|
||||
{
|
||||
this.RemoveSelectedUsers();
|
||||
return;
|
||||
}
|
||||
if (e.CommandName.Contains(alertmanageradmin.Control_ButtonRemoveAll_Button_CommandName))
|
||||
{
|
||||
this.RemoveAllUsers();
|
||||
}
|
||||
}
|
||||
protected void ButtonSelectUser_Click(object sender, CommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName.Contains(ConfigRes.Control_WizardAddAlert_Wizard_ButtonAddAlert))
|
||||
{
|
||||
this.MoveToAddAlertPage();
|
||||
}
|
||||
}
|
||||
protected void LinkButtonModifyUsers_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (((LinkButton)sender).Text.Contains("Modify Users"))
|
||||
{
|
||||
this.MoveToSelectUserPage();
|
||||
}
|
||||
}
|
||||
protected override void OnPreRender(EventArgs e)
|
||||
{
|
||||
base.OnPreRender(e);
|
||||
if (this.WizardAddAlert.ActiveStep.Equals(this.TemplatedWizardStepAddAlerts))
|
||||
{
|
||||
if (this.SelectedList != null)
|
||||
{
|
||||
this.SectionAlertTemplateNotification.ListId=(this.SelectedListId);
|
||||
}
|
||||
this.SectionAlertTemplateNotification.CurrentAlertTemplateManager=(null);
|
||||
this.SectionAlertTemplateNotification.DataBind();
|
||||
}
|
||||
}
|
||||
protected void RepeaterLists_ItemCreated(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
SPList sPList = (SPList)e.Item.DataItem;
|
||||
if (sPList == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Image image = (Image)e.Item.FindControl("ImageListIcon");
|
||||
if (image == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
image.ImageUrl = SPListUtil.GetListIconUrl(sPList.BaseTemplate);
|
||||
}
|
||||
protected void RepeaterDocumentType_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Repeater repeater = e.Item.FindControl("RepeaterLists") as Repeater;
|
||||
if (repeater == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
DataRow row = ((DataRowView)e.Item.DataItem).Row;
|
||||
if (row.ItemArray[0].ToString().Contains("Library"))
|
||||
{
|
||||
repeater.DataSource = this.WebListLibraryContext.DocumentLibraries;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (row.ItemArray[0].ToString().Contains("List"))
|
||||
{
|
||||
repeater.DataSource = this.WebListLibraryContext.Lists;
|
||||
}
|
||||
}
|
||||
repeater.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
using Microsoft.SharePoint;
|
||||
using Microsoft.SharePoint.ApplicationPages;
|
||||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.Administration.Resources;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
//using Xheo.Licensing;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
//[LicenseProvider(typeof(ExtendedLicenseProvider))]
|
||||
public class AlertGlobalAdminPageBase : GlobalAdminPageBase, IAlertContextual
|
||||
{
|
||||
private AlertManagerLicenseManager m_licenseManager;
|
||||
private AlertContext m_alertContext;
|
||||
private SPSite m_requestedSite;
|
||||
private SPWeb m_requestedWeb;
|
||||
private Guid? m_requestedListId;
|
||||
private int? m_requestedItemId;
|
||||
public AlertContext AlertContext
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_alertContext == null)
|
||||
{
|
||||
this.m_alertContext = new AlertContext(this.RequestedWeb);
|
||||
}
|
||||
return this.m_alertContext;
|
||||
}
|
||||
}
|
||||
public SPSite RequestedSite
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_requestedSite == null && !string.IsNullOrEmpty(base.Request.QueryString[ConfigRes.QueryString_SiteId]))
|
||||
{
|
||||
Guid guid = new Guid(base.Request.QueryString[ConfigRes.QueryString_SiteId]);
|
||||
this.m_requestedSite = new SPSite(guid);
|
||||
}
|
||||
return this.m_requestedSite;
|
||||
}
|
||||
}
|
||||
public SPWeb RequestedWeb
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_requestedWeb == null && !string.IsNullOrEmpty(base.Request.QueryString[ConfigRes.QueryString_WebId]))
|
||||
{
|
||||
Guid guid = new Guid(base.Request.QueryString[ConfigRes.QueryString_WebId]);
|
||||
this.m_requestedWeb = this.RequestedSite.OpenWeb(guid);
|
||||
}
|
||||
return this.m_requestedWeb;
|
||||
}
|
||||
}
|
||||
public Guid RequestedListId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_requestedListId.HasValue)
|
||||
{
|
||||
Guid value = (!string.IsNullOrEmpty(base.Request.QueryString[ConfigRes.QueryString_ListId])) ? new Guid(base.Request.QueryString[ConfigRes.QueryString_ListId]) : Guid.Empty;
|
||||
this.m_requestedListId = new Guid?(value);
|
||||
}
|
||||
return this.m_requestedListId.Value;
|
||||
}
|
||||
}
|
||||
public int RequestedItemId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_requestedItemId.HasValue)
|
||||
{
|
||||
int value = Convert.ToInt32(base.Request.QueryString[ConfigRes.QueryString_ListItemId]);
|
||||
this.m_requestedItemId = new int?(value);
|
||||
}
|
||||
return this.m_requestedItemId.Value;
|
||||
}
|
||||
}
|
||||
public AlertManagerLicenseManager LicenseManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_licenseManager == null)
|
||||
{
|
||||
this.m_licenseManager = new AlertManagerLicenseManager();
|
||||
}
|
||||
return this.m_licenseManager;
|
||||
}
|
||||
}
|
||||
protected override void OnInitComplete(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
if (!this.LicenseManager.HasLicense || this.LicenseManager.ExpirationDate < DateTime.Now)
|
||||
{
|
||||
SPUtility.Redirect("SPSolutions/AlertManager/LicenseInfo.aspx", SPRedirectFlags.RelativeToLayoutsPage, this.Context);
|
||||
}
|
||||
}
|
||||
protected override void OnUnload(EventArgs e)
|
||||
{
|
||||
base.OnUnload(e);
|
||||
if (this.m_requestedWeb != null)
|
||||
{
|
||||
this.m_requestedWeb.Dispose();
|
||||
}
|
||||
if (this.m_requestedSite != null)
|
||||
{
|
||||
this.m_requestedSite.Dispose();
|
||||
}
|
||||
}
|
||||
public string GetGlobalString(string resourceKey)
|
||||
{
|
||||
return this.GetGlobalString("alertmanager", resourceKey);
|
||||
}
|
||||
public string GetGlobalString(string className, string resourceKey)
|
||||
{
|
||||
return (string)base.GetGlobalResourceObject(className, resourceKey);
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
if (this.m_licenseManager != null)
|
||||
{
|
||||
this.m_licenseManager.Dispose();
|
||||
}
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,279 @@
|
|||
using Microsoft.SharePoint;
|
||||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.Serialization;
|
||||
using SPSolutions.SharePoint.AlertManager.Administration.Resources;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using SPSolutions.SharePoint.Alerts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class EditAlertGlobalAdminPage : AlertGlobalAdminPageBase
|
||||
{
|
||||
private const string AMCUSTOMPREFIX = "amcustom ";
|
||||
protected InputFormSectionAlertTitle SectionAlertTitle;
|
||||
protected InputFormSectionAlertEventType SectionAlertEventType;
|
||||
protected InputFormSectionAlertFilter SectionAlertFilter;
|
||||
protected InputFormSectionAlertFrequency SectionAlertFrequency;
|
||||
protected InputFormSectionAlertRecipients SectionAlertRecipients;
|
||||
protected InputFormSectionAlertTemplateNotification SectionAlertTemplateNotification;
|
||||
protected Button ButtonFinish;
|
||||
protected Label LabelErrorMessage;
|
||||
private SPAlert m_alert;
|
||||
private AlertContext m_alertContext;
|
||||
private AlertConfiguration m_alertConfig;
|
||||
private List<string> m_selectedSharePointGroups;
|
||||
private SPPrincipalInfoCollection m_selectedPrincipals;
|
||||
public SPAlert Alert
|
||||
{
|
||||
get
|
||||
{
|
||||
this.EnsureAlert();
|
||||
return this.m_alert;
|
||||
}
|
||||
}
|
||||
public AlertConfiguration AlertConfiguration
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_alertConfig == null)
|
||||
{
|
||||
this.m_alertConfig = AlertConfiguration.GetConfiguration(this.Alert, base.AlertContext.Language);
|
||||
}
|
||||
return this.m_alertConfig;
|
||||
}
|
||||
}
|
||||
public SPPrincipalInfoCollection SelectedPrincipals
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_selectedPrincipals == null)
|
||||
{
|
||||
this.m_selectedPrincipals = new SPPrincipalInfoCollection(false);
|
||||
if (this.SectionAlertRecipients.DisplayMode == InputFormSectionAlertRecipients.DisplayModes.AddAlert && !this.SectionAlertRecipients.IsDynamicRecipientSelected)
|
||||
{
|
||||
this.m_selectedPrincipals.AddRange(this.SectionAlertRecipients.SelectedPrincipals);
|
||||
}
|
||||
}
|
||||
return this.m_selectedPrincipals;
|
||||
}
|
||||
}
|
||||
public List<string> SelectedSharePointGroups
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_selectedSharePointGroups == null)
|
||||
{
|
||||
this.m_selectedSharePointGroups = new List<string>();
|
||||
foreach (SPPrincipalInfo sPPrincipalInfo in this.SelectedPrincipals)
|
||||
{
|
||||
if (sPPrincipalInfo.PrincipalType == SPPrincipalType.SharePointGroup)
|
||||
{
|
||||
this.m_selectedSharePointGroups.Add(sPPrincipalInfo.LoginName);
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.m_selectedSharePointGroups;
|
||||
}
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.Selected += (new EventHandler(this.AlertTemplate_Selected));
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
if (!this.Page.IsPostBack)
|
||||
{
|
||||
this.InitializeAndBindControls();
|
||||
}
|
||||
}
|
||||
private int GetSelectedFilterIndex(SPAlert alert, int defaultIndex)
|
||||
{
|
||||
int result;
|
||||
if (int.TryParse(alert.Properties["FilterIndex"], out result))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
return defaultIndex;
|
||||
}
|
||||
private Guid GetSelectedViewId(SPAlert alert)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.Alert.Properties["viewId"]))
|
||||
{
|
||||
return Guid.Empty;
|
||||
}
|
||||
return new Guid(this.Alert.Properties["viewId"]);
|
||||
}
|
||||
private SPAlertEventType GetSelectedEventType()
|
||||
{
|
||||
SPAlertEventType sPAlertEventType = new SPAlertEventType();
|
||||
sPAlertEventType.Mask=Convert.ToInt32(this.Alert.EventType);
|
||||
return sPAlertEventType;
|
||||
}
|
||||
private void EnsureAlert()
|
||||
{
|
||||
if (this.m_alert != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(base.Request.QueryString[ConfigRes.QueryString_AlertId]))
|
||||
{
|
||||
throw new AlertManagerException(base.GetGlobalString("alertmanager", "AlertManagerException_MissingAlertId"));
|
||||
}
|
||||
Guid guid = new Guid(base.Request.QueryString[ConfigRes.QueryString_AlertId]);
|
||||
this.m_alert = base.AlertContext.CurrentWeb.Alerts[guid];
|
||||
}
|
||||
private DataTable EnsureListColumns()
|
||||
{
|
||||
SPListItemCollection items = this.Alert.List.GetItems(new SPQuery(this.Alert.List.DefaultView));
|
||||
return items.GetDataTable();
|
||||
}
|
||||
private void GetCurrentAlertTemplateFromSelector()
|
||||
{
|
||||
if (this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.CurrentItem != null && this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.CurrentItem != this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager.InnerSPAlertTemplate)
|
||||
{
|
||||
this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager=(new AlertTemplateManager(this.SectionAlertTemplateNotification.AlertTemplateSelectorApplyExisting.CurrentItem));
|
||||
}
|
||||
}
|
||||
private void InitializeAndBindControls()
|
||||
{
|
||||
if (this.Alert == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.SectionAlertTitle.Title=(this.Alert.Title);
|
||||
if (this.AlertConfiguration.ShowAlertEventTypes)
|
||||
{
|
||||
this.SectionAlertEventType.Visible = true;
|
||||
this.SectionAlertEventType.AlertEventTypesDataSource=(this.AlertConfiguration.AlertEventTypes);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertEventType.Visible = false;
|
||||
}
|
||||
if (this.Alert.Properties["AlertGroups"] != null)
|
||||
{
|
||||
string[] array = SerializationUtil.Deserialize<string[]>(this.Alert.Properties["AlertGroups"].ToString());
|
||||
List<SPPrincipalInfo> principalsFromGroupNames = SPUserUtil.GetPrincipalsFromGroupNames(base.AlertContext.CurrentWeb, array);
|
||||
this.SectionAlertRecipients.DisplayMode = InputFormSectionAlertRecipients.DisplayModes.AddAlert;
|
||||
this.SectionAlertRecipients.SelectedPrincipals=(principalsFromGroupNames.ToArray());
|
||||
this.SectionAlertRecipients.SelectionSet=("SPGroup");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.Alert.UserId > 0)
|
||||
{
|
||||
this.SectionAlertRecipients.DisplayMode = InputFormSectionAlertRecipients.DisplayModes.EditAlert;
|
||||
this.SectionAlertRecipients.SelectedPrincipal = (SPUserUtil.CreatePrincipalInfo(this.Alert.User));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertRecipients.DisplayMode = InputFormSectionAlertRecipients.DisplayModes.EditAlertWithDynamicRecipient;
|
||||
this.SectionAlertRecipients.DynamicRecipientList = (this.Alert.List);
|
||||
if (!string.IsNullOrEmpty(this.Alert.DynamicRecipient))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Alert.Properties["AMCustomDynamicRecipient"]))
|
||||
{
|
||||
this.SectionAlertRecipients.SelectedDynamicRecipientField = (this.Alert.Properties["AMCustomDynamicRecipient"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertRecipients.SelectedDynamicRecipientField = (this.Alert.DynamicRecipient);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.AlertConfiguration.ShowAlertFilters)
|
||||
{
|
||||
this.SectionAlertFilter.Visible = true;
|
||||
this.SectionAlertFilter.AlertFilterDataSource = (this.AlertConfiguration.AlertFilters);
|
||||
this.SectionAlertFilter.AlertFilterViewDataSource = (this.AlertConfiguration.AlertFilterViews);
|
||||
this.SectionAlertFilter.CustomAlertFilterFieldsDataSource = (this.Alert.List.Fields);
|
||||
this.SectionAlertFilter.ViewFilterIndex = (this.AlertConfiguration.ViewAlertFilterIndex);
|
||||
this.SectionAlertFilter.SelectedFilterIndex = (this.GetSelectedFilterIndex(this.Alert, this.AlertConfiguration.DefaultAlertFilterIndex));
|
||||
this.SectionAlertFilter.SelectedViewId = (this.GetSelectedViewId(this.Alert));
|
||||
this.SectionAlertFilter.SelectedCustomFilterQuery = (this.Alert.Filter);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertFilter.Visible = false;
|
||||
}
|
||||
if (this.AlertConfiguration.ShowAlertFrequencies)
|
||||
{
|
||||
this.SectionAlertFrequency.Visible = true;
|
||||
this.SectionAlertFrequency.AlertFrequencyDataSource = (this.AlertConfiguration.AlertFrequencies);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SectionAlertFrequency.Visible = false;
|
||||
}
|
||||
this.DataBind();
|
||||
if (this.AlertConfiguration.ShowAlertEventTypes)
|
||||
{
|
||||
this.SectionAlertEventType.SelectedAlertEventType = (this.GetSelectedEventType());
|
||||
}
|
||||
if (this.AlertConfiguration.ShowAlertFrequencies)
|
||||
{
|
||||
this.SectionAlertFrequency.SelectedAlertFrequency = (this.GetSelectedAlertFrequency());
|
||||
if (this.Alert.AlertFrequency != null && this.Alert.AlertFrequency != SPAlertFrequency.Immediate)
|
||||
{
|
||||
this.SectionAlertFrequency.SelectedAlertFrequencyTime = (this.Alert.AlertTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
private SPAlertFrequency GetSelectedAlertFrequency()
|
||||
{
|
||||
if (this.Alert.AlertTemplate.Id != this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager.Id)
|
||||
{
|
||||
return this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager.InnerSPAlertTemplateConfiguration.DefaultAlertFrequency;
|
||||
}
|
||||
return this.Alert.AlertFrequency;
|
||||
}
|
||||
private void AlertTemplate_Selected(object sender, EventArgs e)
|
||||
{
|
||||
this.GetCurrentAlertTemplateFromSelector();
|
||||
if (this.Alert == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.m_alertConfig = AlertConfiguration.GetConfiguration(this.Alert, this.SectionAlertTemplateNotification.AlertTemplateContainer.AlertTemplateManager.InnerSPAlertTemplate, base.AlertContext.Language);
|
||||
AlertTemplateSelectorWithPostBack alertTemplateSelectorWithPostBack = sender as AlertTemplateSelectorWithPostBack;
|
||||
this.SectionAlertTemplateNotification.CurrentAlertTemplateManager = (new AlertTemplateManager(alertTemplateSelectorWithPostBack.CurrentItem));
|
||||
this.InitializeAndBindControls();
|
||||
}
|
||||
protected void ButtonFinish_Click(object sender, EventArgs args)
|
||||
{
|
||||
SPAlertTemplate sPAlertTemplate = this.SectionAlertTemplateNotification.UpdateDataFromControls(false);
|
||||
AlertRecipientTarget alertRecipientTarget = null;
|
||||
if (this.SectionAlertRecipients.IsDynamicRecipientSelected)
|
||||
{
|
||||
if (this.SectionAlertRecipients.SelectedDynamicRecipientField.ToLower().Contains("amcustom "))
|
||||
{
|
||||
alertRecipientTarget = new AlertRecipientTarget(this.SectionAlertRecipients.SelectedDynamicRecipientField, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
alertRecipientTarget = new AlertRecipientTarget(this.SectionAlertRecipients.SelectedDynamicRecipientField, false);
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
base.AlertContext.CurrentWeb.AllowUnsafeUpdates = (true);
|
||||
SPAlert sPAlert = base.AlertContext.CurrentWeb.Alerts[this.Alert.ID];
|
||||
base.AlertContext.SetAlertProperties(sPAlert, alertRecipientTarget, this.SectionAlertTitle.Title, this.SectionAlertEventType.SelectedMask, this.SectionAlertEventType.SelectedAlertEventTypeIndex, this.SectionAlertFilter.SelectedQuery, this.SectionAlertFilter.SelectedFilterIndex, this.SectionAlertFilter.SelectedViewId, this.SectionAlertFrequency.SelectedAlertFrequency, this.SectionAlertFrequency.SelectedAlertFrequencyTime, sPAlertTemplate, this.SelectedSharePointGroups.ToArray());
|
||||
sPAlert.Update();
|
||||
base.AlertContext.CurrentWeb.AllowUnsafeUpdates=(false);
|
||||
SPUtility.Redirect("SPSolutions/AlertManager/ManageAlerts.aspx", SPRedirectFlags.RelativeToLayoutsPage, this.Context);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.LabelErrorMessage.Visible = true;
|
||||
this.LabelErrorMessage.Text = ex.Message;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateAlertDetailsTransformGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected AlertTemplateSettingsAlertDetailsTransform AlertTemplateSettingsAlertDetailsTransformControl;
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
public void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
this.AlertTemplateSettingsAlertDetailsTransformControl.UpdateDataFromControls();
|
||||
base.Redirect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateBodyGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected AlertTemplateSettingsBody AlertTemplateSettingsBodyControl;
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
private void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.AlertTemplateSettingsBodyControl.UpdateDataFromControls();
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateDeleteGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected Button ButtonContinue;
|
||||
protected Button ButtonCancel;
|
||||
protected AlertTemplateDelete AlertTemplateDeleteControl;
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
if (this.AlertTemplateDeleteControl.AlertTemplateContainer == null)
|
||||
{
|
||||
this.AlertTemplateDeleteControl.Visible = false;
|
||||
this.ButtonContinue.Visible = false;
|
||||
this.ButtonCancel.Visible = false;
|
||||
return;
|
||||
}
|
||||
this.ButtonContinue.Click += new EventHandler(this.ButtonContinue_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
base.RedirectToApplicationManagementPage();
|
||||
}
|
||||
private void ButtonContinue_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.AlertTemplateDeleteControl.Delete();
|
||||
base.RedirectToApplicationManagementPage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateGeneralGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected AlertTemplateSettingsGeneral AlertTemplateSettingsGeneralControl;
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
public void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.AlertTemplateSettingsGeneralControl.UpdateDataFromControls();
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using Microsoft.SharePoint.WebControls;
|
||||
using SPSolutions.SharePoint.AlertManager.Administration.Resources;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using SPSolutions.SharePoint.Alerts;
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected LinkSection GeneralLinkSection;
|
||||
protected LinkSection FormattingLinkSection;
|
||||
protected AlertTemplateSelector AlertTemplateSelector;
|
||||
protected void OnAlertTemplateContextChange(object sender, EventArgs e)
|
||||
{
|
||||
if (this.AlertTemplateSelector.CurrentItem != null)
|
||||
{
|
||||
string arg_1E_0 = this.AlertTemplateSelector.CurrentId;
|
||||
string arg_39_0 = this.Page.Request.QueryString[ConfigRes.QueryString_AlertTemplateId];
|
||||
}
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
if (base.CurrentAlertTemplateManager == null)
|
||||
{
|
||||
base.CurrentAlertTemplateManager = new AlertTemplateManager(SPAlertTemplateUtil.GetSPAlertTemplatesInContext()["WssDefaultTemplate"]);
|
||||
this.AlertTemplateSelector.CurrentId = (base.CurrentAlertTemplateManager.Id.ToString());
|
||||
}
|
||||
if (!base.CurrentAlertTemplateManager.IsCustom)
|
||||
{
|
||||
foreach (Control control in this.GeneralLinkSection.Links.Controls)
|
||||
{
|
||||
if (control is HyperLink)
|
||||
{
|
||||
((HyperLink)control).Enabled = false;
|
||||
}
|
||||
}
|
||||
foreach (Control control2 in this.FormattingLinkSection.Links.Controls)
|
||||
{
|
||||
if (control2 is HyperLink)
|
||||
{
|
||||
((HyperLink)control2).Enabled = false;
|
||||
}
|
||||
}
|
||||
base.CurrentAlertTemplateManager.Description = (string.Format("<p style=\"color:red\">{0}</p>", base.GetGlobalString("Warning_NotACustomAlertTemplate")));
|
||||
}
|
||||
base.OnLoad(e);
|
||||
this.AddQueryStringVariablesToLinkSectionLinks();
|
||||
}
|
||||
public void AddQueryStringVariablesToLinkSectionLinks()
|
||||
{
|
||||
this.AddQueryStringVariablesToLinkSectionLinks(this.FormattingLinkSection);
|
||||
this.AddQueryStringVariablesToLinkSectionLinks(this.GeneralLinkSection);
|
||||
}
|
||||
protected void AddQueryStringVariablesToLinkSectionLinks(LinkSection ls)
|
||||
{
|
||||
foreach (Control control in ls.Controls)
|
||||
{
|
||||
if (control is RepeatedControls)
|
||||
{
|
||||
foreach (Control control2 in control.Controls)
|
||||
{
|
||||
if (control2 is HyperLink)
|
||||
{
|
||||
string format = "?{0}&{1}";
|
||||
HyperLink expr_58 = (HyperLink)control2;
|
||||
expr_58.NavigateUrl += string.Format(format, SPHttpUtility.UrlKeyValueEncode(ConfigRes.QueryString_AlertTemplateId, base.CurrentAlertTemplateManager.InnerSPAlertTemplate.Id.ToString()), SPHttpUtility.UrlKeyValueEncode(ConfigRes.QueryString_Src, HttpContext.Current.Request.Url.ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
using Microsoft.SharePoint;
|
||||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using SPSolutions.SharePoint.Alerts;
|
||||
using System;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateGlobalAdminPageBase : AlertGlobalAdminPageBase
|
||||
{
|
||||
private AlertTemplateManager m_alertTemplateManager;
|
||||
protected AlertTemplateManager CurrentAlertTemplateManager
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_alertTemplateManager;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_alertTemplateManager = value;
|
||||
}
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.m_alertTemplateManager = BaseAlertTemplateControl.LoadAlertTemplateManagerFromQueryString(this.Page);
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
if (!this.Page.IsPostBack)
|
||||
{
|
||||
this.DataBind();
|
||||
}
|
||||
}
|
||||
protected void Redirect()
|
||||
{
|
||||
string text;
|
||||
if (SPContext.Current.List != null)
|
||||
{
|
||||
text = "listedit.aspx?List=" + SPHttpUtility.UrlKeyValueEncode(SPContext.Current.List.ID);
|
||||
}
|
||||
else
|
||||
{
|
||||
text = "SPSolutions/AlertManager/ManageAlerts.aspx";
|
||||
}
|
||||
SPUtility.Redirect(text, SPRedirectFlags.RelativeToLayoutsPage, this.Context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateHeaderFooterGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected AlertTemplateSettingsHeaderFooter AlertTemplateSettingsHeaderFooterControl;
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
public void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.AlertTemplateSettingsHeaderFooterControl.UpdateDataFromControls();
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateSalientGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected AlertTemplateSettingsSalient AlertTemplateSettingsSalientControl;
|
||||
protected AlertTemplateCreateNew AlertTemplateCreateNewControl;
|
||||
protected void OnAlertTemplateContextChange(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.AlertTemplateSettingsSalientControl.AlertContext = (base.AlertContext);
|
||||
this.AlertTemplateCreateNewControl.AlertContext = (base.AlertContext);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
protected override void CreateChildControls()
|
||||
{
|
||||
base.CreateChildControls();
|
||||
if (this.AlertTemplateCreateNewControl.AlertTemplateContainer.AlertTemplateManager.IsCustom)
|
||||
{
|
||||
this.AlertTemplateCreateNewControl.Visible = false;
|
||||
return;
|
||||
}
|
||||
this.AlertTemplateSettingsSalientControl.Visible = false;
|
||||
this.ButtonFinish.Text = base.GetGlobalString("alertmanager", "Button_Continue");
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
base.Redirect();
|
||||
}
|
||||
public void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.AlertTemplateCreateNewControl.Visible)
|
||||
{
|
||||
this.AlertTemplateCreateNewControl.Visible = false;
|
||||
this.AlertTemplateCreateNewControl.UpdateDataFromControls();
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
// base.Redirect();
|
||||
SPUtility.Redirect("ManageAlertTemplates.aspx", SPRedirectFlags.CheckUrl, this.Context);
|
||||
return;
|
||||
}
|
||||
if (this.AlertTemplateSettingsSalientControl.Visible)
|
||||
{
|
||||
this.AlertTemplateSettingsSalientControl.UpdateDataFromControls();
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
//base.Redirect();
|
||||
SPUtility.Redirect("ManageAlertTemplates.aspx", SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.Administration.Resources;
|
||||
using SPSolutions.SharePoint.AlertManager.ApplicationPages;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using SPSolutions.Web;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateSalientPage : ManageAlertTemplatePageBase
|
||||
{
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected AlertTemplateSettingsSalient AlertTemplateSettingsSalientControl;
|
||||
protected AlertTemplateCreateNew AlertTemplateCreateNewControl;
|
||||
protected void OnAlertTemplateContextChange(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.AlertTemplateSettingsSalientControl.AlertContext = (base.AlertContext);
|
||||
this.AlertTemplateCreateNewControl.AlertContext = (base.AlertContext);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
protected override void CreateChildControls()
|
||||
{
|
||||
base.CreateChildControls();
|
||||
if (this.AlertTemplateCreateNewControl.AlertTemplateContainer.AlertTemplateManager.IsCustom)
|
||||
{
|
||||
this.AlertTemplateCreateNewControl.Visible = false;
|
||||
return;
|
||||
}
|
||||
this.AlertTemplateSettingsSalientControl.Visible = false;
|
||||
this.ButtonFinish.Text = base.GetGlobalString("alertmanager", "Button_Continue");
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
public void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.AlertTemplateCreateNewControl.Visible)
|
||||
{
|
||||
this.AlertTemplateCreateNewControl.Visible = false;
|
||||
if (base.AlertContext.IsUserFarmAdmin)
|
||||
{
|
||||
this.AlertTemplateCreateNewControl.UpdateDataFromControls();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (base.AlertContext.IsElevatedUserFarmAdmin)
|
||||
{
|
||||
base.AlertContext.RunWithElevatedContext(delegate
|
||||
{
|
||||
this.AlertTemplateCreateNewControl.UpdateDataFromControls();
|
||||
});
|
||||
}
|
||||
}
|
||||
this.SendToManageAlertTemplatePage();
|
||||
return;
|
||||
}
|
||||
if (this.AlertTemplateSettingsSalientControl.Visible)
|
||||
{
|
||||
if (base.AlertContext.IsUserFarmAdmin)
|
||||
{
|
||||
this.AlertTemplateSettingsSalientControl.UpdateDataFromControls();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (base.AlertContext.IsElevatedUserFarmAdmin)
|
||||
{
|
||||
base.AlertContext.RunWithElevatedContext(delegate
|
||||
{
|
||||
this.AlertTemplateSettingsSalientControl.UpdateDataFromControls();
|
||||
});
|
||||
}
|
||||
}
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
}
|
||||
public void SendToManageAlertTemplatePage()
|
||||
{
|
||||
string text = string.Format("{0}/{1}", base.AlertContext.CurrentWeb.Url, "_layouts/SPSolutions/AlertManager/ManageAlertTemplateSalient.aspx");
|
||||
string text2 = QueryString.FromCurrent()[ConfigRes.QueryString_ListId];
|
||||
if (!string.IsNullOrEmpty(text2))
|
||||
{
|
||||
text = HttpUtil.AppendUrlQueryString(text, string.Format("{0}={1}", ConfigRes.QueryString_ListId, text2));
|
||||
}
|
||||
string text3 = QueryString.FromCurrent()[ConfigRes.QueryString_AlertId];
|
||||
if (!string.IsNullOrEmpty(text3))
|
||||
{
|
||||
text = HttpUtil.AppendUrlQueryString(text, string.Format("{0}={1}", ConfigRes.QueryString_AlertId, text3));
|
||||
}
|
||||
string text4 = QueryString.FromCurrent()[ConfigRes.QueryString_Src];
|
||||
if (!string.IsNullOrEmpty(text4))
|
||||
{
|
||||
text = HttpUtil.AppendUrlQueryString(text, string.Format("{0}={1}", ConfigRes.QueryString_Src, text4));
|
||||
}
|
||||
SPUtility.Redirect(text, SPRedirectFlags.Default, this.Context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
using Microsoft.SharePoint.Utilities;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplateStyleSheetGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected AlertTemplateSettingsStyleSheet AlertTemplateSettingsStyleSheetControl;
|
||||
protected Button ButtonFinish;
|
||||
protected Button ButtonCancel;
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
this.ButtonFinish.Click += new EventHandler(this.ButtonFinish_Click);
|
||||
this.ButtonCancel.Click += new EventHandler(this.ButtonCancel_Click);
|
||||
}
|
||||
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
public void ButtonFinish_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.AlertTemplateSettingsStyleSheetControl.UpdateDataFromControls();
|
||||
if (Request.QueryString["AlertTemplate"] != null)
|
||||
{
|
||||
string strAlterTemplate = Request.QueryString["AlertTemplate"].ToString();
|
||||
string strRedirectUrl = "ManageAlertTemplate.aspx?AlertTemplate=" + strAlterTemplate;
|
||||
SPUtility.Redirect(strRedirectUrl, SPRedirectFlags.CheckUrl, this.Context);
|
||||
}
|
||||
else
|
||||
base.Redirect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,171 @@
|
|||
using Microsoft.SharePoint.WebControls;
|
||||
using SPSolutions.SharePoint.Alerts;
|
||||
using SPSolutions.SharePoint.Filters;
|
||||
using SPSolutions.SharePoint.WebControls;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertTemplatesGlobalAdminPage : ManageAlertTemplateGlobalAdminPageBase
|
||||
{
|
||||
protected PlaceHolder PlaceHolderAlertTemplateFilter;
|
||||
protected SPMenuSelector MenuPageSize;
|
||||
protected SPMenuSelector MenuView;
|
||||
protected SPManualPager ManualPager;
|
||||
protected HiddenField HiddenPageSize;
|
||||
protected HiddenField HiddenViewName;
|
||||
protected HiddenField HiddenSelectedAlertTemplates;
|
||||
protected MenuTemplate MenuTemplateView;
|
||||
protected MenuTemplate MenuTemplatePageSize;
|
||||
protected Repeater RepeaterAlertTemplates;
|
||||
protected TextBox TextBoxKeyword;
|
||||
protected Label LabelErrorMessages;
|
||||
public int NumberOfRecords
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ManualPager.NumberOfRecords;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ManualPager.NumberOfRecords=(value);
|
||||
}
|
||||
}
|
||||
public int PageNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ManualPager.PageNumber;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ManualPager.PageNumber=(value);
|
||||
}
|
||||
}
|
||||
public int PageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ManualPager.PageSize;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ManualPager.PageSize=(value);
|
||||
}
|
||||
}
|
||||
private void SetToolbarStatus()
|
||||
{
|
||||
this.MenuPageSize.MenuText=(this.PageSize.ToString());
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
ManageAlertsDataUtil.AddPageSizeMenuTemplates(this.MenuTemplatePageSize, "return ChangePageSize('{0}');");
|
||||
}
|
||||
protected override void OnPreRender(EventArgs e)
|
||||
{
|
||||
base.OnPreRender(e);
|
||||
this.SetToolbarStatus();
|
||||
this.PopulateAlertTemplates();
|
||||
}
|
||||
private void PopulateAlertTemplates()
|
||||
{
|
||||
int numberOfRecords;
|
||||
AlertTemplateManager[] pagesAlertTemplates = this.GetPagesAlertTemplates(out numberOfRecords);
|
||||
this.NumberOfRecords = numberOfRecords;
|
||||
this.RepeaterAlertTemplates.DataSource = pagesAlertTemplates;
|
||||
this.RepeaterAlertTemplates.DataBind();
|
||||
}
|
||||
private AlertTemplateManager[] GetPagesAlertTemplates(out int numberOfRecords)
|
||||
{
|
||||
ISPAlertTemplateFilter alertTemplateFilter = this.GetAlertTemplateFilter();
|
||||
List<AlertTemplateManager> managedAlertTemplates = base.AlertContext.GetManagedAlertTemplates(alertTemplateFilter);
|
||||
numberOfRecords = ((managedAlertTemplates != null) ? managedAlertTemplates.Count : 0);
|
||||
if (numberOfRecords == 0)
|
||||
{
|
||||
return new AlertTemplateManager[0];
|
||||
}
|
||||
return this.GetAlertTemplatesOnPage(managedAlertTemplates);
|
||||
}
|
||||
private AlertTemplateManager[] GetAlertTemplatesOnPage(List<AlertTemplateManager> alertTemplates)
|
||||
{
|
||||
PagingCalculator pagingCalculator = new PagingCalculator(alertTemplates.Count, this.PageSize, this.PageNumber);
|
||||
AlertTemplateManager[] array = new AlertTemplateManager[pagingCalculator.EndingIndex - pagingCalculator.BeginningIndex + 1];
|
||||
alertTemplates.CopyTo(pagingCalculator.BeginningIndex, array, 0, array.Length);
|
||||
return array;
|
||||
}
|
||||
private ISPAlertTemplateFilter GetAlertTemplateFilter()
|
||||
{
|
||||
ISPAlertTemplateFilter iSPAlertTemplateFilter = new SPAlertTemplateFilter();
|
||||
if (!string.IsNullOrEmpty(this.TextBoxKeyword.Text))
|
||||
{
|
||||
iSPAlertTemplateFilter = new SPAlertTemplateFilterMatch(iSPAlertTemplateFilter, this.TextBoxKeyword.Text);
|
||||
}
|
||||
return iSPAlertTemplateFilter;
|
||||
}
|
||||
protected void RepeaterAlertTemplates_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (e.Item.DataItem != null)
|
||||
{
|
||||
AlertTemplateManager alertTemplateManager = e.Item.DataItem as AlertTemplateManager;
|
||||
if (alertTemplateManager != null)
|
||||
{
|
||||
Microsoft.SharePoint.WebControls.Menu menu = (Microsoft.SharePoint.WebControls.Menu)e.Item.FindControl("MenuItemContext");
|
||||
menu.Text = (alertTemplateManager.FriendlyName);
|
||||
if (alertTemplateManager.IsCustom)
|
||||
{
|
||||
menu.ToolTip = alertTemplateManager.InnerSPAlertTemplate.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
menu.ToolTip = base.GetGlobalString("alertmanager", "Warning_NotACustomAlertTemplate");
|
||||
}
|
||||
menu.TokenNamesAndValues.Add("ALERTTEMPLATEID", alertTemplateManager.Id.ToString());
|
||||
menu.TokenNamesAndValues.Add("ALERTTEMPLATENAME", alertTemplateManager.FriendlyName);
|
||||
}
|
||||
}
|
||||
}
|
||||
protected void ButtonSearch_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
this.PageNumber = 1;
|
||||
}
|
||||
protected void ButtonChangePageSize_Click(object sender, EventArgs e)
|
||||
{
|
||||
int pageSize;
|
||||
if (int.TryParse(this.HiddenPageSize.Value, out pageSize))
|
||||
{
|
||||
this.PageSize = pageSize;
|
||||
}
|
||||
this.PageNumber = 1;
|
||||
}
|
||||
protected void ButtonDeleteSelectedAlertTemplates_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.LabelErrorMessages.Text = string.Empty;
|
||||
Guid[] array = ManageAlertsDataUtil.ParseToGuidArray(this.HiddenSelectedAlertTemplates.Value, ',');
|
||||
try
|
||||
{
|
||||
base.AlertContext.RemoveManagedAlertTemplates(array);
|
||||
}
|
||||
catch (RemoveAlertTemplatesException ex)
|
||||
{
|
||||
foreach (KeyValuePair<Guid, Exception> current in ex.alertTemplateErrors)
|
||||
{
|
||||
string arg = string.Format(base.GetGlobalString("alertmanager", "Error_FailedToDeleteAlertTemplate"), current.Key.ToString());
|
||||
Label expr_7E = this.LabelErrorMessages;
|
||||
expr_7E.Text += string.Format("<strong>{2}:</strong> {0} {1}<br/>", arg, current.Value.Message, current.Value.GetType().ToString());
|
||||
}
|
||||
if (ex.alertTemplateErrors.Count > 0)
|
||||
{
|
||||
Label expr_E3 = this.LabelErrorMessages;
|
||||
expr_E3.Text += "<br/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,318 @@
|
|||
using Microsoft.SharePoint;
|
||||
using Microsoft.SharePoint.WebControls;
|
||||
using SPSolutions.SharePoint.AlertManager.Administration.Resources;
|
||||
using SPSolutions.SharePoint.AlertManager.WebControls;
|
||||
using SPSolutions.SharePoint.Alerts;
|
||||
using SPSolutions.SharePoint.Filters;
|
||||
using SPSolutions.SharePoint.WebControls;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
namespace SPSolutions.SharePoint.AlertManager.Administration.ApplicationPages
|
||||
{
|
||||
public class ManageAlertsGlobalAdminPage : AlertGlobalAdminPageBase
|
||||
{
|
||||
protected SiteAdministrationSelector SiteCollectionSelector;
|
||||
protected WebSelector WebSelector;
|
||||
protected PlaceHolder PlaceHolderWebSelector;
|
||||
protected SPMenuSelector MenuPageSize;
|
||||
protected SPMenuSelector MenuView;
|
||||
protected SPManualPager ManualPager;
|
||||
protected HiddenField HiddenPageSize;
|
||||
protected HiddenField HiddenViewName;
|
||||
protected HiddenField HiddenSelectedAlerts;
|
||||
protected MenuTemplate MenuTemplateView;
|
||||
protected MenuTemplate MenuTemplatePageSize;
|
||||
protected InputFormSectionManageAlertFilter SectionManageAlertFilter;
|
||||
protected Repeater RepeaterAlertAssociations;
|
||||
protected Literal LiteralPageDescription;
|
||||
private AlertContext m_alertContext;
|
||||
private Guid? m_requestedListId;
|
||||
private int? m_requestedUserId;
|
||||
public new AlertContext AlertContext
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_alertContext == null)
|
||||
{
|
||||
if (this.WebSelector.CurrentItem != null)
|
||||
{
|
||||
this.AlertContext = new AlertContext(this.WebSelector.CurrentItem);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.m_alertContext = new AlertContext(base.Web);
|
||||
}
|
||||
}
|
||||
return this.m_alertContext;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_alertContext = value;
|
||||
}
|
||||
}
|
||||
public Guid AlertFilterListId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!(this.SectionManageAlertFilter.SelectedListId != Guid.Empty) && !this.Page.IsPostBack)
|
||||
{
|
||||
return this.RequestedListId;
|
||||
}
|
||||
return this.SectionManageAlertFilter.SelectedListId;
|
||||
}
|
||||
}
|
||||
public int AlertFilterUserId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.SectionManageAlertFilter.SelectedUserId == 0 && !this.Page.IsPostBack)
|
||||
{
|
||||
return this.RequestedUserId;
|
||||
}
|
||||
return this.SectionManageAlertFilter.SelectedUserId;
|
||||
}
|
||||
}
|
||||
public int CurrentUserId
|
||||
{
|
||||
get
|
||||
{
|
||||
return SPContext.Current.Web.CurrentUser.ID;
|
||||
}
|
||||
}
|
||||
public int NumberOfRecords
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ManualPager.NumberOfRecords;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ManualPager.NumberOfRecords = (value);
|
||||
}
|
||||
}
|
||||
public int PageNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ManualPager.PageNumber;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ManualPager.PageNumber = (value);
|
||||
}
|
||||
}
|
||||
public int PageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ManualPager.PageSize;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ManualPager.PageSize = (value);
|
||||
}
|
||||
}
|
||||
public new Guid RequestedListId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_requestedListId.HasValue)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.m_requestedListId = new Guid?(new Guid(base.Request.QueryString[ConfigRes.QueryString_ListId]));
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
this.m_requestedListId = new Guid?(Guid.Empty);
|
||||
}
|
||||
}
|
||||
return this.m_requestedListId.Value;
|
||||
}
|
||||
}
|
||||
public int RequestedUserId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.m_requestedUserId.HasValue)
|
||||
{
|
||||
int value;
|
||||
if (!int.TryParse(base.Request.QueryString[ConfigRes.QueryString_UserId], out value))
|
||||
{
|
||||
value = 0;
|
||||
}
|
||||
this.m_requestedUserId = new int?(value);
|
||||
}
|
||||
return this.m_requestedUserId.Value;
|
||||
}
|
||||
}
|
||||
public AlertAssociationGroups ViewAssociationGroup
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.ViewState["ViewAssociationGroup"] == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return (AlertAssociationGroups)this.ViewState["ViewAssociationGroup"];
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ViewState["ViewAssociationGroup"] = value;
|
||||
}
|
||||
}
|
||||
private void SetManageAlertFilterStatus()
|
||||
{
|
||||
this.SectionManageAlertFilter.AlertContext = (this.AlertContext);
|
||||
if (!this.Page.IsPostBack)
|
||||
{
|
||||
if (this.SectionManageAlertFilter.ShowListFilter && this.RequestedListId != Guid.Empty)
|
||||
{
|
||||
this.SectionManageAlertFilter.SelectedListId = (this.RequestedListId);
|
||||
}
|
||||
if (this.RequestedUserId != 0)
|
||||
{
|
||||
this.SectionManageAlertFilter.SelectedUserId = (this.RequestedUserId);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void SetToolbarStatus()
|
||||
{
|
||||
this.MenuPageSize.MenuText = (this.PageSize.ToString());
|
||||
this.MenuView.MenuText = (AlertResourceManager.GetAssociationGroupName(this.ViewAssociationGroup));
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
ManageAlertsDataUtil.AddPageSizeMenuTemplates(this.MenuTemplatePageSize, "return ChangePageSize('{0}');");
|
||||
ManageAlertsDataUtil.AddViewMenuTemplates(this.MenuTemplateView, "return ChangeView('{0}');");
|
||||
}
|
||||
protected override void OnPreRender(EventArgs e)
|
||||
{
|
||||
base.OnPreRender(e);
|
||||
this.SetManageAlertFilterStatus();
|
||||
this.SetToolbarStatus();
|
||||
this.PopulateAlertAssoications();
|
||||
}
|
||||
protected override void OnUnload(EventArgs e)
|
||||
{
|
||||
if (this.AlertContext != null && this.AlertContext.CurrentWeb != null)
|
||||
{
|
||||
this.AlertContext.CurrentWeb.Dispose();
|
||||
}
|
||||
base.OnUnload(e);
|
||||
}
|
||||
private void PopulateAlertAssoications()
|
||||
{
|
||||
int numberOfRecords;
|
||||
SPAlertAssociationContainer[] pagedAlertAssociations = this.GetPagedAlertAssociations(out numberOfRecords);
|
||||
this.NumberOfRecords = numberOfRecords;
|
||||
this.RepeaterAlertAssociations.DataSource = pagedAlertAssociations;
|
||||
this.RepeaterAlertAssociations.DataBind();
|
||||
}
|
||||
private SPAlertAssociationContainer[] GetPagedAlertAssociations(out int numberOfRecords)
|
||||
{
|
||||
ISPAlertFilter alertFilter = this.GetAlertFilter();
|
||||
SPAlertAssociationContainerCollection sPAlertAssociationContainerCollection = (this.AlertFilterUserId == 0) ? this.AlertContext.GetAlertAssociations(alertFilter, this.ViewAssociationGroup) : this.AlertContext.GetAlertAssociations(this.AlertFilterUserId, alertFilter, this.ViewAssociationGroup);
|
||||
numberOfRecords = ((sPAlertAssociationContainerCollection != null) ? sPAlertAssociationContainerCollection.Count : 0);
|
||||
if (numberOfRecords == 0)
|
||||
{
|
||||
return new SPAlertAssociationContainer[0];
|
||||
}
|
||||
return this.GetAlertAssociationsOnPage(sPAlertAssociationContainerCollection);
|
||||
}
|
||||
private SPAlertAssociationContainer[] GetAlertAssociationsOnPage(SPAlertAssociationContainerCollection alertAssociations)
|
||||
{
|
||||
PagingCalculator pagingCalculator = new PagingCalculator(alertAssociations.Count, this.PageSize, this.PageNumber);
|
||||
SPAlertAssociationContainer[] array = new SPAlertAssociationContainer[pagingCalculator.EndingIndex - pagingCalculator.BeginningIndex + 1];
|
||||
alertAssociations.CopyTo(array, pagingCalculator.BeginningIndex, array.Length);
|
||||
return array;
|
||||
}
|
||||
private ISPAlertFilter GetAlertFilter()
|
||||
{
|
||||
ISPAlertFilter iSPAlertFilter = new SPSolutions.SharePoint.Filters.SPAlertFilter();
|
||||
if (this.AlertFilterListId != Guid.Empty)
|
||||
{
|
||||
iSPAlertFilter = new SPAlertFilterIsList(iSPAlertFilter, this.AlertFilterListId);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.SectionManageAlertFilter.SearchText))
|
||||
{
|
||||
iSPAlertFilter = ((this.ViewAssociationGroup == null) ? new SPAlertFilterMatch(iSPAlertFilter, this.SectionManageAlertFilter.SearchText, SPAlertFilterMatchScope.Alert | SPAlertFilterMatchScope.User) : new SPAlertFilterMatch(iSPAlertFilter, this.SectionManageAlertFilter.SearchText, SPAlertFilterMatchScope.Alert | SPAlertFilterMatchScope.List));
|
||||
}
|
||||
return iSPAlertFilter;
|
||||
}
|
||||
protected void RepeaterAlertAssociations_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Repeater repeater = (Repeater)e.Item.FindControl("RepeaterAlerts");
|
||||
SPAlertAssociationContainer sPAlertAssociationContainer = (SPAlertAssociationContainer)e.Item.DataItem;
|
||||
repeater.DataSource = sPAlertAssociationContainer.Alerts;
|
||||
repeater.DataBind();
|
||||
}
|
||||
protected void RepeaterAlerts_ItemDataBound(object sender, RepeaterItemEventArgs e)
|
||||
{
|
||||
if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Microsoft.SharePoint.WebControls.Menu menu = (Microsoft.SharePoint.WebControls.Menu)e.Item.FindControl("MenuItemContext");
|
||||
SPAlert sPAlert = e.Item.DataItem as SPAlert;
|
||||
menu.Text = (sPAlert.Title);
|
||||
menu.TokenNamesAndValues.Add("ALERTID", sPAlert.ID.ToString());
|
||||
menu.TokenNamesAndValues.Add("ALERTTITLE", sPAlert.Title);
|
||||
}
|
||||
protected void SiteCollectionSelector_ContextChange(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.Page.IsPostBack && this.SiteCollectionSelector.CurrentItem != null)
|
||||
{
|
||||
this.WebSelector.SiteCollectionUrl = (this.SiteCollectionSelector.CurrentItem.Url);
|
||||
}
|
||||
}
|
||||
protected void WebSelector_ContextChange(object sender, EventArgs e)
|
||||
{
|
||||
if (this.WebSelector.CurrentItem != null)
|
||||
{
|
||||
this.AlertContext = new AlertContext(this.WebSelector.CurrentItem);
|
||||
return;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.WebSelector.SiteCollectionUrl))
|
||||
{
|
||||
this.WebSelector.CurrentId = (this.WebSelector.DefaultSelectionIdPublic());
|
||||
}
|
||||
}
|
||||
protected void SectionManageAlertFilter_Search(object sender, EventArgs e)
|
||||
{
|
||||
this.PageNumber = 1;
|
||||
}
|
||||
protected void ButtonChangePageSize_Click(object sender, EventArgs e)
|
||||
{
|
||||
int pageSize;
|
||||
if (int.TryParse(this.HiddenPageSize.Value, out pageSize))
|
||||
{
|
||||
this.PageSize = pageSize;
|
||||
}
|
||||
this.PageNumber = 1;
|
||||
}
|
||||
protected void ButtonChangeView_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Enum.IsDefined(typeof(AlertAssociationGroups), this.HiddenViewName.Value))
|
||||
{
|
||||
this.ViewAssociationGroup = (AlertAssociationGroups)Enum.Parse(typeof(AlertAssociationGroups), this.HiddenViewName.Value);
|
||||
}
|
||||
this.PageNumber = 1;
|
||||
}
|
||||
protected void ButtonDeleteSelectedAlerts_Click(object sender, EventArgs e)
|
||||
{
|
||||
Guid[] array = ManageAlertsDataUtil.ParseToGuidArray(this.HiddenSelectedAlerts.Value, ',');
|
||||
this.AlertContext.RemoveAlerts(array);
|
||||
}
|
||||
protected void ButtonToggleStatusSelectedAlerts_Click(object sender, EventArgs e)
|
||||
{
|
||||
Guid[] array = ManageAlertsDataUtil.ParseToGuidArray(this.HiddenSelectedAlerts.Value, ',');
|
||||
this.AlertContext.ToggleAlertStatus(array);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
|
||||
[assembly: AssemblyCompany("SharePoint Solutions")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCopyright("Copyright © SharePoint Solutions 2006")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyFileVersion("1.0.9182.1")]
|
||||
[assembly: AssemblyKeyName("SPSolutions")]
|
||||
[assembly: AssemblyProduct("SharePoint Solutions Base Class Library")]
|
||||
[assembly: AssemblyTitle("SPSolutions.Common")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: SatelliteContractVersion("1.0.0.0")]
|
||||
[assembly: CompilationRelaxations(8)]
|
||||
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("4662d0d5-16fd-4bc6-984b-8ec47410708e")]
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{B67399F5-510C-4705-B4D7-051A95EEFC6C}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<OutputType>Library</OutputType>
|
||||
<AssemblyName>SPSolutions.Common</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<AssemblyOriginatorKeyFile>keyfile.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Web" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SPSolutions.Configuration.Provider\ProvidersHelper.cs" />
|
||||
<Compile Include="SPSolutions.Configuration\ConfigUtil.cs" />
|
||||
<Compile Include="SPSolutions.Net.Configuration\MailBodySection.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\FileMailBodyProvider.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\MailBodyManager.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\MailBodyProvider.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\MailBodyProviderCollection.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\MailDefinition.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\MailDefinitionProvider.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\MailDefinitionProviderCollection.cs" />
|
||||
<Compile Include="SPSolutions.Net.Mail\ResourceMailBodyProvider.cs" />
|
||||
<Compile Include="SPSolutions.Resources\ConfigRes.cs" />
|
||||
<Compile Include="SPSolutions.Resources\ErrorsRes.cs" />
|
||||
<Compile Include="SPSolutions.Resources\StringsRes.cs" />
|
||||
<Compile Include="SPSolutions.Serialization\SerializationUtil.cs" />
|
||||
<Compile Include="SPSolutions.SharePoint.SoftwareSite\EnumUtil.cs" />
|
||||
<Compile Include="SPSolutions.Trust\DigestTrustRequest.cs" />
|
||||
<Compile Include="SPSolutions.Trust\ITrustRequest.cs" />
|
||||
<Compile Include="SPSolutions.Trust\TrustException.cs" />
|
||||
<Compile Include="SPSolutions.Trust\TrustUtil.cs" />
|
||||
<Compile Include="SPSolutions.Web\ControlUtil.cs" />
|
||||
<Compile Include="SPSolutions.Web\HttpUtil.cs" />
|
||||
<Compile Include="SPSolutions.Web\QueryString.cs" />
|
||||
<Compile Include="SPSolutions\ArgumentNullOrEmptyException.cs" />
|
||||
<Compile Include="SPSolutions\AlertManagerConstants.cs" />
|
||||
<Compile Include="SPSolutions\IntegerUtil.cs" />
|
||||
<Compile Include="SPSolutions\PagingCalculator.cs" />
|
||||
<Compile Include="SPSolutions\StringUtil.cs" />
|
||||
<Compile Include="SPSolutions\ValidationUtil.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="SPSolutions.Resources\ConfigRes.resources" />
|
||||
<EmbeddedResource Include="SPSolutions.Resources\ErrorsRes.resources" />
|
||||
<EmbeddedResource Include="SPSolutions.Resources\StringsRes.resources" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="keyfile.snk" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.Configuration;
|
||||
using System.Configuration.Provider;
|
||||
namespace SPSolutions.Configuration.Provider
|
||||
{
|
||||
public class ProvidersHelper
|
||||
{
|
||||
public static ProviderBase InstantiateProvider(ProviderSettings providerSettings, Type providerType)
|
||||
{
|
||||
ProviderBase providerBase = null;
|
||||
try
|
||||
{
|
||||
string text = (providerSettings.Type == null) ? null : providerSettings.Type.Trim();
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
throw new ArgumentException("Provider_no_type_name");
|
||||
}
|
||||
Type type = ConfigUtil.GetType(text, "type", providerSettings, true, true);
|
||||
if (!providerType.IsAssignableFrom(type))
|
||||
{
|
||||
throw new ArgumentException("Provider_must_implement_type");
|
||||
}
|
||||
providerBase = (ProviderBase)Activator.CreateInstance(type);
|
||||
NameValueCollection parameters = providerSettings.Parameters;
|
||||
NameValueCollection nameValueCollection = new NameValueCollection(parameters.Count, StringComparer.Ordinal);
|
||||
foreach (string name in parameters)
|
||||
{
|
||||
nameValueCollection[name] = parameters[name];
|
||||
}
|
||||
providerBase.Initialize(providerSettings.Name, nameValueCollection);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex is ConfigurationException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
throw new ConfigurationErrorsException(ex.Message, providerSettings.ElementInformation.Properties["type"].Source, providerSettings.ElementInformation.Properties["type"].LineNumber);
|
||||
}
|
||||
return providerBase;
|
||||
}
|
||||
public static void InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
|
||||
{
|
||||
foreach (ProviderSettings providerSettings in configProviders)
|
||||
{
|
||||
providers.Add(ProvidersHelper.InstantiateProvider(providerSettings, providerType));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
using System.Threading;
|
||||
using System.Xml;
|
||||
namespace SPSolutions.Configuration
|
||||
{
|
||||
public class ConfigUtil
|
||||
{
|
||||
public static void CheckAssignableType(Type baseType, Type type, ConfigurationElement configElement, string propertyName)
|
||||
{
|
||||
if (!baseType.IsAssignableFrom(type))
|
||||
{
|
||||
throw new ConfigurationErrorsException("Type_doesnt_inherit_from_type", configElement.ElementInformation.Properties[propertyName].Source, configElement.ElementInformation.Properties[propertyName].LineNumber);
|
||||
}
|
||||
}
|
||||
public static void CheckAssignableType(Type baseType, Type baseType2, Type type, ConfigurationElement configElement, string propertyName)
|
||||
{
|
||||
if (!baseType.IsAssignableFrom(type) && !baseType2.IsAssignableFrom(type))
|
||||
{
|
||||
throw new ConfigurationErrorsException("Type_doesnt_inherit_from_type", configElement.ElementInformation.Properties[propertyName].Source, configElement.ElementInformation.Properties[propertyName].LineNumber);
|
||||
}
|
||||
}
|
||||
public static void CheckBaseType(Type expectedBaseType, Type userBaseType, string propertyName, ConfigurationElement configElement)
|
||||
{
|
||||
if (!expectedBaseType.IsAssignableFrom(userBaseType))
|
||||
{
|
||||
throw new ConfigurationErrorsException("Invalid_type_to_inherit_from", configElement.ElementInformation.Properties[propertyName].Source, configElement.ElementInformation.Properties[propertyName].LineNumber);
|
||||
}
|
||||
}
|
||||
internal static Type GetType(string typeName, XmlNode node)
|
||||
{
|
||||
return ConfigUtil.GetType(typeName, node, false);
|
||||
}
|
||||
internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement)
|
||||
{
|
||||
return ConfigUtil.GetType(typeName, propertyName, configElement, true);
|
||||
}
|
||||
internal static Type GetType(string typeName, XmlNode node, bool ignoreCase)
|
||||
{
|
||||
return ConfigUtil.GetType(typeName, null, null, node, true, ignoreCase);
|
||||
}
|
||||
internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement, bool checkAptcaBit)
|
||||
{
|
||||
return ConfigUtil.GetType(typeName, propertyName, configElement, checkAptcaBit, false);
|
||||
}
|
||||
internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement, bool checkAptcaBit, bool ignoreCase)
|
||||
{
|
||||
return ConfigUtil.GetType(typeName, propertyName, configElement, null, checkAptcaBit, ignoreCase);
|
||||
}
|
||||
internal static Type GetType(string typeName, string propertyName, ConfigurationElement configElement, XmlNode node, bool checkAptcaBit, bool ignoreCase)
|
||||
{
|
||||
Type type;
|
||||
try
|
||||
{
|
||||
type = Type.GetType(typeName, true, ignoreCase);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex is ThreadAbortException || ex is StackOverflowException || ex is OutOfMemoryException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
if (node != null)
|
||||
{
|
||||
throw new ConfigurationErrorsException(ex.Message, ex, node);
|
||||
}
|
||||
throw new ConfigurationErrorsException(ex.Message, ex, configElement.ElementInformation.Properties[propertyName].Source, configElement.ElementInformation.Properties[propertyName].LineNumber);
|
||||
}
|
||||
return type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
namespace SPSolutions.Net.Configuration
|
||||
{
|
||||
public sealed class MailBodySection : ConfigurationSection
|
||||
{
|
||||
[ConfigurationProperty("providers")]
|
||||
public ProviderSettingsCollection Providers
|
||||
{
|
||||
get
|
||||
{
|
||||
return (ProviderSettingsCollection)base["providers"];
|
||||
}
|
||||
}
|
||||
[ConfigurationProperty("defaultProvider", DefaultValue = "FileMailBodyProvider"), StringValidator(MinLength = 1)]
|
||||
public string DefaultProvider
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)base["defaultProvider"];
|
||||
}
|
||||
set
|
||||
{
|
||||
base["defaultProvider"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.Configuration.Provider;
|
||||
using System.IO;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public class FileMailBodyProvider : MailBodyProvider
|
||||
{
|
||||
private string _templateSourceDirectory;
|
||||
public string TemplateSourceDirectory
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._templateSourceDirectory;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._templateSourceDirectory = value;
|
||||
}
|
||||
}
|
||||
public override void Initialize(string name, NameValueCollection config)
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
throw new ArgumentNullException("config");
|
||||
}
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
name = "FileMailBodyProvider";
|
||||
}
|
||||
if (string.IsNullOrEmpty(config["description"]))
|
||||
{
|
||||
config.Remove("description");
|
||||
config.Add("description", "ProfileSqlProvider_description");
|
||||
}
|
||||
base.Initialize(name, config);
|
||||
this._templateSourceDirectory = config["templateSourceDirectory"];
|
||||
if (string.IsNullOrEmpty(this._templateSourceDirectory))
|
||||
{
|
||||
throw new ProviderException("Connection_name_not_specified");
|
||||
}
|
||||
config.Remove("templateSourceDirectory");
|
||||
if (config.Count > 0)
|
||||
{
|
||||
string key = config.GetKey(0);
|
||||
if (!string.IsNullOrEmpty(key))
|
||||
{
|
||||
throw new ProviderException("Provider_unrecognized_attribute");
|
||||
}
|
||||
}
|
||||
}
|
||||
public override string RetrieveMailBody(string bodyContainerName)
|
||||
{
|
||||
string result = string.Empty;
|
||||
FileInfo fileInfo = new FileInfo(this.TemplateSourceDirectory + bodyContainerName);
|
||||
if (!fileInfo.Exists)
|
||||
{
|
||||
throw new Exception("no file");
|
||||
}
|
||||
using (TextReader textReader = new StreamReader(fileInfo.FullName))
|
||||
{
|
||||
result = textReader.ReadToEnd();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
using SPSolutions.Configuration.Provider;
|
||||
using SPSolutions.Net.Configuration;
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Configuration.Provider;
|
||||
using System.Threading;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public static class MailBodyManager
|
||||
{
|
||||
private static MailBodyProvider _provider = null;
|
||||
private static MailBodyProviderCollection _providers = null;
|
||||
private static object _lock = new object();
|
||||
public static MailBodyProvider Provider
|
||||
{
|
||||
get
|
||||
{
|
||||
MailBodyManager.LoadProviders();
|
||||
return MailBodyManager._provider;
|
||||
}
|
||||
}
|
||||
public static MailBodyProviderCollection Providers
|
||||
{
|
||||
get
|
||||
{
|
||||
MailBodyManager.LoadProviders();
|
||||
return MailBodyManager._providers;
|
||||
}
|
||||
}
|
||||
private static void LoadProviders()
|
||||
{
|
||||
if (MailBodyManager._provider == null)
|
||||
{
|
||||
object @lock;
|
||||
Monitor.Enter(@lock = MailBodyManager._lock);
|
||||
try
|
||||
{
|
||||
if (MailBodyManager._provider == null)
|
||||
{
|
||||
MailBodySection mailBodySection = (MailBodySection)ConfigurationManager.GetSection("spSolutions.net.mail/mailBody");
|
||||
MailBodyManager._providers = new MailBodyProviderCollection();
|
||||
ProvidersHelper.InstantiateProviders(mailBodySection.Providers, MailBodyManager._providers, typeof(MailBodyProvider));
|
||||
MailBodyManager._provider = MailBodyManager._providers[mailBodySection.DefaultProvider];
|
||||
if (MailBodyManager._provider == null)
|
||||
{
|
||||
throw new ProviderException("Unable to load default MailBodyProvider");
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Monitor.Exit(@lock);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
using System.Configuration.Provider;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public abstract class MailBodyProvider : ProviderBase
|
||||
{
|
||||
public abstract string RetrieveMailBody(string bodyContainerName);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Configuration.Provider;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public sealed class MailBodyProviderCollection : ProviderCollection
|
||||
{
|
||||
public new MailBodyProvider this[string name]
|
||||
{
|
||||
get
|
||||
{
|
||||
return (MailBodyProvider)base[name];
|
||||
}
|
||||
}
|
||||
public override void Add(ProviderBase provider)
|
||||
{
|
||||
if (provider == null)
|
||||
{
|
||||
throw new ArgumentNullException("provider");
|
||||
}
|
||||
if (!(provider is MailBodyProvider))
|
||||
{
|
||||
throw new ArgumentException("Provider_must_implement_type", "provider");
|
||||
}
|
||||
base.Add(provider);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,189 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Mail;
|
||||
using System.Text.RegularExpressions;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public class MailDefinition
|
||||
{
|
||||
private string _bodyContainerName;
|
||||
private string _cc;
|
||||
private string _from;
|
||||
private bool _isBodyHtml;
|
||||
private MailPriority _priority;
|
||||
private string _subject;
|
||||
private string _body;
|
||||
public string BodyContainerName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._bodyContainerName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._bodyContainerName = value;
|
||||
}
|
||||
}
|
||||
public string Body
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._body;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._body = value;
|
||||
}
|
||||
}
|
||||
public string CC
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._cc;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._cc = value;
|
||||
}
|
||||
}
|
||||
public string From
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._from;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._from = value;
|
||||
}
|
||||
}
|
||||
public bool IsBodyHtml
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._isBodyHtml;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._isBodyHtml = value;
|
||||
}
|
||||
}
|
||||
public MailPriority Priority
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._priority;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._priority = value;
|
||||
}
|
||||
}
|
||||
public string Subject
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._subject;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._subject = value;
|
||||
}
|
||||
}
|
||||
public MailMessage CreateMailMessage(string recipients, IDictionary<string, string> replacements)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this._body))
|
||||
{
|
||||
return this.CreateMailMessage(MailBodyManager.Provider, recipients, replacements);
|
||||
}
|
||||
return MailDefinition.CreateMailMessage(this.From, recipients, this.CC, this.Subject, this.Body, this.Priority, this.IsBodyHtml, replacements);
|
||||
}
|
||||
public MailMessage CreateMailMessage(string providerName, string recipients, IDictionary<string, string> replacements)
|
||||
{
|
||||
return this.CreateMailMessage(MailBodyManager.Providers[providerName], recipients, replacements);
|
||||
}
|
||||
public MailMessage CreateMailMessage(MailBodyProvider provider, string recipients, IDictionary<string, string> replacements)
|
||||
{
|
||||
return this.CreateMailMessage(recipients, replacements, provider.RetrieveMailBody(this.BodyContainerName));
|
||||
}
|
||||
public MailMessage CreateMailMessage(string recipients, IDictionary<string, string> replacements, string body)
|
||||
{
|
||||
string from = this.From;
|
||||
MailMessage mailMessage = null;
|
||||
try
|
||||
{
|
||||
mailMessage = new MailMessage(from, recipients);
|
||||
if (!string.IsNullOrEmpty(this.CC))
|
||||
{
|
||||
mailMessage.CC.Add(this.CC);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.Subject))
|
||||
{
|
||||
mailMessage.Subject = this.Subject;
|
||||
}
|
||||
mailMessage.Priority = this.Priority;
|
||||
if (replacements != null && !string.IsNullOrEmpty(body))
|
||||
{
|
||||
foreach (string current in replacements.Keys)
|
||||
{
|
||||
string text = replacements[current];
|
||||
if (current == null || text == null)
|
||||
{
|
||||
throw new ArgumentException("MailDefinition_InvalidReplacements");
|
||||
}
|
||||
body = Regex.Replace(body, current, text, RegexOptions.IgnoreCase);
|
||||
}
|
||||
}
|
||||
mailMessage.Body = body;
|
||||
mailMessage.IsBodyHtml = this.IsBodyHtml;
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (mailMessage != null)
|
||||
{
|
||||
mailMessage.Dispose();
|
||||
}
|
||||
throw;
|
||||
}
|
||||
return mailMessage;
|
||||
}
|
||||
public static MailMessage CreateMailMessage(string from, string recipients, string cc, string subject, string body, MailPriority priority, bool isBodyHtml, IDictionary<string, string> replacements)
|
||||
{
|
||||
MailMessage mailMessage = null;
|
||||
try
|
||||
{
|
||||
mailMessage = new MailMessage(from, recipients);
|
||||
mailMessage.Priority = priority;
|
||||
mailMessage.IsBodyHtml = isBodyHtml;
|
||||
if (!string.IsNullOrEmpty(cc))
|
||||
{
|
||||
mailMessage.CC.Add(cc);
|
||||
}
|
||||
if (replacements != null)
|
||||
{
|
||||
foreach (string current in replacements.Keys)
|
||||
{
|
||||
string text = replacements[current];
|
||||
if (current == null || text == null)
|
||||
{
|
||||
throw new ArgumentException("MailDefinition_InvalidReplacements");
|
||||
}
|
||||
subject = Regex.Replace(subject, current, text, RegexOptions.IgnoreCase);
|
||||
body = Regex.Replace(body, current, text, RegexOptions.IgnoreCase);
|
||||
}
|
||||
}
|
||||
mailMessage.Subject = subject;
|
||||
mailMessage.Body = body;
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (mailMessage != null)
|
||||
{
|
||||
mailMessage.Dispose();
|
||||
}
|
||||
throw;
|
||||
}
|
||||
return mailMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
using System.Configuration.Provider;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public abstract class MailDefinitionProvider : ProviderBase
|
||||
{
|
||||
public abstract MailDefinition RetrieveMailDefinition(string containerName);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Configuration.Provider;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public sealed class MailDefinitionProviderCollection : ProviderCollection
|
||||
{
|
||||
public new MailDefinitionProvider this[string name]
|
||||
{
|
||||
get
|
||||
{
|
||||
return (MailDefinitionProvider)base[name];
|
||||
}
|
||||
}
|
||||
public override void Add(ProviderBase provider)
|
||||
{
|
||||
if (provider == null)
|
||||
{
|
||||
throw new ArgumentNullException("provider");
|
||||
}
|
||||
if (!(provider is MailDefinitionProvider))
|
||||
{
|
||||
throw new ArgumentException("Provider_must_implement_type", "provider");
|
||||
}
|
||||
base.Add(provider);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
namespace SPSolutions.Net.Mail
|
||||
{
|
||||
public class ResourceMailBodyProvider : MailBodyProvider
|
||||
{
|
||||
public override string RetrieveMailBody(string bodyContainerName)
|
||||
{
|
||||
throw new Exception("The method or operation is not implemented.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
namespace SPSolutions.Resources
|
||||
{
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), DebuggerNonUserCode, CompilerGenerated]
|
||||
internal class ConfigRes
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
private static CultureInfo resourceCulture;
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (object.ReferenceEquals(ConfigRes.resourceMan, null))
|
||||
{
|
||||
ResourceManager resourceManager = new ResourceManager("SPSolutions.Resources.ConfigRes", typeof(ConfigRes).Assembly);
|
||||
ConfigRes.resourceMan = resourceManager;
|
||||
}
|
||||
return ConfigRes.resourceMan;
|
||||
}
|
||||
}
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return ConfigRes.resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
ConfigRes.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
internal static string DefaultDigestKeyName
|
||||
{
|
||||
get
|
||||
{
|
||||
return ConfigRes.ResourceManager.GetString("DefaultDigestKeyName", ConfigRes.resourceCulture);
|
||||
}
|
||||
}
|
||||
internal static string DefaultDigestValueKeyName
|
||||
{
|
||||
get
|
||||
{
|
||||
return ConfigRes.ResourceManager.GetString("DefaultDigestValueKeyName", ConfigRes.resourceCulture);
|
||||
}
|
||||
}
|
||||
internal ConfigRes()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -0,0 +1,58 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
namespace SPSolutions.Resources
|
||||
{
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), DebuggerNonUserCode, CompilerGenerated]
|
||||
internal class ErrorsRes
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
private static CultureInfo resourceCulture;
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (object.ReferenceEquals(ErrorsRes.resourceMan, null))
|
||||
{
|
||||
ResourceManager resourceManager = new ResourceManager("SPSolutions.Resources.ErrorsRes", typeof(ErrorsRes).Assembly);
|
||||
ErrorsRes.resourceMan = resourceManager;
|
||||
}
|
||||
return ErrorsRes.resourceMan;
|
||||
}
|
||||
}
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return ErrorsRes.resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
ErrorsRes.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
internal static string TrustException_NoHashAlgorithm
|
||||
{
|
||||
get
|
||||
{
|
||||
return ErrorsRes.ResourceManager.GetString("TrustException_NoHashAlgorithm", ErrorsRes.resourceCulture);
|
||||
}
|
||||
}
|
||||
internal static string TrustException_NoHashKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return ErrorsRes.ResourceManager.GetString("TrustException_NoHashKey", ErrorsRes.resourceCulture);
|
||||
}
|
||||
}
|
||||
internal ErrorsRes()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
namespace SPSolutions.Resources
|
||||
{
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), DebuggerNonUserCode, CompilerGenerated]
|
||||
internal class StringsRes
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
private static CultureInfo resourceCulture;
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (object.ReferenceEquals(StringsRes.resourceMan, null))
|
||||
{
|
||||
ResourceManager resourceManager = new ResourceManager("SPSolutions.Resources.StringsRes", typeof(StringsRes).Assembly);
|
||||
StringsRes.resourceMan = resourceManager;
|
||||
}
|
||||
return StringsRes.resourceMan;
|
||||
}
|
||||
}
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return StringsRes.resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
StringsRes.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
internal static string DigestTrustRequest_NullOrEmptyDigestValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return StringsRes.ResourceManager.GetString("DigestTrustRequest_NullOrEmptyDigestValue", StringsRes.resourceCulture);
|
||||
}
|
||||
}
|
||||
internal StringsRes()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -0,0 +1,76 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
namespace SPSolutions.Serialization
|
||||
{
|
||||
public static class SerializationUtil
|
||||
{
|
||||
public static string Serialize<T>(T objToSerialize) where T : class
|
||||
{
|
||||
if (objToSerialize == null)
|
||||
{
|
||||
throw new ArgumentNullException("objToSerialize");
|
||||
}
|
||||
XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));
|
||||
StringWriter stringWriter = new StringWriter();
|
||||
xmlSerializer.Serialize(stringWriter, objToSerialize);
|
||||
return stringWriter.ToString();
|
||||
}
|
||||
public static T Deserialize<T>(string stringToDeserialize) where T : class
|
||||
{
|
||||
if (string.IsNullOrEmpty(stringToDeserialize))
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));
|
||||
StringReader textReader = new StringReader(stringToDeserialize);
|
||||
return (T)((object)xmlSerializer.Deserialize(textReader));
|
||||
}
|
||||
public static string SerializeObject(object objToSerialize, Type typ)
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
XmlSerializer xmlSerializer = new XmlSerializer(typ);
|
||||
XmlTextWriter xmlTextWriter = new XmlTextWriter(memoryStream, Encoding.UTF8);
|
||||
xmlSerializer.Serialize(xmlTextWriter, objToSerialize);
|
||||
memoryStream = (MemoryStream)xmlTextWriter.BaseStream;
|
||||
return SerializationUtil.UTF8ByteArrayToString(memoryStream.ToArray());
|
||||
}
|
||||
public static object DeserializeObject(string stringToDeserialize, Type typ)
|
||||
{
|
||||
if (string.IsNullOrEmpty(stringToDeserialize))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
XmlSerializer xmlSerializer = new XmlSerializer(typ);
|
||||
MemoryStream memoryStream = new MemoryStream(SerializationUtil.StringToUTF8ByteArray(stringToDeserialize));
|
||||
new XmlTextWriter(memoryStream, Encoding.UTF8);
|
||||
return xmlSerializer.Deserialize(memoryStream);
|
||||
}
|
||||
public static string UTF8ByteArrayToString(byte[] characters)
|
||||
{
|
||||
UTF8Encoding uTF8Encoding = new UTF8Encoding();
|
||||
return uTF8Encoding.GetString(characters);
|
||||
}
|
||||
public static byte[] StringToUTF8ByteArray(string pXmlString)
|
||||
{
|
||||
UTF8Encoding uTF8Encoding = new UTF8Encoding();
|
||||
if (string.IsNullOrEmpty(pXmlString))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return uTF8Encoding.GetBytes(pXmlString);
|
||||
}
|
||||
public static string GetAssemblyManifestResourceFileContent(string filename)
|
||||
{
|
||||
Assembly callingAssembly = Assembly.GetCallingAssembly();
|
||||
Stream manifestResourceStream = callingAssembly.GetManifestResourceStream(callingAssembly.GetName().Name + "." + filename);
|
||||
StreamReader streamReader = new StreamReader(manifestResourceStream);
|
||||
string result = streamReader.ReadToEnd();
|
||||
streamReader.Close();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
namespace SPSolutions.SharePoint.SoftwareSite
|
||||
{
|
||||
public class EnumUtil
|
||||
{
|
||||
public static string GetDisplayName<T>(T enumValue) where T : struct
|
||||
{
|
||||
Type typeFromHandle = typeof(T);
|
||||
if (!typeFromHandle.IsEnum)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
string text = enumValue.ToString();
|
||||
FieldInfo field = typeFromHandle.GetField(text);
|
||||
if (field == null)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
object[] customAttributes = field.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
||||
if (customAttributes == null || customAttributes.Length == 0)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
DescriptionAttribute descriptionAttribute = customAttributes[0] as DescriptionAttribute;
|
||||
if (descriptionAttribute == null)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
return descriptionAttribute.Description;
|
||||
}
|
||||
public static string GetDisplayNames<T>(T enumValues) where T : struct
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
Type typeFromHandle = typeof(T);
|
||||
if (!typeFromHandle.IsEnum)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
ulong num = EnumUtil.ToUInt64(enumValues);
|
||||
IEnumerator enumerator = Enum.GetValues(typeFromHandle).GetEnumerator();
|
||||
try
|
||||
{
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
T t = (T)((object)enumerator.Current);
|
||||
ulong num2 = EnumUtil.ToUInt64(t);
|
||||
if ((num & num2) == num2)
|
||||
{
|
||||
string displayName = EnumUtil.GetDisplayName<T>(t);
|
||||
if (stringBuilder.Length != 0)
|
||||
{
|
||||
stringBuilder.Append(", ");
|
||||
}
|
||||
stringBuilder.Append(displayName);
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
IDisposable disposable = enumerator as IDisposable;
|
||||
if (disposable != null)
|
||||
{
|
||||
disposable.Dispose();
|
||||
}
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
private static ulong ToUInt64(object value)
|
||||
{
|
||||
switch (Convert.GetTypeCode(value))
|
||||
{
|
||||
case TypeCode.SByte:
|
||||
case TypeCode.Int16:
|
||||
case TypeCode.Int32:
|
||||
case TypeCode.Int64:
|
||||
return (ulong)Convert.ToInt64(value, CultureInfo.InvariantCulture);
|
||||
case TypeCode.Byte:
|
||||
case TypeCode.UInt16:
|
||||
case TypeCode.UInt32:
|
||||
case TypeCode.UInt64:
|
||||
return Convert.ToUInt64(value, CultureInfo.InvariantCulture);
|
||||
default:
|
||||
throw new InvalidOperationException("Unknown enumeration type");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,156 @@
|
|||
using SPSolutions.Resources;
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.Security.Cryptography;
|
||||
using System.Web;
|
||||
namespace SPSolutions.Trust
|
||||
{
|
||||
public class DigestTrustRequest : ITrustRequest
|
||||
{
|
||||
private string m_validationErrorMessage;
|
||||
private string m_digestKeyName;
|
||||
private string m_digestValue;
|
||||
private string m_digestValueKeyName;
|
||||
private HashAlgorithm m_hashAlgorithm;
|
||||
private string m_hashKey;
|
||||
private bool m_usingUserDefinedHashKey;
|
||||
public string DigestValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_digestValue;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_digestValue = value;
|
||||
}
|
||||
}
|
||||
public string DigestValueKeyName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_digestKeyName == null)
|
||||
{
|
||||
return ConfigRes.DefaultDigestValueKeyName;
|
||||
}
|
||||
return this.m_digestValueKeyName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_digestValueKeyName = value;
|
||||
}
|
||||
}
|
||||
public string DigestKeyName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.m_digestKeyName == null)
|
||||
{
|
||||
return ConfigRes.DefaultDigestKeyName;
|
||||
}
|
||||
return this.m_digestKeyName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_digestKeyName = value;
|
||||
}
|
||||
}
|
||||
public HashAlgorithm HashAlgorithm
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_hashAlgorithm;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_hashAlgorithm = value;
|
||||
}
|
||||
}
|
||||
public string HashKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_hashKey;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_hashKey = value;
|
||||
}
|
||||
}
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.DigestValue == null || this.DigestValue.Length == 0)
|
||||
{
|
||||
this.m_validationErrorMessage = StringsRes.DigestTrustRequest_NullOrEmptyDigestValue;
|
||||
return false;
|
||||
}
|
||||
this.m_validationErrorMessage = null;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public bool UsingUserDefinedHashKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_usingUserDefinedHashKey;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_usingUserDefinedHashKey = value;
|
||||
}
|
||||
}
|
||||
public string ValidationErrorMessage
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_validationErrorMessage;
|
||||
}
|
||||
}
|
||||
public DigestTrustRequest()
|
||||
{
|
||||
this.m_usingUserDefinedHashKey = false;
|
||||
}
|
||||
public DigestTrustRequest(string digestKeyName, string digestValueKeyName) : this()
|
||||
{
|
||||
this.m_digestKeyName = digestKeyName;
|
||||
this.m_digestValueKeyName = digestValueKeyName;
|
||||
}
|
||||
public string CreateDigest()
|
||||
{
|
||||
if (this.HashAlgorithm == null)
|
||||
{
|
||||
throw new TrustException(ErrorsRes.TrustException_NoHashAlgorithm);
|
||||
}
|
||||
string hashKey = this.HashKey;
|
||||
if (hashKey == null || hashKey.Length == 0)
|
||||
{
|
||||
throw new TrustException(ErrorsRes.TrustException_NoHashKey);
|
||||
}
|
||||
string input = string.Format("{0}{1}", this.DigestValue, hashKey);
|
||||
byte[] input2 = this.HashAlgorithm.ComputeHash(TrustUtil.StringToByteArray(input));
|
||||
return TrustUtil.ByteArrayToString(input2);
|
||||
}
|
||||
public string CreateQueryString(HttpServerUtility httpUtil)
|
||||
{
|
||||
string text = this.CreateDigest();
|
||||
return string.Format("{0}={1}&{2}={3}", new object[]
|
||||
{
|
||||
this.DigestValueKeyName,
|
||||
this.DigestValue,
|
||||
this.DigestKeyName,
|
||||
text
|
||||
});
|
||||
}
|
||||
public void FillFromQueryString(NameValueCollection queryString)
|
||||
{
|
||||
this.DigestValue = queryString[this.DigestValueKeyName];
|
||||
}
|
||||
public bool IsValidDigest(string digest)
|
||||
{
|
||||
string b = this.CreateDigest();
|
||||
return digest == b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.Web;
|
||||
namespace SPSolutions.Trust
|
||||
{
|
||||
public interface ITrustRequest
|
||||
{
|
||||
bool IsValid
|
||||
{
|
||||
get;
|
||||
}
|
||||
string ValidationErrorMessage
|
||||
{
|
||||
get;
|
||||
}
|
||||
string CreateQueryString(HttpServerUtility httpUtil);
|
||||
void FillFromQueryString(NameValueCollection queryString);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
namespace SPSolutions.Trust
|
||||
{
|
||||
public class TrustException : Exception
|
||||
{
|
||||
public TrustException()
|
||||
{
|
||||
}
|
||||
public TrustException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
public TrustException(string message, Exception inner) : base(message, inner)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
namespace SPSolutions.Trust
|
||||
{
|
||||
public class TrustUtil
|
||||
{
|
||||
public static string ByteArrayToString(byte[] input)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (int i = 0; i < input.Length; i++)
|
||||
{
|
||||
stringBuilder.Append(input[i].ToString("x2"));
|
||||
}
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
public static string DateTimeToString(DateTime input)
|
||||
{
|
||||
return input.ToString("s");
|
||||
}
|
||||
public static byte[] StringToByteArray(string input)
|
||||
{
|
||||
return Encoding.Default.GetBytes(input);
|
||||
}
|
||||
public static DateTime StringToDateTime(string input)
|
||||
{
|
||||
return DateTime.Parse(input);
|
||||
}
|
||||
public static string JSStringEncode(string input)
|
||||
{
|
||||
string text = input.Replace("\\", "\\\\");
|
||||
text = text.Replace("\"", "\\\"");
|
||||
return text.Replace("\n", "\\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
namespace SPSolutions.Web
|
||||
{
|
||||
public class ControlUtil
|
||||
{
|
||||
public static Control FindControl(Control control, string controlId)
|
||||
{
|
||||
if (control.ID == controlId)
|
||||
{
|
||||
return control;
|
||||
}
|
||||
foreach (Control control2 in control.Controls)
|
||||
{
|
||||
Control control3 = ControlUtil.FindControl(control2, controlId);
|
||||
if (control3 != null)
|
||||
{
|
||||
return control3;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static void PrintControls(HttpResponse response, Control control)
|
||||
{
|
||||
ControlUtil.PrintControls(response, control, 0);
|
||||
}
|
||||
private static void PrintControls(HttpResponse response, Control control, int depth)
|
||||
{
|
||||
for (int i = 0; i < depth; i++)
|
||||
{
|
||||
response.Write(" ");
|
||||
}
|
||||
response.Write("Control: " + control.ID + "<br>");
|
||||
foreach (Control control2 in control.Controls)
|
||||
{
|
||||
ControlUtil.PrintControls(response, control2, depth + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
namespace SPSolutions.Web
|
||||
{
|
||||
public class HttpUtil
|
||||
{
|
||||
public static string BuildCustomUrlWithFallback(string customUrl, string baseUrl, string fallbackUrl)
|
||||
{
|
||||
string text = string.IsNullOrEmpty(customUrl) ? fallbackUrl : customUrl;
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
if (text.Contains("://"))
|
||||
{
|
||||
return text;
|
||||
}
|
||||
if (string.IsNullOrEmpty(baseUrl))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
string str = (!baseUrl.EndsWith("/")) ? baseUrl : baseUrl.Substring(0, baseUrl.Length - 1);
|
||||
if (text.StartsWith("/"))
|
||||
{
|
||||
return str + text;
|
||||
}
|
||||
return str + "/" + text;
|
||||
}
|
||||
public static string AppendUrlQueryString(string url, string queryStringArgs)
|
||||
{
|
||||
if (string.IsNullOrEmpty(url))
|
||||
{
|
||||
return url;
|
||||
}
|
||||
int num = url.LastIndexOf("?");
|
||||
if (num == -1)
|
||||
{
|
||||
return url + "?" + queryStringArgs;
|
||||
}
|
||||
if (num == url.Length - 1)
|
||||
{
|
||||
return url + queryStringArgs;
|
||||
}
|
||||
return url + "&" + queryStringArgs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Web;
|
||||
namespace SPSolutions.Web
|
||||
{
|
||||
public class QueryString : NameValueCollection
|
||||
{
|
||||
private string document;
|
||||
public string Document
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.document;
|
||||
}
|
||||
}
|
||||
public QueryString()
|
||||
{
|
||||
}
|
||||
public QueryString(NameValueCollection clone) : base(clone)
|
||||
{
|
||||
}
|
||||
public static QueryString FromCurrent()
|
||||
{
|
||||
return QueryString.FromUrl(HttpContext.Current.Request.Url.AbsoluteUri);
|
||||
}
|
||||
public static QueryString FromUrl(string url)
|
||||
{
|
||||
string[] array = url.Split("?".ToCharArray());
|
||||
QueryString queryString = new QueryString();
|
||||
queryString.document = array[0];
|
||||
if (array.Length == 1)
|
||||
{
|
||||
return queryString;
|
||||
}
|
||||
string[] array2 = array[1].Split("&".ToCharArray());
|
||||
string[] array3 = array2;
|
||||
for (int i = 0; i < array3.Length; i++)
|
||||
{
|
||||
string text = array3[i];
|
||||
string[] array4 = text.Split("=".ToCharArray());
|
||||
if (array4.Length == 1)
|
||||
{
|
||||
queryString.Add(array4[0], "");
|
||||
}
|
||||
queryString.Add(array4[0], array4[1]);
|
||||
}
|
||||
return queryString;
|
||||
}
|
||||
public void ClearAllExcept(string except)
|
||||
{
|
||||
this.ClearAllExcept(new string[]
|
||||
{
|
||||
except
|
||||
});
|
||||
}
|
||||
public void ClearAllExcept(string[] except)
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
string[] allKeys = this.AllKeys;
|
||||
for (int i = 0; i < allKeys.Length; i++)
|
||||
{
|
||||
string text = allKeys[i];
|
||||
for (int j = 0; j < except.Length; j++)
|
||||
{
|
||||
string text2 = except[j];
|
||||
if (text.ToLower() == text2.ToLower() && !arrayList.Contains(text))
|
||||
{
|
||||
arrayList.Add(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (string name in arrayList)
|
||||
{
|
||||
this.Remove(name);
|
||||
}
|
||||
}
|
||||
public override void Add(string name, string value)
|
||||
{
|
||||
if (base[name] != null)
|
||||
{
|
||||
base[name] = value;
|
||||
return;
|
||||
}
|
||||
base.Add(name, value);
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return this.ToString(false);
|
||||
}
|
||||
public string ToString(bool includeUrl)
|
||||
{
|
||||
string[] array = new string[this.Count];
|
||||
string[] allKeys = this.AllKeys;
|
||||
for (int i = 0; i < allKeys.Length; i++)
|
||||
{
|
||||
array[i] = allKeys[i] + "=" + HttpUtility.UrlEncode(base[allKeys[i]]);
|
||||
}
|
||||
string text = string.Join("&", array);
|
||||
if (!string.IsNullOrEmpty(text) && !text.StartsWith("?"))
|
||||
{
|
||||
text = "?" + text;
|
||||
}
|
||||
if (includeUrl)
|
||||
{
|
||||
text = this.document + text;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue