<%@ Page language="c#" Codebehind="ScoreNoAdd.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.ScoreNoAdd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<!--#include file="../inc/head2.inc"-->
		<script type="text/javascript" src="../inc/commond.js"></script>
		<script src="../inc/ui.datepicker.cn.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="../inc/ui.datepicker.css" />
		<script type="text/javascript">
			$(document).ready(function(){
				$("#txtExpireDate").datepicker();
			});
		</script>
	</head>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="../images/admin_title.jpg" height="9" width="8" align="absMiddle"><asp:label id="lblTitleInfo" Runat="server" CssClass="tableHeaderText">积分卡添加</asp:label></div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title"><asp:Label ID="lbTitle" Runat="server" >批量添加积分卡</asp:Label></div>
		        <div class="frame_content">
			        <table cellSpacing="0" cellPadding="0" class="ptable">
				        <tr>
					        <th class="tl">
						        积分卡名称：</th>
					        <td class="tr"><asp:TextBox id="txtScoreName" runat="server"></asp:TextBox></td>
				        </tr>
				        <tr>
					        <th class="tl">
						        积分面值：</th>
					        <td class="tr"><asp:TextBox id="txtScoreNum" runat="server"></asp:TextBox></td>
				        </tr>
						<tr>
				            <th class="tl">过期时间：</th>
				            <td class="tr">
				                <asp:TextBox ID="txtExpireDate" name="txtExpireDate" runat="server" Width="107px" Height="18px" style="line-height:18px;background-image:url(../images/calendar.gif);background-repeat:no-repeat;padding-left:20px;" ReadOnly="true"></asp:TextBox>
				            </td>
				        </tr>
				        <%if (Request.QueryString["addtype"] == "xls"){%>
				        <tr>
					        <th class="tl">
						        Excel文件：</th>
					        <td class="tr"><input id="csv1" type="file" name="csv1" runat="server" class="file" /><a href="score.xls" target="_blank">&nbsp;下载Excel模板(点击右键另存为...)</a></td>
				        </tr>
				        <%}else{ %>
				        <tr>
					        <th class="tl">
						        起始号码：</th>
					        <td class="tr">
						        <asp:TextBox id="txtStartNum" runat="server"></asp:TextBox></td>
				        </tr>
				        <tr>
					        <th class="tl">
						        结束号码：</th>
					        <td class="tr">
						        <asp:TextBox id="txtEndNum" runat="server"></asp:TextBox></td>
				        </tr>
				        <%} %>
				        <tr>
					        <th class="tl">
					        </th>
					        <td class="tr">
						        <%if (Request.QueryString["addtype"] == "xls"){%>
						            <asp:Button id="btnAddExcel" OnClick="btnAddExcel_Click" runat="server" Text="导入积分卡" CssClass="inputbtn"></asp:Button>
						        <%}else{%> 
						            <asp:Button id="btnSave" OnClick="btnSave_Click" runat="server" Text="生成积分卡" CssClass="inputbtn"></asp:Button>
						        <%} %>
						    </td>
				        </tr>
			        </table>
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</html>
