{aite:config pagesize='5'/}
{aite:datalist}
<?php
  if($fields['userid']!='') $spaceurl = $cfg_basehost.'/member/index.php?uid='.$fields['userid'];
  else $spaceurl = "#";
  if($fields['username']=='匿名') $spaceurl = "#";
  $fields['bgimg'] = 'cmt-neu.gif';
  $fields['ftypetitle'] = '该用户表示中立';
  if($fields['ftype']=='bad') {
  	$fields['bgimg'] = 'cmt-bad.gif';
  	$fields['ftypetitle'] = '该用户表示差评';
  }
  else if($fields['ftype']=='good') {
  	$fields['bgimg'] = 'cmt-good.gif';
  	$fields['ftypetitle'] = '该用户表示好评';
  }
?>
document.write("<div class='decmt-box'>");
document.write("<div class='decmt-title'>");
document.write("<span class='moodico'><img src='{aite:global.cfg_templeturl/}/images/mood/ico-mood-<?php if($fields['face']>0) echo $fields['face'];?>.gif'/></span>");
document.write("<span class='username'><a href='<?php echo $spaceurl;?>'>{aite:field.username/}</a></span>");
document.write("<span class='date'>{aite:field.dtime function=GetDateMk(@me)/}</span>");
document.write("<span>发表</span>");
document.write("</div>");
document.write("<div class='decmt-act'>");
document.write("<span id='goodfb{aite:field.id/}'><a href=#goodfb{aite:field.id/} onclick=postBadGood('goodfb',{aite:field.id/})>支持</a>[{aite:field.good/}]</span>");
document.write("<span id='badfb{aite:field.id/}'><a href=#badfb{aite:field.id/} onclick=postBadGood('badfb',{aite:field.id/})>反对</a>[{aite:field.bad/}]</span>");
document.write("<span><a href='/plus/feedback.php?fid={aite:field.id/}&action=quote'>引用</a></span>");
document.write("</div>");
document.write("<div class='decmt-content'>{aite:field.msg function='jstrim(@me,100)'/}<img src='{aite:global.cfg_templeturl/}/images/{aite:field.bgimg/}' alt='{aite:field.ftypetitle/}' />");
document.write("</div>");
document.write("</div>");
{/aite:datalist}



