<table class="adminform" border="0" cellpadding="0" cellspacing="0">
	<tr>
    	<th>卡号前缀：</th>
    </tr>
    <tr>
    	<td><input type="text" name="vip[customString]" value="" class="text"/></td>
    </tr>
	<tr>
    	<th>卡号位数：</th>
    </tr>
    <tr>
    	<td><input type="text" name="vip[Bit]" value="6" class="text" dataType="Number" msg="卡号位数必须是数字" /></td>
    </tr>
    <tr>
    	<th>启始数字</th>
    </tr>
    <tr>
    	<td><input type="text" name="vip[startNumber]" value="0" class="text" style="width:60px;" />-<input type="text" name="vip[endNumber]" value="3000" class="text" style="width:60px;"/></td>
    </tr>
    <tr>
    	<th>有效期时间：</th>
    </tr>
    <tr>
    	<td><input type="text" name="vip[vip_start_time]" value="" style="width:100px;" dataType='Require' msg="必须填写有效日期" class="text dateRange" id="startTime"/>-<input type="text" name="vip[vip_end_time]" value="" style="width:100px;"  class="text dateRange" id="endTime"  dataType='Require' msg="必须填写有效日期" /></td>
    </tr>
    <tr>
    	<td><input type="submit" name="b" value="生成" class="submit" /></td>
    </tr>
</table>
<script language="javascript">
$('.dateRange').datepicker({beforeShow: customRange});
// Customize two date pickers to work as a date range
function customRange(input) {
	return {minDate: (input.id == 'endTime' ? $('#startTime').datepicker('getDate',{dateFormat: 'yy-mm-dd'}) : null),
		maxDate: (input.id == 'startTime' ? $('#endTime').datepicker('getDate',{dateFormat: 'yy-mm-dd'}) : null)};
}
</script>
