示例#1
0
      <a id="filter-readonly" class="glyphicon glyphicon-<?php 
echo $unread ? 'check' : 'unchecked';
?>
" href="<?php 
echo uri('articles') . build_query_string(array('category' => $category, 'unread' => $unread ? 0 : 1));
?>
">只显示未读</a>
    </div>
    <div>
      <ul id="category" class="dropdown-content">
        <li><a href="<?php 
echo uri('articles') . build_query_string(array('category' => null, 'unread' => $unread));
?>
">所有</a></li>
<?php 
foreach (UserWechatCategory::findAll() as $category) {
    ?>
        <li><a href="<?php 
    echo uri('articles') . build_query_string(array('category' => $category->getId(), 'unread' => $unread));
    ?>
"><?php 
    echo $category->getName();
    ?>
</a></li>
<?php 
}
?>
      </ul>
    </div>
  </div>
</div>