<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>生成积分</title>
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
	</head>
	<body>
		<form action="cards_make.php" name="form1" target="stafrm">
			<input type="hidden" name="dopost" value="make">
			<table align="center" class="table maintable my-3">
				<tr>
					<td bgcolor="#f5f5f5" colspan="4">生成积分</td>
				</tr>
				<tr>
					<td width="260">积分类型：</td>
					<td>
						<select name="cardtype" class="admin-input-sm">
							<?php
							$dsql->SetQuery("SELECT * FROM `#@__moneycard_type`");
							$dsql->Execute();
							while($row=$dsql->GetArray()){
								echo "  <option value='{$row['tid']}'>{$row['pname']}</option>";
							}
							$dsql->Close();
							?>
						</select>
					</td>
					<td width="90">生成数量：</td>
					<td><input name="mnum" type="text" id="mnum" class="admin-input-sm" value="100"></td>
				</tr>
				<tr>
					<td>积分前缀：</td>
					<td><input name="snprefix" type="text" id="snprefix" class="admin-input-sm" value="TY"></td>
					<td>密码长度：</td>
					<td><input name="pwdlen" type="text" id="pwdlen" class="admin-input-sm" value="4"></td>
				</tr>
				<tr>
					<td>密码类型：</td>
					<td>
						<label><input type="radio" name="ctype" value="1"> 纯数字</label>
						<label><input type="radio" name="ctype" value="2" checked="1"> 大写字母</label>
					</td>
					<td>密码组数：</td>
					<td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td>
				</tr>
				<tr>
					<td colspan="4" bgcolor="#f5f5f5" align="center" align="py-2"><button type="submit" name="Submit" class="btn btn-success btn-sm">生成积分</button></td>
				</tr>
				<tr>
					<td colspan="4" id="mtd">
						<div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>