<?php defined('ByFeiWa') or exit('Access Invalid!');?>
<div class="wrap">
  <div class="tabmenu">
    <?php include template('layout/submenu');?>
  </div>
  <div class="ncm-default-form">
    <form method="post" id="rechargecard_form" action="index.php">
      <input type="hidden" name="form_submit" value="ok" />
      <input type="hidden" name="app" value="predeposit" />
      <input type="hidden" name="feiwa" value="rechargecard_add" />
      <dl>
        <dt><i class="required">*</i>平台充值卡号<?php echo $lang['feiwa_colon']; ?></dt>
        <dd>
          <input name="rc_sn" type="text" class="text w400" id="rc_sn" maxlength="50" /><span></span></dd>
      </dl>
      <dl class="bottom">
        <dt>&nbsp; </dt>
        <dd>
          <label class="submit-border"><input type="submit" class="submit" value="<?php echo $lang['feiwa_submit']; ?>" /></label>
        </dd>
      </dl>
    </form>
  </div>
</div>
<script type="text/javascript">
$(function(){
$('#rechargecard_form').validate({
    errorPlacement: function(error, element){
        var error_td = element.parent('dd').children('span');
        error_td.append(error);
    },
    rules : {
        rc_sn : {
            required : true,
            maxlength : 50
        }
    },
    messages : {
        rc_sn : {
            required :'<i class="icon-exclamation-sign"></i>请输入平台充值卡号',
            maxlength :'<i class="icon-exclamation-sign"></i>平台充值卡号长度小于50'
        }
    }
});
});
</script>
