<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>生成积分</title>
		<link rel="stylesheet" href="/static/web/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 class="table shadow-sm my-3">
				<tr>
					<td 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="120">生成数量：</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> 大写字母</label>
					</td>
					<td>密码组数：</td>
					<td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td>
				</tr>
				<tr>
					<td colspan="4" 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 class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>