<%@ Page Language="VB" AutoEventWireup="false" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_shopping_manage_tuijian" Codebehind="shopping_manage_tuijian.aspx.vb" %>
<!--@@#include file="inc/Admin_fun.aspx"-->
<!--@@#include file="inc/Admin_conn.aspx"-->
<!--代码：[摘要]  Const PurviewLevel = "Shopping"  checklogin()'--...-->
<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="Shopping_manage_passed.aspx">已审产品</a> | <a href="Shopping_manage_nopass.aspx">待审产品</a> | <a href="Shopping_manage_tuijian.aspx">推荐产品</a> | <a href="Shopping_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="Shopping_manage_search.aspx">
            <tr>
              <td style="height:25"><div align="right">搜索关键字：</div></td>
              <td><div align="center">
                  <input name="keyword" type="text" id="keyword3" 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:5%"><div align="center"><strong>ID</strong></div></td>
        <td><div align="center"><strong>产品名</strong></div></td>
        <td style="width:40"><div align="center"><strong>属性</strong></div></td>
        <td style="width:13%"><div align="center"><strong>缩略图</strong></div></td>
        <td style="width:8%"><div align="center"><strong>产品价格</strong></div></td>
        <td style="width:8%"><div align="center"><strong>发布人</strong></div></td>
        <td style="width:8%"><div align="center"><strong>原产地</strong></div></td>
        <td style="width:8%"><div align="center"><strong>推荐时间</strong></div></td>
        <td style="width:8%"><div align="center"><strong>到期时间</strong></div></td>
        <td style="width:8%"><div align="center"><strong>操 作</strong></div></td>
      </tr>
	  <form method="get" name="news">
	  <%
	      Dim num, P_type, P_typeAlt
	  num=0
	  do while not rs.eof and num<>rs.pagesize
	  		Select Case Rs("P_type").Value
			Case 0:
				P_type="正常"
				P_typeAlt="正常产品"
			Case 1:
				P_type="新品"
				P_typeAlt="新品上市"
			Case 2:
				P_type="促销"
				P_typeAlt="促销产品"
			Case 3:
				P_type="热卖"
				P_typeAlt="热卖产品"
			Case else
				P_type="正常"
				P_typeAlt="正常产品"
		End Select
		%>
      <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
        <td style="height:22; width:5%"><div align="center"><%=rs("ID").Value%></div></td>
        <td><a href="Shopping_manage_edit.aspx?id=<%=rs("id").Value%>" title="<%=rs("c_name").Value%>"><%=rs("P_name").Value%></a>
          <%if rs("p_tjunit").Value=1 then%>
          |<font color="ff0000">已审核</font>
          <%end if%></td>
        <td style="width:40"><div align="center"><a href="Shopping_manage_edit.aspx?id=<%=rs("id").Value%>" title="<%=rs("c_name").Value%>"><%=P_type%></a></div></td>
        <td style="width:13%"><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 style="width:8%"><div align="center"><%=rs("P_Price").Value%>元/<%=rs("P_danwei").Value%></div></td>
        <td style="width:8%"><div align="center"><%=rs("P_Userid").Value%></div></td>
        <td style="width:8%"><div align="center"><%=rs("P_from").Value%></div></td>
        <td style="width:8%"><div align="center"><%Dim P_tjtime As DateTime = rs("P_tjtime").Value:Response.Write(P_tjtime.ToString("yyyy年MM月dd日"))%></div></td>
        <td style="width:8%"><div align="center"><%=DateTime.MinValue.AddYears(1899).AddDays(rs("p_dqtime").Value).ToString("yyyy年MM月dd日")%></div></td>
        <td style="width:8%"><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="Shopping_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>
	  <% num = num + 1 : rs.movenext() : Loop%> 
      </form>
    </table></td>
 </tr>
</table>
<table style="width:100%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td style="height:22"><%=Pagination(rs)%></td>
  </tr>
</table>
<!--@@#include file="copyright.aspx"-->
</body>
</html>
<!--代码：[摘要]   RS.close:set rs=nothing  '---------------------...-->
