<!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" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function checkSubmit(){
	var obj = document.form1;
	if (obj.usertype.value == 'all'){
		alert('请选择消费类型!')
		obj.usertype.focus();
		return false;
	}
	if (obj.usergroup.value == 'all'){
		alert('请选择卡权限!')
		obj.usergroup.focus();
		return false;
	}
	if (isNaN(parseInt(obj.num.value))){
		alert('卡张数必须为数字!')
		obj.num.focus();
		return false;
	}
	document.getElementById('btn').disabled=true;
	return true;
}
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">发行电影充值卡</div>
        <table cellspacing="1" cellpadding="4" class="tab">
		<form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>car/add/" onsubmit="return checkSubmit();">
			   <tr class="row">
				<td width="14%" class="align-right">卡号前缀：</td>
				<td>
			     <input name="prefix" type="text" id="prefix" value="vodcms_" />
			     * 限6个字符				</td>
			  </tr>
			   <tr class="row">
			     <td class="align-right">卡号与密码位数：</td>
			     <td><input name="max" type="text" id="max" value="8" size="8" />
		         *不包含卡号前缀</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">卡类型：</td>
			     <td><select name="usertype" id="usertype">
			       <option value="all">请选择消费模式</option>
			       <option value="1">包月</option>
			       <option value="0">计点</option>
			       </select></td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">卡权限：</td>
			     <td><select name="usergroup" id="usergroup">
			       <option value="all">请选择权限组</option>
				   <?php echo $this->usergroup;?>
			       </select>			     </td>
			   </tr>
			   <tr class="row">
			     <td class="align-right">卡面值：</td>
			     <td><input name="usercount" type="text" id="usercount" value="0" size="0" />
			       *必须为数字</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">卡价格：</td>
			     <td><input name="money" type="text" id="money" value="0" />
			       *必须为数字</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">张数：</td>
			     <td><input name="num" type="text" id="num" value="100" />
			       *必须为数字</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">有效期：</td>
			     <td><input name="lifetime" type="text" id="lifetime" value="100" />
		         *数字.单位天</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">&nbsp;</td>
			     <td><input type="submit" class="btn" value=" 添 加 " id="btn" />&nbsp;<input type="button" class="btn" value=" 返回上一页 " onclick="history.back()" /></td>
	        </tr>
        </form>
        </table>
      </div>
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

