You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/author/views/task_hall.php

76 lines
3.0 KiB
PHTML

<link rel="stylesheet" href="/js/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css" type="text/css">
<script type="text/javascript" src="/js/jquery-ui/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#startdate,#enddate").datepicker({
showButtonPanel: true,
dateFormat:'yy-mm-dd'
});
//获取分页数据
$(".pagination>ul>li>a").live("click",function(event){
event.preventDefault();
var url=$(this).attr('href');
var p_class=$(this).parents('li').attr('class');
if (p_class!='active') {
$("#form-search-tasks").attr('action',url);
$('body,html').animate({scrollTop:0},300);
get_ajax_reviewed_list('form-search-tasks','tasks-container',false);
};
})
});
</script>
<div class="row-fluid">
<div class="span10" style="border-right:1px solid #ddd; min-height:750px;padding:15px 30px;">
<form action="" method="post" class="span12 hide" id="form-search-tasks" style="margin-left:0;background:#f5f5f5;padding:15px;">
<div class="input-append">
<input class="span2" type="text" id="startdate" name="startdate" placeholder="startdate">
<input class="span2" type="text" id="enddate" name="enddate" placeholder="enddate">
<input class="span3" type="text" id="tasktitle" name="tasktitle" placeholder="task title">
<select class="span2" name="tasktype">
<option value="-">task type</option>
<?php foreach ($this->config->item('auhtor_task_type') as $type_key => $type_value) { ?>
<option value="<?php echo $type_value; ?>" ><?php echo $type_value; ?></option>
<?php } ?>
</select>
<button class="btn" type="button" onclick="$('#form-search-tasks').attr('action', '<?php echo site_url('taskhall/index') ?>');get_ajax_reviewed_list('form-search-tasks','tasks-container',false);">Search</button>
</div>
</form>
<div class="span12" id="tasks-container" style="margin-left:0;">
<?php if(!empty($task_list)){ ?>
<table class="table table-striped">
<thead>
<tr>
<th>Task number</th>
<th>Task name</th>
<th>Type</th>
<th>Sent by</th>
<th>Publish</th>
<th>End</th>
</tr>
</thead>
<tbody>
<?php foreach($task_list as $key=>$task){ ?>
<tr>
<td><?php echo $key+1; ?></td>
<td><a href="<?php echo site_url('taskhall/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>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
<div class="pagination">
<ul><?php if(isset($page['htmls']) && $page['totalpage']>1) echo($page['htmls']);?></ul>
</div>
</div>
</div>
<div class="span2" style="padding-right:12px;"><?php echo $rank_view; ?></div>
</div>