<!--#include file="conn.asp"-->
<%if request.ServerVariables("REQUEST_METHOD")="POST" then%>
<%
username=request("username")
password=request("password")
sqlcheck="select * from user_info where username='"&replace(username,"'","''")&"' and password ='"&Replace(password,"'","''")&"'"
set recheck=conn.execute(sqlcheck)
if not  recheck.eof then
  
  if  password=recheck("password") then 
  	  if  recheck("state")="0" then 
      chkfalse="登录失败!!你已经申请加入,管理员正在审核中..."
	  else
	  Response.Cookies("jnw")("userlogin")=username
	  Response.Cookies("jnw")("userid")=recheck("id")
	  Response.Cookies("jnw")("state1")=recheck("state")
	  end if 
 
     
  else
     chkfalse="登录失败!!错误提示:用户名或密码错误!!"
	 
  end if
  

  
else
  chkfalse="登录失败!!错误提示:用户名或密码错误!!"
  
end if

%>
<%end if%>

<%
if chkfalse<>"" then 
%>

<script language="JavaScript">
alert("<%=chkfalse%>");
</script>

<%end if%>

<script language="JavaScript">
<!--
function check()
{

var aa=document.myform.username.value
var name=document.myform.password.value

  

if (aa=="")
	{
	alert("请输入用户名!!");
		document.myform.username.focus();
		return false;
	
	}
	
	if (name=="")
	{
		alert("密码不能为空！");
		document.myform.password.focus();
		return false;
	}

	return true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<html>
<head>
<title>湖南百润医药有限公司节电中心首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css.css">
<style type="text/css">
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" rightmargin="0" bottommargin="0" background="images/bj.gif">
<div align="center">
<table width="760" border="0" cellpadding="0" cellspacing="0" id="Table_01" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
<tr>
      <td> 
	  <!--#include file="top.asp"--></td>
	  </tr>
	  <tr>
	  <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr> 
            <td> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr> 
                  <td width="186" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                      <tr> 
                        <td valign="top"> <div align="center"> 
                            <table cellpadding="0" cellspacing="0" width="180" height="155" >
                              <tr> 
                                <td valign="top" class="kk"><!--#include file="login.asp"--><!--#include file="left.asp"--></td>
                              </tr>
                            </table>
                          </div></td>
                      </tr>
                      <tr> 
                        <td><span style="font-size: 3pt">&nbsp;</span></td>
                      </tr>

                    </table>
                    
                  </td>
                  <td width="388" valign="top"> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img border="0" src="images/h02_01.jpg"><a href="/news.asp?pages=dt"><img border="0" src="images/h02_02.jpg"></a></td>
                        <td>&nbsp;</td>
                      </tr>
                    </table> 
                    <div align="center"> 
                      <table border="0" cellpadding="0" cellspacing="0" width="98%">
                        <tr> 
                          <td class="kk"> <div align="center"> 
                              <table width="99%" border="0" cellpadding="2" cellspacing="4" class="bodero">
                                <%
rs.open "Select n_fpath,n_fname,n_title,n_date From T_news Where n_tid=51 and n_tsid=18 order by n_id desc",conn,1,1,1
if rs.eof then
Response.write "<tr><td>暂无</td></tr>"
else
for i=1 to 6
%>
                                <tr> 
                                  <td width="79%" height="25"><img src="/images/po1.jpg"><a title="<%=replace(rs("n_title"),"""","")%>" href="/hangye/xinwen/<%=rs("n_fpath")&"\"&rs("n_fname")%>"><%=CutStr(rs("n_title"),20)%></a></td>
                                  <td width="21%"><font color="#999999"><%=formatdatetime(rs("n_date"),2)%></font></td>
                                </tr>
                                <%
rs.movenext
if rs.eof then exit for
next
end if
rs.close%>
                              </table>
                            </div></td>
                        </tr>
                        <tr> 
                          <td> <p><span style="font-size: 3pt">&nbsp;</span></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#F2F2F2" height="25"> <p style="margin-left: 20px"> 
                              <marquee scrolldelay="120" style="color: #FF6600">
                              最新产品信息、最新企业信息
                              </marquee>
                          </td>
                        </tr>
                        <tr> 
                          <td><span style="font-size: 3pt">&nbsp;</span></td>
                        </tr>
                        <tr> 
                          <td> <img border="0" src="images/h04_01.jpg"><a href="/news.asp?pages=zx"><img border="0" src="images/h04_02.jpg"></a></td>
                        </tr>
                        <tr> 
                          <td class="kk"> <div align="center"> 
                              <table width="99%" border="0" cellpadding="2" cellspacing="4" class="bodero">
                                <%
rs.open "Select n_fpath,n_fname,n_title,n_date From T_news Where n_tid=52 and n_tsid=19 order by n_id desc",conn,1,1,1
if rs.eof then
Response.write "<tr><td>暂无</td></tr>"
else
for i=1 to 6
%>
                                <tr> 
                                  <td width="79%" height="25"><img src="/images/po1.jpg"><a title="<%=replace(rs("n_title"),"""","")%>" href="/jishu/new/<%=rs("n_fpath")&"\"&rs("n_fname")%>"><%=CutStr(rs("n_title"),20)%></a></td>
                                  <td width="21%"><font color="#999999"><%=formatdatetime(rs("n_date"),2)%></font></td>
                                </tr>
                                <%
rs.movenext
if rs.eof then exit for
next
end if
rs.close%>
                              </table>
                            </div></td>
                        </tr>
                        <tr> 
                          <td><span style="font-size: 3pt">&nbsp;</span></td>
                        </tr>
                        <tr> 
                          <td> <img border="0" src="images/pic/p1.jpg" width="385" height="79"></td>
                        </tr>
                        <tr> 
                          <td><span style="font-size: 3pt">&nbsp;</span></td>
                        </tr>
                        <tr> 
                          <td height="13"> <img border="0" src="images/h06_01.jpg"><a href="/news.asp?pages=fw"><img border="0" src="images/h06_02.jpg"></a></td>
                        </tr>
                        <tr> 
                          <td class="kk"> <div align="center"> 
                              <table width="99%" border="0" cellpadding="2" cellspacing="4" class="bodero">
                                <%
rs.open "Select n_fpath,n_fname,n_title,n_date From T_news Where n_tid=54 and n_tsid=20 order by n_id desc",conn,1,1,1
if rs.eof then
Response.write "<tr><td>暂无</td></tr>"
else
for i=1 to 6
%>
                                <tr> 
                                  <td width="79%" height="25"><img src="/images/po1.jpg"><a title="<%=replace(rs("n_title"),"""","")%>" href="/fuwu/new/<%=rs("n_fpath")&"\"&rs("n_fname")%>"><%=CutStr(rs("n_title"),20)%></a></td>
                                  <td width="21%"><font color="#999999"><%=formatdatetime(rs("n_date"),2)%></font></td>
                                </tr>
                                <%
rs.movenext
if rs.eof then exit for
next
end if
rs.close%>
                              </table>
                            </div></td>
                        </tr>
                      </table>
                    </div></td>
                  <td width="186" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                      <tr> 
                        <td valign="top" class="kk"> <!--#include file="right.asp"--> </td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td> <span style="font-size: 3pt">&nbsp;</span></td>
          </tr>
          <tr> 
            <td><!--#INCLUDE FILE="bottom.asp"--> </td>
          </tr>
          <tr> 
            <td> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr> 
                  <td><span style="font-size: 3pt">&nbsp;</span></td>
                </tr>
                <tr> 
                  <td background="images/dh-bj4.jpg" height="99"><!--#INCLUDE FILE="down.asp"--></td>
                </tr>
              </table></td>
          </tr>
        </table>
</td>
<td>
</td>
</tr>
</table>
</div>
</body>
</html>