<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()
chk_newpwr 4,10,4
unme=trim(SafeRequest("unme"))
gnme=trim(SafeRequest("gnme"))
grd=trim(SafeRequest("grd"))
gid=trim(SafeRequest("gid"))
session("fnctag")="YES"
%>
<script language="javascript">
<!--

 function data_chk()
{
var regform=document.fncmng;
if (regform.u_nme.value=="")
{
alert("会员名称不能为空！");
regform.u_nme.focus();
return false;
}
if (regform.f_pay.value=="")
{
alert("款项金额不能为空！");
regform.f_pay.focus();
return false;
}
bString = "1234567890.";
for(i = 0; i < regform.f_pay.value.length; i ++)
{
	if (bString.indexOf(regform.f_pay.value.substring(i,i+1))==-1)
	{
		alert('对不起，款项金额只能输入数字，谢谢!');
		regform.f_pay.focus();
		return false;
	}
}

if (regform.f_cnt.value=="")
{
alert("补充说明不能为空！");
regform.f_cnt.focus();
return false;
}
if(confirm("是否确认执行此操作"))
regform.submit();


 }

 //-->
 </script>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>退款入户</strong></span></b></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%"> <a href="fnc_lst.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>" class=commonface >财务流水</a> 
            | <a href="fnc_ruk.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>" class=commonface  ><font color="#FF0000">汇款入帐</font></a> 
            | <a href="fnc_kou.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>"  class=commonface ><font color="#FF0000">业务扣款</font></a> 
            | <a href="fnc_tui_ruk.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>"  class=commonface >退款入户</a> 
            | <a href="fnc_tui.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>"  class=commonface >退款出帐</a> 
            | <a href="fnc_fan.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>"  class=commonface >优惠返款</a> 
            | <a href="fnc_brw.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>"  class=commonface >资金借用</a> 
            | <a href="fnc_hua.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>"  class=commonface >借款归还</a> 
            | <a href="fnc_don.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>" class=commonface >冻结资金</a> 
            | <a href="fnc_jie.asp?unme=<%=unme%>&grd=<%=grd%>&gnme=<%=gnme%>&gid=<%=gid%>" class=commonface >解除冻结</a> 
            | <a href="fnc_mem.asp" class=commonface  >会员列表</a></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=5></td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=2 class=menuline></td>
        </tr>
        </tbody> 
      </table>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="middle" align="center" > 
      <table border=0 cellpadding=0 
                        cellspacing=0 width="80%" bordercolordark="#FFFFFF" align="center"  class=datalist>
        <tbody> 
        <form action=fnc_mng.asp method=post name=fncmng >
          <tr> 
            <th width="15%" height="20" class=datalistheader > 
              <div align="center">操作类型*</div>
            </th>
            <th width="50%"  style="line-height:160%" class=datalistheader > 
              <div align="center"> <font color="#000000" class=ddropshadow><b><span class=enbold><strong>退款入户</strong></span></b></font></div>
            </th>
            <th style="line-height:150%"  class=datalistheader width="35%" > 
              <div align="left">说明</div>
            </th>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb height="25" width="15%" >适用情况*</td>
            <td  align=center class=datalistgridb colspan="2" > 
              <div align="left" style="line-height:150%">若客户对产品不满意，要退款，则通过此操作退回未使用的资金，录入到客户帐户里。</div>
            </td>
          </tr>
          <% conn.open constr
query="select * from v_prclst where p_cls="&session("usrclass")&" and p_prd='"&grd&"' order by p_yar"
rs.open query,conn,1,1
if not rs.eof then
g_cst=cint(rs("g_cst"))*cint(rs("p_yar"))
g_prc=cint(rs("p_prc"))
g_yar=cint(rs("p_yar"))
end if
rs.close%>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >会员名称*</td>
            <td  align=left class=datalistgridb width="50%" > 
              <input type="text" name="u_nme" value="<%=unme%>"  class=normalform size="28" >
              <input type="hidden" name="module" value="fnc_tui_ruk">
              <input type="hidden" name="grd" value="<%=grd%>">
              <input type="hidden" name="gid" value="<%=gid%>">
              <input type="hidden" name="unme" value="<%=unme%>">
              <input type="hidden" name="gnme" value="<%=gnme%>">
            </td>
            <td  align=center class=datalistgridb width="35%" > 
              <div align="left">请确认会员名称</div>
            </td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >发生金额*</td>
            <td  align=left class=datalistgridb width="50%" > 
              <input name="f_pay" type="text" id="f_pay" class=normalform size="28" value="<%=g_prc%>">
            </td>
            <td  align=center class=datalistgridb width="35%" > 
              <div align="left">只允许输入数字（元）</div>
            </td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >成本合计*</td>
            <td  align=left class=datalistgridb width="50%" > 
              <input name="f_cst" type="text" id="f_cnt" class=normalform size="28" value="<%=g_cst%>">
            </td>
            <td  align=left class=datalistgridb width="35%" >所退款中包含的成本,如原购三年成本300，现在退两年，则成本填200</td>
          </tr>
          <tr > 
            <td align=center class=datalistgridb width="15%" >退款事由*</td>
            <td align=left class=datalistgridb width="50%" > 
              <select name=f_prd id="f_prd" class=normalform  onChange="javascript:document.frm_qryprc.grd.value=document.fncmng.f_prd.value;">
                <option value="">其它</option>
                <%
		 

			  query="select * from v_pdtlst order by pt_odr,pc_odr,g_odr"
			  rs.open query,conn,1,1
			  while not rs.eof 
                          if grd=trim(rs("g_prd")) then
			  response.write "<option selected value="&rs("g_prd")&" style='color:"&rs("pt_clr")&"'>"

			  else
			  response.write "<option value="&rs("g_prd")&" style='color:"&rs("pt_clr")&"'>"
			  end if 
			  response.write trim(rs("g_nme"))&"--"&trim(rs("pc_nme"))			  
			  response.write "</option>"
			  rs.movenext
			  wend
			  rs.close
			  %>
              </select>
              <select name="f_ttl2" id="f_ttl2" class=normalform >
                <option>退款</option>
                <option>删除</option>
              </select>
            </td>
            <td class=datalistgridb width="35%" > 
              <input type="button" name="Submit22" value="询 价" onClick="javascript:document.frm_qryprc.unme.value=document.fncmng.u_nme.value;document.frm_qryprc.submit();"  class=btxx>
            </td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >产品名称</td>
            <td  align=left class=datalistgridb width="50%" > 
              <input name="f_gid" type="text" id="f_cnt" class=normalform size="28" value="<%=gid%>" >
            </td>
            <td  align=left class=datalistgridb width="35%" >即管理名，如域名/FTP名/邮局名。</td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >消费时间*</td>
            <td  align=left class=datalistgridb width="50%" > 
              <select name=f_yarcnt id="f_ttl" class=normalform >
                <option><%=g_yar%></option>
                <option>1</option>
                <option>2</option>
                <option>3</option>
                <option>4</option>
                <option>5</option>
                <option>6</option>
                <option>7</option>
                <option>8</option>
                <option>9</option>
                <option>10</option>
                <option>11</option>
                <option>12</option>
                <option>13</option>
                <option>14</option>
                <option>15</option>
              </select>
              年/个月/份 </td>
            <td  align=left class=datalistgridb width="35%" >指所退掉的时间，如原购三年，现在退半年，就填2，不满一年部份按一年算</td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb >退款入户*</td>
            <td  align=left class=datalistgridb > 
              <select name=f_ttl id="f_ttl" class=normalform >
                <option>退款入户</option>
              </select>
            </td>
            <td  align=center class=datalistgridb >&nbsp;</td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >补充说明*</td>
            <td  align=left class=datalistgridb width="50%" > 
              <input name="f_cnt" type="text" id="f_cnt" class=normalform size="38" value="(<%=gnme%>)">
            </td>
            <td  align=left class=datalistgridb width="35%" >&nbsp;</td>
          </tr>
          <tr > 
            <td  align=center class=datalistgridb width="15%" >填写说明*</td>
            <td  align=left class=datalistgridb colspan="2"  style="line-height:150%"><b>补充说明一栏请注明购买的产品标志：域名或邮局的填域名，主机填FTP帐号，数据库填数据库名，其它的以此类推填写相应的管理用户名。并且用半角的()包含起来，如(domain.com)</b></td>
          </tr>
        </form>
        </tbody> 
      </table>
      <div align="center"><br>
        <input type="button" name="Submit" value="确 定" onclick="javascript:return data_chk();" class=btxx>
        <input type="button" name="Submit2" value="重 置" onclick="javascript:document.fncmng.reset();"  class=btxx>
      </div>
      <div align="center"><br>
      </div>
      <table border=0 cellpadding=0 
                        cellspacing=0 width="90%" bordercolordark="#FFFFFF" align="center"  class=datalist>
        <tbody> 
        <tr> 
          <th width="15%" height="20" class=datalistheader > 
            <div align="center">操作类型*</div>
          </th>
          <th  style="line-height:160%" class=datalistheader align="center" > 
            <div align="center">可用金额 </div>
          </th>
          <th style="line-height:150%"  class=datalistheader align="center" >帐户余额</th>
          <th style="line-height:150%"  class=datalistheader align="center" >浮动金额</th>
          <th style="line-height:150%"  class=datalistheader align="center" >返款总额</th>
          <th style="line-height:150%"  class=datalistheader align="center" >冻结金额</th>
          <th style="line-height:150%"  class=datalistheader align="center" >借款金额</th>
          <th style="line-height:150%"  class=datalistheader align="center" > 
            消费总额</th>
          <th style="line-height:150%"  class=datalistheader align="center" > 
            汇款总额</th>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >汇款入帐(真实到帐)</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >汇款入帐(未到帐)</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >汇款入帐(到帐确认)</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >退款出帐</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >退款入户</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >业务扣款</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >优惠返款</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >资金借用</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >借款归还</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >资金冻结</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        <tr > 
          <td  align=center class=datalistgridb height="22" >解除冻结</td>
          <td  align=center class=datalistgridb ><font color="#FF0000"><b>+</b></font></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb ><b><font color="#FF0000">-</font></b></td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
          <td  align=center class=datalistgridb >X</td>
        </tr>
        </tbody> 
      </table>
      <br>
      注：<font color="#FF0000"><b>+</b></font> 表示资金增加 <b><font color="#FF0000">-</font></b> 
      表示资金减少 X 表示资金不变</td>
  </tr>
  </tbody> 
</table><form action="/master/bottom.asp" target=frm_btm method=post name=frm_qryprc>
  <input type=hidden name=module value="qry_prc">
  <input type=hidden name=grd value="<%=grd%>">
  <input type=hidden name=unme value="<%=unme%>">
</form>

<!--#include virtual="/incs/bottom.asp"-->

