<!--#include file="../conn/conn.asp"-->
<!--#include file="../conn/config.asp"-->
<!--#include file="../conn/nosql.asp"-->
<!--#include file="../conn/page.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>迷你主页首页-<%=webname%></title>
<link href="../css.css" REL="stylesheet" TYPE="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {color: #FFFFFF}
.style7 {color: #FF0000}
.style10 {color: #FF3300;
	font-weight: bold;
}
-->
</style>
<SCRIPT language=javascript>
//--检测登陆-->

	   function DoLogin() {

	      var UsernameGet = trim(document.loginForm.UsernameGet.value);
		  var PasswordGet = trim(document.loginForm.PasswordGet.value);
		  var Verifycode = trim(document.loginForm.Verifycode.value);

          if(UsernameGet == "") {
		    alert("请输入会员登录名！");
			document.loginForm.UsernameGet.focus();
		    return false;
		  } 
		  if(PasswordGet == "") {
		    alert("请输入您的会员密码！");
			document.loginForm.PasswordGet.focus();
		    return false;
		  } 
		  if(Verifycode == "") {
		    alert("请输入您的登录验证码！");
			document.loginForm.Verifycode.focus();
		    return false;
		  }  
		  
		  
		 }

           function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//-->
</SCRIPT>
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>

<body><!--#include file="top.asp"-->
<table width="100" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<span class="style10"></span><span class="style10"></span>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top"><!--#include file="../left.asp"--></td>
    <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;<a href="javascript:;" class="style7" onClick="window.open('action.asp','show','scrollbars=no,resizable=no,width=420,height=260,menubar=no,top=10,left=188')"><img src="../images/cjzjfj.gif" width="103" height="19" border="0"></a></td>
      </tr>
      <tr>
        <td><%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select * from mini_zjhome order by showtp desc",conn,1,1
		  if rs.eof then
          response.Write"<div align='center'>暂无任何信息</div>"
           else
		          rs.PageSize =3 '每页记录条数
		iCount=rs.RecordCount '记录总数
		iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
    	page=request("page")
    	per_page=rs.PageSize
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	For i=1 To x%>
            <table width="567"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="430" height="12"><table width="420" height="220" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                    <tr>
                      <td bgcolor="efefef"><div align="center">
                          <iframe name="web" scrolling="no" align="top" marginheight="0" marginwidth="0" frameborder="0" width="400" height="200" src="/minishow/home.asp?id=<%=rs("userid")%>">取数据中。。。</iframe>
                      </div></td>
                    </tr>
                  </table>
                    <table width="130" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td></td>
                      </tr>
                  </table></td>
                <td width="137" valign="top">
                  <table width="137" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="22"><strong> <%=trim(rs("showname"))%> </strong> </td>
                    </tr>
                    <tr>
                      <td height="11">房主：
                          <%set rs3=conn.execute("select * from [snsn_user] where id="&rs("userid")&"")
									if rs3.eof or rs3.bof then
response.write "<a href=#>"
else%>
                          <a href="javascript:;" onclick="showmenuie5(<%=rs3("url")%>,<%=rs3("id")%>,'<%=rs3("username")%>')" >
                          <%end if%>
                          <%=rs3("username")%></a></td>
                    </tr>
                    <tr>
                      <td height="11">时间：<%=trim(rs("showdate"))%></td>
                    </tr>
                    <tr>
                      <td height="22">得票数：<%=trim(rs("showtp"))%>
                          <%if Request.ServerVariables("REMOTE_ADDR")<>request.cookies("homeIPAddress") then%>
                          (<a href="javascript:;" class="style7" onClick="window.open('action.asp?id=<%=rs("id")%>&action=vote','showvote','scrollbars=no,resizable=no,width=420,height=260,menubar=no,top=10,left=188')">投TA一票</a>)
                          <%end if%></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="13" colspan="2"><%=trim(rs("shownr"))%></td>
              </tr>
              <tr>
                <td height="1" colspan="2" bgcolor="efefef"></td>
              </tr>
            </table>
            <table width="130" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
            </table>
            <%
			rs.movenext
			next
end if
			rs.close
			set rs=nothing%>
            <TABLE width="100%" 
        border=0 align="center" cellPadding=4 cellSpacing=0>
              <TBODY>
                <TR>
                  <TD class=M noWrap align=middle><%
					call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>",per_page)
				  %></TD>
                </TR>
              </TBODY>
          </TABLE></td>
      </tr>
    </table>      <span class="style10"> </span></td>
  </tr>
</table>
<table width="90%" height="10"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table><!--#include file="../end.asp"-->
</body>
</html>