<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('payInfo.html', '37bce257dc5ccc5e100c4c62f4013821', 1362484575); ?>
<!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="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="none" />
<title>预订易KTV预订网站管理系统</title>
<link type="text/css" href="<?php echo MY_THEMEDIR; ?>images/layout.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/home/payInfo.js"></script>
</head>


<body>
<div id="bodymain">
<!-- 头部开始 -->
<?php include $this->tpl->getfile('inc/header'); ?>
<!-- 主体开始 -->
<div id="user_content">
<table width="100%" border="0">
<tr>
<td width="156" valign="top">
<?php include $this->tpl->getfile('inc/lead_pay'); ?>
</td>
<td valign="top">
<div id="main_user">
<div class="main_user_bg"><div class="main_user_bg1_right"></div></div>
<div class="user_con">
<h2>支付模式设置</h2>
<form id="O_PayForm" name="O_PayForm" method="post" >


<?php if(is_array($pay_modular)) foreach($pay_modular as $k => $v) { ?>
<input type="hidden" id="pay_<?php echo $k; ?>_modular" class="hidden_modular" name="pay_<?php echo $k; ?>_modular" value="<?php echo $k; ?>"  />
<?php } ?>

<table  class="user_table user_table2 user_table3" border="0" cellSpacing="0" cellPadding="0" width="100%">

<tr class="<?php echo $k; ?>">
<td style="width:20%;" >开启在线支付模块</td>
<td style="width:80%; text-align:left"><?php $count = 0;$company = '折'; if(is_array($pay_modular)) foreach($pay_modular as $modular_k => $modular_v) { $checked = '';  ?><div style="clear:both;float:left">
		<input type="checkbox"  name="pay_<?php echo $modular_k; ?>_type"  <?php if($modular['zfb'][$modular_k] == '1') { ?>checked="checked"<?php } ?> value="<?php echo $modular_k; ?>" modular_key = "<?php echo $modular_k; ?>" /><?php echo $modular_v; ?>
	
		<select style="height:20px; font-size:12px" id="sel_<?php echo $modular_k; ?>_pay" name="sel_pay" modular="<?php echo $modular_k; ?>" pay="<?php echo $k; ?>" class="sel_pay">
		<?php if($deposit['zfb'][$modular_k] && $deposit['zfb'][$modular_k]['deposit'] != '' ) { $checked = 'selected="selected"';  } ?>
			<option value="full">全额支付</option>
			<option  value="deposit" <?php echo $checked; ?>>付定金</option>
		</select>
		
			<span class="sel_<?php echo $modular_k; ?>_pay" id="sel_<?php echo $modular_k; ?>_full" <?php if($deposit['zfb'][$modular_k] && $deposit['zfb'][$modular_k]['deposit'] != '' ) { ?>style="display:none"<?php } ?>>
			<input type="checkbox" modular="<?php echo $modular_k; ?>" pay="<?php echo $k; ?>"  name="<?php echo $modular_k; ?>_<?php echo $k; ?>_money"   id="pay_<?php echo $k; ?>_calculation"  class="pay_<?php echo $k; ?>_calculation check" value="hotel" <?php if($deposit['zfb'][$modular_k] !='') { ?>checked="checked"<?php } ?> />优惠价
			
	
		<select style="height:20px; font-size:12px"  class="calculation" modular="<?php echo $modular_k; ?>" pay="<?php echo $k; ?>" name="sel_<?php echo $modular_k; ?>_calculation"  id="sel_<?php echo $modular_k; ?>_calculation">
		
<?php if(is_array($calculation)) foreach($calculation as $calculation_k => $calculation_v) { ?>
			<?php if($deposit['zfb'][$modular_k] && $deposit['zfb'][$modular_k][$calculation_k] != '' ) { $money = $deposit['zfb'][$modular_k][$calculation_k]?$deposit['zfb'][$modular_k][$calculation_k]:$money;
					$company = $calculation_k == 'discount'?'折':'元';
				
				 ?><option selected="selected" value="<?php echo $calculation_k; ?>"> <?php echo $calculation_v; ?></option>
				<?php } else { ?>
				
				<option value="<?php echo $calculation_k; ?>"><?php echo $calculation_v; ?></option>
			<!-<?php } ?>-->
			
		<?php } ?>
		</select>
		
		
		<input type="text" style="height:15px;width:35px;" id="calculation_<?php echo $modular_k; ?>_content" class="txt_calculation" modular="<?php echo $modular_k; ?>" pay="<?php echo $k; ?>"  name="calculation_<?php echo $modular_k; ?>_content" value="<?php echo $money; ?>" /><span id="company_<?php echo $modular_k; ?>" name="company_<?php echo $modular_k; ?>"><?php echo $company; ?></span>
			</span>
			
			<span id="sel_<?php echo $modular_k; ?>_deposit"  class="sel_<?php echo $modular_k; ?>_pay" <?php if($deposit['zfb'][$modular_k] && $deposit['zfb'][$modular_k]['deposit'] == '' ) { ?>style="display:none"<?php } ?> <?php if(!$deposit['zfb'][$modular_k] ) { ?>style="display:none"<?php } ?>  >
		付总额&nbsp;
		
		<input type="text" name="pay_<?php echo $modular_k; ?>_part_money"  id="pay_<?php echo $modular_k; ?>_part_money"  style="width:35px; height:13px; line-height:13px; font-size:12px;" maxlength="2" <?php if($deposit['zfb'][$modular_k] && $deposit['zfb'][$modular_k]['deposit'] != '' ) { ?>value="<?php echo $deposit['zfb'][$modular_k]['deposit']; ?>"<!-<?php } ?>-->%作为定金
			</span>
	</div>
	<?php } ?>
</td>
</tr>
</table>



<?php if(is_array($pay_type)) foreach($pay_type as $k => $v) { ?>


<input type="hidden" id="pay_<?php echo $k; ?>_modular" class="hidden_pay_modular" name="pay_<?php echo $k; ?>_modular" value="<?php echo $v; ?>" short_id="<?php echo $k; ?>" />

<table class="user_table user_table2 user_table3" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr class="pay_title pay_select" >
<td style="width:20%; ">是否开启<?php echo $v; ?>:</td>
<td style="width:85%; text-align:left">
<input type="radio" value="1" name="<?php echo $k; ?>_open" <?php if($info[$k]['isdel'] != '1') { ?>checked="checked"<?php } ?>/>开启
<input type="radio" value="0"  name="<?php echo $k; ?>_open" <?php if($info[$k]['isdel'] == '1') { ?>checked="checked"<?php } ?> />关闭
</td>
</tr>


<?php if(is_array($pay_info[$k])) foreach($pay_info[$k] as $pay_info_k => $pay_info_v) { ?>

<tr class="<?php echo $k; ?>">
<td style="width:20%;"><?php echo $pay_info_v; ?>:</td>
<td style="width:80%; text-align:left">
<input type="text" class="common_txt" id="O_<?php echo $k; ?>_<?php echo $pay_info_k; ?>" name="O_<?php echo $k; ?>_<?php echo $pay_info_k; ?>" size="30" value="<?php echo $info[$k][$pay_info_k]; ?>" />
<div class="pay_remark" title='<?php echo $pay_remark[$k][$pay_info_k]; ?>'>
	<?php echo $pay_remark[$k][$pay_info_k]; ?>
</div>
</td>
</tr>
<?php } ?>

</tbody>
</table>

<?php } ?>


<table align="center" class="user_table3">
<tr>
<Td colspan="3" align="left"><input type="button" class="searchbutton" value="保存" name="pay_save" id="pay_save" /></Td>
</tr>
</table>

</table>
</div>
<div class="clearfloat"></div>
<?php include $this->tpl->getfile('inc/bottom'); ?>
</div>
</body>
</html>