<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Currency.aspx.cs" Inherits="web.admin.Currency" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Currency</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="7%" height="27" class="tl"></td>
		<td width="87%" class="tm"><span class="tt">平台基础设置管理 &gt;&gt; <asp:Label id="lblAction" runat="server"></asp:Label></span></td>
		      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="5%" class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top"  ><br>
                      <table width="90%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
			<% if(this.Request.QueryString["Action"] == "Manage"){%>
			        <table  cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
                      <tr>
					<td height="23" class="forumRowHighlight">
						<asp:datagrid id="dgCurrency" runat="server" AllowPaging="False" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="CurrencyID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title" BorderColor="#E0E0E0" BorderWidth="1px">
							<HeaderStyle Font-Bold="False" BackColor="#EDF6FF" CssClass="head" Height="35px"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="货币名称">
									<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "Name") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="货币代码">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "Code") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="货币符号">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "Sign") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="当前汇率">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "Rate") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="默认货币">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<a href='Cz.aspx?Action=DeleteCurrency&CID=<%# DataBinder.Eval(Container.DataItem, "CurrencyID") %>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "IsDefault") %>.png' border="0"></a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href='Currency.aspx?Action=Modify&CID=<%# DataBinder.Eval(Container.DataItem, "CurrencyID") %>'>
											修改</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="Delete">
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle Mode="NumericPages"></PagerStyle>
                            <ItemStyle Height="27px" />
						</asp:datagrid>
					</td>
				</tr>
			</table>
			<%}if(this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify"){%>
			        <table  cellSpacing="0" cellPadding="0" width="706" align="center" border="0">
                      <tr>
					<td height="23">
						<table  cellSpacing="0" cellPadding="6" width="95%" align="center" border="0">
                            <tr>
								
                              <td align="left"> <div align="center">货币名称： </div></td>
								<td>
									<asp:DropDownList ID="ddlName" Runat="server" AutoPostBack="True">
										<asp:ListItem Value="0">-请选择-</asp:ListItem>
										<asp:ListItem Value="CNY">人民币</asp:ListItem>
										<asp:ListItem Value="HKD">港元</asp:ListItem>
										<asp:ListItem Value="TWD">新台币</asp:ListItem>
										<asp:ListItem Value="USD">美元</asp:ListItem>
										<asp:ListItem Value="EUR">欧元</asp:ListItem>
										<asp:ListItem Value="GBP">英磅</asp:ListItem>
										<asp:ListItem Value="CAD">加拿大元</asp:ListItem>
										<asp:ListItem Value="AUD">澳元</asp:ListItem>
										<asp:ListItem Value="KRW">韩元</asp:ListItem>
										<asp:ListItem Value="SGD">新加波元</asp:ListItem>
										<asp:ListItem Value="JPY">日元</asp:ListItem>
									</asp:DropDownList>
								</td>
							</tr>
							<tr>
								
                              <td align="left" bgcolor="F4F4F4"> 
                                <div align="center">货币代码： </div></td>
								
                              <td bgcolor="F4F4F4"> 
                                <asp:TextBox id="txtCode" CssClass="input" runat="server" ReadOnly="True"></asp:TextBox>
                                <font color="red">*</font> </td>
							</tr>
							<tr>
								
                              <td align="left"> <div align="center">货币符号： </div></td>
								<td>
									<asp:TextBox id="txtSign" CssClass="input" runat="server"></asp:TextBox><font color="red">*</font>
								</td>
							</tr>
							<tr bgcolor="#F4F4F4"> 
                              <td align="left"> 
                                <div align="center">当前汇率： </div></td>
								
                              <td> 
                                <asp:TextBox id="txtRate" CssClass="input" runat="server"></asp:TextBox><font color="red">*</font>
								</td>
							</tr>
							<tr>
								
                              <td align="left"> <div align="center">默认货币： </div></td>
								<td>
									<asp:CheckBox id="cbxDefault" runat="server" Text="点选将此货币作为默认货币"></asp:CheckBox>
								</td>
							</tr>
							<tr>
								<td align="center" colspan="2"><br>
									<asp:Button id="btnSave" CssClass="btn" runat="server" Text="保存"></asp:Button>&nbsp;&nbsp;
									<asp:Button id="btnCancel" CssClass="btn" runat="server" Text="取消" CausesValidation="False"></asp:Button></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<%}%>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
