<!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>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<tpl> $template_dir </tpl>/member/css/shop.manage.css" rel="stylesheet" type="text/css" />
<tpl> include file ='../head.config.html' </tpl>
</head>
<body><tpl>include file ='../header.html'</tpl>
<div id="container761">
  <div class="own_member_main">
 <tpl>include file ='own_menu.html'</tpl>
  <div class="member_right">
<div class="new_main_left">
		<div class="new_main_left1">
	<h1 class="new_text"><tpl> $langPreCashSet </tpl></h1>
 <i></i>
	</div>
	<b></b>
	</div>
	<div id="own_main_rightop">
		<tpl> $langPreCashSetRemark </tpl>
	</div>
	<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
	  <form action="own_predeposit.php" method="post" name="form_pay" id="form_pay">
		<input type="hidden" name="action" id="action" value="cash_save" />
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#DEEBEF" style="overflow:visible; margin-top:10px" class="table_style2">
	  
		<tr class="tr_dotted">
          <td height="25" colspan="8" align="right" style="padding-right:5px"><a href="own_predeposit.php?action=pay">
            <tpl> $langPrePay </tpl></a> | <tpl> $langPreCash </tpl> | <a href="own_predeposit.php?action=list"><tpl> $langPreDetailView </tpl></a> | <a href="own_predeposit.php?action=record_list"><tpl> $langPreRecordView </tpl></a> | <a href="own_predeposit.php?action=cash_list"><tpl> $langPreCashView </tpl></a></td>
        </tr>
	 	<tr class="tr_dotted">
          <td height="25" align="left" valign="middle" bgcolor="#F5F9FA"> <input type="radio" name="pay_type" id="pay_type" checked="checked" value="online" onclick="$('#tr_online').css('display','');$('#tr_offline').css('display','none');" /><label for="pay_type"><tpl> $langPrePayOnline </tpl></label></td>
        </tr>
		<tr class="tr_dotted" id="tr_online">
          <td height="25" align="left" valign="middle" bgcolor="#FCFEFE">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  	<input type="radio" checked="checked" name="online_type" value="alipay" /><tpl> $langPreCashTypeAlipay </tpl>
			<input type="radio" name="online_type" value="tenpay" /><tpl> $langPreCashTypeTenpay </tpl>		  </td>
        </tr>
		<tr class="tr_dotted">
          <td height="25" align="left" valign="middle" bgcolor="#F5F9FA"><input type="radio" name="pay_type" id="pay_type_offline" value="offline" onclick="$('#tr_offline').css('display','');$('#tr_online').css('display','none');" /><label for="pay_type_offline"><tpl> $langPreCashTypeOffline </tpl></label></td>
        </tr>
		<tr class="tr_dotted" style="display:none" id="tr_offline">
          <td height="80" align="left" valign="middle" bgcolor="#FCFEFE">
			<table width="100%" align="left"  class="table_style_nopadding">
				<tr class="tr_dotted">
				  <td width="223" height="30" align="center" valign="middle"></td>
				  <td width="143" align="right" valign="middle" style="width:100px;"><tpl> $langPrePayConsignee </tpl>：</td>
				  <td width="168" height="30" align="left" valign="middle"><input type="text" class="new_input"  name="txt_pay_consignee" id="txt_pay_consignee" /><label style="display:none" for="txt_pay_consignee" class="wrong" metaDone="true" generated="true"></label></td>
				  <td width="340" align="left" valign="middle">&nbsp;</td>
				</tr>
				<tr class="tr_dotted">
				  <td width="223" height="30" align="center" valign="middle"></td>
				  <td height="30" align="right" valign="middle"><tpl> $langPreCashPayBank </tpl>：</td>
				  <td height="30" align="left" valign="middle"><input type="text" name="txt_pay_bank"  class="new_input" id="txt_pay_bank" />
			      <label style="display:none" for="txt_pay_bank" class="wrong" metaDone="true" generated="true"></label></td>
				  <td height="30" align="left" valign="middle">&nbsp;</td>
				</tr>
			</table>		
			</td>
          </tr>
		<tr class="tr_dotted">
          <td height="25" align="left" valign="middle" bgcolor="#F5F9FA">
		  	<tpl> $langPreCashAmount </tpl>：<input type="text" name="amount" class="new_input" id="amount" value="0" />
			<label style="display:none" for="amount" class="wrong" metaDone="true" generated="true"></label>		  </td>
        </tr>
		<tr class="tr_dotted">
          <td height="25" align="left" valign="middle" bgcolor="#F5F9FA">
		  	<tpl> $langPreCashPayAccount </tpl>：<input type="text" name="pay_account" class="new_input" id="pay_account" />
			<label style="display:none" for="pay_account" class="wrong" metaDone="true" generated="true"></label>
			<tpl> $langPreCashPayAccountRemark </tpl>
			</td>
        </tr>
		<tr class="tr_dotted">
			<td height="25" align="left" valign="middle" bgcolor="#F5F9FA">
		  	<tpl> $langPreCashRemark </tpl>：<textarea style="height:100px; width:300px" name="txt_remark"  class="new_input"  id="txt_remark" cols="50" rows="5"></textarea></td>
		</tr>
		<tr class="tr_dotted">
			<td height="25" align="left" valign="middle" bgcolor="#F5F9FA">
		  	<tpl> $langPreMemberAvailable </tpl><tpl> $member_array.available_predeposit|default:'0' </tpl></td>
		</tr>
		<tr class="tr_dotted">
          <td height="36" align="center" valign="middle">
		  	<input type="submit" value="<tpl> $langPreCashSubmit </tpl>" class="new_anniu" />
			<input type="button" value="<tpl> $langPreReturn </tpl>" onclick="history.back();"  class="new_anniu" />		  </td>
        </tr>
      </table>
	  </form>
		 <div style="clear:both"></div>
  </div>
   <div style="clear:both"></div>
  </div> <tpl> include file ='../../../html/footer.html' </tpl>
  </div>
</body>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	//对添加表单做的验证定义
	$('#form_pay').validate({
		errorClass: "wrong",
		rules: {
			amount: {required:true,number:true,min:0.01,max:<tpl> $member_array.available_predeposit|default:'0' </tpl>},
			pay_account: {required:true},
			txt_pay_consignee: {required:"#pay_type_offline:checked"},
			txt_pay_bank: {required:"#pay_type_offline:checked"}
			
		},
		messages: {
			amount: {required:"<tpl> $langPreAmountIsEmpty </tpl>",number:"<tpl> $langPreCashAmountIsNotNumber </tpl>",min:"<tpl> $langPreCashAmountIsNotNumber </tpl>",max:"<tpl> $langPreCashAmountIsTooBig </tpl>"},
			pay_account: {required: "<tpl> $langPrePayAccountIsEmpty </tpl>"},
			txt_pay_consignee: {required: "<tpl> $langPrePayConsigneeIsEmpty </tpl>"},
			txt_pay_bank: {required:"<tpl> $langPrePayBankIsEmpty </tpl>"}
		}
	});
});
</script>
</html>