<?php use_helper('I18N', 'tvtl'); ?>
<?php $typeLink = "/user/comment?us_id=$user_id&blog=$blog&type=" ?>
<?php $blogLink = "/user/comment?us_id=$user_id&type=$type&blog=" ?>
<div id="comments">
  <?php echo gridTab(array('all'=>'Tất cả', 'thisweek'=>'Tuần này', 'yesterday'=>'Hôm qua', 'today'=>'Hôm nay'), $typeLink, $type, 'comments') ?>
  <div class="doc">
    <h2>
      <?php echo gridTab(array('all'=>'Tất cả', 'this'=>'Trang riêng này'), $blogLink, $blog, 'comments', array('class'=>'cleartab')) ?>
      Ý kiến của thành viên <?php echo $tbluser->getObject()->getHtmlName() ?>
    </h2>
    <div class="content">
      <hr />
      <?php foreach ($pager->getResult() as $i=>$tblblogentrycomment): ?>
        <div class="comment<?php echo $i%2+1 ?>">
          <div class="text">
            <?php echo link_to($tblblogentrycomment->getCmDate('H:i d/m/y'),
              '/entry/showglobal?entry_id='.$tblblogentrycomment->getCmEntry().
              '&cm_id='.$tblblogentrycomment->getCmId().'#'.$tblblogentrycomment->getCmId(), array('target'=>'_blank')) ?>:&nbsp;
            <?php echo $tblblogentrycomment->getCommentIntro(); ?>
          </div>
        </div>
      <?php endforeach; ?>
      <hr />
      <?php echo showPageNav13($pager, $typeLink.$type, 'comments'); ?>
    </div>
  </div>
</div>