<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $GLOBALS['_vars']['spacename']; ?>_<?php echo $GLOBALS['cfg_webname']; ?></title>
<meta name="keywords" content="<?php echo $GLOBALS['cfg_keywords']; ?>,<?php echo $GLOBALS['_vars']['uname']; ?>">
<link href="/templets/default/diary/css.css" rel="stylesheet" type="text/css">
<link href="/templets/default/diary/wdiv.css" rel="stylesheet" type="text/css">
<SCRIPT Language ="JavaScript" src="/templets/default/diary/wdiv.js"></SCRIPT>
</head>
<body background="<?php echo $GLOBALS['_vars']['zzzbgbg']; ?>" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0">
<form method="post" action="reg_new.php" id="regUser" name="regform" onSubmit="return CheckForm()">
<table width="985" border="0" cellspacing="0" cellpadding="0" align="center" style="margin:0 auto;">
  <tr> 
    <td> <?php include(DEDETEMPLATE."/default/head_member.htm"); ?>
      <table width="985" border="0" cellspacing="0" cellpadding="0" height="452">
        <tr> 
          <td width="20">&nbsp;</td>
          <td height="452" background="/templets/default/diary/bg1.gif" width="703"> 
               <table width="703" border="0" cellspacing="0" cellpadding="0" height="452">
              <tr> 
                <td height="10" width="54"></td>
                <td width="288"></td>
                <td rowspan="3" width="21"></td>
                <td width="284"></td>
                <td width="57"></td>
              </tr>
              <tr> 
                <td height="370">&nbsp;</td>
                  <td width="288"> 
                    <table border="0" width="288" id="table6" cellspacing="0" cellpadding="0" height="350">
                      <tr> 
                        <td width="68" height="30"> <b> <font color="#00ACF0"> 
                          <img border="0" src="/templets/default/diary/diary_name.jpg" width="60" height="24"></font></b></td>
                        <td width="220"><font color="#00ACF0"><b>　<?php echo $GLOBALS['_vars']['spacename']; ?></b></font></td>
                      </tr>
                      <tr> 
                        <td width="68" height="30"> <b> <font color="#FF0000"> 
                          <img border="0" src="/templets/default/diary/user.jpg" width="60" height="24"></font></b></td>
                        <td width="220"><font color="#FF0000"><b>　<?php echo $GLOBALS['_vars']['uname']; ?></b></font></td>
                      </tr>
                      <tr> 
                        <td width="288" colspan="2" height="30"><span class="style1"> 
                          <font color="#00ACF0">日记路径：</font></span><a target="_blank" href="/?<?php echo $GLOBALS['_vars']['userid']; ?>"><span class="style1"><font color="#00ACF0"><?php echo $GLOBALS['cfg_basehost']; ?>/?<?php echo $GLOBALS['_vars']['userid']; ?></font></span></a></td>
                      </tr>
                      <tr align="center" valign="middle"> 
                        <td width="288" colspan="2" height="208"><img border="0" src="<?php echo $GLOBALS['_vars']['spacelogo']; ?>"></td>
                      </tr>
                      <tr align="center" valign="top"> 
                        <td width="288" colspan="2" height="52"> 
                          <table border="0" width="95%" id="table7" cellspacing="0" cellpadding="0" align="center">
                            <tr> 
                              <td background="/templets/default/diary/img/bg_line.gif"><font color="#FF0000">&nbsp;&nbsp; 
                                <?php echo $GLOBALS['_vars']['sign']; ?> 　</font></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                <td height="370" width="284" background="/templets/default/diary/mybook.gif">
<table border="0" width="278" id="table8" cellspacing="0" cellpadding="0" height="100%">
                    <tr> 
                      <td>　 
                      <td height="19" width="152" colspan="2">　
<div id="flist" onmouseleave="var c875=(screen.width-1024)/2+875;closeed('flist',c875+'px','5px','104','120');ssimg('wishimg','100','120');return false;" style="display:none;width:80px;position:absolute;height:200px; top: 95px"> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td height=25 valign="top"></td>
      <td></td>
      <td valign="top" align="right"><img src="/templets/default/diary/close.gif" width=12 height=12  style="margin-right:5px;margin-top:0px;cursor:hand" onclick = "var c875=(screen.width-1024)/2+875;closeed('flist',c875+'px','5px','104','120');ssimg('wishimg','100','120');return false;"></td>
    </tr>
    <tr> 
      <td colspan="3">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="2"></td>
            <td width="*" height=370 valign=top style="padding-left:5px;text-align:center">
<?php
if($action=='article')
{
	  	$action = 'article';
	  	$channelid = 1;
}
else if($action=='album')
{
	  	$action = 'album';
	  	$channelid = 2;
}
else
{
	  	$action = 'archives';
	  	$channelid = empty($channelid) ? 0 : intval($channelid);
}
if($channelid >= 0)
{
	$channelAdd = '';
	if($channelid > 2) $channelAdd = '&channelid='.$channelid;
?><a href="/?<?php echo $GLOBALS['_vars']['userid_e']; ?>/<?php echo $action.$channelAdd; ?>">所有日记</a><br>
	<?php
	  if (count($mtypearr)>0)
	  {
	  	foreach ($mtypearr as $mty)
	  	{ 
	  		if(!empty($channelid) && $mty['channelid'] != $channelid) continue;
				echo "<a href=\"/?{$_vars['userid_e']}/{$action}/{$mty['mtypeid']}{$channelAdd}\">{$mty['mtypename']}</a><br>";
	 		}
	 	}
		
}
?>
</td>
            <td width="5"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
</td>
                    </tr>
                    <tr> 
<td height="19" width="126"><b><font color="#51300C">&nbsp;</font><font color="#703F15">日记篇数：</font></b><font color="#FF0000"><?php echo $GLOBALS['_vars']['article']; ?></font><b><font color="#703F15">篇</font></b></td>

                    <td height="19" width="152" align="right"> <a href="#" onmouseover = "var c600=(screen.width-1024)/2+600;show('flist',c600+'px','135px','80','200');return false;">日记分类</a> </td>
                    </tr>
                    <tr> 
                      <td background="/templets/default/diary/linebg2.gif" width="278" colspan="2" height="1"> 
                        <img border="0" src="/templets/default/diary/linebg2.gif" width="4" height="1"></td>
                    </tr>
                    <tr valign="top"> 
                      <td width="278" colspan="2"> 
                        <table border="0" width="100%" id="table9" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td> 
                              <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table10">
                                <tr> 
<td align="center" style="font-size: 9pt; font-family: Verdana; color: #000000; letter-spacing: 1pt; word-break: break-all" background="img/bg_line.gif"> 
<?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"  id="table11">
<tr bordercolor="DDE7AB"> 
<td width="2"></td>
<td width="40"><?php 
if ($fields['zzzxq']=="11"){$zzzxqnow="<font color='#FF9966'>开心篇</font>";}
if ($fields['zzzxq']=="22"){$zzzxqnow="<font color='#FF66FF'>甜蜜篇</font>";}
if ($fields['zzzxq']=="33"){$zzzxqnow="<font color='#0066CC'>深情篇</font>";}
if ($fields['zzzxq']=="44"){$zzzxqnow="<font color='#6699FF'>柔情篇</font>";}
if ($fields['zzzxq']=="55"){$zzzxqnow="<font color='#6699FF'>伤感篇</font>";}
if ($fields['zzzxq']=="66"){$zzzxqnow="<font color='#808080'>沧桑篇</font>";}
if ($fields['zzzxq']=="77"){$zzzxqnow="<font color='#996633'>苦涩篇</font>";}
if ($fields['zzzxq']=="88"){$zzzxqnow="<font color='#996633'>无奈篇</font>";}
if ($fields['zzzxq']=="99"){$zzzxqnow="<font color='#996633'>愤怒篇</font>";}
if ($fields['zzzxq']=="100"){$zzzxqnow="<font color='#996633'>分享篇</font>";}
if ($fields['zzzxq']==""){$zzzxqnow="<font color='#FF9966'>开心篇</font>";}
if ($fields['zzzdisplay']=="1"){$zzzdisplay="<font color=#0099CC>开</font>";}else{$zzzdisplay="<font color=#FF6666>秘</font>";}
 echo $zzzxqnow; ?></td>
<td width="*"><a target="_blank" title="<?php echo $fields['title']; ?>" href="<?php echo $fields['arcurl']; ?>"> 
<font color="#800000"><div style="display:block;width:180px;height:20px;word-break:keep-all;white-spacing:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;">&nbsp;<?php echo $fields['title']; ?></div></font></a></td>
                                      <td width="10" align="center"><?php echo $zzzdisplay; ?></td>
                                      <td width="20"><img src="<?php echo $fields['zzztq']; ?>" border="0" align="middle"></td>
                                      <td width="20"><a title="<?php echo MyDate('y-m-d h:i',$fields['pubdate']); ?>" href="#"> 
                                        <img border="0" src="/templets/default/diary/TIME.gif" width="20" height="20"></a></td>
                                    </tr>
                                  </table>
<?php
}
}?>                                 
                                    <table width="98%" border="0" cellspacing="0" cellpadding="0" id="table13">
                                      <tr> 
                                        <td align="right"> <font color="#5690BE"> <?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '3';
$atts['listitem'] = 'index,end,pre,next,pageno';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>
 </font> 
                                        </td>
                                      </tr>
                                    </table>

                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
				</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td height="67">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>
          
          </td>
          <td width="272"> 
<div id="fd" style="display:block;width:50px;height:51px;top: 55px"> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td height=25 valign="top"><img src="/templets/default/diary/guestbook.gif" title="留言" width=50 height=51 style="margin-left:5px;margin-top:0px;cursor:pointer" onclick = "var c700=(screen.width-1024)/2+700;show('fd',c700+'px','90px','260','460');return false;"></td>
      <td></td>
      <td valign="top" align="right"><img src="/templets/default/diary/close.gif" width=15 height=15  style="margin-right:5px;margin-top:5px;cursor:pointer" onclick = "var c608=(screen.width-1024)/2+608;closeed('fd',c608+'px','55px','51','50');return false;"></td>
    </tr>
    <tr> 
      <td colspan="3">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="2"></td>
            <td width="*" height=350>
			<IFRAME src="/member/index.php?uid=<?php echo $GLOBALS['_vars']['userid']; ?>&action=guestbook" frameBorder=0 width="260" scrolling=auto height="350" name="showpage" allowtransparency="true" style="OVERFLOW:hidden;OVERFLOW-X:HIDDEN;OVERFLOW-y:hidden;background-color=transparent"> 
              </IFRAME></td>
            <td width="5"></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td height=5 valign="top"></td>
      <td></td>
      <td valign="top" align="right"></td>
    </tr>
  </table>
</div>
<div id="uinfo" style="display:block;width:64px;height:64px;top:70px"> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td height=62 valign="top"><img src="/templets/default/diary/info.gif"  alt="个人资料" title="个人资料" width=60 height=64 style="margin-left:5px;margin-top:0px;cursor:pointer" onclick = "var c700=(screen.width-1024)/2+700;show('uinfo',c700+'px','90px','220','240');return false;"></td>
      <td></td>
      <td valign="top" align="right"><img src="/templets/default/diary/close.gif" alt="留言本" title="留言本" width=15 height=15  style="margin-right:5px;margin-top:5px;cursor:pointer" onclick = "var c658=(screen.width-1024)/2+658;closeed('uinfo',c658+'px','70px','64','64');return false;"></td>
    </tr>
    <tr> 
      <td colspan="3">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="2"></td>
            <td width="*" height=180 align="center">
<table width="100%" border="0" align="center" bgcolor="#FFFFFF" height="180" cellspacing="0" cellpadding="0">
    <tr> 
      <td rowspan="5" align="center" width="33%"><img src="<?php echo $GLOBALS['_vars']['face']; ?>" width="75" height="150"></td>
      <td width="30" height="20" align="left"> 
        <font color="#336600"><b>昵称:</b></font>
      </td>
      <td width="90"><b><?php echo $GLOBALS['_vars']['uname']; ?></b></td>
    </tr>
    <tr> 
      <td height="20" align="left"> 
        <font color="#336600"><b>性别:</b></font>
      </td>
      <td><b><?php echo $GLOBALS['_vars']['sex']; ?></b></td>
    </tr>
    <tr> 
      <td height="20" align="left"> 
        <font color="#336600"><b>日记:</b></font>
      </td>
      <td><b><?php echo $GLOBALS['_vars']['spacename']; ?></b></td>
    </tr>
    <tr> 
      <td height="20" align="left"> 
       <b><font color="#336600"><b>联系:</b></font></b>
      </td>
      <td><b><?php echo $GLOBALS['_vars']['birthday']; ?></b></td>
    </tr>
    <tr> 
      <td colspan="2" valign="top" align="left" height="70"> 
        <div style="word-wrap: break-word; word-break:break-all;"><b><font color="#336600">说明:</font></b><?php echo $GLOBALS['_vars']['lovemsg']; ?></div>
        </td>
    </tr>
  </table>
</td>
            <td></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>  
</div>

<div id="wish" style="display:block;width:104px;position:absolute;height:120px; top: 5px"> 
  <table width="100%" heght="380" border="0" cellspacing="0" cellpadding="0">
    <tr> 
<td height=25 valign="top"><img id="wishimg" src="/templets/default/diary/wish.gif" title="许个愿望吧" width="100" height="120" style="margin-left:5px;margin-top:0px;cursor:pointer" onclick = "var c600=(screen.width-1024)/2+600;ssimg('wishimg','51','60');show('wish',c600+'px','130px','390','370');return false;"></td>
      <td><img src="/templets/default/diary/wtitle.gif" width=150 height=50></td>
      <td valign="top" align="right"><img src="/templets/default/diary/close.png" width="15" height="15"  style="margin-right:5px;margin-top:5px;cursor:pointer" onclick = "var c875=(screen.width-1024)/2+875;closeed('wish',c875+'px','5px','104','120');ssimg('wishimg','100','120');return false;"></td>
    </tr>
    <tr> 
      <td colspan="3">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="2"></td>
            <td width="*" height=390>
			<IFRAME src="<%=diarydir%>p/wish/wish.asp?uid=<%=uid%>&user=<%=name%>&wishopen=<%=wishopen%>" frameBorder=0 width="390" scrolling=auto height="390" name="showpage" allowtransparency="true" style="OVERFLOW:hidden;OVERFLOW-X:HIDDEN;OVERFLOW-y:hidden;background-color=transparent"> 
              </IFRAME></td>
            <td width="5"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
<table width="243" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr> 
    <td align="center" valign="top" height="210"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="220" height="210">
        <param name=movie value="/templets/default/diary/rili.swf">
        <param name=quality value=high>
        <param name="wmode" value="transparent">
        <embed src="/templets/default/diary/rili.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="220" height="210" wmode="transparent">
        </embed> 
      </object>
    </td>
  </tr>
  <tr> 
    <td align="center"> </td>
  </tr>
  <tr> 
    <td  valign="top"><table width="243" border="0" cellspacing="0" cellpadding="0" align="center" >
        <tr>
          <td height="200" background="/templets/default/diary/bg6.gif" >
            <table width="171" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td width="35">&nbsp;</td>
                <td width="136"><?php echo $GLOBALS['_vars']['spacenews']; ?></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
          </td>
        </tr>
      </table>
      <?php include(DEDETEMPLATE."/default/footer.htm"); ?>
    </td>
  </tr>
  <tr> 
    <td></td>
  </tr>
</table></form>
</body>
</html>