<!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>
<body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'>
  <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3">
    <form name="form1" action="cards_type.php" method="post">
      <input type="hidden" name="dopost" value="save">
      <tr>
        <td height="26" colspan="4" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif">点卡产品分类</td>
      </tr>
      <tr bgcolor="#FBFCE2">
        <td width="26%" height="26" align="center" valign="top">产品名称</td>
        <td width="27%" align="center" valign="top">点数(金币数)</td>
        <td width="30%" align="center">价格</td>
        <td width="17%" align="center">状态</td>
      </tr>
      <?php
	$dsql->SetQuery("Select * From #@__moneycard_type");
	$dsql->Execute();
	$k=0;
	while($row = $dsql->GetObject())
	{
	  $k++;
	?>
      <input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>">
      <tr align="center" bgcolor="#FFFFFF">
        <td height="26" valign="top">
          <input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%">
        </td>
        <td height="26" valign="top">
          <input name="num_<?php echo $k?>" value="<?php echo $row->num?>" type="text" id="num_<?php echo $k?>" class='pubinputs' style="width:80%">
        </td>
        <td>
          <input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" class='pubinputs' style="width:80%">
          （元）
        </td>
        <td>
          <input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1'
            class='np' />
          保留
        </td>
      </tr>
      <?php
	}
	?>
      <input type="hidden" name="idend" value="<?php echo $k?>">
      <tr bgcolor="#F8FCF1">
        <td height="26" colspan="4" valign="top" bgcolor="#f8f8f8" style="padding-left:10px">
          新增一个点卡产品类型：</td>
      </tr>
      <tr height="26" align="center" bgcolor="#FFFFFF">
        <td valign="top">
          <input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%">
        </td>
        <td valign="top">
          <input name="num_new" value="100" type="text" id="num_new" class='pubinputs' style="width:80%">
        </td>
        <td valign="top">
          <input name="money_new" type="text" id="money_new" class='pubinputs' style='width:80%' value="30">
          （元）
        </td>
        <td align="center" bgcolor="#FFFFFF">
          <input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np' />
          新增 </td>
      </tr>
      <tr>
        <td height="30" colspan="4" align="center" bgcolor="#f8f8f8">
          <button type="submit" class="btn btn-success">确定</button>
        </td>
      </tr>
    </form>
  </table>
</body>
</html>