noalyss Version-9
todo_list_list_user.php
Go to the documentation of this file.
1<?php
2/*
3 * * Copyright (C) 2015 Dany De Bontridder <dany@alchimerys.be>
4*
5* This program is free software; you can redistribute it and/or
6* modify it under the terms of the GNU General Public License
7* as published by the Free Software Foundation; either version 2
8* of the License, or (at your option) any later version.
9*
10* This program is distributed in the hope that it will be useful,
11* but WITHOUT ANY WARRANTY; without even the implied warranty of
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13* GNU General Public License for more details.
14*
15* You should have received a copy of the GNU General Public License
16* along with this program; if not, write to the Free Software
17* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 *
20 */
21
22
23/**
24 * @brief display all the user for the todo_list.
25 * @see Todo_List::display_user
26 * @param $p_array array of user who can access this folder
27 * @param Object Todo_List
28 * @param $dossier = Dossier::id()
29 *
30 */
31echo _('Cherche')." ".HtmlInput::filter_table("todo_user_table", "0,1,2", 1);
32?>
33
34<table id="todo_user_table<?php echo $this->tl_id?>" class="result">
35 <tr>
36 <th>
37 <?php echo _('Login')?>
38 </th>
39 <th>
40 <?php echo _('Nom ')?>
41 </th>
42 <th>
43 <?php echo _('Prénom')?>
44 </th>
45 <th>
46 </th>
47 <?php
48 $max=count($p_array);
49 for ($i=0;$i<$max;$i++):
50 if ($p_array[$i]["use_login"]==$g_user->login) :
51 continue;
52 endif;
53 ?>
54 <tr>
55 <td>
56 <?php echo $p_array[$i]['use_login'];?>
57 </td>
58 <td>
59 <?php echo $p_array[$i]['use_name'];?>
60 </td>
61 <td>
62 <?php echo $p_array[$i]['use_first_name'];?>
63 </td>
64 <td>
65 <?php
66 $check=new ICheckBox('use_login'.$p_array[$i]['use_login']."_".$this->tl_id);
67 if ($this->is_shared_with($p_array[$i]['use_login']) != 0) {
68 $check->selected=true;
69 }
70 $check->javascript=" onclick=\"todo_list_set_share({$this->tl_id},'{$p_array[$i]['use_login']}','{$dossier}')\"";
71 echo $check->input();
72 ?>
73 </td>
74 </tr>
75 <?php endfor; ?>
76
77 </tr>
78</table>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
global $g_user
if no group available , then stop
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
Html Input.
$all table
$check
endfor
display all the user for the todo_list.