<?
/**
 * 用户管理
 * $Id: user_search_list.inc,v 1.1
 * @author taocy
 * @package src.admin.templates
 */
?>
<br /><b>学员信息</b><br />
<table style="border:1px solid #000;">
<tr>
	<td>手机号码</td>
	<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
	<td>昵称</td>
	<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
	<td>性别</td>
	<td class="begin_blank"><?=$user_mst->sex == "UNKNOW" ? "未知" : "" ?><?=$user_mst->sex == "FEMALE" ? "女" : "" ?><?=$user_mst->sex == "MALE" ? "男" : "" ?></td>
</tr>
<tr>
	<td>微信号</td>
	<td class="begin_blank"><?=htmlspecialchars($user_mst->wechat_no) ?></td>
</tr>
<tr>
	<td>QQ</td>
	<td class="begin_blank"><?=htmlspecialchars($user_mst->qq_no) ?></td>
</tr>
<tr>
	<td>状态</td>
	<td class="begin_blank"><?=UserStatus::getTitleById($user_mst->status); ?></td>
</tr>
</table>

<br /><b>学员回访列表</b><br />
<div id="result_list">

<table>
<tr>
	<th class="contents_title" width="10%">时间</th>
	<th class="contents_title" width="10%">员工</th>
	<th class="contents_title" width="50%">回访记录</th>
	<th class="contents_title" width="10%">学员状态</th>
	<th class="contents_title">操作</th>
</tr>
<tr>
	<form action="user_edit_comment_input.php" method="post" name="user_edit_comment_form">
		<input type="hidden" name="id" value="<?=$id ?>" />
		<input type="hidden" name="action" value="ADD" />
		<td align="center">-</td>
		<td align="center"><?=$_account->name?></td>
		<td align="left"><input type="text" name="comment" value="" style="width:400px;"></td>
		<td>
			<select name="status">
				<?
					foreach ($user_status_list as $user_status_obj) {
				?>
					<option value="<?=$user_status_obj->id ?>"<?=$user_status_obj->id == $status ? " selected " : "" ?>><?=$user_status_obj->title ?></option>
				<?
					}
				?>
			</select>
		</td>
		<td align="center"><input type="button" value="添加回访记录" onclick="addUserComment()" /></td>
	</form>
</tr>
<?
if (!empty($user_comment_list)) {

	foreach($user_comment_list as $tmp) {
		//获取用户渠道名称
		$account_mst = AccountMst::getById($tmp->account_id);
?>
<tr>
    <td align="center"><?=$tmp->registration_date ?></td>
    <td align="center"><?=$account_mst->name ?></td>
	<td align="left"><?=$tmp->comment ?></td>
	<td align="left"><?=UserStatus::getTitleById($tmp->status); ?></td>
    <td align="center"></td>
</tr>
<?
	}
}
?>
</table>

</div>