?> <?php if ($j == 0) { ?> <p><strong>Chủ đề : <?php echo $item['title']; ?> </strong> <a href="<?php echo Yii::app()->createUrl('wMessage/Notification'); ?> " title="Đóng & Trở về" style="float: right; margin: 5px; color: #C02222; "><span class="glyphicon glyphicon-remove-circle"></span></a></p> <?php } ?> <?php $listUser = WMessageSendto::getUserInbox($item["idmessage"], $item["idmessagecontent"]); $check = FALSE; if (Yii::app()->user->name == $item["username"]) { $check = TRUE; } $str_user = ""; $firstUser = ""; if (!empty($listUser)) { $i = 0; foreach ($listUser as $itemUser) { if ($itemUser["username"] == Yii::app()->user->name) { $check = TRUE; } if (!empty($itemUser["fullname"])) { $str_user .= $itemUser["fullname"] . '(' . $itemUser["username"] . ')' . ', '; } else {