<!DOCTYPE html>
<html>
<head>
  <meta charset="<?php echo $cfg_soft_lang; ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>支付接口设置</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<style>
  .npvar {
    width: 90%
  }
</style>
<body>
  <center>
    <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
      <tr>
        <td bgcolor="#f8f8f8" colspan="4">
          <table width="100%" cellspacing="0" cellpadding="0" class="table table-borderless">
            <tr>
              <td>支付接口列表</td>
              <td align="right"><span><a href="https://www.dedebiz.com/help" target="_blank" class="btn btn-success btn-sm">更多接口</a></span></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr bgcolor="#F8FCF1" align="center">
        <td width="20%">支付方式</td>
        <td width="40%">描述</td>
        <td width="10%">排序</td>
        <td width="20%">管理</td>
      </tr>
      {dede:datalist empty='<tr><td colspan="4"><center>暂无内容</center></td></tr>'}
      <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
        <td>{dede:field.name /}</td>
        <td align="left">{dede:field.description /}</td>
        <td>{dede:field.rank /}</td>
        <td>
          <?php
          if($fields['enabled'] == 0) {
          ?>
          <a class='btn btn-success btn-sm' href='sys_payment.php?dopost=install&pid={dede:field.id /}'>安装</a>
          <?php
          }
          if($fields['enabled'] == 1) {
          ?>
          <a class='btn btn-success btn-sm' href='sys_payment.php?dopost=install&pid={dede:field.id /}&pm=edit'>修改</a>
          <a class='btn btn-success btn-sm' href='sys_payment.php?dopost=uninstall&pid={dede:field.id /}'>删除</a>
          <?php
          }
          ?>
        </td>
      </tr>
      {/dede:datalist}
      <tr height="36" bgcolor="#f8f8f8" align="center">
        <td colspan="4">{dede:pagelist listsize='6'/}</td>
      </tr>
    </table>
  </center>
</body>
</html>