* finish task #2106.

This commit is contained in:
ChuJilu
2014-11-05 16:22:37 +08:00
parent dc0945efd8
commit 81f0212df7
4 changed files with 34 additions and 7 deletions

View File

@@ -157,17 +157,36 @@
$actionLink = $this->createLink('task', 'batchClose');
$misc = $canBatchClose ? "onclick=\"setFormAction('$actionLink','hiddenwin')\"" : "class='disabled'";
echo "<li>" . html::a('#', $lang->close, '', $misc) . "</li>";
echo "</ul></div>";
/* Batch assign. */
if($canBatchAssignTo)
{
unset($memberPairs['0']);
$actionLink = $this->createLink('task', 'batchAssignTo', "projectID=$projectID");
echo "<div class='input-group w-150px'>";
echo html::select('assignedTo', $memberPairs, '', 'class="form-control chosen"');
echo "<span class='input-group-btn'>";
echo html::a("javascript:setFormAction(\"$actionLink\")", $lang->task->assign, '', "class='btn'");
echo '</span></div>';
echo html::select('assignedTo', $memberPairs, '', 'class="hidden"');
echo "<li class='dropdown-submenu'>";
echo html::a('javascript::', $lang->task->assignedTo, 'id="assignItem"');
echo "<table class='dropdown-menu'>";
$perNum = 10;
$tableNum = (count($memberPairs) / $perNum);
for($i = 0; $i < $perNum; $i++)
{
echo "<tr>";
for($j = 0; $j < $tableNum; $j++)
{
list($key, $val) = each($memberPairs);
if($key === 0 || $key != '')
{
echo "<td>" . html::a("javascript:$(\"#assignedTo\").val(\"$key\");setFormAction(\"$actionLink\")", $val, '', '') . '</td>';
}
}
echo "</tr>";
}
echo "</table>";
echo "</li>";
}
echo "</ul></div>";
}
echo "<div class='text'>" . $summary . "</div>";
?>