<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="inc/Conn_User.asp"-->

<%
dim UserID
dim mdid,htm
mdid=trim(request("mdid"))
menu=trim(request("menu"))
htm=trim(request("htm"))
UserID=trim(request("UserID"))
if UserID="" then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>请指定UserID</li>"
	call WriteErrMsg()
	response.end
else
	UserID=Clng(UserID)
end if

indexs="indexs.asp"
if UserID="del" then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>该用户已被管理员删除</li>"
	call WriteErrMsg()
	response.end
else
	UserID=Clng(UserID)
end if
strFileName="main_left.asp?UserID=" & UserID
sql="select * from " & db_User_Table & " where " & db_User_ID & "=" & UserID
set rs=server.createobject("adodb.recordset")
rs.open sql,Conn_User,1,3
if rs.bof and rs.eof then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>找不到指定的用户<br>"
	call WriteErrMsg()
else
    photo=rs(db_User_photok)
	UserName=rs(db_User_Name)
	PageTitle=  UserName &"家园"
if cint(Request.Cookies("asp163")("userhits")) <> userid then
rs(db_User_hits)=rs(db_User_hits)+1
Response.Cookies("asp163")("userhits") = userid
rs.update
else
end if

	

%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
<%= UserName %>
的
播客家园</title>
<link href="css\Mpage_main.css" rel="stylesheet" type="text/css">

<link href="4_files\my.css2" rel="stylesheet" type="text/css">
<body>

<SCRIPT LANGUAGE="JavaScript">

          <!--

          function stopError() {
            return true;
          }

          window.onerror = stopError;

          // -->
 
</SCRIPT>






<style type="text/css" media="screen">
<!--
ul { margin: 0; padding: 0; }
-->
</style>

<style type="text/css">
#hometitle{width:150px;height:14px;overflow:hidden;}

#menu div{cursor:pointer}

#menu1_1_1,#menu1_1_2,#menu1_1_3,#menu1_1_4,#menu1_1_5,#menu1_1_6,#menu1_1_7,#menu1_1_8,#menu1_1_9,#menu1_1_10,#menu1_1_11{width:54px;height:26px;text-align:center;float:left;padding:9px 0 0 0;}

#menu1_1_2,#menu1_1_3,#menu1_1_4,#menu1_1_5,#menu1_1_7,#menu1_1_8,#menu1_1_9,#menu1_1_10,#menu1_1_11{background:url(page_style/Menu/1_1.gif);color:#FFF}

#menu1_1_6{background:url(page_style/Menu/1_3.gif);color:#FFF}

#menu1_1_1{background:url(page_style/Menu/1_2.gif);font-weight:bold;color:#666}

</style>
</head>
<body  onUnload="javascript:stop_Falling();g_FallingMode=null;" style="z-index:-1;background:url(bg/<%if rs(db_user_photok)<>"" then%><%=rs(db_User_photok)%>.jpg<%else%>001.jpg<%end if%>);background-position:left top; background-repeat:no-repeat;" id="body">




      <DIV id=helpZY 

      style="Z-INDEX: 2; LEFT: 754px; POSITION: absolute; TOP: 128px"></DIV>

      <DIV id=hotB style="POSITION: absolute"></DIV>

      <DIV class=pback id=ie5menu 

      style="Z-INDEX: 200; VISIBILITY: hidden; WIDTH: 35px; PADDING-TOP: 4px; POSITION: absolute; HEIGHT: 23px" 

      align=center valign="middle"></DIV></div></div>

<table width="995" height="583" border="0" cellpadding="0" cellspacing="0" style="float:left;" id="all" > 

 <tr>

    <td height="83" valign="top">&nbsp;</td>

    <td height="83" colspan="3" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

      <tr>

        <td width="25%" height="72" rowspan="2" valign="top"><table width="201" height="76" border="0" cellpadding="0" cellspacing="0">

            <tr>

              <td height="46">&nbsp;</td>

              <td>&nbsp;</td>

              </tr>

            <tr>

              <td width="38" rowspan="2"><img src="page_style\icon\home.gif" width="27" height="26"> </td>

              <td width="207" height="12" id="font_1"><div id="hometitle"></div></td>

              </tr>

            <tr>

              <td height="18"><div  id="home_http"><%if rs(db_user_title)<>"" then%>
              <font color=<%=rs(db_user_titlecolor)%>><%=rs(db_user_title)%></font>
              <%else%>
              "<%= UserName %>"
的
<%end if%>播客家园</div></td>

            </tr>

        </table></td>

        <td width="75%" height="49">&nbsp;</td>

      </tr>

      <tr>

        <td height="34">
		<div id='menu'>
           <a style="cursor:hand" hre="#" onClick="location.href='user.asp?userid=<%=UserID%>'"><div id="menu1_1_5" >首 页</div>
        <a style="cursor:hand" hre="#" onClick="location.href='proFile.asp?userid=<%=UserID%>'"><div id="menu1_1_2">档 案</div>
          <a style="cursor:hand" hre="#" onClick="location.href='boke.asp?userid=<%=UserID%>'"><div id="menu1_1_3" >日 志</div>
        <a style="cursor:hand" hre="#" onClick="location.href='pic_index.asp?userid=<%=UserID%>'"><div id="menu1_1_4">相 册</div>
     <a style="cursor:hand" hre="#" onClick="location.href='gbooks.asp?userid=<%=UserID%>'"><div id="menu1_1_1">留 言</div>
         <a style="cursor:hand" hre="#" onClick="location.href='index_flv.asp?userid=<%=UserID%>'"> <div id="menu1_1_6"">视 频</a></div>
       <a style="cursor:hand" hre="#" onClick="location.href='web_r.asp?userid=<%=UserID%>'"><div id="menu1_1_7">网 址</div>
 <a style="cursor:hand" hre="#" onClick="location.href='v.asp?userid=<%=UserID%>'"> <div id="menu1_1_9">收 藏</div>

         <%
	  if CheckUserLogined()=true then
	  UserNames=Request.Cookies("asp163")("UserName")
	  set rs=server.CreateObject("ADODB.recordset")
	  sql="select * from [user] where username='"&usernames&"'"
	  rs.open sql,conn_user,1,1
	  user=rs("userid")
	 
	  If user=UserID then
	  
	  %>
          <%if mdid="man" then%>


     <%else%>

       <a style="cursor:hand" hre="#" onClick="location.href='usermanage.asp?userid=<%=UserID%>'"> <div id="menu1_1_8">管 理</div>
          <%end if%>
          <%else
	  end if%>
          <%
	  else
	  end if
	  %>
        </div></td>
      </tr>
   </table></td>
    <td width="135" rowspan="2" valign="top"><table width="89%" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
       <td height="17">&nbsp;&nbsp; &nbsp;</td>
      </tr>
      <tr>
&nbsp;&nbsp;&nbsp;&nbsp;<%if rs(db_user_userg)<>"" then%><img src="userg/<%=rs(db_User_userg)%>.gif"><%else%><%end if%>
<td height="195" valign="top"><div id="visit_title" >
</div><div id="visiter"> <div id="myvister"></div></div></div>
<div id="Adtop">
<div id="AdLoad" style="left: 496px;padding-top:5px'">
</div>
</div><div id=AdLayer style='position:absolute;  z-index:20; visibility:hidden;; left: 496px;padding-top:5px'> 
</div>
</td>
 </tr>
</table></td>
 </tr> <tr>
<td width="43" height="490">&nbsp; </td>
<td > <iframe id="frameLeft" name="frameLeft" src="message_l.asp?userid=<%=userid%>"  width="180" height="470" border="0"  frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe></td><td width="611" valign="top">
<IFRAME id=content 
                  style="WIDTH: 595" name=content align=left 
                  src="gbook.asp?userid=<%=userid%>" frameBorder=0 scrolling=yes 
                  height="500"></IFRAME>
</td></tr></table>
</body></html>
<SCRIPT language=JavaScript src="css/toolbar/toolbar.js"></SCRIPT>
</td><tr>     
<%
end if
rs.close
set rs=nothing
call CloseConn()
%>