<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!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>
<title>点卡管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script src="images/js/check.func.js"></script>
<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		checkForm(0);
	});
</script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?file=card&action=manage">点卡管理</a></li>
			<li><a href="javascript:void(0);" class="on">生成点卡</a></li>			
		</ul>
	</div>
	<div class="main">
	<fieldset>
		<legend>操作提示</legend>
		1：点卡类型名称不能为空； 2：点卡类型排序应为数字。
	</fieldset>
	<form action="" method="post" name="myform">
	<input type="hidden" name="do_submit" value="1" />
	<table cellspacing="0" class="sub">
		<tr>
			<td width="80" align="right">生成数量：</td>
			<td>
			<input type="text" name="newcard[number]" value="20"  datatype="integer" size="6" /> 张
			</td>
		</tr>
		<tr>
			<td width="80" align="right">点卡类型：</td>
			<td>
			<?php echo $pointcardselect;?>
			</td>
		</tr>
		<tr>
			<td width="80" align="right">卡号前缀：</td>
			<td>
			<input type="text" size="10" name="newcard[pre]" value="<?php echo date('Y');?>" datatype="number"/> 
			</td>
		</tr>
		<tr>
			<td align="right">卡号长度：</td>
			<td>
			<input type="text" size="6" value="15" datatype="integer" name="newcard[len]" />
			</td>
		</tr>
		<tr>
			<td align="right">有效期限：</td>
			<td>
			<input type="text" size="6" value="30" datatype="integer" name="newcard[todate]" /> 天
			</td>
		</tr>
		<tr class="bg2"><td></td><td><input type="button" class="button" onclick="doSubmit(this);" value="生成点卡" /> <input type="button" class="button" onclick="window.location.href='<?php echo ADMIN_FILE;?>?file=card&action=manage'" value="取消返回" /></td></tr>
	</table>
	</form>

	</div>
</div>
</body>
</html>