<?
/**
 * 我的学员
 * $Id: user_search_list.inc,v 1.1
 * @author taocy
 * @package src.admin.templates
 */
?>
<b>课程安排</b><br /><br />

<form action="user_class_list.php" method="post" name="user_class_list">
	<input type="hidden" name="search_flg" value="true" />
	<table>
		<tr>
			<td>手机</td>
			<td><input type="text" value="<?=htmlspecialchars($mobile) ?>" name="mobile" /></td>
			<td>姓名</td>
			<td><input type="text" value="<?=htmlspecialchars($nickname) ?>" name="nickname" /></td>

			<td><input type="button" value="搜索" onclick="searchOceanUser()" /></td>
		</tr>
	</table>
	
</form><br />
<br />
<a class="flatbutton" href="user_class_batch_input.php">班级设定</a>
<br />
<div style="text-align:center;float: right;font-size:18px;">共<?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<?
require_once("page_common.inc");
?>
<!--page end-->
<div id="result_list">
<?
if ($total_count > 0) {
?>
<table>
<tr>
	<th class="contents_title" width="15%">班级名称</th>
	<th class="contents_title" width="10%">设定时间</th>
	<th class="contents_title" width="15%">姓名</th>
	<th class="contents_title" width="10%">手机号码</th>
	<th class="contents_title" width="35%">授课地址</th>
	<th class="contents_title" width="5%">有效</th>
</tr>

<?
	foreach($user_class_list as $tmp) {
		$user = UserMst::getById($tmp->user_id);
		$is_valid_title = "X";
		if($tmp->is_valid) {
			$is_valid_title = "〇";
		}
?>
<tr<?=!$tmp->is_valid ? " class=\"gray_mask\"" : "" ?>>
    <td align="center"><?=$tmp->title ?></td>
	<td align="center"><?=$tmp->update_date ?></td>
    <td align="center"><?=$user->nickname ?></td>
	<td align="center"><?=$user->mobile ?></td>
	<td align="left"><?=$tmp->live_url ?></td>
	<td align="center"><a class="flatbutton" href="user_class_change_valid.php?id=<?=$tmp->id ?>"><?=$is_valid_title ?></a></td>
</tr>
<?
    }
?>
</table>

<?
} else {
    echo '<div align="center"><font color="red">暂无数据……</font></div>';
}
?>
</div>