<!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=<?php echo $cfg_soft_lang; ?>">
  <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>
  .fontOrange {
    COLOR: #ff4e00
  }
  .npvar {
    width: 90%
  }
</style>
<body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'>
  <center>
    <form action="shops_delivery.php" method="post" name="form1">
      <input type="hidden" name="do" value="add">
      <table width="100%" border="0" cellpadding="1" cellspacing="1" class="table maintable table-bordered mt-3 sysinfo">
        <tr align="center" height="26">
          <td height="30" colspan="2" align="left" bgcolor="#EDF9D5" background='../static/web/img/tbg.gif' style="padding-left:10px">增加一个配送方式</td>
        </tr>
        <tr align="center" height="26" bgcolor="#FFFFFF">
          <td width="13%" height="30" align="right" bgcolor="#FFFFFF">
            &nbsp;&nbsp;名称：
          </td>
          <td align="left" bgcolor="#FFFFFF"><input name="dname" style="margin-left:6px;" type="text" id="dname">
            &nbsp;*此处填写配送方式名称</td>
        </tr>
        <tr align="center" height="26" bgcolor="#ECF8FF">
          <td width="13%" height="30" align="right" bgcolor="#FFFFFF">
            &nbsp;&nbsp;手续费：
          </td>
          <td align="left" bgcolor="#FFFFFF">
            <input name="price" type="text" id="price" style="margin-left:6px;" value="0.00" size="6" maxlength="6">
            元
            &nbsp;*发货时所用的手续费，若要收取，请填写(精确到小数位两位)
          </td>
        </tr>
        <tr align="center" height="26" bgcolor="#ECF8FF">
          <td width="13%" height="30" align="right" bgcolor="#FFFFFF">
            &nbsp;&nbsp;简要说明：
          </td>
          <td align="left" bgcolor="#FFFFFF">
            <textarea name="des" id="des" style="margin-left:6px;height:50px;width:320px;"></textarea>
            &nbsp;最多100个文字内，简要说明一下
          </td>
        </tr>
        <tr bgcolor="#F3FFDD">
          <td height="50" colspan="3" align="center" bgcolor="#FFFFFF">
            <table width="200" border="0" cellspacing="1" cellpadding="1" class="table table-borderless">
              <tr align="center">
                <td>
                  <button type="submit" class='btn btn-success'>确认</button>
                </td>
                <td align="center">
                  <button type="reset" name="button" class='btn btn-success'>重置</button>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </form>
    <form action="shops_delivery.php" method="post" name="form2">
      <input type="hidden" name="do" value="edit">
      <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
        <tr>
          <td height="26" colspan="3" align="left" bgcolor="#EDF9D5" background='../static/web/img/tbg.gif'>
            &nbsp;已有配送方式列表
          </td>
        </tr>
        <tr bgcolor="#F3FFDD">
          <td height="50" colspan="3" align="center" bgcolor="#FFFFFF">
            <table width="100%" border="0" cellpadding="1" cellspacing="2" style="BORDER: #CCC 1px solid;" class="table table-striped">
              <?php foreach($deliveryarr as $rs) { ?>
              <input type="hidden" name="pid[]" value="<?php echo $rs['pid']; ?>">
              <tr>
                <td width="23%" height="26" align="left" style="padding-left:5px;">
                  <input name="m_dname<?php echo $rs['pid']; ?>" type="text" value="<?php echo $rs['dname']; ?>">
                  <div style="padding:3px;BORDER-TOP: #CCC 1px solid;"><a class="btn btn-success btn-sm" href="shops_delivery.php?do=del&id=<?php echo $rs['pid']; ?>" onClick="return(confirm('删除后无法恢复，您确定删除吗'))">删除</a></div>
                </td>
                <td width="77%" align="left" valign="top" style="BORDER-BOTTOM: #CCC 1px solid;padding-left:5px;">
                  手续费：
                  <input name="m_price<?php echo $rs['pid']; ?>" type="text" id="m_price<?php echo $rs['pid']; ?>" style="margin-left:6px;" value="<?php echo $rs['price']; ?>" size="6" maxlength="6">
                  元
                  <div style="padding:3px;BORDER-TOP: #CCC 1px solid;"><textarea name="m_des<?php echo $rs['pid']; ?>" id="m_des<?php echo $rs['pid']; ?>" style="margin-left:6px; width:320px;"><?php echo $rs['des']; ?></textarea></div>
                </td>
              </tr>
              <?php  }?>
            </table>
          </td>
        </tr>
        <tr bgcolor="#F3FFDD">
          <td height="36" colspan="3" align="left" bgcolor="#FFFFFF">
            <button name="imageField2" type="submit" class="btn btn-success">修改</button>
          </td>
        </tr>
      </table>
    </form>
  </center>
</body>
</html>