<?
session_start();
require_once "../init.php";
require_once "../authority.inc.php";

$hot="payment";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/admin/lib/html5.js"></script>
<script type="text/javascript" src="/admin/lib/respond.min.js"></script>
<script type="text/javascript" src="/admin/lib/PIE_IE678.js"></script>
<![endif]-->

<link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/admin/lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="/admin/static/h-ui.admin/js/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

<title>网上支付设置</title>

</style>
<script>
function checkKey(form){
  if(event.keyCode==13){
     checkadd(form);
  }
}
function checkadd(form){
   if(form.pay_name.value==""){
     alert("请输入名称");
	 form.SName.focus();
	 return ;
   }
   if(form.pay_order.value==""){
     alert("请输入排序");
	 form.SPage.focus();
	 return ;
   }
   form.submit();
}
</script>
<script src="../share/global.js"></script>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span 
class="c-gray en">&gt;</span> 网上支付设置<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" 
href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<!--子导航-->
<? include "nav.inc.php"?><br>

	<table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table" class="table table-border table-bordered table
-hover table-bg table-sort">

      <tr id="tr" >
        <td>编号</td>
        <td>名称</td>
        <td>排序</td>
        <td>是否默认选中</td>
		<td>是否启用</td>
        <td>管理</td>
      </tr>
      <?
				  //具体设置
				  $sql="select * from payment_type ";
				  $res=$DB->query($sql);
				  while($sesu_settings=$DB->fetch_array($res)){
					$select_str="<select name='ClassID'>";
	
					$select_str.="</select>";
					echo "<form method='post' action='payment_modi.php'>
					      <tr >
					      <td><input type='text' name='pay_code' value='$sesu_settings[pay_code]' size='10'  readonly></td>
						  <td ><input type='text' name='pay_name' value='$sesu_settings[pay_name]' size='25'  onkeypress='checkKey(this.form)'></td>
						  <td><input type='text' name='pay_order' value='$sesu_settings[pay_order]' size='5'  onkeypress='checkKey(this.form)'></td>
						  <td><select name='pay_selected'>
							  <option value='0'".(!$sesu_settings[pay_selected]?" selected":"").">否</option>
							  <option value='1'".($sesu_settings[pay_selected]?" selected":"").">是</option>
							  </select></td>
						  <td><select name='status'>
							  <option value='0'>否</option>
							  <option value='1'".($sesu_settings[status]?" selected":"").">是</option>
							  </select></td>
						  <td><input type='button' class='bt2' value='修改' onclick='checkadd(this.form)'>
						      <input type='hidden' name='RClassID' value='$ClassID'>
							  <input type='button' class='bt2' value='配置' onclick='location=\"payment_setting.php?pay_code=$sesu_settings[pay_code]\"'>
						  </td>
						  </tr>
						  </form>";
				  }
				?>
     

    </table></div>
<? 
$DB->close();
include "../share/bottom.php";
?>
</body>
</html>
