📄 setpayapi.php
字号:
<?php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/user.php");
include("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"pay");
$enews=$_GET['enews'];
$payid=(int)$_GET['payid'];
$r=$empire->fetch1("select * from {$dbtbpre}enewspayapi where payid='$payid'");
$url="在线支付> <a href=PayApi.php>管理支付接口</a> > 配置支付接口:<b>".$r[paytype]."</b>";
$registerpay='';
if($r[paytype]=='tenpay')
{
$registerpay="<input type=\"button\" value=\"立即注册财付通商户号\" onclick=\"javascript:window.open('http://union.tenpay.com/mch/mch_index1.shtml?sp_suggestuser=1203924401');\">";
}
db_close();
$empire=null;
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>支付接口</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td width="50%">位置:
<?=$url?>
</td>
<td><div align="right">
<input type="button" name="Submit5" value="管理支付记录" onclick="self.location.href='ListPayRecord.php';">
<input type="button" name="Submit52" value="支付参数设置" onclick="self.location.href='SetPayFen.php';">
</div></td>
</tr>
</table>
<form name="setpayform" method="post" action="PayApi.php" enctype="multipart/form-data">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="25" colspan="2">配置支付接口
<input name="enews" type="hidden" id="enews" value="<?=$enews?>">
<input name="payid" type="hidden" id="payid" value="<?=$payid?>"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="right">接口类型:</div></td>
<td height="25">
<?=$r[paytype]?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="right">接口状态:</div></td>
<td height="25"><input type="radio" name="isclose" value="0"<?=$r[isclose]==0?' checked':''?>>
开启
<input type="radio" name="isclose" value="1"<?=$r[isclose]==1?' checked':''?>>
关闭</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="23%" height="25"><div align="right">接口名称:</div></td>
<td width="77%" height="25"><input name="payname" type="text" id="payname" value="<?=$r[payname]?>" size="35"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top"><div align="right">接口描述:</div></td>
<td height="25"><textarea name="paysay" cols="65" rows="6" id="paysay"><?=htmlspecialchars($r[paysay])?></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="right">商户号:</div></td>
<td height="25"><input name="payuser" type="text" id="payuser" value="<?=$r[payuser]?>" size="35">
<?=$registerpay?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="right">密钥:</div></td>
<td height="25"><input name="paykey" type="text" id="paykey" value="<?=$r[paykey]?>" size="35"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="right">手续费:</div></td>
<td height="25"><input name=payfee type=text id="payfee" value='<?=$r[payfee]?>' size="35">
% </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"> </td>
<td height="25"><input type="submit" name="Submit" value=" 设 置 ">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -