<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Info_manage_edit" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
<title><%=AppConst.SiteName%></title>
<script type="Text/JavaScript" language="JavaScript"> 
var subval2 = new Array(); 
//数组结构：一级根值,二级根值,二级显示值
<%=GetSmallClassArray("subval2")%>
var subval3 = new Array(); 
//数组结构：二级根值,三级根值,三级显示值 
<%=GetThreeClassArray("subval3") %>

function changeselect1(locationid) 
{ 
      document.form.s2.length = 0; 
      document.form.s2.options[0] = new Option('==请选择二级分类==',''); 
      document.form.s3.length = 0; 
      document.form.s3.options[0] = new Option('==请选择三级分类==',''); 
      for (i=0; i<subval2.length; i++) 
      { 
          if (subval2[i][0] == locationid) 
          {document.form.s2.options[document.form.s2.length] = new Option(subval2[i][1],subval2[i][2]);} 
      } 
} 

function changeselect2(locationid) 
{ 
      document.form.s3.length = 0; 
      document.form.s3.options[0] = new Option('==请选择三级分类==',''); 
      for (i=0; i<subval3.length; i++) 
      { 
          if (subval3[i][0] == locationid) 
          {document.form.s3.options[document.form.s3.length] = new Option(subval3[i][1],subval3[i][2]);} 
      } 
} 
//--> 

function check(){
	if(document.form.I_type.value==""){
		alert("请选择商机类别！");
		document.form.I_type.focus();
		return false;
	}
		
	if(document.form.s1.value==""){
		alert("请选择行业一级分类！");
		document.form.s1.focus();
		return false;
	}
	if(document.form.s2.value==""){
		alert("请选择行业二级分类！");
		document.form.s2.focus();
		return false;
	}
	
//	if(document.form.s3.value==""){
//		alert("请选择行业三级分类！");
//		document.form.s3.focus();
//		return false;
//	}
	if(document.form.I_title.value==""){
		alert("请输入信息标题！");
		document.form.I_title.focus();
		return false;
	}
	if(document.form.I_explain.value==""){
		alert("信息内容不能为空！");
		document.form.I_explain.focus();
		return false;
	}
}

</script>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {color: #FF0000}
.M {FONT: 14px 宋体
}
.style2 {	font-size: 10pt;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<table style="width:100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr class="topbg">
        <td style="height:25" align="center" class="topbg"><strong>修　改 商 业 机 会</strong></td>
      </tr>
    </table>
      <table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:25"><div align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></div></td>
        <td><a href="info_manage.aspx?I_type=1">供应</a> | <a href="info_manage.aspx?I_type=2">求购</a> | <a href="info_manage.aspx?I_type=3">合作</a> | <a href="info_manage.aspx?I_type=4">代理</a> | <a href="info_manage.aspx?I_type=5">库存</a> | <a href="info_manage.aspx?I_type=6">加工</a> </td>
        <td style="width:400"><table style="width:400"  border="0" align="right" cellpadding="2" cellspacing="0">
            <form name="form1" method="get">
              <tr>
                <td style="height:25" align="right">搜索关键字：</td>
                <td style="width:90" align="center">
                  <input name="keyword" type="text" id="keyword" size="10" style="width:80" /></td>
                <td><div align="center"> 类别：
                        <select name="I_type" id="I_type">
                          <option value="" selected="selected">请选择类别</option>
                          <option value="1">供应</option>
                          <option value="2">求购</option>
                          <option value="3">合作</option>
                          <option value="4">代理</option>
                          <option value="5">库存</option>
                          <option value="6">加工</option>
                        </select>
                </div></td>
                <td style="width:10%"><input type="submit" name="Submit" value="  搜索 " /></td>
              </tr>
            </form>
        </table></td>
      </tr>
    </table>
    <table style="height:436; width:100%" border="0" cellpadding="4" cellspacing="1" class="border">
        <form method="POST" action="" onsubmit="return check();" name="form">
          <tr>
            <td style="background-color:#C4E4FF; width:40%" align="right"><div align="right">信息类别：</div></td>
            <td style="background-color:#F1F9FF; height:20" colspan="2"><font color="#000000">
			<select name="I_type" id="I_type">
                  <option value="1">供应</option>
				  <option value="2">求购</option>
				  <option value="3">合作</option>
				  <option value="4">代理</option>
				  <option value="5">库存</option>
				  <option value="6">加工</option>
              </select>
              <script type="text/javascript">document.all.I_type.value=<%=rs("I_type").Value%>;</script>
            </font></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right"><div align="right">信息标题：</div></td>
            <td style="background-color:#F1F9FF; height:20" colspan="2"><font color="#000000">
              <input name="I_title" type="text" id="I_title" value="<%=rs("I_title").Value%>"  size="30" maxlength="20" />
            </font> </td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right"><div align="right">最新分类：</div></td>
            <td style="background-color:#F1F9FF; height:3" colspan="2">
                <select name="s1" id="s1" onchange="changeselect1(this.value)">
                <%=GetBigClassOptions()%>
                </select> 
                <select name="s2" id="s2" onchange="changeselect2(this.value)">
                </select> 
                <select name="s3" id="s3" style="visibility:hidden"> 
                </select> 
            </td>
            <script type="text/javascript">
                document.all.s1.value = '<%=rs("I_BigClassID").Value%>';
                changeselect1(document.all.s1.value);
                document.all.s2.value = '<%=rs("I_SmallClassID").Value%>';
                changeselect2(document.all.s2.value);
            </script>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right">发布时间：</td>
            <td style="background-color:#F1F9FF; height:5" colspan="2"><font color="#000000">
              <input name="I_FbTime" type="text" id="I_FbTime" value="<%=rs("I_FbTime").Value%>"  size="20" maxlength="20" disabled="disabled" />
            </font></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right"><div align="right">截止时间：</div></td>
            <td style="background-color:#F1F9FF; height:22" colspan="2"><input name="I_JzTime" type="text" id="I_JzTime" value="<%=rs("I_JzTime").Value%>"   size="20" maxlength="50" disabled="disabled" /></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right"><div align="right">规 格：</div></td>
            <td style="background-color:#F1F9FF; height:22" colspan="2"><input name="I_specification" type="text" id="I_specification" value="<%=rs("I_specification").Value%>"  size="30" maxlength="20" /></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right">数 量：</td>
            <td style="background-color:#F1F9FF; height:22" colspan="2"><span class="S" id="spanCountNumber" name="spanCountNumber">
              <input name="I_CountNumber" type="text" id="I_CountNumber" value="<%=rs("I_CountNumber").Value%>"  size="30" maxlength="20" />
            </span></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right">价 格：</td>
            <td style="background-color:#F1F9FF; height:22" colspan="2"><span class="S" id="spanPrice" name="spanPrice">
              <input name="I_price" type="text" id="I_price"  value="<%=rs("I_price").Value%>"   size="20" maxlength="30" />
            </span>            </td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right"><div align="right">上传图片：</div></td>
            <td style="background-color:#F1F9FF; height:27" colspan="2"><%IF IsNull(rs("I_pic")) THEN%>
              <font color="#cccccc">无图</font>
              <%ELSE%>
              <img src="<%=AppConst.SiteUrl%>/upload/info/<%=rs("I_pic").Value%>" width="25" height="25" onmouseout="this.width=25;this.height=25" onmouseover="this.width=60;this.height=60" style="cursor:hand " />
              <%end if%></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right">包装说明：</td>
            <td style="background-color:#F1F9FF; height:28" colspan="2"><textarea name="I_packageexplain" cols="40" rows="5" id="I_packageexplain"><%=rs("I_packageexplain").Value%></textarea></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right"><div align="right">信息说明：</div></td>
            <td style="background-color:#F1F9FF; height:22" colspan="2"><textarea name="I_explain" cols="40" rows="5" id="I_explain"><%=rs("I_explain").Value%></textarea></td>
          </tr>
          <tr>
            <td style="background-color:#C4E4FF" align="right">发布人：</td>
            <td style="background-color:#F1F9FF; height:14" colspan="2"><input name="I_Userid" type="text" id="I_Userid"  value="<%=rs("I_Userid").Value%>"  size="30" maxlength="50" />            </td>
          </tr>
          <div id='CompanyInfo'>          </div>
     <tr>
            <td style="height:35" colspan="3"><div align="center">
             
				<input name="send" type="hidden" id="send" value="<%=rs("id").Value%>" />
                <input type="submit" name="Submit3" value=" 修 改 " onclick="return check()" />
                <input type="button" name="Submit22" value=" 返 回 " onclick="history.go(-1)" />
            </div></td>
          </tr>
        </form>
    </table>
    </td>
  </tr>
</table>
</body>
</html>
