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

<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 type="Text/JavaScript" language="javascript">
function selectall(){
	for(i=0;i!=document.news.elements.length;i++){
		document.news.elements[i].checked=!document.news.elements[i].checked;
	}
}
</script>
</head>

<body>
<table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="height:20"><table style="height:22; 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>
  </tr>
  <tr>
    <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="products_manage_passed.aspx">已审产品</a> | <a href="products_manage_nopass.aspx">待审产品</a> | <a href="products_manage_tuijian.aspx">推荐产品</a> | <a href="products_manage_hot.aspx">热门产品</a></td>
        <td style="width:400"><table style="width:400"  border="0" align="right" cellpadding="2" cellspacing="0">
		  <form name="form1" method="get" action="products_manage_search.aspx">
            <tr>
              <td style="height:25"><div align="right">搜索关键字：</div></td>
              <td><div align="center">
                <input name="keyword" type="text" id="keyword" size="30" />
              </div></td>
              <td><input type="submit" name="Submit" value="  搜索 " /></td>
            </tr></form>
          </table></td>
      </tr>
    </table>
      <table style="width:100%"  border="0" cellpadding="2" cellspacing="1" class="border">
      <tr class="Title">
        <td style="height:22; width:7%"><div align="center"><strong>ID</strong></div></td>
        <td style="width:24%"><div align="center"><strong>产品名</strong></div></td>
        <td style="width:13%"><div align="center"><strong>缩略图</strong></div></td>
        <td style="width:10%"><div align="center"><strong>发布人</strong></div></td>
        <td style="width:11%"><div align="center"><strong>原产地</strong></div></td>
        <td><div align="center"><strong>推荐时间</strong></div></td>
        <td><div align="center"><strong>到期时间</strong></div></td>
        <td style="width:11%"><div align="center"><strong>操 作</strong></div></td>
      </tr>
      <form method="get" name="news">
        <%
dim pagei
	  for pagei=1 to rs.pagesize
	  if rs.eof or pagei>rs.pagesize then exit for
	 %>
        <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
          <td style="height:22"><div align="center"><%=rs("ID").Value%></div></td>
          <td><a href="products_manage_edit.aspx?id=<%=rs("id").Value%>" title="<%=rs("c_name").Value%>"><%=rs("P_name").Value%></a><%if 1.Equals(rs("p_tjunit").Value) then%>
          |<font color="ff0000">已审核</font>
          <%end if%></td>
          <td><div align="center">
              <%IF rs("p_smallpic").Value<>"" THEN%>
              <img src="<%=AppConst.SiteUrl%>/upload/info/<%=rs("p_smallpic").Value%>" alt="<%=rs("c_name").Value%>" width="25" height="25" style="cursor:hand " onmouseover="this.width=60;this.height=60" onmouseout="this.width=25;this.height=25" />
              <%ELSE%>
              <font color="#cccccc">无图</font>
              <%end if%>
          </div></td>
          <td align="center"><%if AppConst.SiteDnsTwo then%><a href="http://www.<%=rs("P_Userid").Value%><%=AppConst.SiteDns%>" target="_blank" title="查看该用户的企业网站"><%=rs("P_Userid").Value%></a><%else%><a href="../<%=AppConst.Memberpath%>/<%=rs("P_Userid").Value%>" target="_blank" title="查看该用户的企业网站"><%=rs("P_Userid").Value%></a><%end if%></td>
          <td align="center"><%if rs("P_from").Value="" then%>
            未知
              <%else%>
              <%=rs("P_from").Value%>
              <%end if%></td>
          <td align="center"><%Dim P_tjtime As DateTime = rs("P_tjtime").Value:Response.Write(P_tjtime.ToString("yyyy年MM月dd日"))%></td>
          <td align="center"><%=DateTime.MinValue.AddYears(1899).AddDays(rs("p_dqtime").Value).ToString("yyyy年MM月dd日")%></td>
          <td><table style="width:88%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr align="center">
                <td style="width:33%"><a href="?id=<%=rs("id").Value%>&action=ok"><img src="images/A_update.gif" alt="审核推荐" width="20" height="19" border="0" /></a></td>
                <td style="width:33%"><a href="products_manage_edit.aspx?id=<%=rs("id").Value%>"><img src="images/A_edit_B.gif" alt="查看修改" width="20" height="19" border="0" /></a></td>
                <td style="width:33%"><a href="?id=<%=rs("id").Value%>&action=del"><img src="images/del1.gif" alt="取消推荐" width="19" height="20" border="0" /></a></td>
                </tr>
          </table></td>
        </tr>
        <%
            rs.movenext()
	next
		 %>
      </form>
    </table></td>
 </tr>
</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>
</html>
