<div class="row-fluid">
  <div class="span2">
  
<?php echo $nav_view; ?>
  
  </div>
  <div class="span10">
  	<div id="tasks_list">
		<table class="table table-striped">
		  <thead>
			<tr>
			  <th>#</th>
			  <th>任务名称</th>
			  <th>类型</th>
			  <th>作者</th>
			  <th>编辑</th>
			  <th>发布</th>
			  <th>截止</th>
			  <th>修改次数</th>
			</tr>
		  </thead>
		  <tbody>
		  <?php foreach($task_list as $key=>$task){ ?>
			<tr>
			  <td><?php echo $key+1; ?></td>
			  <td>
				<?php if(have_unread_sms('task',$task->t_id)){ ?>
					<a href="<?php echo site_url('author/edit_task/'.$task->t_id); ?>#sms"><i class="icon-envelope"></i><?php echo $task->t_title; ?></a>
				<?php }else{ ?>
					<a href="<?php echo site_url('author/edit_task/'.$task->t_id); ?>"><?php echo $task->t_title; ?></a>
				<?php } ?>
				</td>
			  <td><?php echo $task->t_td_type; ?></td>
			  <td><?php echo $task->t_a_id==0?'大厅':get_author_name($task->t_a_id); ?></td>
			  <td><?php echo get_author_name($task->t_ht_op_code); ?></td>
			  <td><?php echo date('m/d/Y',strtotime($task->t_datetime)); ?></td>
			  <td><?php echo date('m/d/Y',strtotime($task->t_expires)); ?></td>
			  <td><?php echo $task->t_edit_count; ?></td>
			</tr>
		  <?php } ?>
			
		  </tbody>
		</table>    
  	</div>
  </div>
</div>





