You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
136 lines
7.0 KiB
136 lines
7.0 KiB
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Mailtexte.aspx.vb" Inherits="LPWeb.Mailtexte" ValidateRequest="false" %>
|
|
|
|
<%@ Register Src="~/Defaults/Header.ascx" TagPrefix="shu" TagName="Header" %>
|
|
<%@ Register Src="~/UserControls/Menu1.ascx" TagPrefix="shu" TagName="Menu" %>
|
|
<%@ Register Src="~/Defaults/Footer.ascx" TagPrefix="shu" TagName="Footer" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head id="Head1" runat="server">
|
|
<title></title>
|
|
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<telerik:RadScriptManager ID="ScriptManager1" runat="server"
|
|
EnableTheming="True">
|
|
<scripts>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI"
|
|
Name="Telerik.Web.UI.Common.Core.js">
|
|
</asp:ScriptReference>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI"
|
|
Name="Telerik.Web.UI.Common.jQuery.js">
|
|
</asp:ScriptReference>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI"
|
|
Name="Telerik.Web.UI.Common.jQueryInclude.js">
|
|
</asp:ScriptReference>
|
|
</scripts>
|
|
</telerik:RadScriptManager>
|
|
<div class="page">
|
|
<shu:Header runat="Server" ID="Header1"></shu:Header>
|
|
<shu:Menu runat="server" ID="Menu1" NavigationLanguage="VB"></shu:Menu>
|
|
|
|
<div class="main">
|
|
<h2>Mailtexte</h2>
|
|
<telerik:RadGrid ID="RadGrid1" runat="server"
|
|
AllowPaging="True" AllowSorting="True" CellSpacing="0" Culture="de-DE"
|
|
DataSourceID="SqlDataSource1" GridLines="None"
|
|
AllowAutomaticUpdates="True" AllowAutomaticDeletes="True"
|
|
AllowAutomaticInserts="True" AutoGenerateColumns="False">
|
|
<MasterTableView DataKeyNames="NrEintrag" CommandItemDisplay="Top"
|
|
DataSourceID="SqlDataSource1">
|
|
<CommandItemSettings ExportToPdfText="PDF-Export"
|
|
AddNewRecordText="Neuer Datensatz" ExportToExcelText="Excel-Export"
|
|
RefreshText="Aktualisieren"></CommandItemSettings>
|
|
|
|
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
|
|
<HeaderStyle Width="20px"></HeaderStyle>
|
|
</RowIndicatorColumn>
|
|
|
|
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
|
|
<HeaderStyle Width="20px"></HeaderStyle>
|
|
</ExpandCollapseColumn>
|
|
|
|
<Columns>
|
|
<telerik:GridBoundColumn DataField="NrEintrag" DataType="System.Int32"
|
|
FilterControlAltText="Filter NrEintrag column" HeaderText="Nr"
|
|
ReadOnly="True" SortExpression="NrEintrag" UniqueName="NrEintrag">
|
|
<HeaderStyle Width="30px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Bezeichnung"
|
|
FilterControlAltText="Filter Bezeichnung column" HeaderText="Bezeichnung"
|
|
SortExpression="Bezeichnung" UniqueName="Bezeichnung">
|
|
<HeaderStyle Width="100px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Betreff"
|
|
FilterControlAltText="Filter Betreff column" HeaderText="Betreff"
|
|
SortExpression="Betreff" UniqueName="Betreff" ColumnEditorID="EditBetreff">
|
|
<HeaderStyle Width="100px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridBoundColumn DataField="Inhalt"
|
|
FilterControlAltText="Filter Inhalt column" HeaderText="Inhalt"
|
|
SortExpression="Inhalt" UniqueName="Inhalt" ColumnEditorID="EditInhalt">
|
|
<HeaderStyle Width="100px" />
|
|
<ItemStyle Wrap="False" />
|
|
</telerik:GridBoundColumn>
|
|
<telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column"
|
|
HeaderText="" ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center">
|
|
<HeaderStyle Width="40px" />
|
|
|
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
|
</telerik:GridEditCommandColumn>
|
|
</Columns>
|
|
|
|
<EditFormSettings>
|
|
<EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton"
|
|
InsertText="Einfügen" UpdateText="Speichern" CancelText="Abbruch"> </EditColumn>
|
|
</EditFormSettings>
|
|
</MasterTableView>
|
|
|
|
<FilterMenu EnableImageSprites="False"></FilterMenu>
|
|
</telerik:RadGrid> </p>
|
|
<telerik:GridTextBoxColumnEditor id="Editbetreff" runat="server" TextBoxStyle-width="500" TextBoxMode="SingleLine" TextBoxMaxLength="255" ></telerik:GridTextBoxColumnEditor>
|
|
<telerik:GridTextBoxColumnEditor id="EditInhalt" runat="server" TextBoxStyle-width="500" TextBoxMode="MultiLine" TextBoxMaxLength="4096" TextBoxStyle-Height="100" ></telerik:GridTextBoxColumnEditor>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<shu:Footer runat="Server" ID="Footer1"></SHU:Footer>
|
|
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
|
|
ConnectionString="<%$ ConnectionStrings:LPConnectionString %>"
|
|
DeleteCommand="DELETE FROM [Web_Mailtexte] WHERE [NrEintrag] = @NrEintrag"
|
|
InsertCommand="INSERT INTO [Web_Mailtexte] ([NrEintrag], [Bezeichnung], [Betreff], [Inhalt], [Erstellt_am], [Mutiert_am], [Mutierer], [Aktiv]) VALUES (@NrEintrag, @Bezeichnung, @Betreff, @Inhalt, @Erstellt_am, @Mutiert_am, @Mutierer, @Aktiv)"
|
|
SelectCommand="SELECT [NrEintrag], [Bezeichnung], [Betreff], [Inhalt], [Erstellt_am], [Mutiert_am], [Mutierer], [Aktiv] FROM [Web_Mailtexte]"
|
|
UpdateCommand="UPDATE [Web_Mailtexte] SET [Bezeichnung] = @Bezeichnung, [Betreff] = @Betreff, [Inhalt] = @Inhalt, [Erstellt_am] = @Erstellt_am, [Mutiert_am] = @Mutiert_am, [Mutierer] = @Mutierer, [Aktiv] = @Aktiv WHERE [NrEintrag] = @NrEintrag">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="NrEintrag" Type="Int32" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:Parameter Name="NrEintrag" Type="Int32" />
|
|
<asp:Parameter Name="Bezeichnung" Type="String" />
|
|
<asp:Parameter Name="Betreff" Type="String" />
|
|
<asp:Parameter Name="Inhalt" Type="String" />
|
|
<asp:Parameter Name="Erstellt_am" Type="DateTime" />
|
|
<asp:Parameter Name="Mutiert_am" Type="DateTime" />
|
|
<asp:Parameter Name="Mutierer" Type="Int32" />
|
|
<asp:Parameter Name="Aktiv" Type="Boolean" />
|
|
</InsertParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="Bezeichnung" Type="String" />
|
|
<asp:Parameter Name="Betreff" Type="String" />
|
|
<asp:Parameter Name="Inhalt" Type="String" />
|
|
<asp:Parameter Name="Erstellt_am" Type="DateTime" />
|
|
<asp:Parameter Name="Mutiert_am" Type="DateTime" />
|
|
<asp:Parameter Name="Mutierer" Type="Int32" />
|
|
<asp:Parameter Name="Aktiv" Type="Boolean" />
|
|
<asp:Parameter Name="NrEintrag" Type="Int32" />
|
|
</UpdateParameters>
|
|
</asp:SqlDataSource>
|
|
|
|
</form>
|
|
</body>
|
|
</html> |