aboutsummaryrefslogtreecommitdiffstats
path: root/template/default/admin/user_list.tpl
blob: 51c1185cff7f539bea508da07400611cd8559d27 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<div class="admin">{L_GROUP_ADD_USER}</div>

<form method="post" name="add_user" action="{F_ADD_ACTION}">
<div style="text-align:center">
  {L_USERNAME} <input type="text" name="login" maxlength="50" size="20" />
  {L_PASSWORD} <input type="text" name="password" />
  <input type="submit" name="submit_add" value="{L_SUBMIT}" class="bouton" />
</div>
</form>

<div class="admin">{L_USERS_LIST}</div>

<form class="filter" method="get" name="filter" action="{F_FILTER_ACTION}">

  <input type="hidden" name="page" value="user_list" />
  
  <!-- BEGIN session -->
  <input type="hidden" name="id" value="{session.ID}" />
  <!-- END session -->

<fieldset>

  <legend>{lang:Filter}</legend>


  <label>{lang:username} <input type="text" name="username" value="{F_USERNAME}" /></label>

  <label>
  {lang:status}
  <select name="status">
    <!-- BEGIN status_option -->
    <option value="{status_option.VALUE}" {status_option.SELECTED} > {status_option.CONTENT}</option>
    <!-- END status_option -->
  </select>
  </label>

  <label>
  {lang:group}
  <select name="group">
    <!-- BEGIN group_option -->
    <option value="{group_option.VALUE}" {group_option.SELECTED} > {group_option.CONTENT}</option>
    <!-- END group_option -->
  </select>
  </label>

  <label>
  {lang:Order by}
  <select name="order_by">
    <!-- BEGIN order_by -->
    <option value="{order_by.VALUE}" {order_by.SELECTED} >{order_by.CONTENT}</option>
    <!-- END order_by -->
  </select>
  </label>

  <label>
  {lang:Sort order}
  <select name="direction">
    <!-- BEGIN direction -->
    <option value="{direction.VALUE}" {direction.SELECTED} >{direction.CONTENT}</option>
    <!-- END direction -->
  </select>
  </label>

  <input type="submit" name="submit_filter" value="{L_SUBMIT}" class="bouton" />

</fieldset>

</form>

<form method="post" name="preferences" action="{F_PREF_ACTION}">

<table class="table2" style="width:100%;" >
  <tr class="throw">
    <th style="width:1%;"></th>
    <th style="width:20%;">{L_USERNAME}</th>
    <th style="width:20%;">{L_STATUS}</th>
    <th style="width:30%;">{L_EMAIL}</th>
    <th style="width:30%;">{L_GROUPS}</th>
    <th style="width:1%;">{L_ACTIONS}</th>
  </tr>
  <!-- BEGIN user -->
  <tr class="{user.CLASS}">
    <td><input type="checkbox" name="selection[]" value="{user.ID}" {user.CHECKED} id="selection-{user.ID}" /></td>
    <td><label for="selection-{user.ID}">{user.USERNAME}</label></td>
    <td>{user.STATUS}</td>
    <td>{user.EMAIL}</td>
    <td>{user.GROUPS}</td>
    <td style="text-align:center;">
      <a href="{user.U_MOD}"><img src="./template/default/theme/profile.png" style="border:none" alt="profile" title="profile" /></a>
      <a href="{user.U_PERM}"><img src="./template/default/theme/permissions.png" style="border:none" alt="{L_PERMISSIONS}" title="{L_PERMISSIONS}" /></a>
    </td>
  </tr>
  <!-- END user -->
</table>
<div class="navigationBar">{NAVBAR}</div>

<!-- form to set properties for many users at once -->
<div class="admin">Preferences</div>

<table>

  <tr>
    <td>associate to groupe</td>
    <td>
      <select name="associate" size="1">
        <!-- BEGIN associate_option -->
        <option {associate_option.SELECTED} value="{associate_option.VALUE}">{associate_option.CONTENT}</option>
        <!-- END associate_option -->
      </select>
    </td>
  </tr>

  <tr>
    <td>dissociate from groupe</td>
    <td>
      <select name="dissociate" size="1">
        <!-- BEGIN dissociate_option -->
        <option {dissociate_option.SELECTED} value="{dissociate_option.VALUE}">{dissociate_option.CONTENT}</option>
        <!-- END dissociate_option -->
      </select>
    </td>
  </tr>

  <tr>
    <td>{L_NB_IMAGE_LINE}</td>
    <td>
      <input type="radio" name="nb_image_line_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="nb_image_line_action" value="set" id="nb_image_line_action_set" /> set to
      <input onmousedown="document.getElementById('nb_image_line_action_set').checked = true;"
             size="3" maxlength="2" type="text" name="nb_image_line" value="{NB_IMAGE_LINE}" />
    </td>
  </tr>

  <tr>
    <td>{L_NB_LINE_PAGE}</td>
    <td>
      <input type="radio" name="nb_line_page_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="nb_line_page_action" value="set" id="nb_line_page_action_set" /> set to
      <input onmousedown="document.getElementById('nb_line_page_action_set').checked = true;"
             size="3" maxlength="2" type="text" name="nb_line_page" value="{NB_LINE_PAGE}" />
    <td>
  </tr>

  <tr>
    <td>{L_TEMPLATE}</td>
    <td>
      <input type="radio" name="template_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="template_action" value="set" id="template_action_set" /> set to
      <select onmousedown="document.getElementById('template_action_set').checked = true;" name="template" size="1">
        <!-- BEGIN template_option -->
        <option {template_option.SELECTED} value="{template_option.VALUE}">{template_option.CONTENT}</option>
        <!-- END template_option -->
      </select>
    </td>
  </tr>

  <tr>
    <td>{L_LANGUAGE}</td>
    <td>
      <input type="radio" name="language_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="language_action" value="set" id="language_action_set" /> set to
      <select onmousedown="document.getElementById('language_action_set').checked = true;" name="language" size="1">
        <!-- BEGIN language_option -->
        <option {language_option.SELECTED} value="{language_option.VALUE}">{language_option.CONTENT}</option>
        <!-- END language_option -->
      </select>
    </td>
  </tr>

  <tr>
    <td>{L_RECENT_PERIOD}</td>
    <td>
      <input type="radio" name="recent_period_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="recent_period_action" value="set" id="recent_period_action_set" /> set to
      <input onmousedown="document.getElementById('recent_period_action_set').checked = true;"
             type="text" size="3" maxlength="2" name="recent_period" value="{RECENT_PERIOD}" />
    </td>
  </tr>

  <tr>
    <td>{L_EXPAND}</td>
    <td>
      <input type="radio" name="expand_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="expand_action" value="set" id="expand_action_set" /> set to
      <input onmousedown="document.getElementById('expand_action_set').checked = true;" 
             type="radio" class="radio" name="expand" value="true"  {EXPAND_YES} />{L_YES}
      <input onmousedown="document.getElementById('expand_action_set').checked = true;"
             type="radio" class="radio" name="expand" value="false" {EXPAND_NO}  />{L_NO}
    </td>
  </tr>

  <tr>
    <td>{L_SHOW_NB_COMMENTS}</td>
    <td>
      <input type="radio" name="show_nb_comments_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="show_nb_comments_action" value="set" id="show_nb_comments_action_set" /> set to
      <input onmousedown="document.getElementById('show_nb_comments_action_set').checked = true;"
             type="radio" class="radio" name="show_nb_comments" value="true" {SHOW_NB_COMMENTS_YES} />{L_YES}
      <input onmousedown="document.getElementById('show_nb_comments_action_set').checked = true;"
             type="radio" class="radio" name="show_nb_comments" value="false" {SHOW_NB_COMMENTS_NO} />{L_NO}
    </td>
  </tr>

  <tr>
    <td>{L_MAXWIDTH}</td>
    <td>
      <input type="radio" name="maxwidth_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="maxwidth_action" value="unset" /> unset
      <input type="radio" name="maxwidth_action" value="set" id="maxwidth_action_set" /> set to 
      <input onmousedown="document.getElementById('maxwidth_action_set').checked = true;"
             type="text" size="4" maxlength="4" name="maxwidth" value="{MAXWIDTH}" />
    </td>
  </tr>


  <tr>
    <td>{L_MAXHEIGHT}</td>
    <td>
      <input type="radio" name="maxheight_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="maxheight_action" value="unset" /> unset
      <input type="radio" name="maxheight_action" value="set" id="maxheight_action_set" /> set to 
      <input onmousedown="document.getElementById('maxheight_action_set').checked = true;"
             type="text" size="4" maxlength="4" name="maxheight" value="{maxheight}" />
    </td>
  </tr>

  <tr>
    <td>{L_STATUS}</td>
    <td>
      <input type="radio" name="status_action" value="leave" checked="checked" /> leave unchanged
      <input type="radio" name="status_action" value="set" id="status_action_set" /> set to
      <select onmousedown="document.getElementById('status_action_set').checked = true;" name="status" size="1">
        <!-- BEGIN pref_status_option -->
        <option {pref_status_option.SELECTED} value="{pref_status_option.VALUE}">{pref_status_option.CONTENT}</option>
        <!-- END pref_status_option -->
      </select>
    </td>
  </tr>

</table>

<p style="text-align:center;">
  target  
  <input type="radio" name="target" value="all" /> all
  <input type="radio" name="target" value="selection" checked="checked" /> selection
</p>

<p style="text-align:center;">
  <input type="submit" value="{L_SUBMIT}" name="pref_submit" class="bouton" />
  <input type="reset" value="{L_RESET}" name="pref_reset" class="bouton" />
</p>

</form>