root/trunk/eCard/Expo/platnosc.aspx @ 477

Wersja 477, 14.2 KB (wprowadzona przez marek, 17 years temu)

re #139

Line 
1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="platnosc.aspx.cs" Inherits="_Default" Title="platnosci.admoto.pl" Culture="auto" UICulture="auto" %>
2<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
3
4<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
5<asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
6
7<div id="left">
8
9</div>
10<div id="content">
11    <% if (1==1)//this.FormaPlatnosci == "karta"
12       { %>
13    <h2><asp:Literal ID="SzczegolyLiteral" runat="server" meta:resourcekey="SzczegolyLiteral">Szczegó³y zlecenia:</asp:Literal></h2>
14    <p><asp:Literal ID="SprawdzLiteral" runat="server" meta:resourcekey="SprawdzLiteral">
15        SprawdŸ czy poni¿sze dane s¹ prawid³owe. Jeœli s¹ poprawne kliknij przycisk P³acê znajduj¹cy siê poni¿ej. Zostaniesz przeniesiony na stronê firmy eCard gdzie nast¹pi dokoñczenie transakcji. </asp:Literal></p>
16        <p><asp:LinkButton ID="PomocLiteral" runat="server" meta:resourcekey="PomocLiteral" OnClientClick="return false;">Potrzebujesz pomocy?</asp:LinkButton></p>
17       
18    <div id="box">
19        <p><span class="bold">
20            <asp:Literal ID="NazwaText" runat="server" meta:resourcekey="NazwaText">Nazwa: </asp:Literal></span><asp:Literal ID="Nazwa" runat="server"></asp:Literal></p>
21        <p><span class="bold">
22            <asp:Literal ID="AdresText" runat="server" meta:resourcekey="AdresText">Adres: </asp:Literal></span><asp:Literal ID="Adres" runat="server"></asp:Literal></p>
23        <p><span class="bold">
24            <asp:Literal ID="NIPText" runat="server" meta:resourcekey="NIPText">NIP: </asp:Literal></span><asp:Literal ID="NIP" runat="server"></asp:Literal></p>
25        <p><span class="bold">
26            <asp:Literal ID="NrFakturyText" runat="server" meta:resourcekey="NrFakturyText">Nr faktury: </asp:Literal></span><asp:Literal ID="NrFaktury" runat="server"></asp:Literal></p>
27        <p><span class="bold">
28            <asp:Literal ID="DataWystawieniaText" runat="server" meta:resourcekey="DataWystawieniaText">Data wystawienia: </asp:Literal></span><asp:Literal ID="DataWystawienia" runat="server"></asp:Literal></p>
29        <p><span class="bold">
30            <asp:Literal ID="TerminPlatnosciText" runat="server" meta:resourcekey="TerminPlatnosciText">Termin p³atnoœci: </asp:Literal></span><asp:Literal ID="TerminPlatnosci" runat="server"></asp:Literal></p>
31        <p><span class="bold"><asp:Literal ID="WartoscBruttoText" runat="server"
32                meta:resourcekey="WartoscBruttoText">Wartoœæ brutto: </asp:Literal></span>
33                <asp:Literal ID="Brutto" runat="server"></asp:Literal>
34                <span class="bold odstep"><asp:Literal ID="zmienWalute" runat="server"
35                    meta:resourcekey="zmienWaluteText">Currency: </asp:Literal></span>
36                    <asp:DropDownList ID="WyborWaluty" runat="server" CssClass="WyborWaluty" AutoPostBack="True" OnSelectedIndexChanged="WyborWaluty_SelectedIndexChanged" Enabled="False">                                                               
37                        <asp:ListItem>PLN</asp:ListItem>
38                    </asp:DropDownList></p>
39                   
40        <p><asp:Literal ID="WlascicielKarty" runat="server" meta:resourcekey="WlascicielKarty">Podaj imiê i nazwisko osoby na któr¹ jest wystawiona karta kredytowa:</asp:Literal></p>
41        <p>
42            <asp:Label ID="Imie" runat="server" AssociatedControlID ="ImieTextBox" Text="Imiê: " meta:resourcekey="Imie"></asp:Label><asp:TextBox ID="ImieTextBox" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="valid1" runat="server" ControlToValidate="ImieTextBox"
43            ErrorMessage="*" Display="dynamic"/><asp:Label ID="Nazwisko" runat="server" AssociatedControlID ="NazwiskoTextBox" Text="Nazwisko: " meta:resourcekey="Nazwisko"></asp:Label><asp:TextBox ID="NazwiskoTextBox" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NazwiskoTextBox"
44            ErrorMessage="*" Display="dynamic"/></p>       
45    </div>
46        <p><asp:Button ID="PlaceButton" runat="server" Text="P³acê" OnClick="PlaceButton_Click"
47            meta:resourcekey="PlaceButton"/></p>
48           
49        <div id="flyout" style="display: none; overflow: hidden; z-index: 2; background-color: #FFFFFF; border: solid 1px #D0D0D0;"></div>
50       
51        <div id="info" style="display: none; width: 400px; z-index: 2; opacity: 0; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); font-size: 12px; border: solid 1px #CCCCCC; background-color: #FFFFFF; padding: 5px;">
52            <div id="btnCloseParent" style="float: right; opacity: 0; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);">
53                <asp:LinkButton id="btnClose" runat="server" OnClientClick="return false;" Text="X" ToolTip="Close"
54                    Style="background-color: #666666; color: #FFFFFF; text-align: center; font-weight: bold; text-decoration: none; border: outset thin #FFFFFF; padding: 5px;" />
55            </div>
56            <div>
57                <p class="bold">
58                    <asp:Literal ID="InfoKontakt" runat="server" meta:resourcekey="InfoKontakt">Kontakt do Twojego opiekuna handlowego:</asp:Literal></p>
59                <p>
60                    <span class="bold"><asp:Literal ID="ImieNazwiskoLiteral" runat="server" meta:resourcekey="ImieNazwiskoLiteral">Imiê i nazwisko:</asp:Literal></span>
61                    <asp:Literal ID="Handlowiec" runat="server"></asp:Literal></p>
62                <p>
63                    <span class="bold"><asp:Literal ID="AdresLiteral" runat="server" meta:resourcekey="AdresLiteral">Adres:</asp:Literal></span>
64                    <asp:Literal ID="BiuroAdres" runat="server"></asp:Literal></p>
65                <p><asp:Literal ID="BiuroTelefon" runat="server"></asp:Literal></p>                                                 
66            </div>
67        </div>
68       
69       
70       <script type="text/javascript" language="javascript">
71            // Move an element directly on top of another element (and optionally
72            // make it the same size)
73            function Cover(bottom, top, ignoreSize) {
74                var location = Sys.UI.DomElement.getLocation(bottom);
75                top.style.position = 'absolute';
76                top.style.top = location.y + 'px';
77                top.style.left = location.x + 'px';
78                if (!ignoreSize) {
79                    top.style.height = bottom.offsetHeight + 'px';
80                    top.style.width = bottom.offsetWidth + 'px';
81                }
82            }
83        </script>
84
85
86<ajaxToolkit:AnimationExtender id="OpenAnimation" runat="server" TargetControlID="PomocLiteral">
87            <Animations>
88                <OnClick>
89                    <Sequence>
90                        <%-- Disable the button so it can't be clicked again --%><EnableAction Enabled="false" /><%-- Position the wire frame on top of the button and show it --%><ScriptAction Script="Cover($get('ctl00_ContentPlaceHolder1_PomocLiteral'), $get('flyout'));" /><StyleAction AnimationTarget="flyout" Attribute="display" Value="block"/><%-- Move the wire frame from the button's bounds to the info panel's bounds --%><Parallel AnimationTarget="flyout" Duration=".3" Fps="25">
91                            <Move Horizontal="250" Vertical="-50" />
92                            <Resize Width="410" Height="105" />
93                            <Color PropertyKey="backgroundColor" StartValue="#AAAAAA" EndValue="#FFFFFF" />
94                        </Parallel>
95                       
96                        <%-- Move the info panel on top of the wire frame, fade it in, and hide the frame --%><ScriptAction Script="Cover($get('flyout'), $get('info'), true);" /><StyleAction AnimationTarget="info" Attribute="display" Value="block"/><FadeIn AnimationTarget="info" Duration=".2"/><StyleAction AnimationTarget="flyout" Attribute="display" Value="none"/><%-- Flash the text/border red and fade in the "close" button --%><Parallel AnimationTarget="info" Duration=".5">
97                            <Color PropertyKey="color" StartValue="#666666" EndValue="#FF0000" />
98                            <Color PropertyKey="borderColor" StartValue="#666666" EndValue="#FF0000" />
99                        </Parallel>
100                        <Parallel AnimationTarget="info" Duration=".5">
101                            <Color PropertyKey="color" StartValue="#FF0000" EndValue="#666666" />
102                            <Color PropertyKey="borderColor" StartValue="#FF0000" EndValue="#666666" />
103                            <FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" />
104                        </Parallel>
105                    </Sequence>
106                </OnClick>
107            </Animations>
108</ajaxToolkit:AnimationExtender>
109
110<ajaxToolkit:AnimationExtender id="CloseAnimation" runat="server" TargetControlID="btnClose">
111            <Animations>
112                <OnClick>
113                    <Sequence AnimationTarget="info">
114                        <%--  Shrink the info panel out of view --%><StyleAction Attribute="overflow" Value="hidden"/><Parallel Duration=".3" Fps="15">
115                            <Scale ScaleFactor="0.05" Center="true" ScaleFont="true" FontUnit="px" />
116                            <FadeOut />
117                        </Parallel>
118                       
119                        <%--  Reset the sample so it can be played again --%><StyleAction Attribute="display" Value="none"/><StyleAction Attribute="width" Value="400px"/><StyleAction Attribute="height" Value=""/><StyleAction Attribute="fontSize" Value="12px"/><OpacityAction AnimationTarget="btnCloseParent" Opacity="0" /><%--  Enable the button so it can be played again --%><EnableAction AnimationTarget="ctl00_ContentPlaceHolder1_PomocLiteral" Enabled="true" /></Sequence>
120                </OnClick>
121                <OnMouseOver>
122                    <Color Duration=".2" PropertyKey="color" StartValue="#FFFFFF" EndValue="#FF0000" />
123                </OnMouseOver>
124                <OnMouseOut>
125                    <Color Duration=".2" PropertyKey="color" StartValue="#FF0000" EndValue="#FFFFFF" />
126                </OnMouseOut>
127             </Animations>
128        </ajaxToolkit:AnimationExtender>
129
130 <asp:Panel ID="xmlShow" runat="server" style="display: none; z-index: 3; background-color:#DDD; border: thin solid navy;">
131            <pre style="margin: 5px">&lt;ajaxToolkit:AnimationExtender id="OpenAnimation" runat="server" TargetControlID="btnInfo"&gt;
132&lt;Animations&gt;
133    &lt;OnClick&gt;
134        &lt;Sequence&gt;
135           <em>&lt;%-- Disable the button --%&gt;</em>
136            &lt;EnableAction Enabled="false" /&gt;
137           <em>&lt;%-- Show the flyout --%&gt;</em>
138            &lt;Parallel AnimationTarget="flyout" Duration=".3" Fps="25"&gt;
139                &lt;Move Horizontal="250" Vertical="-50" /&gt;
140                &lt;Resize Height="410" Width="120" /&gt;
141                &lt;Color AnimationTarget="flyout" PropertyKey="backgroundColor"
142                        StartValue="#AAAAAA" EndValue="#FFFFFF" /&gt;
143            &lt;/Parallel&gt;
144          <em>&lt;%-- Fade in the text --%&gt; </em>
145            &lt;FadeIn AnimationTarget="info" Duration=".2"/&gt;
146          <em>&lt;%-- Cycle the text and border color to red and back --%&gt;</em>
147            &lt;Parallel AnimationTarget="info" Duration=".5"&gt;
148                &lt;Color PropertyKey="color"
149                        StartValue="#666666" EndValue="#FF0000" /&gt;
150                &lt;Color PropertyKey="borderColor"
151                        StartValue="#666666" EndValue="#FF0000" /&gt;
152            &lt;/Parallel&gt;
153            &lt;Parallel AnimationTarget="info" Duration=".5"&gt;
154                &lt;Color PropertyKey="color"
155                        StartValue="#FF0000" EndValue="#666666" /&gt;
156                &lt;Color PropertyKey="borderColor"
157                        StartValue="#FF0000" EndValue="#666666" /&gt;
158                &lt;FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" /&gt;
159            &lt;/Parallel&gt;
160        &lt;/Sequence&gt;
161    &lt;/OnClick&gt;
162&lt;/Animations&gt;
163&lt;/ajaxToolkit:AnimationExtender&gt;</pre>
164        </asp:Panel>
165       
166        <asp:Panel ID="xmlClose" runat="server" style="display: none; z-index: 3; background-color: #DDD; border: thin solid navy;">
167            <pre style="margin: 5px">&lt;ajaxToolkit:AnimationExtender id="CloseAnimation" runat="server" TargetControlID="btnClose"&gt;
168&lt;Animations&gt;
169    &lt;OnClick&gt;
170        &lt;Sequence AnimationTarget="info"&gt;
171          <em>&lt;%-- Scale the flyout down to 5% to make it disappear --%&gt;</em>
172            &lt;Parallel Duration=".3" Fps="15"&gt;
173                &lt;Scale ScaleFactor="0.05" Center="true"
174                        ScaleFont="true" FontUnit="px" /&gt;
175                &lt;FadeOut /&gt;
176            &lt;/Parallel&gt;
177          <em>&lt;%-- Reset the styles on the info box --%&gt;</em>
178            &lt;StyleAction Attribute="display" Value="none"/&gt;
179            &lt;StyleAction Attribute="width" Value="250px"/&gt;
180            &lt;StyleAction Attribute="height" Value=""/&gt;
181            &lt;StyleAction Attribute="fontSize" Value="12px"/&gt;
182          <em>&lt;%-- Re-enable the button --%&gt;</em>
183            &lt;EnableAction Enabled="true"
184                    AnimationTarget="ctl00_SampleContent_btnInfo" /&gt;
185        &lt;/Sequence&gt;
186    &lt;/OnClick&gt;
187&lt;/Animations&gt;
188&lt;/ajaxToolkit:AnimationExtender&gt;
189        </pre>
190        </asp:Panel>
191           
192    <% }
193       else
194       { %>
195        <p>
196            <asp:Literal ID="NieKarta1" runat="server" meta:resourcekey="NieKarta1">Dla tego zlecenia nie zosta³a wybrana forma p³atnoœci: karta kredytowa.</asp:Literal></p>
197        <p>
198            <asp:Literal ID="NieKarta2" runat="server" meta:resourcekey="NieKarta2">Aby to zmieniæ skontaktuj siê z osob¹ która wystawi³a fakturê.</asp:Literal></p>
199        <p><asp:Button ID="ZamknijButton" runat="server" Text="Zamknij" OnClick="ZamknijButton_Click"
200            meta:resourcekey="ZamknijButton"/></p>
201    <% } %>
202</div>
203</asp:Content>
204
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.