<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_info_makejs" %>

<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>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script language="javascript" type="Text/JavaScript">
function selectall(){
	for(i=0;i!=document.news.elements.length;i++){
		document.news.elements[i].checked=!document.news.elements[i].checked;
	}
}
</script>
<script language="javascript" type="Text/JavaScript">
function changeselect(locationid)
{
	document.form1.smlclassid.length = 0;
	document.form1.smlclassid.options[0] = new Option('--请选择行业子类--',"");
	for (i=0; i<selectclass.length; i++)
	{
		if (selectclass[i][0] == locationid)
		{document.form1.smlclassid.options[document.form1.smlclassid.length] = new 

Option(selectclass[i][1], selectclass[i][2]);}
	}
}
</script>
</head>
<body><table style="width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr class="topbg">
        <td style="height:22" align="center" class="topbg"><strong>商 业 机 会 管 理</strong></td>
      </tr>
    </table><td><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"></td>
      </tr>
    </table><br>
    <table style="width:100%" cellpadding="2" cellspacing="1" border="0" class="border" align="center">
      <tr align="center">
        <td style="height:22" class="Date_tdbg"><div align="center"><a href="info_manage.aspx">查看全部商机</a> | <a href="info_manage.aspx?i_unit=1">已审未过期商机</a> | <a href="info_manage.aspx?i_unit=0">待审未过期商机</a> | <a href="info_manage.aspx?i_unit=3">热点未过期商机</a> | <a href="info_manage.aspx?I_paixu=1">排序未过期商机</a> | <a href="info_manage.aspx?I_unit=2">推荐未过期商机</a>
              <%If Not AppConst.InfoDQTime Then%>
          |<a href="info_manage_last.aspx">已过期商机</a>
          <%end if%>
        </div>
      </tr>
    </table>
    <br>
<table style="width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
  <form name="form1" method="post" action="info_makejs.aspx?action=save">
    <tr> 
      <td colspan="2" class="Title"><div align="center"><strong>商机频道JS调用设置</strong></div></td>
    </tr>
    <tr class="tdbg"> 
      <td style="height:-2; width:18%" align="center"><strong>JS名称:</strong></td>
      <td style="width:82%"><input name="title" type="text" id="title" style="width:300" size=20></td>
    </tr>
    <tr class="tdbg"> 
      <td style="height:2" align="center"><strong>所属分类：</strong></td>
      <td><select name="bigclassid" onchange="changeselect(this.value)"><option value="">--请选择行业大类--</option><%=GetBigClassOptions()%></select>
                <script lanuage="javascript" type="Text/JavaScript">
                //大类JS
                var selectclass= new Array();
                <%=GetSmallClassArray()%>
               </script>
            <select name="smlclassid" id="smlclassid"  maxlength="80">
              <option value="0" selected="selected">--请选择行业子类--</option>
          </select>　
            (不选择将调用全部商机)</td>
    </tr>
    
    <tr class="tdbg">
      <td style="height:6" align="center"><strong>商机类型：</strong></td>
      <td style="height:6"><select name="Strtype" id="Strtype">
          <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>
        <span class="style1">不选择最调用全部</td>
    </tr>
    <tr class="tdbg">
      <td style="height:12" align="center"><strong>是否显示商机类别：</strong></td>
      <td style="height:12"><input name="showstrtype" type="checkbox" id="showstrtype" value="1" />        
        是</td>
    </tr>
    <tr class="tdbg">
      <td style="height:25" align="center"><strong>商机属性：</strong></td>
      <td style="height:25"><input name="hot" type="checkbox" id="hot" value="1" />
        热门商机&nbsp;&nbsp;&nbsp;&nbsp; <input name="tuijian" type="checkbox" id="tuijian" value="1" />
        推荐商机 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FF0000">如果都不选，将显示所有文章</font></td>
    </tr>
    <tr class="tdbg">
      <td style="height:12" align="center"><strong>排序方式：</strong></td>
      <td style="height:12"><select name="view" id="view">
          <option value="ID" selected="selected">商机ID</option>
          <option value="FbTime">更新时间</option>
          <option value="hits">点击次数</option>
        </select></td>
    </tr>
    <tr class="tdbg">
      <td style="height:12" align="center"><strong>图片样式：</strong></td>
      <td style="height:12"><select name="pictype" id="pictype">
          <option value="" selected="selected">不显示</option>
          <option value="0">项目编号</option>
          <option value="1">图片样式1</option>
		  <option value="2">图片样式2</option>
		  <option value="3">图片样式3</option>
		  <option value="4">图片样式4</option>
		  <option value="5">图片样式5</option>
        </select>        <img src="../images/icon/nav01.gif" width="9" height="15" />图片样式1、<img src="../images/icon/nav02.gif" width="9" height="15" />图片样式2、<img src="../images/icon/nav03.gif" width="9" height="15" />图片样式3、<img src="../images/icon/nav04.gif" width="9" height="15" />图片样式4、<img src="../images/icon/nav05.gif" width="15" height="15" />图片样式5</td>
    </tr>
	<tr class="tdbg">
      <td style="height:-1; width:18%" align="center"><strong>显示条数:</strong></td>
      <td><input name="Num" type="text" id="Num" style="width:100" value="" size="10" />
      *(只能是数字，总条数＝显示条数X显示列数)</td>
    </tr>
    <tr class="tdbg">
      <td style="height:-2; width:18%" align="center"><strong>显示列数:</strong></td>
      <td><input name="hNum" type="text" id="hNum" style="width:100" value="" size="10" />
      *(请输入你想要显示的列数，只能是数字)</td>
    </tr>
    <tr class="tdbg">
      <td style="height:-1; width:18%" align="center"><strong>显示字数:</strong></td>
      <td><input name="text" type="text" id="text" style="width:100" value="" size="10" />
      *(只能是数字，一个中文表示两个字符)</td>
    </tr>
    <tr align="center" class="tdbg">
      <td style="height:15" colspan=2><input style="" name="channelid" type="hidden" id="channelid" value="<%=Request("channelid")%>" /><input type="submit" name="Submit" value="添 加" class="input" /></td>
    </tr>
  </form>
</table>
<br>
<table style="height:0; width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
    <tr align="center" class="Title"> 
      <td style="width:40"><div align="center"><strong>ID</strong></div></td>
      <td><div align="center"><strong>信息标题</strong></div></td>
      <td style="width:500"><div align="center"><strong>调用代码</strong></div></td>
      <td style="width:100"><div align="center"><strong>操 作</strong></div></td>
  </tr>
    <%  Dim num = 0 : Do While Not rs.eof And num <> rs.pagesize%>
    <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
      <td style="width:40"><div align="center"><%=rs("id").Value%></div></td>
      <td><%=rs("title").Value%></td>
      <td style="width:500"><textarea name="code"  style="width:500" wrap="PHYSICAL" id="code" onfocus="this.select()" onmouseover="this.focus()"><script language="javascript" src="<%=AppConst.SiteUrl%>/Include/infojs.aspx?id=<%=rs("id").Value%>" type="Text/JavaScript"></script></textarea></td>
      <td style="width:100"><div align="center"><a href="info_editjs.aspx?id=<%=rs("id").Value%>">修改</a>&nbsp;<a href="info_showjs.aspx?id=<%=rs("id").Value%>">效果</a>&nbsp;<a href="info_makejs.aspx?action=del&id=<%=rs("id").Value%>">删除</a>
      </div></td>
    </tr>
     <% num = num + 1 : rs.movenext() : Loop%>
</table>
<table style="width:100%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td style="height:22"><%=Pagination(rs.pagecount, lngpage, rs.recordcount, rs.pagesize, "")%></td>
  </tr>
</table>
</body><%Page_Loaded()%>
</html>
