<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>

<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js" ></script>
</head>
<body>
    <form id="form1" runat="server">

        <div>         

            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:Currencys,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:Currencys,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            <Hishop:Currencys ID="Currencys" runat="server">
                <SkinTemplate>

        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<div class="grdGroupFormList">
    <div class="grdHeaderStyle">
        <ul>
            <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()">
                <asp:Label ID="CheckAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>"></asp:Label></a></li>
            <li class="spirtLines">|</li>
            <li class="userGroupReverseCheck"><a href="#" onclick="CheckReverse()">
                <asp:Label ID="lblCheckRecerse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Label></a></li>
            <li class="spirtLines">|</li>
            <li class="userGroupDelCheck">
                <Hishop:ImageLinkButton ID="lkbtnDeleteCheck" runat="server" OnClientClick=""
                    Text="<%$ Resources:Resources, IDS_Button_DeleteCheck %>"></Hishop:ImageLinkButton></li>
        </ul>
    </div>
    <div class="grdGroupList">
        <div class="grdGroupListLi">
                    <Hishop:CustomGridView ID="grdCurrencyList" runat="server" AutoGenerateColumns="false" ShowHeader="true" DataKeyNames="Code" CssClass="GridViewStyle" GridLines="None"
                        RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle">
                        <SelectedRowStyle BackColor="#FBFBF4" />
                        <Columns>
                            <Hishop:CheckBoxColumn ReadOnly="true" />
                            <asp:TemplateField HeaderText="<%$ Resources:Currencys,IDS_Header_Name %>" >
                                <Itemtemplate>
	                               <asp:Label ID="Label1" runat="server" Text='<%# Eval("Name")%> ' ></asp:Label>
                                </Itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Code" HeaderText="<%$ Resources:Currencys,IDS_Header_Code %>" />
                            <asp:BoundField DataField="Symbol" HeaderText="<%$ Resources:Currencys,IDS_Header_Symbol %>" />
                            <asp:BoundField DataField="ExchangeRate" DataFormatString="{0:N4}" HtmlEncode="false"
                                HeaderText="<%$ Resources:Currencys,IDS_Header_ExchangeRate %>" ItemStyle-Width="15%" />
                                
                            <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>" HeaderStyle-Width="30%">
                                <ItemStyle/>
                                   <ItemTemplate>
			                          <asp:LinkButton runat="server" CssClass="SmallCommonTextButton" ID="lkEdit" CommandName="Edit" Text="<%$ Resources:Resources, IDS_Button_Edit %>"/></li>
			                          <Hishop:ImageLinkButton runat="server" CssClass="SmallCommonTextButton" ID="lkDelete" CommandName="Delete" OnClientClick="" Text="<%$ Resources:Resources, IDS_Button_Delete %>"/></li>
                                   </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </Hishop:CustomGridView>
        </div>
    </div>
</div>

        <div class="grdHeaderStyle" style="cursor: pointer;" onclick="expItemsTable('addItemsTable');">
            <ul>
                <li class="addProCoin">
                    <asp:Literal ID="lblCurrencyTitle"  runat="server"></asp:Literal>
                </li>
            </ul>
        </div>
        <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList"
            id="addItemsTable">
            <tr>
                <td class="leftTD">
                    <asp:Literal ID="lblCurrencyCode" Text="<%$Resources:Currencys,IDS_FormField_Code%>"
                        runat="server"></asp:Literal>：</td>
                <td class="rightTD">
                    <Hishop:SupportedCurrencyDropDownList ID="dropCurrency" runat="server" AutoPostBack="true" />
                </td>
                <td class="rightTD">
                    <div class="msgNormal">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Currencys,IDM_help4 %>" />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    <asp:Literal ID="lblCurrencyName" Text="<%$Resources:Currencys,IDS_FormField_Name%>"
                        runat="server"></asp:Literal>：</td>
                <td class="rightTD"><asp:TextBox ID="txtCurrencyName" runat="server"></asp:TextBox></td>
                <td class="rightTD">
                    <div id="txtCurrencyNameTip" runat="server"></div>
                    <Hishop:ValidateTarget ID="validateCurrencyName"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtCurrencyName" 
                        Description="<%$ Resources:Currencys, IDM_help01%>" Nullable="false" >               
                        <Validators>
                            <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:Currencys, IDM_help01%>" />
                        </Validators>
                    </Hishop:ValidateTarget> 
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    <asp:Literal ID="lblRankPointTitle" Text="<%$Resources:Currencys,IDS_FormField_Symbol%>"
                        runat="server"></asp:Literal>：</td>
                <td class="rightTD">
                    &nbsp;<asp:TextBox ID="txtCurrencySymbol" runat="server"></asp:TextBox></td>
                <td class="rightTD">
                    <div id="txtCurrencySymbolTip" runat="server"></div>
                    <Hishop:ValidateTarget ID="validateCurrencySymbol"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtCurrencySymbol" 
                        Description="<%$ Resources:Currencys, IDM_help02%>" Nullable="false" >               
                        <Validators>
                            <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:Currencys, IDM_help02%>" />
                        </Validators>
                    </Hishop:ValidateTarget> 
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    <asp:Literal ID="lblOrderQuantityTitle" Text="<%$Resources:Currencys,IDS_FormField_ExchangeRate%>"
                        runat="server"></asp:Literal>：</td>
                <td class="rightTD"><asp:TextBox ID="txtExchangeRate" runat="server"></asp:TextBox></td>
                <td class="rightTD">
                    <div class="msgNormal">
                        <asp:Literal ID="lblExchangeRate" runat="server" Text="<%$Resources:Currencys,IDM_help3 %>" />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="bottonLeftTD">
                    &nbsp;</td>
                <td class="rightTD">
                    <asp:Button ID="btnSubmitCurrencys" ValidationGroup="valsAddCurrencys" Text="<%$ Resources:Resources, IDS_Button_Add%>"
                        CssClass="inp_L1" runat="server" />
                    <asp:Button ID="btnCanel" Text="<%$ Resources:Resources, IDS_Button_Cancel%>" CssClass="inp_L1"
                        runat="server" />
                </td>
                <td class="rightTD">
                    &nbsp;</td>
            </tr>
        </table>
                </SkinTemplate>
            </Hishop:Currencys>
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>