<!-- #include file="top.asp" -->
<!-- #include file="share.asp" -->
<!-- #include file="online.asp" -->

<%
addonline session("blueuid"),"论坛首页"
%>
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>3鸟设社[色彩连视版]媒体社区首页</title>
<!-- TemplateEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="blue.css" type="text/css">
<script src="images/fade.js"></script>
<style type="text/css">
<!--
.hand { cursor: hand }
-->
</style>
<script language="javascript">
function checkform(){
	if(signin.username.value==""){
		alert("请填写注册名！");
		signin.username.focus();
		return false;
	}else if(signin.password.value==""){
		alert("请填写密码！");
		signin.password.focus();
		return false;
	}else{
		signin.fromurl.value="index.asp";
		return true;
	}
	return false;
}
</script>

<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body bgcolor=#ffffff leftmargin="0" topmargin="0">
<SCRIPT language=JavaScript>
<!-- Hide the script from old browsers --
// 1) 做一个广告。
if (document.images)
var staticlogo=new Image(88,31)
// 2) 设置路径。
staticlogo.src="http://3niao.com/left.gif"
// 3) 以下是广告代表的连接。
var logolink=""
// 4) 设置ALT属性。
var alttext="打造我们的教学设社"
// 5) 设置下列属性为 1或者0(1是IE特有的，使LOGO隐现）
var fadeintoview=1
/* 0) 最后设置LOGO显示的时间，例如12 秒，数值为0表示一直显示
*/
var visibleduration=12
/////////////////////////以下不要改变/////////////////////////
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}
var fadeset=''
if (fadeintoview)
fadeset="filter:alpha(opacity=0)"
if (document.all)
document.write('<span id="logo"" style="'+fadeset+';position:absolute;top:100;width:'+staticlogo.width+';height:'+staticlogo.height+'"></span>')
function bringintoview(){
if (logo.filters.alpha.opacity<=95)
logo.filters.alpha.opacity+=5
else{
clearInterval(viewit)
if (visibleduration!=0)
setTimeout("logo.style.visibility='hidden'",visibleduration*1000)
}
}
function createlogo(){
staticimage=new Layer(100)
staticimage.left=-300
staticimage.top=120
staticimage.document.write('<a href="'+logolink+'"><img src="'+staticlogo.src+'" border=0 alt="'+alttext+'"></a>')
staticimage.document.close()
staticimage.visibility="show"
regenerate2()
staticitns()
}
if (document.layers)
window.onload=createlogo;
if (document.all){
w=2
h=2
logo.style.left=w
logo.style.top=h
}
function logoit(){
var w2=document.body.scrollLeft+w
var h2=document.body.scrollTop+h
logo.style.left=w2
logo.style.top=h2
}
function logoit2(){
staticimage.left=pageXOffset+2
staticimage.top=pageYOffset+2
}
function insertimage(){
logo.innerHTML='<a href="'+logolink+'"><img src="'+staticlogo.src+'" border=0 alt="'+alttext+'"></a>'
if (fadeintoview)
viewit=setInterval("bringintoview()",100)
else{
if (visibleduration!=0)
setTimeout("logo.style.visibility='hidden'",visibleduration*1000)
}
}
if (document.all){
window.onscroll=logoit
window.onresize=new Function("window.location.reload()")
window.onload=insertimage
}
function staticitns(){
setInterval("logoit2()",90)
if (visibleduration!=0)
setTimeout("staticimage.visibility='hide'",visibleduration*1000)
}
//--> 
</SCRIPT>
<table width="758" height="623" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
      
    <td width="20" height="12"></td>
      
    <td width="719" height="12"></td>
      
    <td width="21" height="12"></td>
    </tr>
    <tr>
        <td width="25" height="455" background="images/bg.gif"></td>
        <td width="719" height="455" valign="top"><table width="720" border="0" cellspacing="0">
            <tr> 
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="98%" align="left" valign="middle"> 
                      <%
			if not session("bluelogin")="yes" then
			%>
                      <form name="signin" method="post" action="checkuser.asp" onsubmit="return(checkform());">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="16%" align="right" valign="middle"><font color="Black">用户名: 
                              </font></td>
                            <td width="84%" valign="middle"> <input type="text" name="username" size="12" maxlength="15"> 
                            </td>
                          </tr>
                          <tr> 
                            <td width="16%" align="right" valign="middle"><font color="Black">密　码: 
                              </font></td>
                            <td width="84%" valign="middle"> <input type="password" name="password" size="12" maxlength="15"> 
                            </td>
                          </tr>
                          <tr valign="middle"> 
                            <td width="16%" height="26">&nbsp;</td>
                            <td width="84%" height="26"> <input type="hidden" name="fromurl" value="index.asp"> 
                              <input type="submit" name="submit" value="Enter">
                              [<a class="fade" name="a11" href="newuser.asp">申请新用户</a>]</td>
                          </tr>
                        </table>
                      </form>
                      <%
			else   '===================login already start
			%>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr valign="middle"> 
                          <td width="16%" height="40">&nbsp;</td>
                          <td width="84%" height="40"> 
                            <%
					pos=session("bluepos")
					sn=session("bluesn")
				  if pos>=0 and pos<10 then
				  %>
                            <img class="hand" src="images/bbs_head1.gif" width="20" height="20" align="absmiddle" alt="石头 [<%=sn%>/<%=pos%>/<%=10-pos%>]"> 
                            <%
				  elseif pos>=10 and pos<50 then
				  %>
                            <img class="hand" src="images/bbs_head2.gif" width="20" height="20" align="absmiddle" alt="玻璃 [<%=sn%>/<%=pos%>/<%=50-pos%>]"> 
                            <%
				  elseif pos>=50 and pos<200 then
				  %>
                            <img class="hand" src="images/bbs_head3.gif" width="20" height="20" align="absmiddle" alt="水晶 [<%=sn%>/<%=pos%>/<%=200-pos%>]"> 
                            <%
				  else
				  %>
                            <img class="hand" src="images/bbs_head4.gif" width="20" height="20" align="absmiddle" alt="金刚石 [<%=sn%>/<%=pos%>/∞]"> 
                            <% end if %>
                            welcome <%=session("blueuid")%>! <br> <font color="#FFCC00"><b>今天: 
                            <%=date()%></b></font>&nbsp;&nbsp; 您是第<%=(sn+1)%>次登录<br>
                            [&nbsp;<a href="showuser.asp?uid=<%=session("blueuid")%>">查看个人资料</a>&nbsp;] 
                            <br>
                            [&nbsp;<a href="logout.asp">注销登录</a>&nbsp;] <br> 
                            <% if session("blueauthority")>=2 then%>
                            [&nbsp;<a href="admin">论坛管理</a>&nbsp;]<br> 
                            <% end if %>
                            <p> </td>
                        </tr>
                      </table>
                      <%
			end if  '==========login already end
			%>
                    </td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td> 　 
                <%
					dim rs
					dim sql
					sql="select * from board order by bdsort asc"
					set rs=conn.execute(sql)
					if rs.eof then response.write "当前没有论坛板块。请管理员添加板块。"
					do while not rs.eof
						bdid=rs("bdid")
				%>
              </td>
            </tr>
            <tr> 
              <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td align="left" valign="top" width="45"> <img src="images/frame_forum2.gif"> 
                    </td>
                    <td background="images/frame_bg.gif" valign="middle" align="left"> 
                      <font class="subtitle"><%=rs("bdname")%></font> </tr>
                  <tr> 
                    <td> </td>
                    <td> 
                      <% if not bdid="" then %>
                      <a href="main.asp?bdid=<%=bdid%>"><img name="bdlogo<%=bdid%>" id="bdlogo<%=bdid%>" src="<%=rs("bdlogo")%>" border="0" alt="点击进入：<%=rs("bdname")%>"></a> 
                      <% end if %>
                      <br> <img src="images/bbs_signal.gif" align="absbottom"> 
                      <%=rs("bddetail")%> [<a href="main.asp?bdid=<%=rs("bdid")%>">进入</a> 
                      <img src="images/go_movie.gif"> ] <br> 
                      <%
								dim bs
								sql="select * from book where bdid="&rs("bdid")&" order by btimemodify desc"
								set bs=conn.execute(sql)
								if not bs.eof then
								
								for i=1 to 4
							%>
                      <img src="images/rightstyle.gif"> <font color="#000000" size="1">New：</font><a href="showitem.asp?bid=<%=bs("bid")%>&bdid=<%=rs("bdid")%>"><%=bs("btitle")%></a>&nbsp;[<%=bs("uid")%> 
                      <% if bs("addreply") then response.write "/"&bs("blastuser") %>
                      ]<br> 
                      <%
									bs.movenext
									if bs.eof then exit for
								next
								end if
								bs.close
								set bs=nothing
							%>
                    </td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td> 
                <%
					rs.movenext
					loop
					rs.close
					set rs=nothing
				%>
              </td>
            </tr>
            <tr> 
              <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td align="left" valign="top" width="46"> <img src="images/frame_forum2.gif"> 
                    </td>
                    <td background="images/frame_bg.gif" valign="middle" align="left" WIDTH="1"> 
                    </TD>
                    
                <td width="671" align="left" valign="middle" background="images/frame_bg.gif"> 
                  <font color="#FFFFFF">社区连接</font>
              </tr>
                  <tr> 
                    
                <td align="left" valign="top" COLSPAN="2">&nbsp;</td>
                    
                <td height="100" valign="top" align="left"><table width="672" height="61" border="0" cellspacing="0">
                    <tr>
                      <td width="162"><a href="http://www.cn-media.com"><img src="http://www.cn-media.com/logo.gif" alt="本站的logo" border="0"></a></td>
                      <td width="165"><a href="http://www.cn-media.com" target="_blank"><img src="http://www.cn-media.com/logo.gif" alt="媒体中国" border="0"></a></td>
                      <td width="159">&nbsp;</td>
                      <td width="157">&nbsp;</td>
                      <td width="19">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                  </table> </td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><div align="right"></div></td>
            </tr>
          </table></td>
        
    <td width="27" height="451" background="images/bg.gif"></td>
    </tr>
    
  <tr> 

      <div align="center">3鸟设社[v1.2色彩连视]媒体论坛 www.cn-media.com</div></td>
    </tr>
  </table>

<table width="758" border="0" align="center" cellspacing="0">
  <tr> 
    <td height="35" colspan="2" background="images/footbg.gif"> <div align="center">我们的口号是:每天都要把梦想的距离拉近一点cn-media.com</div></td>
  </tr>
  <tr> 
    <td width="392" background="http://www.3niao.com/v2/down1/images/footgb1.gif">&nbsp;</td>
    <td width="362"><div align="right"><a href="http://www.cn-media.com"><img src="../home/down1/images/foot.jpg" width="250" height="60" border="0"></a></div></td>
  </tr>
</table>
</body>
</html>
