blob: 543f7d22f195faae00a87721606a6990c7991d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<div id="related" class="tab">
<div class="related">
<?php echo tpl_form(Filters::noXSS(createURL('details', $task_details['task_id'])).'#related');?>
<table id="tasks_related" class="userlist">
<thead>
<tr>
<th>
<a class="toggle_selected" href="javascript:ToggleSelected('tasks_related')">
<!--<img title="<?php echo Filters::noXSS(L('toggleselected')); ?>" alt="<?php echo Filters::noXSS(L('toggleselected')); ?>" src="<?php echo Filters::noXSS($this->get_image('kaboodleloop')); ?>" width="16" height="16" />-->
</a>
</th>
<th><?php echo Filters::noXSS(L('tasksrelated')); ?> (<?php echo Filters::noXSS(count($related)); ?>)</th>
</tr>
</thead>
<tbody>
<?php
foreach ($related as $row):
?>
<tr>
<td class="ttcolumn">
<input type="checkbox" name="related_id[]" <?php echo tpl_disableif(!$user->can_edit_task($task_details)); ?> value="<?php echo Filters::noXSS($row['related_id']); ?>" /></td>
<td><?php echo tpl_tasklink($row); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<td colspan="2">
<input type="hidden" name="action" value="remove_related" />
<input type="hidden" name="task_id" value="<?php echo Filters::noXSS($task_details['task_id']); ?>" />
<button type="submit"><?php echo Filters::noXSS(L('remove')); ?></button>
</td>
</tr>
</tfoot>
</table>
</form>
</div>
<div class="related">
<table id="duplicate_tasks" class="userlist">
<thead>
<tr>
<th><?php echo Filters::noXSS(L('duplicatetasks')); ?> (<?php echo Filters::noXSS(count($duplicates)); ?>)</th>
</tr>
</thead>
<tbody>
<?php foreach ($duplicates as $row): ?>
<tr><td><?php echo tpl_tasklink($row); ?></td></tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php if ($user->can_edit_task($task_details) && !$task_details['is_closed']): ?>
<?php echo tpl_form(Filters::noXSS(createURL('details', $task_details['task_id'])).'#related',null,null,null,'class="clear" id="formaddrelatedtask"'); ?>
<div>
<input type="hidden" name="action" value="details.add_related" />
<input type="hidden" name="task_id" value="<?php echo Filters::noXSS($task_details['task_id']); ?>" />
<label><?php echo Filters::noXSS(L('addnewrelated')); ?> FS#<input name="related_task" id="related_task_input" type="text" class="text" size="10" maxlength="10" /></label>
<button type="submit" onclick="return checkok('<?php echo Filters::noJsXSS($baseurl); ?>js/callbacks/checkrelated.php?related_task=' + $('related_task_input').value + '&project=<?php echo Filters::noXSS($proj->id); ?>', '<?php echo Filters::noJsXSS(L('relatedproject')); ?>', 'formaddrelatedtask')"><?php echo Filters::noXSS(L('add')); ?></button>
</div>
</form>
<?php endif; ?>
</div>
|