<?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=gb2312" />
<title>小心情-聆听你的点滴心情</title>
<link href="<?php echo $cfg_templeturl; ?>/default/style/page.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<?php
   pasterTempletDiy("default/head.htm");
?> 
<div class="weizhi">
  <div class="wzrr">当前位置：<?php echo $fields['position']; ?></div>
</div>
<div class="x-l1">
<form method="post" action="xinqing.php" name="form1">
	  <input type='hidden' name='action' value='save' />
	  <div class="bo">
<span>昵称：</span>
<input type="text" size="30" name="uname" maxlength="20" value="匿名用户" onfocus="if(this.value=='匿名用户'){this.value='';}"  onblur="if(this.value==''){this.value='匿名用户';}"/></div>
	<div class="bo">
<span>QQ号：</span>
<input type="text" size="30" name="qq" maxlength="20" /></div>
  <div class="lyrr"><span>心情：</span>
    <textarea name="msg" class="textarea"></textarea>
  </div>
  <div class="ly-tj"><input type="submit" name="Submit" value="提 交" class="btn-2" /><input type="reset" name="Submit2" value="重 置" class="btn-2" />
  </div>
  </form>
</div>
<div class="fgx"></div>
<div class="x-body">
     <?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
         <div class="x-rr">
      <div class="x-t">
        <div class="x-info"><b><?php echo $fields["uname"]?></b>在<?php echo MyDate('Y年m月d日',$fields['dtime']); ?> 发表了心情</div>
        <div class="x-ad"> <?php if($g_isadmin) { ?><a href='xinqing.php?action=admin&id=<?php echo $fields['id']; ?>&job=del' class="lan">删除</a><?php }  ?><span>#<?php echo $fields['id'];  if($ntt==0){$ntt=1;}else{ $ntt=0; } ?></span></div>
        <div class="cer"></div>
      </div>
      <div class="x-q"><?php echo $fields['msg']; ?></div>
    </div>
    <div class="fgx"></div>
    <?php
}
}?>   
  <div class="page"><?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '5';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>
</div>
 </div>
</div>
<?php
   pasterTempletDiy("default/footer.htm");
?> 
</body>
</html>