<table class="table table-striped">
		  <thead>
			<tr>
			  <th>#</th>
			  <th>任务名称</th>
			  <th>类型</th>
			  <th>作者</th>
			  <th>编辑</th>
			  <th>发布</th>
			  <th>字数</th>
			  <th>金额</th>
			  <th>评分</th>
			  <th>操作</th>
			</tr>
		  </thead>
		  <tbody>
		  <?php
			$sum_count=0;
			$sum_charge=0;
			foreach($task_list as $task){ 
				$sum_count+=$task->last_version->ta_count;
				$sum_charge+=$task->last_version->ta_charge;
		  ?>
			<tr>
			  <td><input type="checkbox" checked name="t_ids[]" value="<?php echo $task->t_id; ?>"></td>
			  <td><a href="<?php echo site_url('author/edit_task/'.$task->t_id); ?>"><?php echo $task->t_title; ?></a></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 $task->last_version->ta_count; ?></td>
			  <td class="charge<?php echo $task->t_id; ?>"><?php echo $task->last_version->ta_charge; ?></td>
			  <td><?php if(empty($task->t_rating_total))$task->t_rating_total=0; echo $task->t_rating_total; ?></td>
			  <td>
			  	<label class="checkbox">
			  		<input  type="checkbox" <?php if($task->last_version->ta_isbest==1) echo 'checked="checked"';?>
			  				name="best_article" 
			  				class="best_article" 
			  				data-taskid="<?php echo $task->t_id; ?>" 
			  				data-charge="<?php echo $task->last_version->ta_charge; ?>" 
			  				data-count="<?php echo $task->last_version->ta_count; ?>">优秀文章
			  	</label>
			  </td>
			</tr>
		  <?php } ?>
			 <tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td>总计</td>
				<td><?php echo  $sum_count; ?></td>
				<td id="total_charge"><?php if (!empty($active_author) && $active_author['author_num']>1 && $active_author['count']>=1000){ echo ($sum_charge+150);}else{echo $sum_charge;} ?></td>
				<td></td>
				<td>
					<input type="hidden" name="isset_active_author" value="<?php echo $isset_active_author; ?>">
					<button type="button" class="btn btn-info"  onclick="submitForm('complete_task_form');">批量结算</button>
				</td>
			  </tr>
		  </tbody>
		</table>