<?php foreach($this->list AS $key => $val) { ?>
<li<?php if($val['read_flag'] == 0){ ?> class="unread" onClick="mobile_read_notification(<?php echo $val['notification_id']; ?>, $(this));"<?php } ?>><div class="title">
<?php if ($val['extend_count'] > 1) { ?>
	<?php if ($val['model_type'] == notify_class::CATEGORY_QUESTION) {?>
		<?php echo $val['extend_count']; ?> Items on the issue <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php } ?>
<?php }else{ ?>
	<?php if ($val['action_type'] == notify_class::TYPE_PEOPLE_FOCUS) { ?>
		<a href="mobile/<?php echo $val['key_url']; ?>" title="<?php echo $val['p_username']; ?>"><?php echo $val['p_username']; ?></a> following
	<?php }else if ($val['action_type'] == notify_class::TYPE_NEW_ANSWER) { ?>
		<?php if($val['anonymous']){ ?>Anonymous<?php }else{ ?><a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a><?php } ?> replied <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if ($val['action_type'] == notify_class::TYPE_COMMENT_AT_ME) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> In question <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> The review mentioned you
	<?php }else if ($val['action_type'] == notify_class::TYPE_INVITE_QUESTION) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Invites you to participate in problem <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if ($val['action_type'] == notify_class::TYPE_ANSWER_COMMENT) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Commented on your question <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> Replies
	<?php }else if ($val['action_type'] == notify_class::TYPE_QUESTION_COMMENT) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Commented on your question initiated <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if ($val['action_type'] == notify_class::TYPE_ANSWER_AGREE) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Agree on your question <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> Replies
	<?php }else if ($val['action_type'] == notify_class::TYPE_ANSWER_THANK) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Thank you in question <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> Replies
	<?php }else if ($val['action_type'] == notify_class::TYPE_MOD_QUESTION) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Edit your question posted <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if ($val['action_type'] == notify_class::TYPE_REMOVE_ANSWER) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> You removed the question <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> Replies
	<?php }else if ($val['action_type'] == notify_class::TYPE_REDIRECT_QUESTION) { ?>
		<a href="mobile/<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> Redirect your question initiated <a href="mobile/<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if ($val['action_type'] == notify_class::TYPE_CONTEXT) { ?>
		<?php echo $val['content']; ?>
	<?php } ?>
<?php } ?>
</div>
<!--div class="close"></div--><div class="time">(<?php echo date('Y-m-d H:i:s', $val['add_time']); ?>)</div>
</li>
<?php } ?>