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

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

re #139

RevLine 
[477]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>
43            <asp:Label ID="Nazwisko" runat="server" AssociatedControlID ="NazwiskoTextBox" Text="Nazwisko: " meta:resourcekey="Nazwisko"></asp:Label><asp:TextBox ID="NazwiskoTextBox" runat="server"></asp:TextBox></p>       
44    </div>
45        <p><asp:Button ID="PlaceButton" runat="server" Text="P³acê" OnClick="PlaceButton_Click"
46            meta:resourcekey="PlaceButton"/></p>
47           
48        <div id="flyout" style="display: none; overflow: hidden; z-index: 2; background-color: #FFFFFF; border: solid 1px #D0D0D0;"></div>
49       
50        <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;">
51            <div id="btnCloseParent" style="float: right; opacity: 0; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);">
52                <asp:LinkButton id="btnClose" runat="server" OnClientClick="return false;" Text="X" ToolTip="Close"
53                    Style="background-color: #666666; color: #FFFFFF; text-align: center; font-weight: bold; text-decoration: none; border: outset thin #FFFFFF; padding: 5px;" />
54            </div>
55            <div>
56                <p class="bold">
57                    <asp:Literal ID="InfoKontakt" runat="server" meta:resourcekey="InfoKontakt">Kontakt do Twojego opiekuna handlowego:</asp:Literal></p>
58                <p>
59                    <span class="bold"><asp:Literal ID="ImieNazwiskoLiteral" runat="server" meta:resourcekey="ImieNazwiskoLiteral">Imiê i nazwisko:</asp:Literal></span>
60                    <asp:Literal ID="Handlowiec" runat="server"></asp:Literal></p>
61                <p>
62                    <span class="bold"><asp:Literal ID="AdresLiteral" runat="server" meta:resourcekey="AdresLiteral">Adres:</asp:Literal></span>
63                    <asp:Literal ID="BiuroAdres" runat="server"></asp:Literal></p>
64                <p><asp:Literal ID="BiuroTelefon" runat="server"></asp:Literal></p>                                                 
65            </div>
66        </div>
67       
68       
69       <script type="text/javascript" language="javascript">
70            // Move an element directly on top of another element (and optionally
71            // make it the same size)
72            function Cover(bottom, top, ignoreSize) {
73                var location = Sys.UI.DomElement.getLocation(bottom);
74                top.style.position = 'absolute';
75                top.style.top = location.y + 'px';
76                top.style.left = location.x + 'px';
77                if (!ignoreSize) {
78                    top.style.height = bottom.offsetHeight + 'px';
79                    top.style.width = bottom.offsetWidth + 'px';
80                }
81            }
82        </script>
83
84
85<ajaxToolkit:AnimationExtender id="OpenAnimation" runat="server" TargetControlID="PomocLiteral">
86            <Animations>
87                <OnClick>
88                    <Sequence>
89                        <%-- 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">
90                            <Move Horizontal="250" Vertical="-50" />
91                            <Resize Width="410" Height="105" />
92                            <Color PropertyKey="backgroundColor" StartValue="#AAAAAA" EndValue="#FFFFFF" />
93                        </Parallel>
94                       
95                        <%-- 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">
96                            <Color PropertyKey="color" StartValue="#666666" EndValue="#FF0000" />
97                            <Color PropertyKey="borderColor" StartValue="#666666" EndValue="#FF0000" />
98                        </Parallel>
99                        <Parallel AnimationTarget="info" Duration=".5">
100                            <Color PropertyKey="color" StartValue="#FF0000" EndValue="#666666" />
101                            <Color PropertyKey="borderColor" StartValue="#FF0000" EndValue="#666666" />
102                            <FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" />
103                        </Parallel>
104                    </Sequence>
105                </OnClick>
106            </Animations>
107</ajaxToolkit:AnimationExtender>
108
109<ajaxToolkit:AnimationExtender id="CloseAnimation" runat="server" TargetControlID="btnClose">
110            <Animations>
111                <OnClick>
112                    <Sequence AnimationTarget="info">
113                        <%--  Shrink the info panel out of view --%><StyleAction Attribute="overflow" Value="hidden"/><Parallel Duration=".3" Fps="15">
114                            <Scale ScaleFactor="0.05" Center="true" ScaleFont="true" FontUnit="px" />
115                            <FadeOut />
116                        </Parallel>
117                       
118                        <%--  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>
119                </OnClick>
120                <OnMouseOver>
121                    <Color Duration=".2" PropertyKey="color" StartValue="#FFFFFF" EndValue="#FF0000" />
122                </OnMouseOver>
123                <OnMouseOut>
124                    <Color Duration=".2" PropertyKey="color" StartValue="#FF0000" EndValue="#FFFFFF" />
125                </OnMouseOut>
126             </Animations>
127        </ajaxToolkit:AnimationExtender>
128
129 <asp:Panel ID="xmlShow" runat="server" style="display: none; z-index: 3; background-color:#DDD; border: thin solid navy;">
130            <pre style="margin: 5px">&lt;ajaxToolkit:AnimationExtender id="OpenAnimation" runat="server" TargetControlID="btnInfo"&gt;
131&lt;Animations&gt;
132    &lt;OnClick&gt;
133        &lt;Sequence&gt;
134           <em>&lt;%-- Disable the button --%&gt;</em>
135            &lt;EnableAction Enabled="false" /&gt;
136           <em>&lt;%-- Show the flyout --%&gt;</em>
137            &lt;Parallel AnimationTarget="flyout" Duration=".3" Fps="25"&gt;
138                &lt;Move Horizontal="250" Vertical="-50" /&gt;
139                &lt;Resize Height="410" Width="120" /&gt;
140                &lt;Color AnimationTarget="flyout" PropertyKey="backgroundColor"
141                        StartValue="#AAAAAA" EndValue="#FFFFFF" /&gt;
142            &lt;/Parallel&gt;
143          <em>&lt;%-- Fade in the text --%&gt; </em>
144            &lt;FadeIn AnimationTarget="info" Duration=".2"/&gt;
145          <em>&lt;%-- Cycle the text and border color to red and back --%&gt;</em>
146            &lt;Parallel AnimationTarget="info" Duration=".5"&gt;
147                &lt;Color PropertyKey="color"
148                        StartValue="#666666" EndValue="#FF0000" /&gt;
149                &lt;Color PropertyKey="borderColor"
150                        StartValue="#666666" EndValue="#FF0000" /&gt;
151            &lt;/Parallel&gt;
152            &lt;Parallel AnimationTarget="info" Duration=".5"&gt;
153                &lt;Color PropertyKey="color"
154                        StartValue="#FF0000" EndValue="#666666" /&gt;
155                &lt;Color PropertyKey="borderColor"
156                        StartValue="#FF0000" EndValue="#666666" /&gt;
157                &lt;FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" /&gt;
158            &lt;/Parallel&gt;
159        &lt;/Sequence&gt;
160    &lt;/OnClick&gt;
161&lt;/Animations&gt;
162&lt;/ajaxToolkit:AnimationExtender&gt;</pre>
163        </asp:Panel>
164       
165        <asp:Panel ID="xmlClose" runat="server" style="display: none; z-index: 3; background-color: #DDD; border: thin solid navy;">
166            <pre style="margin: 5px">&lt;ajaxToolkit:AnimationExtender id="CloseAnimation" runat="server" TargetControlID="btnClose"&gt;
167&lt;Animations&gt;
168    &lt;OnClick&gt;
169        &lt;Sequence AnimationTarget="info"&gt;
170          <em>&lt;%-- Scale the flyout down to 5% to make it disappear --%&gt;</em>
171            &lt;Parallel Duration=".3" Fps="15"&gt;
172                &lt;Scale ScaleFactor="0.05" Center="true"
173                        ScaleFont="true" FontUnit="px" /&gt;
174                &lt;FadeOut /&gt;
175            &lt;/Parallel&gt;
176          <em>&lt;%-- Reset the styles on the info box --%&gt;</em>
177            &lt;StyleAction Attribute="display" Value="none"/&gt;
178            &lt;StyleAction Attribute="width" Value="250px"/&gt;
179            &lt;StyleAction Attribute="height" Value=""/&gt;
180            &lt;StyleAction Attribute="fontSize" Value="12px"/&gt;
181          <em>&lt;%-- Re-enable the button --%&gt;</em>
182            &lt;EnableAction Enabled="true"
183                    AnimationTarget="ctl00_SampleContent_btnInfo" /&gt;
184        &lt;/Sequence&gt;
185    &lt;/OnClick&gt;
186&lt;/Animations&gt;
187&lt;/ajaxToolkit:AnimationExtender&gt;
188        </pre>
189        </asp:Panel>
190           
191    <% }
192       else
193       { %>
194        <p>
195            <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>
196        <p>
197            <asp:Literal ID="NieKarta2" runat="server" meta:resourcekey="NieKarta2">Aby to zmieniæ skontaktuj siê z osob¹ która wystawi³a fakturê.</asp:Literal></p>
198        <p><asp:Button ID="ZamknijButton" runat="server" Text="Zamknij" OnClick="ZamknijButton_Click"
199            meta:resourcekey="ZamknijButton"/></p>
200    <% } %>
201</div>
202</asp:Content>
203
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.