<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线访谈列表 - 组件扩展</title>
<link href="<?php echo W_BASE_URL;?>css/admin/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/admin-all.js"></script>
</head>
<body class="main-body">
    <div class="path"><p>当前位置：扩展工具<span>&gt;</span>在线访谈列表</p></div>
    <div class="main-cont">
        <h3 class="title">
        	<a href="<?php echo URL('mgr/micro_interview.create'); ?>" class="general-btn"><span>新建在线访谈</span></a>
        	<a class="general-btn" href="<?php echo URL('mgr/micro_interview.set'); ?>"><span>编辑在线访谈基本信息</span></a>
        	在线访谈列表</h3>
        <div class="set-area">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
                <colgroup>
                    <col class="h-w70"/>
                    <col/>
                    <col class="h-w140"/>
                    <col class="h-w140" />
                    <col class="h-w70" />
                    <col class="h-w180"/>
                </colgroup>
                <thead class="tb-tit-bg">
                    <tr>
                        <th><div class="th-gap">编号</div></th>
                        <th><div class="th-gap">标题</div></th>
                        <th><div class="th-gap">开始时间</div></th>
                        <th><div class="th-gap">结束时间</div></th>
                        <th><div class="th-gap">状态</div></th>
                        <th><div class="th-gap">操作</div></th>
                    </tr>
                </thead>
                <?php if (!empty($list)) {?>
                <tfoot class="tb-tit-bg">
                    <tr>
                        <td colspan="6">
                        <div class="td-inside">
                            <div class="pre-next"><?php echo $pager;?></div>
                        </div>
                        </td>
                    </tr>
                </tfoot>
                <?php } ?>
                <tbody>
                	<?php if (is_array($list) && !empty($list)){  foreach ($list as $key=>$aRecord) {?>
                    <tr>
    					<td><?php echo $offsetCnt+$key; ?></td>
    					<td><a href="<?php echo URL('mgr/micro_interview.modify', array('id'=>$aRecord['id']) ); ?>"><?php echo $aRecord['title']; ?></a></td>
                        <td><?php echo date('Y-m-d H:i:s', $aRecord['start_time']); ?></td>
                        <td><?php echo date('Y-m-d H:i:s', $aRecord['end_time']); ?></td>
                        <td><?php 
                        	if ($aRecord['status']=='P'){echo '<span class="no-start">未开始</span>';} 
                        	elseif ($aRecord['status']=='E'){echo '<span class="finish">已结束</span>';} 
                        	else {echo '<span class="going">开始中</span>';}
                        ?></td>
    					<td><a href="<?php echo URL('mgr/micro_interview.modify', array('id'=>$aRecord['id']) ); ?>" class="icon-edit">编辑</a>
    						<a href="<?php echo URL('mgr/micro_interview.approveWbList', array('id'=>$aRecord['id']) ); ?>" class="icon-approve">审批</a>
    						<a href="javascript:delConfirm('<?php echo URL('mgr/micro_interview.delInterView', array('id'=>$aRecord['id'], 'page'=>$currentPage) ); ?>');" class="icon-del">删除</a>
    					</td>
  					</tr>
  					<?php }} else { ?>
  					<tr><td colspan="6"><p class="no-data">还没有任何在线访谈</p></td></tr>
  					<?php } ?>
                </tbody>
			</table>
    	</div>
    </div>
</body>
</html>
