<!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=utf-8" />
<title></title>
<link href="admin/admin/template/style/admin.css" rel="stylesheet" type="text/css" />
<script src="include/js/jquery.js" type="text/javascript"></script>
<script src="include/js/admin.js" type="text/javascript"></script>
</head>
<body>
<div class="maintop">当前位置：<?php echo $toptxt ?></div>
<div class="main">
  <div class="info">
    <form action="?c=<?php echo $Get_c; ?>&a=<?php echo $postgo ?>&run=1&pay_id=<? echo $d['pay_id']?>" method="post">
      <input name="type" type="hidden" value="<?php echo $d['type'] ?>" />
      <div id="infos1">
        <dl style="border:2;">
          <dt>支付方式：</dt>
          <dd>
            <input id="pay_name" class="input" type="text"  name="pay_name" value='<?php echo $d['pay_name']; ?>'/>
          </dd>
        </dl>
        <dl style="border:2;">
          <dt>支付方式描述：</dt>
          <dd>
            <textarea style="width:400px; height:200px;" name="pay_desc" id="pay_desc" ><?php echo $d['pay_desc']; ?></textarea>
          </dd>
        </dl>
        <?php if($d['pay_code']=='alipay') { ?>
        <dl style="border:2;">
          <dt>支付宝帐户：</dt> 
          <dd>
            <input id="seller_email" class="input" type="text" value="<?php echo $d['seller_email']; ?>" name="seller_email" />
          </dd>
        </dl>
        <dl style="border:2;">
          <dt>交易安全校验码：</dt>
          <dd>
            <input id="key" class="input" type="text" value="<?php echo $d['pay_key']; ?>" name="pay_key" />
          </dd>
        </dl>
        <dl style="border:2;">
          <dt>合作者身份ID：</dt>
          <dd>
            <input id="partner" class="input" type="text" value="<?php echo $d['partner']; ?>" name="partner" />
          </dd>
        </dl>
        <dl style="border:2;">
          <dt>选择接口类型：</dt>
          <dd>
            <select name="pay_type" id="pay_type">
              <option   <?php if ($d['pay_type']==0){ echo 'selected=""';} ?> value="0">使用标准双接口</option>
              <option  <?php if ($d['pay_type']==1){ echo 'selected=""';} ?>  value="1">使用担保交易接口</option>
              <option  <?php if ($d['pay_type']==2){ echo 'selected=""';} ?>  value="2">使用即时到帐交易接口</option>
            </select>
          </dd>
        </dl>
        <?php }else if($d['pay_code']=='tenpay') { ?>
        <dl style="border:2;">
          <dt>商户号：</dt>
          <dd>
            <input id="partner" class="input" type="text" value="<?php echo $d['partner']; ?>" name="partner" />
          </dd>
        </dl>
        <dl style="border:2;">
          <dt>初始密钥：</dt>
          <dd>
            <input id="key" class="input" type="text" value="<?php echo $d['pay_key']; ?>" name="pay_key" />
          </dd>
        </dl>
        <?php } ?>
        <dl style="border:2;">
          <dt>支付费率：</dt>
          <dd>
            <input id="pay_fee" class="input" type="text" value="<?php echo $d['pay_fee']; ?>" name="pay_fee" />
            % </dd>
        </dl>
        <dl>
        <dt>是否可用</dt>
        <dd>
        <input type="radio" name="enabled" value='0' <? if($d['enabled']==0) echo 'checked';?>/>不可用 
        <input type="radio" name="enabled" value='1' <? if($d['enabled']==1) echo 'checked';?>/>可用
        </dd>
        </dl>
      </div>
      <dl>
        <dt><input id="pay_code" name="pay_code" type="hidden" value="<? echo $d['pay_code'];?>"></input></dt>
        <dd>
          <input type="submit" value="提 交" class="btnbig" />
        </dd>
      </dl>
    </form>
  </div>
</div>
</body>
</html>
