<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_Info_P_Add" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>产品转换为商机</title>
<link href="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/style.css" rel="stylesheet" type="text/css" />
<script type="Text/JavaScript" language="javascript">

var subval2 = new Array(); 
//数组结构：一级根值,二级根值,二级显示值 
<%=GetSmallClassArray("subval2") %>
var subval3 = new Array(); 
//数组结构：二级根值,三级根值,三级显示值 
<%=GetThreeClassArray("subval3") %>

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

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

function TableMouseClick(Url){
	window.location=Url;
}

//不同按钮提交到不同地方
function formsubmit(URL,Form){
	if(document.form.I_title.value==""){
		alert("信息主题不能为空！");
		document.form.I_title.focus();
		return false;
	}
	if(document.form.I_BigClassId.value==""){
		alert("请选择行业大类！");
		document.form.I_BigClassId.focus();
		return false;
	}
	if(document.form.I_SmallClassId.value==""){
		alert("请选择行业子分类！");
		document.form.I_SmallClassId.focus();
		return false;
	}
//关键词验证
	var I_Keyword=document.form.I_Keyword.value;
	var I_KeywordB=document.form.I_KeywordB.value;
	var I_KeywordC=document.form.I_KeywordC.value;
	if(I_Keyword=="" && I_KeywordB=="" && I_KeywordC==""){
		alert("在关键词的三个输入框中最少要输入一个！\n这样可以大大的提高您发布的信的被检索到的机会！");
		document.form.I_Keyword.focus();
		return false;
	}
	if(document.form.I_explain.value==""){
		alert("详细说明及属性不能为空！");
		document.form.I_explain.focus();
		return false;
	}
	Form.action=URL;
	Form.submit();
}
//上传图片弹出框
function upload(strinfo){
	if (strinfo=="Info1"){
		info1.style.display="none";
		uploadinfo1.style.display="inline";
	}
}
//从图库中选择图片弹出框
function SelectPic(){
	window.open("OpenMyPic.aspx","B","width=770,height=400,resizable=yes,status=no,titlebar=no,location=no,scrollbars=yes,left=150,top=110,")
}
//删除图片
function DelImages(){
	document.form.I_Pic.value="";
	document.form.I_PicB.src="images/NoPICB.gif";
}
</script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style3 {color: #FFFFFF}
.M {FONT: 14px 宋体
}
.C {font-size:14.8px}
.S {font-size:12px;}
.formtop {text-align:right;vertical-align:top;padding-top:6px}
.lh15 {	LINE-HEIGHT: 150%
}
.note {color:#999999;}
.style4 {color: #666666}
-->
</style>
</head>

<body>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table style="width:700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="width:100" rowspan="2"><div align="center"><a href="user_company_modi.aspx"><img src="images/soft_all.gif" width="50" height="48" border="0" /></a></div>
              <div align="center"><strong>公司介绍</strong></div></td>
        <td style="width:100"><div align="center"><a href="user_info_list.aspx"><img src="images/j_resume_modify.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_info_add.aspx"><img src="images/j_position_supply.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_list.aspx"><img src="images/photo_all.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_add.aspx"><img src="images/photo_add.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_Class.aspx"><img src="images/photo_cam.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_products_AddClass.aspx"><img src="images/photo_up.gif" width="50" height="48" border="0" /></a></div></td>
      </tr>
      <tr>
        <td style="width:100"><div align="center"><strong>我的商机</strong></div></td>
        <td style="width:100"><div align="center"><strong></strong><strong>发布商机</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的产品</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加产品</strong></div></td>
        <td style="width:100"><div align="center"><strong>产品分类</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加分类</strong></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table style="width:100%; height:24" cellspacing="0" cellpadding="0"  border="0">
  <tr>
    <td style="background-color:#FFF1EB; height:24; width:142" align="center" valign="bottom" class="TDBG1"><strong><span #invalid_attr_id="none"><strong>产品转换为商机</strong></span></strong></td>
    <td class="bottom"> <div align="right">注意： 带 <span class="00002">*</span> 号的为必填项！ </div></td>
  </tr>
</table>
<table style="width:100%"  border="0" cellpadding="0" cellspacing="0" class="topnone">
  <tr>
    <td style="background-color:#FFFFFF"><table style="width:100%; height:50" bordercolor="#FFF1EB" cellspacing="0" cellpadding="4" align="center" border="6">
      <tr>
        <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008"><table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td style="height:13" valign="top">
                <table style="width:100%" bordercolor="B8DFFF" cellspacing="0" cellpadding="0" align="center" border="0">
                  <tr>
                    <td style="height:187" valign="top" bordercolor="#4C98D7" class="0008"><table style="width:100%" bordercolor="B8DFFF" cellspacing="0" cellpadding="0" align="center" border="0">
                        <tr>
                          <td style="height:434" valign="top" bordercolor="#4C98D7" class="0008">
                             <form name="form" method="post">
                                <table style="width:100%" border="0" cellpadding="3" cellspacing="1">
                                  <tr style="background-color:#F6F6F6">
                                    <td style="height:4" colspan="4" align="right"></td>
                                  </tr>
                                  <tr>
                                    <td style="background-color:#F6F6F6; width:21%" align="right" rowspan="2" ><font color="#FF0000">*</font> 方向：</td>
                                    <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><input type="radio" id="M1" name="I_Type" value="1"  checked="checked" />
                                        <label for="M1" style="cursor:hand">供应</label>
                                        <input type="radio" name="I_Type" value="2" id="M2" />
                                        <label for="M2" style="cursor:hand">求购</label>
                                        <input type="radio" name="I_type" value="3" id="M3" />
                                        <label for="M3" style="cursor:hand">合作</label>
                                        <input type="radio" name="I_type" value="4" id="M4" />
                                        <label for="M4" style="cursor:hand">代理</label>
                                        <input type="radio" name="I_type" value="5" id="M5" />
                                        <label for="M5" style="cursor:hand">库存</label>
                                        <input type="radio" name="I_type" value="6" id="M6" />
                                        <label for="M6" style="cursor:hand">加工</label></td>
                                  </tr>
                                <tr>
                                  <td style="background-color:#FAFAFA; height:15" colspan="2" class="lh15"><span class="00002"><strong>积分提示</strong></span>:发布求购商机可获得 <b><font color="#FF0000"><%=AppConst.C_Publish_Info * 2%></font></b> 点积分，发布其它商机可获得 <b><font color="#FF0000"><%=AppConst.C_Publish_Info%></font></b> 点积分。</td>
                                </tr>
                                  <tr>
                                    <td style="background-color:#F6F6F6" align="right"><font color="#FF0000">*</font> 主题：</td>
                                    <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><table style="width:100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td><input name="I_title" type="text" id="I_title" value="<%=iRs("P_name").Value%>" size="30" maxlength="80" />
                                          </td>
                                        </tr>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td style="background-color:#F6F6F6" align="right"><font color="#FF0000">*</font> 行业：</td>
                                    <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15">
                                        <select name="I_BigClassId" id="I_BigClassId" onChange="changeselect1(this.value)"><%=GetBigClassOptions()%></select>
                                        <select name="I_SmallClassId" id="I_SmallClassId" onChange="changeselect2(this.value)"></select> 
                                        <select name="I_ThreeClassId" id="I_ThreeClassId"></select>
                                    </td>
                                    <script type="text/javascript">
                                        document.all.I_BigClassId.value = '<%=iRs("P_BigClassID").Value%>';
                                        changeselect1(document.all.I_BigClassId.value);
                                        document.all.I_SmallClassId.value = '<%=iRs("P_SmallClassID").Value%>';
                                        changeselect2(document.all.I_SmallClassId.value);
                                        document.all.I_ThreeClassId.value = '<%=IsNull(iRs("P_ThreeClassId").Value, "")%>';
                                    </script>
                                  </tr>
                                  <tr>
                                    <td style="background-color:#F6F6F6" align="right" valign="top"><font color="#FF0000">*</font> 关键字：</td>
                                    <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><table style="width:100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td colspan="2"><%Dim kws = Split(iRs("P_Keyword").Value & ",,,", ",")%>
                                              <input name="I_Keyword" id="I_Keyword" value="<%=kws(0)%>" size="10" maxlength="8" />
                                            ,
                                            <input name="I_KeywordB" id="I_KeywordB" value="<%=kws(1)%>" size="10" maxlength="8" />
                                            ,
                                            <input name="I_KeywordC" id="I_KeywordC" value="<%=kws(2)%>" size="10" maxlength="8" />
                                          </td>
                                        </tr>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td style="background-color:#F6F6F6" align="right"><font color="#FF0000">*</font> 有效期：</td>
                                    <td style="background-color:#FAFAFA; height:31" colspan="2">
                                          <input name="I_JzTime" type="radio" value="10" id="A10"/>
                                          <label for="A10" style="cursor:hand">10天</label>
                                          <input name="I_JzTime" type="radio" value="20" id="A20"/>
                                          <label for="A20" style="cursor:hand">20天</label>
                                          <input name="I_JzTime" type="radio" value="30" id="A30"/>
                                          <label for="A30" style="cursor:hand">一个月</label>
                                          <input name="I_JzTime" type="radio" value="90" id="A90" checked/>
                                          <label for="A90" style="cursor:hand">三个月</label></td>
                                  </tr>
                                  <tr>
                                    <td style="background-color:#F6F6F6" align="right"><font color="#FF0000">*</font> 详细说明及属性：</td>
                                    <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><textarea name="I_explain" cols="45" rows="6" id="I_explain"><%=iRs("P_Explain").Value%></textarea>（请保持在10-500个字）
                                        <br />
                                        <span class="style4">我们建议您尽可能详细的补充产品/服务信息，赢得客户的信任。 请不要留下公司名称和任何联系方式 ，也不要用繁体字或全英文，否则您的信息将无法及时发布上网。
                                          <textarea style="display:none" name="p_z_Z_Details" cols="50" rows="10"></textarea>
                                      </span>
                                     </td>
                                  </tr>
                                      <tr>
                                        <td style="background-color:#F6F6F6; width:21%" align="right" valign="top">产品图片：</td>
                                        <td style="background-color:#FAFAFA; height:100; width:19%" >
                                            <table style="background-color:#CCCCCC; width:18"  border="0" cellpadding="0" cellspacing="1">
                                                <tr>
                                                  <td style="background-color:#FFFFFF"><img src="../upload/info/<%=iRs("P_smallPic").Value%>" name="I_PicB" width="88" height="88" id="I_PicB" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="background-color:#FAFAFA; width:60%" >
                                            <div id="info1">
                                                <input type="button" name="Submit3" value="从我的电脑中选取" onClick="upload('Info1')" />
                                                <br />
                                                <input name="I_Pic" type="hidden" id="I_Pic" value="<%=iRs("P_Pic").Value%>" />
                                                <input name="I_smallPic" type="hidden" id="I_smallPic" value="<%=iRs("P_smallPic").Value%>" />
                                                <br />
                                                <input type="button" name="Submit32" value="从图库中选择图片" onClick="SelectPic('I_PicB')" />
                                                <input type="button" name="Submit322" value="删除图片" onClick="DelImages(1)" />
                                                <br />
                                                <span class="style4">您发布的商机中附上图片这将大大提高商业机会成功的机</span> </div>
                                                <div id="uploadinfo1" style="display:none">
                                                  <iframe id="upload" src="../upload/imageShowload.aspx?imgview=form.I_PicB&imgvalue=form.I_Pic&imgsmall=form.I_smallPic" width="300" height="30" scrolling="no" frameborder="0"></iframe>
                                                  <br />
                                              </div>
                                          </td>
                                      </tr>
                                      <tr>
                                        <td style="background-color:#F6F6F6" align="right">产品规格：</td>
                                        <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15">
                                            <input name="I_specification" id="I_specification" style="width:250px; FONT-SIZE: 9pt" value="" size="30" maxlength="80" /></td>
                                      </tr>
                                      <tr>
                                        <td style="background-color:#F6F6F6" align="right">产品数量：</td>
                                        <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><input name="I_CountNumber" id="I_CountNumber" style="width:250px; FONT-SIZE: 9pt" value="" size="30" maxlength="80" /></td>
                                      </tr>
                                      <tr>
                                        <td style="background-color:#F6F6F6" align="right">包装说明：</td>
                                        <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><input name="I_packageexplain" id="I_packageexplain" style="width:250px; FONT-SIZE: 9pt" value="" size="30" maxlength="50" /></td>
                                      </tr>
                                      <tr>
                                        <td style="background-color:#F6F6F6" align="right">价格说明：</td>
                                        <td style="background-color:#FAFAFA; height:31" colspan="2" class="lh15"><input name="I_price" id="I_price" style="width:250px; FONT-SIZE: 9pt" value="" size="30" maxlength="50" /></td>
                                      </tr>
                                      <tr>
                                        <td style="background-color:#F6F6F6; width:21%" align="right" valign="top">&nbsp;</td>
                                        <td style="background-color:#FAFAFA; height:31" colspan="2" ><input type="button" name="Submit2" value="确定发布" onClick="formsubmit('',form)" />
                                            <input type="reset" name="Submit" value="重新填写" onClick="formsubmit('View_Info.aspx',form)" />
                                            <input name="send" type="hidden" id="send" value="isok" />
                                            <br />
                                            <span class="style4">建议在确认发布这前先预览欲发布的商机。</span></td>
                                      </tr>
                                      <tr style="background-color:#EEF5F9">
                                        <td style="height:4" colspan="4" align="right"></td>
                                      </tr>
                                    </table>
                              </form></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
              <table style="background-color:#89CAFF; width:100%"  border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td style="background-color:#FFFFFF; height:15"></td>
                  </tr>
                </table>
              <table style="background-color:#FCEDE3; width:100%"  border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td style="background-color:#FFFFFF; height:77" valign="top"><table style="background-color:#FDB17F; width:100%"  border="0" cellpadding="3" cellspacing="1">
                        <tr>
                          <td style="background-color:#FED7BC; height:29"><strong>&nbsp;注意事项：</strong><span #invalid_attr_id="none"></span></td>
                        </tr>
                        <tr>
                          <td style="background-color:#FFFFFF; height:26"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td style="height:21">&nbsp;<img src="images/JT_2.gif" width="8" height="8" /> 请不要 重复发布 内容相同的供求信息，其他内容相同的信息将拒绝审核！ </td>
                              </tr>
                              <tr>
                                <td style="height:21">&nbsp;<img src="images/JT_2.gif" width="8" height="8" /> 请确保您的联系信息的准确性，以便客户能及时与您联系；[ <a href="user_company_modi.aspx" target="_blank">修改联系方式 </a>] </td>
                              </tr>
                              <tr>
                                <td style="height:21">&nbsp;<img src="images/JT_2.gif" width="8" height="8" /> 尽可能的完善您的产品信息，特别是产品图片，这将大大提高您的产品在客户心目中的地位. </td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
              <table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td style="height:27"></td>
                  </tr>
                </table>
              <table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td style="height:31"><table style="width:100%" cellspacing="0">
                        <tr>
                          <td class="lh15"><span class="C"><font color="#FF0000"><strong>请务必检查联系资料！</strong></font></span>（若有误，客户无法找到您，信息也不能被审核通过！） <br>
                              <div align="right"><strong>需要的话，您可<a href="user_company_modi.aspx" target="_blank">点此修改联系资料</a></strong></div></td>
                        </tr>
                      </table>
                        <table style="width:100%" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td style="background-color:#CCCCCC">
                                <table style="width:100%" border="0" cellpadding="4" cellspacing="1">
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; width:25%; PADDING-LEFT: 10px" align="right">姓名：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=Rs("M_Name").Value%></td>
                                  </tr>
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; PADDING-LEFT: 10px" align="right">公司名称：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=Rs("C_name").Value%></td>
                                  </tr>
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; PADDING-LEFT: 10px" align="right">电话：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=Rs("M_Tel").Value%></td>
                                  </tr>
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; PADDING-LEFT: 10px" align="right">传真：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=Rs("M_Fax").Value%></td>
                                  </tr>
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; PADDING-LEFT: 10px" align="right">移动电话：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=IsNull(Rs("M_Combined").Value, "没有提供")%></td>
                                  </tr>
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; PADDING-LEFT: 10px" align="right">电子邮件：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=Rs("M_Email").Value%></td>
                                  </tr>
                                  <tr style="background-color:#FFFFFF">
                                    <td style="height:21; PADDING-LEFT: 10px" align="right">地址：</td>
                                    <td style="height:21; PADDING-LEFT: 10px"><%=Rs("M_Adder").Value%></td>
                                  </tr>
                              </table></td>
                          </tr>
                      </table></td>
                  </tr>
                </table>
              <table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td style="height:40"></td>
                  </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
