<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,18,1
c_cls=SafeRequest("c_cls")
					ptid=SafeRequest("ptid")

if chk_int(c_cls)=false then
call errorpage(-2,"对不起，请选择所要查看的价格等级！")
end if
if chk_int(ptid)=false then
ptid=-1
end if
conn.open constr

%>
<script>
function ja_prc_edit_single(g_prd,prc1,prc2,prc3,prc4,prc5,prc6,prc7,prc8,tme1,tme2,tme3,tme4,tme5,tme6,tme7,tme8)
{
document.prc_edit_single.p_prd.value=g_prd;
document.prc_edit_single.p_prc_1.value=prc1;
document.prc_edit_single.p_prc_2.value=prc2;
document.prc_edit_single.p_prc_3.value=prc3;
document.prc_edit_single.p_prc_4.value=prc4;
document.prc_edit_single.p_prc_5.value=prc5;
document.prc_edit_single.p_prc_6.value=prc6;
document.prc_edit_single.p_prc_7.value=prc7;
document.prc_edit_single.p_prc_8.value=prc8;
document.prc_edit_single.t_prc_1.value=tme1;
document.prc_edit_single.t_prc_2.value=tme2;
document.prc_edit_single.t_prc_3.value=tme3;
document.prc_edit_single.t_prc_4.value=tme4;
document.prc_edit_single.t_prc_5.value=tme5;
document.prc_edit_single.t_prc_6.value=tme6;
document.prc_edit_single.t_prc_7.value=tme7;
document.prc_edit_single.t_prc_8.value=tme8;
document.prc_edit_single.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%">&nbsp;</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> 
    <%
			  query="select * from clslst where c_cls="&c_cls
			  rs.open query,conn,1,1
			 if rs.eof then
			 call errorpage(-2,"对不起，该价格等级不存在！")
			 end if
			 
			  %>
    <td  colspan=2 valign="top" height="28"> 
      <div align="center"> 
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height=12> 
              <div align="center"><font color="#002E73"><b><%=trim(rs("c_nme"))%>(<%=trim(rs("c_inf"))%>)</b></font></div>
            </td>
          </tr>
          <tr> 
            <td height=12>&nbsp; </td>
          </tr>
          <tr> 
            <td height=12> 
              <table cellspacing=0 cellpadding=0  border=0 bordercolordark="#FFFFFF" height="24" align="center" width=95%>
                <tbody> 
                <tr align=center bgcolor="#FFFFFF"> 
                  <td height="22"  align=center bgcolor="#FFFFFF"> 
                    <%rs.close
						  query="select * from pdttpe where pt_shw=1 order by pt_odr"
						  rs.open query,conn,1,1
						  if not rs.eof then
						  fstptid=rs("pt_id")
						  while not rs.eof  
              response.write "<A class=commonface style='text-decoration:underline;' href='prc_edt.asp?c_cls="&c_cls&"&ptid="&rs("pt_id")&"'>"
						  if clng(rs("pt_id"))=clng(ptid) then
                             response.write "<font color=#ff0000>"&rs("pt_nme")&"</font>"
						   else
                             response.write rs("pt_nme")
						   end if	 
			  response.write "</A> | "
      
						  rs.movenext
						  
						  wend
						  end if
						  rs.close
						
  %>
                    <a href="prc_edt.asp?c_cls=<%=c_cls%>&ptid=0" class=commonface  style="text-decoration:underline;">所有产品</a>&nbsp;</td>
                </tr>
                </tbody> 
              </table>
            </td>
          </tr>
          <tr> 
            <td height=25> 
              <div align="center"><a href="prc_adv.asp?c_cls=<%=c_cls%>&ptid=<%=ptid%>"  class=commonface  ><b><u>（其它特殊定价请点击进入）</u></b></a></div>
            </td>
          </tr>
        </table>
        <% 
					if   ptid<0 then
					ptid=fstptid
					end if
					if ptid=0 then
					query="select * from v_pdtlst order by pt_odr,pc_odr,g_odr"
					else
					query="select * from v_pdtlst where pt_id="&ptid&"  order by pt_odr,pc_odr,g_odr"
					end if
					rs.open query,conn,1,1
	%>
        <table border=0 cellpadding=0 
                        cellspacing=0 width="100%" bordercolordark="#FFFFFF" align="center" class=datalist>
          <tbody> 
          <form action=prc_mng.asp method=post name=price_all>
            <tr> 
              <th width="6%" class=datalistheader height=20 > 序号 </th>
              <th width="6%" class=datalistheader > 编号 </th>
              <th width="18%" class=datalistheader > 产品名称 </th>
              <th width="8%" class=datalistheader > 1年/份/套/... </th>
              <th width="8%" class=datalistheader > 2年/份/套/...</th>
              <th width="8%" align="center" class=datalistheader >3年/份/套/...</th>
              <th width="8%" align="center" class=datalistheader >4年/份/套/...</th>
              <th width="8%" align="center" class=datalistheader >5年/份/套/...</th>
              <th width="8%" align="center" class=datalistheader >月付</th>
              <th width="8%" align="center" class=datalistheader >季付</th>
              <th width="8%" align="center" class=datalistheader >半年付</th>
              <th  class=datalistheader > 操作 
                <input type=hidden name=module value="prc_edt_all">
                <input type=hidden name=p_cls value="<%=c_cls%>">
                <input type=hidden name=ptid value="<%=ptid%>">
              </th>
            </tr>
            <%
	tpenme=""					
  i=1
     do while not rs.eof
	 if  tpenme<>trim(rs("pt_nme")) then
	 %>
            <tr  > 
              <td  align=center colspan=12 class=datalistgridb  HEIGHT=25><font color=#ff0000><b><%=trim(rs("pt_nme"))%></b></font></td>
            </tr>
            <% end if %>
            <tr > 
              <td  align=center  class=datalistgridb ><%=i%></td>
              <td  align=center  class=datalistgridb ><%=trim(rs("g_prd"))%></td>
              <td  align=center  class=datalistgridb ><a /href="javascript:showurl('/master/sysmng/pdt_mng/pdt_edt.asp?g_prd=<%=rs("g_prd")%>');"> 
                <% if trim(rs("g_err"))="" then
						  response.write "<font color=#293954>"&rs("g_nme")&"</font>"
						  else
						  response.write "<br>"&rs("g_nme")&"</b>"
						  end if %>
                </a> </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=1  and p_tmetpe>=5  and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_1"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <%call yarlst("t"&rs("g_prd")&"_1",p_tmetpe,1)%>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=2 and p_tmetpe>=5   and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_2"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <%call yarlst("t"&rs("g_prd")&"_2",p_tmetpe,2)%>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=3 and p_tmetpe>=5   and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_3"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <%call yarlst("t"&rs("g_prd")&"_3",p_tmetpe,3)%>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=4  and p_tmetpe>=5  and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_4"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <%call yarlst("t"&rs("g_prd")&"_4",p_tmetpe,4)%>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=5  and p_tmetpe>=5  and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_5"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <%call yarlst("t"&rs("g_prd")&"_5",p_tmetpe,5)%>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=1 and p_tmetpe=2 and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_6"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <select name="t<%=rs("g_prd")%>_6" > 
				<option value="2"  style='background:#958471' >月</option> 
				</select>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=1 and p_tmetpe=3  and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_7"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <select name="t<%=rs("g_prd")%>_7"> 
				<option value="3"  style='background:#958471' >季</option> 
				</select>
              </td>
              <td  class=datalistgridb > 
                <% query1="select * from prclst where p_yar=1  and p_tmetpe=4  and p_cls="&c_cls&" and p_prd='"&trim(Rs("g_prd"))&"'"
			  rs1.open query1,conn,1,1
			  			  if not rs1.eof then
			  theprice=rs1("p_prc")
			  p_tmetpe=rs1("p_tmetpe")
			  else
			  theprice=""
			  p_tmetpe=5
			  end if
			  rs1.close
			  %>
                <input type="text" name="<%=rs("g_prd")%>_8"  size="6" value="<%=theprice%>" style="background:#CFCAC2">
                <select name="t<%=rs("g_prd")%>_8"> 
				<option value="4"  style='background:#958471' >半年</option> 
				</select>
              </td>
              <td  align=center  class=datalistgridb > 
                <input type=button name=okit value="修 改" class=btxx onClick="javascript:ja_prc_edit_single('<%=rs("g_prd")%>',document.price_all.<%=rs("g_prd")%>_1.value,document.price_all.<%=rs("g_prd")%>_2.value,document.price_all.<%=rs("g_prd")%>_3.value,document.price_all.<%=rs("g_prd")%>_4.value,document.price_all.<%=rs("g_prd")%>_5.value,document.price_all.<%=rs("g_prd")%>_6.value,document.price_all.<%=rs("g_prd")%>_7.value,document.price_all.<%=rs("g_prd")%>_8.value,document.price_all.t<%=rs("g_prd")%>_1.options(price_all.t<%=rs("g_prd")%>_1.options.selectedIndex).value,document.price_all.t<%=rs("g_prd")%>_2.value,document.price_all.t<%=rs("g_prd")%>_3.value,document.price_all.t<%=rs("g_prd")%>_4.value,document.price_all.t<%=rs("g_prd")%>_5.value,document.price_all.t<%=rs("g_prd")%>_6.value,document.price_all.t<%=rs("g_prd")%>_7.value,document.price_all.t<%=rs("g_prd")%>_8.options(price_all.t<%=rs("g_prd")%>_8.options.selectedIndex).value);">
              </td>
            </tr>
            <%
						tpenme=trim(rs("pt_nme"))
  rs.movenext
  
i=i+1
  loop 
  %>
          </form>
          </tbody> 
        </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height=8></td>
          </tr>
        </table>
        <div align="center"> <br>
          <input type="button" name="Submit" value="修 改" onClick="javascript:document.price_all.submit();" class=btxx>
          <input type="button" name="Submit2" value="重置"  onClick="javascript:document.price_all.reset();"  class=btxx>
        </div>
      </div>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="20"> 
      说明：<br><br>
1、升级类的产品价格必须定义在"1年/份/套..."栏上。<br>
2、只果仅仅是修改某一产品的价格，那么只需点击该产品后面的"修改"按钮进行修改即可。如果涉及到多项产品价格的修改，则可以点击屏幕下方的按钮，一次性进行修改。<br>
3、如果您需要定义特殊的产品价格（比如域名一次购买100年的价格），则可以点击"其它特殊价格请点击进入"进行自主定义。
    </td>
  </tr> <tr> 
    <td  colspan=2 valign="top" height="20"> 
      <form action="prc_mng.asp" method=post name=prc_edit_single>
        <input  type=hidden name="p_cls" value="<%=c_cls%>">
        <input type="hidden" name="p_prd" value="">
        <input type="hidden" name="p_prc_1" value="">
        <input type="hidden" name="p_prc_2" value="">
        <input type="hidden" name="p_prc_3" value="">
        <input type="hidden" name="p_prc_4" value="">
        <input type="hidden" name="p_prc_5" value="">
        <input type="hidden" name="p_prc_6" value="">
        <input type="hidden" name="p_prc_7" value="">
        <input type="hidden" name="p_prc_8" value="">
        <input type="hidden" name="t_prc_1" value="">
        <input type="hidden" name="t_prc_2" value="">
        <input type="hidden" name="t_prc_3" value="">
        <input type="hidden" name="t_prc_4" value="">
        <input type="hidden" name="t_prc_5" value="">
        <input type="hidden" name="t_prc_6" value="">
        <input type="hidden" name="t_prc_7" value="">
        <input type="hidden" name="t_prc_8" value="">
        <input type="hidden" name="ptid" value="<%=ptid%>">
        <input type="hidden" name="module" value="prc_edt_single">
      </form>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->

