<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
if Uname="" or isnull(Uname)  then
response.Write "<script >alert('提示：\n\n对不起,资料还没有完善,请完善以后\n\n立即返回...');location.href='Profile_Edit.asp';</script>"
response.End()
end if

	set rs=Server.CreateObject("Adodb.Recordset")
	sql="select id from H_shop where UID="&UID&""
	rs.open sql,conn,1,1
	if rs.eof then
	response.Write "<script >alert('提示：\n\n系统规定，开通后商家以后才可以发布产品...');location.href='shop_add.asp';</script>"
response.End()
	end if
		set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_Class where UID="&UID&" and PCF=3 order by PCX desc"
	rs.open sql,conn,1,1
	if rs.eof then
	response.Write "<script >alert('提示：\n\n您没有增加，您商店的产品种类\n\n如： 男装.女装 等等\n\n我想是对您的销售是有帮助的\n\n我们将帮你转到您的产品种类...');location.href='CProducts.asp';</script>"
response.End()
	end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,会员中心</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
			      <%sql = "select *  from H_Industry order by H_px desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>
                    <script language = "JavaScript" type="text/javascript">
var onecount;
onecount=0;
subcat = new Array();
<%count = 0
do while not rs.eof%>
subcat[<%=count%>] = new Array("<%= trim(rs("h_name"))%>","<%= trim(rs("h_id"))%>","<%= trim(rs("id"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
        set rs=nothing%>
onecount=<%=count%>;

function changelocation(ypxxone)
    {
    document.addform.ypxxtwo_id.length = 0; 

    var ypxxone_id=ypxxone_id;
    var i;
    document.addform.ypxxtwo_id.options[0] = new Option('请选择小类','');
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == ypxxone)
            { 
                document.addform.ypxxtwo_id.options[document.addform.ypxxtwo_id.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
              </script>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
        <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">用户中心</a> &gt; 首页</td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
                </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>

			
			<form action="Products_add_save.asp" method="post"  name="addform" enctype="multipart/form-data" target="_self">
            <table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
                <tr>
                    <td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="uc_huise">发布二手信息</td>
                </tr>
                <tr>
                  <td height="30" align="left" bgcolor="#FFFFFF" class="uc_huise">产品种类</td>
                  <td height="15" align="left" bgcolor="#FFFFFF" class="uc_huise"><%
		set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_Class where UID="&UID&" and PCF=3 order by PCX desc"
	rs.open sql,conn,1,1
	if rs.eof then
	response.Write "你没有增加产品种类，请<a href=CProducts.asp target=_self>增加我的产品种类</a>"
	else
		%>
		<select name="H_class" id="H_class">
		<%
		
	do while not rs.eof 
		%>
		
		
		  <option value="<%=rs("ID")%>"><%=rs("PCN")%></option>
		
				<%
				rs.movenext 
				loop
				rs.close
				%>		
			  </select>
				<a href="CProducts.asp" target="_self" class="fc_green">管理我的产品种类</a>
				<%end if%>						</td>
                </tr>
                <tr>
                    <td width="96" height="-1" bgcolor="#FFFFFF" class="uc_huise">交易方式：</td>
                  <td width="701" height="30" align="left" bgcolor="#FFFFFF" style="padding-left:10px;"><input type="radio" name="H_sort" value="1">
                  上门取货
                    <input type="radio" name="H_sort" value="2">
                    送货上门
                    <input type="radio" name="H_sort" value="3">
                    <span class="fc_red">                    两者都可                    </span></td>
                </tr>
                <tr>
                  <td width="96" height="0" bgcolor="#FFFFFF" class="uc_huise"><span style="padding-right: 18px;">费</span> 用：</td>
                  <td height="30" align="left" bgcolor="#FFFFFF" style="padding-left:10px;">
                    <input name="H_Costs" type="text" id="H_Costs">                  </td>
                </tr>
                <tr>
                  <td width="96" height="1" bgcolor="#FFFFFF" class="uc_huise">所 在 地：</td>
                  <td height="30" align="left" bgcolor="#FFFFFF" style="padding-left:10px;">
                    <input name="H_Address" type="text" id="H_Address" size="60"></td>
                </tr>
                <tr>
                  <td width="96" height="30" bgcolor="#FFFFFF" class="uc_huise">产品名称：</td>
                  <td height="14" align="left" bgcolor="#FFFFFF" style="padding-left:10px;">
                    <input name="H_title" type="text" id="H_title" size="60">                  </td>
                </tr>
                <tr>
                  <td width="96" height="30" bgcolor="#FFFFFF" class="uc_huise">总站分类：</td>
                  <td height="7" align="left" bgcolor="#FFFFFF" style="padding-left:10px;"><select name="ypxxone_id" class="fs_11" onChange="changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value)">
                              <option value="" selected="selected">请选择大类</option>
                              <%
sql="select *  from H_Industry where h_id=0 order by H_px desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
                              <option value="<%=rs("id")%>"><%=rs("H_name")%></option>
                              <%rs.movenext
wend
rs.Close()
%>
              </select>
                              <select name="ypxxtwo_id" class="fs_11">
                                <option selected="selected" value="">请选择小类</option>
              </select></td>
                </tr>
                <tr>
                  <td width="96" height="70" bgcolor="#FFFFFF" class="uc_huise">简单介绍：</td>
                  <td height="7" align="left" bgcolor="#FFFFFF" style="padding-left:10px;"><textarea name="H_tion" cols="60" rows="4" id="H_tion"></textarea>
                    200字以内</td>
                </tr>
                <tr>
                  <td width="96" height="7" bgcolor="#FFFFFF" class="uc_huise">详细信息：</td>
                  <td height="30" align="left" bgcolor="#FFFFFF" style="padding-left:10px;"><textarea name="H_neirong" style="display:none"></textarea> 
					  <IFRAME ID="eWebEditor1" SRC="../redit/ewebeditor.htm?id=H_neirong&style=mail" FRAMEBORDER="0" SCROLLING="no" WIDTH="610" HEIGHT="300"></IFRAME></td>
                </tr>
                <tr>
                  <td width="96" height="15" bgcolor="#FFFFFF" class="uc_huise">产品图片</td>
                  <td height="120" align="left" bgcolor="#FFFFFF" style="padding-left:10px;"><img src="../images/err.gif?1230944324834" name="picview" width="68" class="biao" id="picview" /><br> 

<input name="H_PIC" type="file" size="40" id="spaceimage" onChange="SeePic($Obj('picview'),$Obj('spaceimage'));" />					
				  <input type="hidden" name="oldimg" value="../images/wh.jpg" /></td>
                </tr>
                <tr>
                    <td height="30" colspan="2" align="center" bgcolor="#FFFFFF" ><input name="Submit" type="submit" class="UCform" value="立即发布"></td>
                    </tr>
            </table>
	        
			</form>
		</td>
    </tr>
</table>
<!--#include file="end.asp"-->

</BODY></HTML>
