<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,20,1
					ptid=SafeRequest("ptid")
%>
<script language=javascript>
function ifdel(ptid,gid)
{
if(confirm("提示：是否确认删除！"))
showurl("pdt_mng.asp?module=<%=server.urlencode("pdt_del")%>&ptid="+ptid+"&gid="+gid);
}
</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="pdt_lst.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="top" height="28"> 
      <div align="center"> 
        <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> 
              <%conn.open constr
						  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='pdt_lst.asp?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="pdt_lst.asp?ptid=0" class=commonface  style="text-decoration:underline;">所有产品</A>&nbsp;</TD>
          </tr>
          </tbody> 
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height=8></td>
          </tr>
        </table>
      </div>
      <table border="0" width=100% align="center" cellPadding="0" cellSpacing="0" class="datalist">
        <tbody> 
        <tr  > 
          <th height="20" align=center width="6%"  class=datalistheader> 序号</th>
          <th align=center width="20%" class=datalistheader>名称</th>
          <th align=center width="8%"  class=datalistheader>编号</th>
          <th align=center width="6%" class=datalistheader>容量</th>
          <th align=center width="6%" class=datalistheader>连接数</th>
          <th align=center width="12%" class=datalistheader>二级分类</th>
          <th align=center width="12%" class=datalistheader>顶级分类</th>
          <th align=center width="5%" class=datalistheader>开通</th>
          <th align=center width="9%" class=datalistheader>状态</th>
          <th align=center width="6%" class=datalistheader>下级平台可获取</th>
          <th align=center  class=datalistheader>管理</th>
        </tr>
        <%
					if  not chk_int(ptid) 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
					i=1
	 While Not rs.eof 
	 if i mod 2=1 then
	 classstl="datalistgrida"
	 else
	 classstl="datalistgridb"
	 end if
%>
        <tr > 
          <td height="22"  align=center class=<%=classstl%>><%=rs("g_id")%></td>
          <td  align=left class=<%=classstl%>>&nbsp;<a href="javascript:showurl('pdt_edt.asp?g_prd=<%=rs("g_prd")%>');" class=commonface><%=rs("g_nme")%></a></td>
          <td  align=center class=<%=classstl%>><%=rs("g_prd")%></td>
          <td  align=center class=<%=classstl%>>&nbsp;<%=rs("g_sze")%></td>
          <td  align=center class=<%=classstl%>>&nbsp;<%=rs("g_maxcns")%></td>
          <td  align=left class=<%=classstl%>>&nbsp;<%=rs("pc_nme") %></td>
          <td  align=left class=<%=classstl%>>&nbsp;<%=rs("pt_nme") %></td>
          <td  align=left class=<%=classstl%>>&nbsp; 
            <% if trim(rs("g_ifnow"))="1"  then
					  response.write "<font color=#ff0000>实时</font>"
					  else
					  response.write "手工"
					  end if 
				
					  %>
          </td>
          <td  align=left class=<%=classstl%>>&nbsp; 
            <% if trim(rs("g_err"))<>""  then
					  response.write "<font color=#ff0000>停止</font>"
					  else
					  response.write "正常"
					  end if 
					  if cstr(rs("g_shw"))="0"  then
					  response.write "<font color=#ff0000>(隐)</font>"

					  end if 
					  %>
          </td>
          <td  align=left class=<%=classstl%>>&nbsp; 
            <% if rs("g_ifagt")<>"1"  then
					  response.write "<font color=#ff0000>禁止</font>"
					  else
					  response.write "允许"
					  end if 
					  
					  %>
          </td>
          <td  align=center class=<%=classstl%>> <a href="javascript:ifdel('<%=rs("pt_id")%>','<%=rs("g_id")%>');" class=commonface>删除</a>&nbsp; 
            <a href="javascript:showurl('pdt_edt.asp?g_prd=<%=rs("g_prd")%>');" class=commonface>修改</a> 
          </td>
        </tr>
        <%i=i+1 
				
  rs.movenext
wend
  	rs.close
	
  %>
        </tbody> 
      </table>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="20"><br>
      <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> 
            <%
						  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  %>
            <A class=commonface style="text-decoration:underline;" href="pdt_lst.asp?ptid=<%=rs("pt_id")%>"> 
            <%=rs("pt_nme")%> </A>| 
            <%
						  rs.movenext
						  
						  wend
						  end if
						  rs.close
						  %>
            <A href="pdt_lst.asp?ptid=0" class=commonface  style="text-decoration:underline;"> 
            所有产品&nbsp;</A></TD>
        </tr>
        </tbody> 
      </table>
      <br>
      <br>
    </td>
  </tr>
  </tbody> 
</table>
<!--#include virtual="/incs/bottom.asp"-->









