<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<% chk_log()%>
<%
chk_newpwr 4,20,1
%>
<script language=javascript>
function ifdel(ptid)
{
if(confirm("提示：是否确认删除！"))
location.href="pdt_mng.asp?module=<%=server.urlencode("pt_del")%>&ptid="+ptid;
}
function winopen(formname,objectname,colorselected)
{
window.open("/incs/colorform.asp?formname="+formname+"&objectname="+objectname+"&colorselected="+colorselected,"颜色选择器","scrollspan=no,width=300,height=200");
}
</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>
      <br>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28" align="center"> 
      <form action="pdt_mng.asp" method=post name=ptmng>
        <table border="0" width=100% align="center" cellPadding="0" cellSpacing="0" class="datalist">
          <tbody> 
          <tr  > 
            <th height="20" width="5%" align=center class=datalistheader> 序号 </th>
            <th width="10%" align=center class=datalistheader>产品类别名称</th>
            <th width="12%" align=center class=datalistheader>产品类别#</th>
            <th width="10%" align=center class=datalistheader>分类编号</th>
            <th width="10%" align=center class=datalistheader>顺序</th>
            <th width="15%" align=center class=datalistheader>显示颜色</th>
            <th width="12%" align=center class=datalistheader>是否在价格表显示</th>
            <th width="12%" align=center class=datalistheader>下级平台可获取</th>
            <th align=center class=datalistheader>管理</th>
          </tr>
          <%
					   conn.open constr
					   query="select * from pdttpe  order by pt_odr"
					   rs.open query,conn,1,1
					   while not rs.eof
					    %>
          <tr > 
            <td height="22"  align=center class=datalistgridb><%=rs("ptid")%></td>
            <td  align=center class=datalistgridb> 
              <input type="text" name="pt_name_<%=rs("ptid")%>" value="<%=rs("pt_nme")%>" size=15 class=normalform>
            </td>
            <td  align=center class=datalistgridb> 
              <select class=normalform name="pt_tag_<%=rs("ptid")%>">
                <option value="dme" <%if rs("pt_tag")="dme" then
			  response.write " selected "
			  end if%>>域名</option>
                <option value="hst" <%if rs("pt_tag")="hst" then
			  response.write " selected "
			  end if%>>主机</option>
                <option value="eml" <%if rs("pt_tag")="eml" then
			  response.write " selected "
			  end if%>>邮局</option>
                <option value="sql" <%if rs("pt_tag")="sql" then
			  response.write " selected "
			  end if%>>数据库</option>
                <option value="ftp" <%if rs("pt_tag")="ftp" then
			  response.write " selected "
			  end if%>>FTP空间</option>
                <option value="adv" <%if rs("pt_tag")="adv" then
			  response.write " selected "
			  end if%>>网络推广</option>
                <option value="svr" <%if rs("pt_tag")="svr" then
			  response.write " selected "
			  end if%>>整机租用</option>
                <option value="dsn" <%if rs("pt_tag")="dsn" then
			  response.write " selected "
			  end if%>>网站建设</option>
                <option value="set" <%if rs("pt_tag")="set" then
			  response.write " selected "
			  end if%>>捆绑销售</option>
                <option value="ot1" <%if rs("pt_tag")="ot1" then
			  response.write " selected "
			  end if%>>自定义1</option>
                <option value="ot1" <%if rs("pt_tag")="ot1" then
			  response.write " selected "
			  end if%>>自定义1</option>
                <option value="ot2" <%if rs("pt_tag")="ot2" then
			  response.write " selected "
			  end if%>>自定义2</option>
                <option value="ot3" <%if rs("pt_tag")="ot3" then
			  response.write " selected "
			  end if%>>自定义3</option>
                <option value="ot4" <%if rs("pt_tag")="ot4" then
			  response.write " selected "
			  end if%>>自定义4</option>
                <option value="ot5" <%if rs("pt_tag")="ot5" then
			  response.write " selected "
			  end if%>>自定义5</option>
              </select>
            </td>
            <td  align=center class=datalistgridb> 
              <input type="text" name="addf" value="<%=rs("pt_id")%>"  size=10  class=normalform disabled=1>
              <input type="hidden" name="pt_id_<%=rs("ptid")%>" value="<%=rs("pt_id")%>" >
            </td>
            <td  align=center class=datalistgridb> 
              <input type="text" name="pt_order_<%=rs("ptid")%>" value="<%=rs("pt_odr")%>"  size=10  class=normalform>
            </td>
            <td  align=center class=datalistgridb> 
              <table border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td  > 
                    <input type="text" name="pt_clr_<%=rs("ptid")%>" value="<%=rs("pt_clr")%>"  size=10  class=normalform>
                  </td>
                  <td  >&nbsp; </td>
                  <td> 
                    <table width="20" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" height="17">
                      <tr> 
                        <td onClick="javascript:winopen('ptmng','pt_clr_<%=rs("ptid")%>',document.ptmng.pt_clr_<%=rs("ptid")%>.value.substr(1));" style="cursor:hand;border:#000000 1px double" bgcolor='<%=rs("pt_clr")%>' id="cpt_clr_<%=rs("ptid")%>">&nbsp;</td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
            <td  align=center class=datalistgridb> 
              <select name="pt_show_<%=rs("ptid")%>" class=normalform>
                <option value="1" <%if rs("pt_shw")=1 then
							response.write " selected"
							end if %>>显示</option>
                <option value="0" <%if rs("pt_shw")=0 then
							response.write " selected"
							end if %>  style='color:#ff0000'>不显示</option>
              </select>
            </td>
            <td  align=center class=datalistgridb> 
              <select name="pt_ifagt_<%=rs("ptid")%>" class=normalform>
                <option value="1" <%if rs("pt_ifagt")=1 then
							response.write " selected"
							end if %>>允许</option>
                <option   style='color:#ff0000' value="0" <%if rs("pt_ifagt")=0 then
							response.write " selected"
							end if %>>禁止</option>
              </select>
            </td>
            <td  align=center class=datalistgridb> <a href="javascript:ifdel('<%=rs("ptid")%>');" class=commonface>删除</a> 
              &nbsp;&nbsp; <a class=commonface  href="javascript:showurl('pdt_cls.asp?ptid=<%=rs("pt_id")%>');">二级分类</a> 
            </td>
          </tr>
          <% 
					 
					newodr=cint(rs("pt_odr"))+1
					rs.movenext
					wend
					rs.close
					conn.close
					%>
          </tbody> 
        </table>
        <br>
        <input type="hidden" name="module" value="pt_edt" >
        <input type="submit" name="Submit" value="提交" class=btxx onclick="javascript:return confirmit();">
        <input type="reset" name="Submit" value="重填"  class=btxx>
      </form>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="20"> 
      <div align="center"> <b>产品分类添加</b><br>
        <br>
      </div>
    </td>
  </tr>
  <tr> 
    <td  colspan=2 valign="top" height="28"> 
      <table border=0 cellpadding=0 
                        cellspacing=0  align="center" width="100%" class=datalist>
        <tbody> 
        <form action="pdt_mng.asp" method=post name=ptadd>
          <tr  > 
            <th height="20" width="5%" align=center class=datalistheader> 序号 </th>
            <th width="10%" align=center class=datalistheader>产品分类</th>
            <th width="12%" align=center class=datalistheader>产品类别#</th>
            <th width="10%" align=center class=datalistheader>分类编号</th>
            <th width="10%" align=center class=datalistheader>顺序</th>
            <th width="15%" align=center class=datalistheader>显示颜色</th>
            <th width="12%" align=center class=datalistheader>是否在价格表显示</th>
            <th width="12%" align=center class=datalistheader>下级平台可获取</th>
            <th align=center class=datalistheader>添加</th>
          <tr > 
            <td height="22"  align=center class=datalistgridb>&nbsp;</td>
            <td  align=center class=datalistgridb> 
              <input type="text" name="pt_name" size="15" maxlength="20" class=normalform>
            </td>
            <td  align=center class=datalistgridb> 
              <select class=normalform name=pt_tag>
                <option value="dme">域名</option>
                <option value="hst">主机</option>
                <option value="eml">邮局</option>
                <option value="sql">数据库</option>
                <option value="ftp">FTP空间</option>
                <option value="adv">网络推广</option>
                <option value="svr">整机租用</option>
                <option value="dsn">网站建设</option>
                <option value="set">捆绑销售</option>
                <option value="ot1">自主义1</option>
                <option value="ot2">自主义2</option>
                <option value="ot3">自主义3</option>
                <option value="ot4">自主义4</option>
                <option value="ot5">自主义5</option>
              </select>
            </td>
            <td  align=center class=datalistgridb> 
              <input type="text" name="pt_id"  size=10  class=normalform>
            </td>
            <td  align=center class=datalistgridb> 
              <input type="text" name="pt_order" size="10" value="<%=newodr%>" maxlength="5" class=normalform>
            </td>
            <td  align=center class=datalistgridb> 
              <table border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td  > 
                    <input type="text" name="pt_clr"  size=10  class=normalform>
                  </td>
                  <td  >&nbsp; </td>
                  <td> 
                    <table width="20" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" height="17">
                      <tr> 
                        <td onclick="javascript:winopen('ptadd','pt_clr',document.ptadd.pt_clr.value.substr(1));" style="cursor:hand;border:#000000 1px double" bgcolor='#000000' id="cpt_clr">&nbsp;</td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
            <td  align=center class=datalistgridb> 
              <select name="pt_show" class=normalform>
                <option value="1" >显示</option>
                <option value="0"  style='color:#ff0000'>不显示</option>
              </select>
            </td>
            <td  align=center class=datalistgridb> 
              <select name="pt_ifagt" class=normalform>
                <option value="1" >允许</option>
                <option value="0" style='color:#ff0000'>禁止</option>
              </select>
            </td>
            <td  align=center class=datalistgridb> <a href="javascript:document.ptadd.submit();" class=commonface>添加</a> 
              <input type="hidden" name="module" value="pt_add" >
            </td>
          </tr>
        </form>
        </tbody> 
      </table>
    </td>
  </tr>
  </tbody> 
</table>
<br>
# 注：系统识别标志中的捆绑销售是指几个产品打包一起以优惠价出售，可以同时容纳五个产品的打包（限于域名/主机/邮局/SQL库/推广) 
<!--#include virtual="/incs/bottom.asp"-->


