* datatable support checkbox input.

This commit is contained in:
Catouse
2014-10-28 13:38:34 +08:00
parent 18de3e20a0
commit 08874ffe17
3 changed files with 5 additions and 4 deletions

View File

@@ -40,7 +40,7 @@
</div>
<div class='main'>
<form method='post' id='projectTaskForm'>
<table class='table table-condensed table-hover table-striped tablesorter table-fixed datatable' id='taskList'>
<table class='table table-condensed table-hover table-striped tablesorter table-fixed datatable' id='taskList' data-checkable='true' data-fixed-left-width='450' data-fixed-right-width='150'>
<?php $vars = "projectID=$project->id&status=$status&parma=$param&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage"; ?>
<thead>
<tr>
@@ -71,9 +71,9 @@
<tbody>
<?php foreach($tasks as $task):?>
<?php $class = $task->assignedTo == $app->user->account ? 'style=color:red' : ''; ?>
<tr class='text-center'>
<tr class='text-center' data-id='<?php echo $task->id?>'>
<td>
<!-- <input type='checkbox' name='taskIDList[]' value='<?php echo $task->id;?>'/> -->
<input class='checkbox-row' type='checkbox' name='taskIDList[]' value='<?php echo $task->id;?>'/>
<?php if(!common::printLink('task', 'view', "task=$task->id", sprintf('%03d', $task->id))) printf('%03d', $task->id);?>
</td>
<td><span class='<?php echo 'pri' . zget($lang->task->priList, $task->pri, $task->pri)?>'><?php echo zget($lang->task->priList, $task->pri, $task->pri);?></span></td>