<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,18,1
perpage=20
ThePage=0
conn.open constr
perpage=SafeRequest("perpage")
if chk_int(perpage)=false then
perpage=12
end if 
perpage=clng(perpage)
ThePage=0
page=0
rcount=0
thepage=0
cid=SafeRequest("cid")
if chk_int(clsid) then
 query="select * from clslst where  c_id="&cid &"  order by c_pwr desc"
else
 query="select * from clslst  order by c_pwr desc"
end if
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

		
 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    rs.open query,conn,1,1
    if rs.RecordCount<=0 then
          ErrMsg=ErrMsg+"<font color=#ff0000>对不起，</font>没有找到记录！..."
	else
	      ifshow=1
	       rcount=rs.recordcount
	      rs.pagesize=perpage
		  ThePage=rs.pagecount
		  if Chk_Int(SafeRequest("page"))=false then
		  page=1
		  else
		   page=cint(SafeRequest("page"))
		    if page<=0  then
		       page=1
		    elseif page>ThePage then
		       page=ThePage
		    end if	  
		  end if
		    rs.absolutepage=page
    end if 
%>
<script language=javascript>
function ifdel(c_cls)
{
if(confirm("提示：是否确认删除！"))
location.href="prc_mng.asp?module=<%=server.urlencode("prc_del")%>&c_cls="+c_cls;
}
function tofirst()
{searchform.page.value=1;
searchform.submit();
 }
  function toprev()
{searchform.page.value-=1;
searchform.submit();
 }
  function tonext()
{
searchform.page.value=<%=page%>-1+2;
searchform.submit();
 }
  function tolast()
{searchform.page.value=<%=ThePage%>;
searchform.submit();
 }
 function toorder(ordn)
{searchform.ordernum.value=ordn;
searchform.page.value=1;
searchform.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="../../prc_mng/pdt_tpe.asp"></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="top" height="28"> 
      <div align="center"> 
        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tbody> 
          <form action=prc_lst.asp method=post name=searchform2>
            <tr> 
              <td height=20 width="119">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
              <td height=20> 
                <div align="center"><%=page_turn%></div>
              </td>
              <td height=20 width="120"> 
                <div align="right">转第 
                  <select name="page" onChange="javascript:document.searchform2.submit();">
                    <option selected value=<%=page%>><%=page%></option>
                    <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %>
                  </select>
                  页</div>
              </td>
            </tr>
          </form>
          </tbody> 
        </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height=12></td>
          </tr>
        </table>
        <table border=0 cellpadding=0 
                        cellspacing=0 width="100%"  align="center" class=datalist>
          <tbody> 
          <tr> 
            <th width="5%"  class=datalistheader height=20> 序号 </th>
            <th width="18%"  class=datalistheader > 等级名称 </th>
            <th width="12%" align="center" class=datalistheader >价格类别</th>
            <th width="10%" align="center" class=datalistheader >等级编号</th>
            <th width="30%"  class=datalistheader > 说明 </th>
            <th  class=datalistheader > 修改价格 </th>
            <th  class=datalistheader > 删除 </th>
            <th  class=datalistheader > 更改属性 </th>
          </tr>
          <%
  i=1
   do while not rs.eof %>
          <form action="prc_mng.asp" method=post>
            <tr   > 
              <td height="20" class=datalistgridb align=center onClick="javascript:showurl('prc_edt.asp?c_cls=<%=rs("c_cls")%>');" style="cursor:hand;"><u>&nbsp;<%=i+perpage*(page-1)%>&nbsp;</u></td>
              <td  align=center class=datalistgridb > 
                <input type=text name=c_nme value="<%=rs("c_nme")%>" size=15 class=normalform >
                <input type=hidden name=c_cls value="<%=rs("c_cls")%>">
                <input type=hidden name=module value="prc_nme_edt">
              </td>
              <td  align=center class=datalistgridb > 
                <select name="c_pwr" class=normalform >
                  <option value="0"  <%if rs("c_pwr")="0" then
							  response.write " selected"
							  end if %>>直接客户</option>
                  <option value="1" style="color:#ff0000;" <%if rs("c_pwr")="1" then
							  response.write " selected"
							  end if %>>初级代理</option>
                  <option value="2" <%if rs("c_pwr")="2" then
							  response.write " selected"
							  end if %>>高级代理</option>
                  <option value="3" <%if rs("c_pwr")="3" then
							  response.write " selected"
							  end if %>>管理等级</option>
                </select>
              </td>
              <td  align=center class=datalistgridb > 
                <input type="text" name="c_clss" size="8" value="<%=rs("c_cls")%>" disabled=1>
              </td>
              <td  align=center class=datalistgridb > 
                <input type=text name=c_inf value="<%=rs("c_inf")%>" size=32  class=normalform >
              </td>
              <td  align=center class=datalistgridb > 
                <input type="button" name="Submit3" value="查 看" class=btxx  onClick="javascript:showurl('prc_edt.asp?c_cls=<%=rs("c_cls")%>');">
              </td>
              <td  align=center class=datalistgridb > 
                <input type="button" name="Submit3" value="删 除" class=btxx   onClick="javascript:ifdel('<%=rs("c_cls")%>');">
              </td>
              <td  align=center class=datalistgridb > 
                <input type="submit" name="Submit4" value="更 改" class=btxx >
              </td>
            </tr>
          </form>
          <%
  rs.movenext
i=i+1
if i>perpage then
exit do
end if

  loop 
  %>
          </tbody> 
        </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height=8></td>
          </tr>
        </table>
        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tbody> 
          <form action=prc_lst.asp method=post name=searchform>
            <tr> 
              <td height=20 width="120">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
              <td height=20> 
                <div align="center"><%=page_turn%></div>
              </td>
              <td height=20 width="120"> 
                <div align="right">转第 
                  <select name="page" onChange="javascript:document.searchform.submit();">
                    <option selected value=<%=page%>><%=page%></option>
                    <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %>
                  </select>
                  页</div>
              </td>
            </tr>
          </form>
          </tbody> 
        </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height=8></td>
          </tr>
        </table>
        <table border=0 cellpadding=0 
                        cellspacing=0 width="100%" class=datalist>
          <tbody> 
          <tr > 
            <th width="33%" class=datalistheader height=20 > 等级名称 </th>
            <th width="12%" align="center" class=datalistheader >价格类别</th>
            <th width="10%" align="center" class=datalistheader >等级编号</th>
            <th width="30%" class=datalistheader > 简短说明 </th>
            <th  width="33%" class=datalistheader > 添加 </th>
          </tr>
          <form action="prc_mng.asp" method=post name=prcadd>
            <tr > 
              <td  align=center height="20"  class=datalistgridb > 
                <input type="text" name="c_nme" size="15">
              </td>
              <td  align=center class=datalistgridb > 
                <select name="c_pwr" class=normalform >
                  <option value="0"  class=normalform>直接客户</option>
                  <option value="1" style="color:#ff0000;" class=normalform>初级代理</option>
                  <option value="2" >高级代理</option>
                  <option value="3" >管理等级</option>
                </select>
              </td>
              <td  align=center class=datalistgridb > 
                <input type="text" name="c_cls" size="8">
              </td>
              <td  align=center  class=datalistgridb > 
                <input type="text" name="c_inf" size="32">
              </td>
              <td  align=center  class=datalistgridb > 
                <input type=hidden name=module value="prc_add">
                <input type="submit" name="Submit42" value="添 加" class=btxx>
              </td>
            </tr>
          </form>
          </tbody> 
        </table>
      </div>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="20"> 
      <p><br>
        注1:初级价格：具备初级价格管理权限的管理员可以把下级会员调整为该等级。<br>
        注2:高级价格：具备高级价格管理权限的管理员可以把下级会员调整为该等级。<br>
        注3:更改属性：用于更改等级名称、价格类别和说明。<br>
        <br>
        <br>
      </p>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->
