| 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. Jeli 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³atnoci: </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"><ajaxToolkit:AnimationExtender id="OpenAnimation" runat="server" TargetControlID="btnInfo">
|
|---|
| 132 | <Animations>
|
|---|
| 133 | <OnClick>
|
|---|
| 134 | <Sequence>
|
|---|
| 135 | <em><%-- Disable the button --%></em>
|
|---|
| 136 | <EnableAction Enabled="false" />
|
|---|
| 137 | <em><%-- Show the flyout --%></em>
|
|---|
| 138 | <Parallel AnimationTarget="flyout" Duration=".3" Fps="25">
|
|---|
| 139 | <Move Horizontal="250" Vertical="-50" />
|
|---|
| 140 | <Resize Height="410" Width="120" />
|
|---|
| 141 | <Color AnimationTarget="flyout" PropertyKey="backgroundColor"
|
|---|
| 142 | StartValue="#AAAAAA" EndValue="#FFFFFF" />
|
|---|
| 143 | </Parallel>
|
|---|
| 144 | <em><%-- Fade in the text --%> </em>
|
|---|
| 145 | <FadeIn AnimationTarget="info" Duration=".2"/>
|
|---|
| 146 | <em><%-- Cycle the text and border color to red and back --%></em>
|
|---|
| 147 | <Parallel AnimationTarget="info" Duration=".5">
|
|---|
| 148 | <Color PropertyKey="color"
|
|---|
| 149 | StartValue="#666666" EndValue="#FF0000" />
|
|---|
| 150 | <Color PropertyKey="borderColor"
|
|---|
| 151 | StartValue="#666666" EndValue="#FF0000" />
|
|---|
| 152 | </Parallel>
|
|---|
| 153 | <Parallel AnimationTarget="info" Duration=".5">
|
|---|
| 154 | <Color PropertyKey="color"
|
|---|
| 155 | StartValue="#FF0000" EndValue="#666666" />
|
|---|
| 156 | <Color PropertyKey="borderColor"
|
|---|
| 157 | StartValue="#FF0000" EndValue="#666666" />
|
|---|
| 158 | <FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" />
|
|---|
| 159 | </Parallel>
|
|---|
| 160 | </Sequence>
|
|---|
| 161 | </OnClick>
|
|---|
| 162 | </Animations>
|
|---|
| 163 | </ajaxToolkit:AnimationExtender></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"><ajaxToolkit:AnimationExtender id="CloseAnimation" runat="server" TargetControlID="btnClose">
|
|---|
| 168 | <Animations>
|
|---|
| 169 | <OnClick>
|
|---|
| 170 | <Sequence AnimationTarget="info">
|
|---|
| 171 | <em><%-- Scale the flyout down to 5% to make it disappear --%></em>
|
|---|
| 172 | <Parallel Duration=".3" Fps="15">
|
|---|
| 173 | <Scale ScaleFactor="0.05" Center="true"
|
|---|
| 174 | ScaleFont="true" FontUnit="px" />
|
|---|
| 175 | <FadeOut />
|
|---|
| 176 | </Parallel>
|
|---|
| 177 | <em><%-- Reset the styles on the info box --%></em>
|
|---|
| 178 | <StyleAction Attribute="display" Value="none"/>
|
|---|
| 179 | <StyleAction Attribute="width" Value="250px"/>
|
|---|
| 180 | <StyleAction Attribute="height" Value=""/>
|
|---|
| 181 | <StyleAction Attribute="fontSize" Value="12px"/>
|
|---|
| 182 | <em><%-- Re-enable the button --%></em>
|
|---|
| 183 | <EnableAction Enabled="true"
|
|---|
| 184 | AnimationTarget="ctl00_SampleContent_btnInfo" />
|
|---|
| 185 | </Sequence>
|
|---|
| 186 | </OnClick>
|
|---|
| 187 | </Animations>
|
|---|
| 188 | </ajaxToolkit:AnimationExtender>
|
|---|
| 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³atnoci: 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 |
|
|---|