<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/webconn.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
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("m_vip"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization="m_flag"
  MM_redirectLoginSuccess="../cn/member.asp"
  MM_redirectLoginFailed="../cn/login.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_webconn_STRING
  MM_rsUser.Source = "SELECT m_vip, m_pass"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM member WHERE m_vip='" & Replace(MM_valUsername,"'","''") &"' AND m_pass='" & Replace(Request.Form("m_pass"),"'","''") & "'"
  MM_rsUser.CursorType = 0
  MM_rsUser.CursorLocation = 2
  MM_rsUser.LockType = 3
  MM_rsUser.Open
  If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then 
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
      Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
    Else
      Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And true Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<%
Function StrLenB( strString )
 dim intLoop,intReturn
 if isNull(strString) then
  StrLenB = 0
  exit Function
 end if
 intReturn = len(strString)
 for intLoop = 1 to len(strString)
  if ( asc( mid( strString, intLoop, 1 ) ) < 0 ) then intReturn = intReturn + 1
 next
 StrLenB = intReturn
End Function

Function strLeftB( strString ,intLen)
 dim intLenB,intLoop
 if StrLenB(strString) < intLen then
  strLeftB = strString
  exit Function
 end if
 for intLoop = 1 to Len(strString)
  if ( asc( mid( strString, intLoop, 1 ) ) < 0 ) then 
   intLenB = intLenB + 2
  else
   intLenB = intLenB + 1
  end if
  if intLenB > intLen then
   intLoop = intLoop - 1
   exit for
  elseif intLenB = intLen then
   exit for
  end if 
 next
 strLeftB = left(strString,intLoop)
End Function

Function IsLetter( chr )
 dim blnReturn
 blnReturn = false
 if ( ( chr >= asc("a") and chr <= asc("z") )  or ( chr >= asc("A") and chr <= asc("Z") ) or  ( chr >= asc("0") and chr <= asc("9") )  ) then
  blnReturn = true
 end if
 IsLetter = blnReturn
End Function

Function AlignString( string, byVal size )
 dim r,nLen,n,i,a,s_i
 r = string
 nLen = StrLenB( string ) 
 ' if string's width less then size ,return this string .
 if  ( nLen > size ) then
  size = size - 2
  n = 0
  i = 1
  ' cut to index
  do while ( i )
   a = asc( mid( string, i, 1 ) )
   if ( a < 0 ) then 
    if ( n + 1 = size ) then 
     i = i - 1
     exit do
    end if
    n = n + 1
   end if
   n = n + 1
   if ( n = size ) then exit do
   
   i = i + 1
  loop
  'fxDebug( i ) 
  s_i = i 
  a = asc( mid( string, i+1, 1 ) )
  if ( IsLetter(a) ) then
   do while ( 1 )
    a = asc( mid( string, i, 1  ) )
    if ( not IsLetter(a) ) then exit do
    i = i -1
    if  ( i = 0 ) then 
     i = s_i
     exit do
    end if
   loop
  end if

  r = mid( string, 1, i ) & "..."
 end if
 AlignString = r
End Function
%>
<SCRIPT language=JavaScript>

function is_english(String){ 
var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_";
var i;
var c;
for( i = 0; i < String.length; i ++ ){
	c = String.charAt( i );
	if (Letters.indexOf( c ) < 0)
	return false;
	}
return true;
}

function Checkreg(){
if (document.reg.m_vip.value.length < 3 || document.reg.m_vip.value.length >16){
	alert("用户名须3-16位的字母或数字组成！");
	document.reg.m_vip.focus();
	return false;
	}
if (!is_english(document.reg.m_vip.value )){
	alert("用户名不符合规范！");
	document.reg.m_vip.focus();
	return false;
	}

if (document.reg.m_pass.value.length < 3 || document.reg.m_pass.value.length >16){
	alert("密码须3-16位的字母或数字组成！");
	document.reg.m_pass.focus();
	return false; 
	}
if (!is_english(document.reg.m_pass.value )){
	alert("用户密码不符合规范！");
	document.m_pass.focus();
	return false;
	}

return true;
}
</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">
<!--
.style2 {font-size: 12px}
-->
















</style>
<link href="css/style.css" rel="stylesheet" type="text/css">















</style>
</head>
<body bgcolor="#C9FA9C">
<!--#include file="top.asp" -->
<table width="100" align="center" cellpadding="0" cellspacing="0" class="border">
  <tr> 
    <td align="center" valign="top" class="border-left">
        <table width="175" cellspacing="0" class="word-main">
          <form name="reg" method="POST" action="<%=MM_LoginAction%>" id="reg" onSubmit="return Checkreg()"><tr> 
            <td><img src="images/i_menu1.jpg" width="175" height="30"></td>
          </tr>
          <tr> 
            <td height="30" align="center">用户： 
              <input name="m_vip" type="text" class="form" id="m_vip" size="12" maxlength="16"></td>
          </tr>
          <tr> 
            <td height="30" align="center">密码： 
              <input name="m_pass" type="password" class="form" id="m_pass" size="12" maxlength="16"></td>
          </tr>
          <tr> 
            <td height="30" align="center"><input name="imageField" type="image" src="images/zhuce2.gif" width="41" height="18" border="0">            &nbsp;&nbsp;<a href="../cn/reg.asp"><img src="images/zhuce.gif" width="41" height="18" border="0"></a></td>
          </tr></form>
        </table>      
      <table width="175" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="1" background="images/line_h.gif"></td>
        </tr>
        <tr> 
          <td align="center"><img src="images/i_menu2.jpg" width="175" height="30"></td>
        </tr>
        <tr> 
          <td height="1" align="center" background="images/line_h.gif"></td>
        </tr>
        <tr>
          <td align="center" valign="bottom"><img src="images/i_pic1.jpg" width="175" height="125"></td>
        </tr>
        <tr> 
          <td height="21" align="right" valign="bottom"><span class="style2"><a href="http://www.sanbon.com.cn/cncml/join4.asp">&lt;&lt;详情点击</a></span></td>
        </tr>
      </table>
      <table width="175" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="1" background="images/line_h.gif"></td>
        </tr>
        <tr> 
          <td align="center"><img src="images/i_menu3.jpg" width="175" height="30"></td>
        </tr>
        <tr> 
          <td height="1" align="center" background="images/line_h.gif"></td>
        </tr>
        <tr> 
          <td align="center"><a href="http://www.sanbon.com.cn/cncml/jishu.asp"><img src="images/i_pic2.jpg" width="175" height="110" border="0"></a></td>
        </tr>
      </table></td>
    <td align="center" valign="top" nowrap> <table width="410" cellpadding="0" cellspacing="0">
        <tr> 
          <td><img src="images/i_mainmenu1.jpg" width="410" height="30"></td>
        </tr>
      </table>
      <table width="410" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="130" height="100" align="center"><img src="images/logo.gif" width="85" height="85"></td>
          <td align="left" valign="bottom" nowrap><table width="280" cellpadding="0" cellspacing="0" class="word-main">
              <tr> 
                <td height="25">&nbsp; &nbsp; 从美丽、浪漫的法兰西到充满智慧神韵的中国，从开采世界自然宝库到发现神奇的东方护肤哲学 ----香蔓5.5创始人、著名美容专家DR.Howord。</td>
              </tr>
              <tr>
                <td height="25" align="right"><a href="pinpai.asp">&gt;&gt;更多...</a>&nbsp; </td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="410" cellspacing="0">
        <tr>
          <td><a href="http://www.sanbon.com.cn/cncml/product.asp?p_classid=21"><img src="images/i_mainmenu2.gif" width="410" height="30" border="0"></a></td>
        </tr>
      </table>
      <table width="410" cellpadding="0" cellspacing="0" class="word-main">
        <tr> 
          <td height="104" align="center" valign="middle"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="394" height="158">
            <param name="movie" value="flash/indexgg.swf">
            <param name="quality" value="high">
            <embed src="flash/indexgg.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="394" height="158"></embed>
          </object></td>
        </tr>
      </table>
      <table width="410" cellspacing="0">
        <tr> 
          <td><img src="images/i_mainmenu2.jpg" width="410" height="30"></td>
        </tr>
      </table>
      <table width="410" cellpadding="0" cellspacing="0" class="word-main">
        <tr> 
          <td><p> ·女人爱恋一生的情人——内分泌护理</p>
            <p>·我的绿色，我的香蔓</p>
          <p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="ganshou.asp">&gt;&gt;更多</a></p></td>
          <td width="140" align="right" nowrap><img src="images/i_mainpic3.jpg" width="95" height="95"></td>
        </tr>
      </table></td>
    <td align="right" valign="top" nowrap class="border-right"> <table width="170" height="440" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="30" nowrap><img src="images/i_rightmenu.jpg" width="170" height="30"></td>
        </tr>
        <tr> 
          <td valign="top" class="word-main"><table width="160" border="0" align="center" cellpadding="0" cellspacing="0" class="word-main">
              <tr>
                <td>&nbsp;&nbsp;&nbsp;
                <% =AlignString((sale.Fields.Item("s_desc").Value), 130) %></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td height="25" align="right" valign="top" class="word-main"><a href="p_new.asp">&gt;&gt;更多...</a></td>
        </tr>
        <tr>
          <td height="290" align="center" valign="top"><img src="images/cmlindexl.jpg" width="172" height="232"></td>
        </tr>
      </table></td>
  </tr>
</table>
<table align="center" cellpadding="0" cellspacing="0" class="border">
  <tr> 
    <td><img src="images/i_mainmenu3.jpg" width="770" height="30"></td>
  </tr>
  <tr> 
    <td height="130" align="center" valign="bottom"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="125">
      <param name="movie" value="flash/p.swf">
      <param name=quality value=high>
      <embed src="flash/p.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="770" height="125"></embed>
    </object></td>
  </tr>
</table>
<!--#include file="end.asp" -->
</body>
</html>
<%
sale.Close()
Set sale = Nothing
%>
