<?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="recharge_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="recharge_add" />
      <dl>
        <dt><i class="required">*</i><?php echo $lang['predeposit_recharge_price'].$lang['feiwa_colon']; ?></dt>
        <dd>
          <input name="pdr_amount" type="text" class="text w50" id="pdr_amount" maxlength="8"/><em class="add-on">
<i class="icon-renminbi"></i></em><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(){
	$('#recharge_form').validate({
        errorPlacement: function(error, element){
            var error_td = element.parent('dd').children('span');
            error_td.append(error);
        },
        rules : {
        	pdr_amount      : {
	        	required  : true,
	            number    : true,
	            min       : 0.01
            }
        },
        messages : {
        	pdr_amount		: {
            	required  :'<i class="icon-exclamation-sign"></i><?php echo $lang['predeposit_recharge_add_pricenull_error']; ?>',
            	number    :'<i class="icon-exclamation-sign"></i><?php echo $lang['predeposit_recharge_add_pricemin_error']; ?>',
                min    	  :'<i class="icon-exclamation-sign"></i><?php echo $lang['predeposit_recharge_add_pricemin_error']; ?>'
            }
        }
    });
});
</script>