<div class="row-fluid">
	<div class="span2" style="padding-left:15px;">
		<?php echo $nav_view; ?>
    </div>
	<div class="span8" style="border-right:1px solid #ddd;border-left:1px solid #ddd; min-height:1024px; padding:0 20px;">
  	<div class="span12" id="tasks-container">
		<table class="table table-striped">
		  <thead>
			<tr>
			  <th>#</th>
			  <th>Task name</th>
			  <th>Task Type</th>
			  <th>Sent by</th>
			  <th>Upload</th>
			  <th>End</th>
			  <th>Revisions</th>
			</tr>
		  </thead>
		  <tbody>
		  <?php foreach($task_list as $key=>$task){ ?>
			<tr class="info">
			<tr class="info">
			  <td><?php echo $key+1; ?></td>
			  <td>
			  <?php if(have_unread_sms('task',$task->t_id)){ ?>
				<a href="<?php echo site_url('welcome/view/'.$task->t_id); ?>#sms"><i class="icon-envelope"></i></a> 
			<?php } ?>
				<a href="<?php echo site_url('welcome/view/'.$task->t_id); ?>"><?php echo $task->t_title; ?></a>
			  </td>
			  <td><?php echo $task->t_td_type; ?></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>
			</tr>
		  <?php } ?>
			
		  </tbody>
		</table>
		<div class="pagination">
		  <ul><?php echo($page['htmls']);?></ul>
		</div>  
  	</div>
  </div>
  <div class="span2" style="padding-right:12px;"><?php echo $rank_view; ?></div>
</div>
