<?php if ($this->invitation_list) { foreach($this->invitation_list as $key => $val) { ?>
<li>
	<a href="people/<?php echo $val['user_info']['url_token']; ?>" class="addUser"><img src="<?php echo get_avatar_url($val['user_info']['uid'], 'mid'); ?>" alt="<?php echo $val['user_info']['user_name']; ?>" title="<?php echo $val['user_info']['user_name']; ?>" /></a>
	<?php if ($val['active_status'] == 1) { ?>
	<p class="tny-right tny-tr">Active successful</p>
	<?php } else if ($val['active_status'] == -1) { ?>
	<p class="tny-right tny-tr">Invitation canceled</p>
	<?php } else { ?>
	<p class="tny-right tny-tr">Invitation sent<br />
		<a href="javascript:;" onClick="ajax_request(GET_BASE_URL + '/invitation/ajax/invite_cancel/invitation_id-<?php echo $val['invitation_id']; ?>');">Cancel invitation</a> &nbsp; <a href="javascript:;" onclick="ajax_request(GET_BASE_URL + '/invitation/ajax/invite_resend/invitation_id-<?php echo $val['invitation_id']; ?>');">Resend invitation</a>
	</p>
	<?php } ?>

	<span class="p_name"><a href="mailto:<?php echo $val['invitation_email']; ?>"><?php echo $val['invitation_email']; ?></a></span>
	<?php if ($val['active_status'] == 0) { ?>
	<p class="p_txt">If the other party lost the mailbox, you can copy the link below to send through YM, TA</p>
	<p class="x_pad"><input type="text" value="<?php echo get_js_url('/account/register/email-' . urlencode($val['invitation_email']) . '__icode-' . $val['invitation_code']); ?>" class="glotxtclass x_txtinput" onFocus="$.focus(this,'');"/></p>
	<?php } else { ?>
	<p class="p_txt">&nbsp;</p>
	<?php } ?>
</li>

<?php } } ?>