blob: cebad396e431e447829d2c102ca1ef50cdda7969 (
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
|
<div id="notify" class="tab">
<p><em><?php echo Filters::noXSS(L('theseusersnotify')); ?></em></p>
<?php foreach ($notifications as $row): ?>
<div>
<?php echo tpl_form(Filters::noXSS(CreateUrl('details', $task_details['task_id'])).'#notify',null,null,null,'style="display:inline"'); ?>
<input type="hidden" name="action" value="remove_notification" />
<input type="hidden" name="ids" value="<?php echo Filters::noXSS($task_details['task_id']); ?>" />
<input type="hidden" name="user_id" value="<?php echo Filters::noXSS($row['user_id']); ?>" />
<button type="submit"><?php echo Filters::noXSS(L('remove')); ?></button>
<?php echo tpl_userlink($row['user_id']); ?>
</form>
<!--
<a href="<?php echo Filters::noXSS($_SERVER['SCRIPT_NAME']); ?>?do=details&action=remove_notification&task_id=<?php echo Filters::noXSS($task_details['task_id']); ?>&ids=<?php echo Filters::noXSS($task_details['task_id']); ?>&user_id=<?php echo Filters::noXSS($row['user_id']); ?>#notify"><?php echo Filters::noXSS(L('remove')); ?></a>
-->
</div>
<?php endforeach; ?>
<?php if ($user->perms('manage_project')): ?>
<?php echo tpl_form(Filters::noXSS(CreateUrl('details', $task_details['task_id'])).'#notify'); ?>
<div>
<label class="default multisel" for="notif_user_id"><?php echo Filters::noXSS(L('addusertolist')); ?>: </label>
<?php echo tpl_userselect('user_name', Req::val('user_name'), 'notif_user_id'); ?>
<button type="submit"><?php echo Filters::noXSS(L('add')); ?></button>
<input type="hidden" name="ids" value="<?php echo Filters::noXSS(Req::num('ids', $task_details['task_id'])); ?>" />
<input type="hidden" name="action" value="details.add_notification" />
</div>
</form>
<?php endif; ?>
</div>
|