<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/webconn.asp" -->
<!--#include file="ubbcode.asp" -->
<%
Dim sale__MMColParam
sale__MMColParam = "1"
If (Request("MM_EmptyValue") <> "") Then 
  sale__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim sale
Dim sale_numRows

Set sale = Server.CreateObject("ADODB.Recordset")
sale.ActiveConnection = MM_webconn_STRING
sale.Source = "SELECT * FROM sale WHERE s_type = " + Replace(sale__MMColParam, "'", "''") + " ORDER BY s_date DESC"
sale.CursorType = 0
sale.CursorLocation = 2
sale.LockType = 1
sale.Open()

sale_numRows = 0
%>
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>					
function DoDateTime(str, nNamedFormat, nLCID)				
	dim strRet								
	dim nOldLCID								
										
	strRet = str								
	If (nLCID > -1) Then							
		oldLCID = Session.LCID						
	End If									
										
	On Error Resume Next							
										
	If (nLCID > -1) Then							
		Session.LCID = nLCID						
	End If									
										
	If ((nLCID < 0) Or (Session.LCID = nLCID)) Then				
		strRet = FormatDateTime(str, nNamedFormat)			
	End If									
										
	If (nLCID > -1) Then							
		Session.LCID = oldLCID						
	End If									
										
	DoDateTime = strRet							
End Function									
</SCRIPT>									
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>广州晟宝香蔓国际美容连锁沙龙！</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.mainbg {	background-image:   url(images/pp_pic3.jpg);
	background-repeat: no-repeat;
	background-position: right bottom;
}
-->
</style>
</head>
<body>
<!--#include file="top.asp" -->
<table height="360" align="center" cellpadding="0" cellspacing="0" class="border">
  <tr>
    <td valign="top" class="border-left"><!--#include file="p_n_left.asp" -->
    </td>
    <td align="center" valign="top" nowrap class="border-main"><table width="590" cellpadding="0" cellspacing="0">
        <tr>
          <td height="39" align="center" valign="middle" background="images/menubg.jpg" class="word-title">最新促销</td>
        </tr>
        <tr>
          <td height="1" background="images/line_h.gif"></td>
        </tr>
      </table>
      
            
      <% If Not sale.EOF Or Not sale.BOF Then %>
      <table width="560" cellpadding="0" cellspacing="0" class="word-main">
        <tr align="center" valign="middle">
          <td height="180"><img src="/product/<%=(sale.Fields.Item("s_bimg").Value)%>" border="0"></td>
        </tr>
        <tr align="center" valign="middle">
          <td height="25" valign="top"><strong><font color="#009900"><%=(sale.Fields.Item("s_name").Value)%></font></strong> 发布时间：<%= DoDateTime((sale.Fields.Item("s_date").Value), 2, -1) %></td>
        </tr>
        <tr>
          <td height="40" valign="top"><%=ubbcode(sale.Fields.Item("s_desc").Value)%></td>
        </tr>
      </table>
      <% End If ' end Not sale.EOF Or NOT sale.BOF %>
</td>
  </tr>
</table>
<!--#include file="end.asp" -->
</body>
</html>
<%
sale.Close()
Set sale = Nothing
%>
