aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/user_list.tpl
blob: 76bbdbf3c3b5507b80d00118070c30a908ecc31d (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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
{* $Id$ *}
<div class="titrePage">
  <h2>{'title_liste_users'|@translate}</h2>
</div>

<form class="filter" method="post" name="add_user" action="{$F_ADD_ACTION}">
  <fieldset>
    <legend>{'Add a user'|@translate}</legend>
    <label>{'Username'|@translate} <input type="text" name="login" maxlength="50" size="20"></label>
    {if $Double_Password}
		<label>{'Password'|@translate} <input type="password" name="password"></label>
		<label>{'Confirm Password'|@translate} <input type="password" name="password_conf" id="password_conf"></label>
		{else}
		<label>{'Password'|@translate} <input type="text" name="password"></label>
		{/if}
    <label>{'Email address'|@translate} <input type="text" name="email" /></label>
    <label>&nbsp; <input class="submit" type="submit" name="submit_add" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED} /></label>
  </fieldset>
</form>

<form class="filter" method="get" name="filter" action="{$F_FILTER_ACTION}">
<fieldset>
  <legend>{'Filter'|@translate}</legend>
  <input type="hidden" name="page" value="user_list" />

  <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}" /></label>

  <label>
  {'status'|@translate}
  {html_options name=status options=$status_options selected=$status_selected}
  </label>

  <label>
  {'group'|@translate}
  {html_options name=group options=$group_options selected=$group_selected}
  </label>

  <label>
  {'Sort by'|@translate}
  {html_options name=order_by options=$order_options selected=$order_selected}
  </label>

  <label>
  {'Sort order'|@translate}
  {html_options name=direction options=$direction_options selected=$direction_selected}
  </label>

  <label>
  &nbsp;
  <input class="submit" type="submit" value="{'Submit'|@translate}" />
  </label>

</fieldset>

</form>

<form method="post" name="preferences" action="">

<table class="table2" width="97%">
  <thead>
    <tr class="throw">
      <td>&nbsp;</td>
      <td>{'Username'|@translate}</td>
      <td>{'user_status'|@translate}</td>
      <td>{'Email address'|@translate}</td>
      <td>{'Groups'|@translate}</td>
      <td>{'properties'|@translate}</td>
      {if not empty($plugin_user_list_column_titles)}
      {foreach from=$plugin_user_list_column_titles item=title}
      <td>{$title}</td>
      {/foreach}
      {/if}
      <td>{'Actions'|@translate}</td>
    </tr>
  </thead>

  {foreach from=$users item=user name=users_loop}
  <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
    <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>{$user.PROPERTIES}</td>
    {foreach from=$user.plugin_columns item=data}
    <td>{$data}</td>
    {/foreach}
    <td style="text-align:center;">
      <a href="{$user.U_PERM}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" class="button" style="border:none" alt="{'permissions'|@translate}" title="{'permissions'|@translate}" /></a>
      <a href="{$user.U_PROFILE}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" class="button" style="border:none" alt="{'Profile'|@translate}" title="{'Profile'|@translate}" /></a>
      {foreach from=$user.plugin_actions item=data}
      {$data}
      {/foreach}
      </td>
  </tr>
  {/foreach}
</table>

<div class="navigationBar">{$NAVBAR}</div>

{* delete the selected users ? *}
<fieldset>
  <legend>{'Deletions'|@translate}</legend>
  <label><input type="checkbox" name="confirm_deletion" value="1" /> {'confirm'|@translate}</label>
  <input class="submit" type="submit" value="{'Delete selected users'|@translate}" name="delete" {$TAG_INPUT_ENABLED}/>
</fieldset>

<fieldset>
  <legend>{'Status'|@translate}</legend>

  <table>
    <tr>
      <td>{'Status'|@translate}</td>
      <td>
        <label><input type="radio" name="status_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
        <label><input type="radio" name="status_action" value="set" id="status_action_set" /> {'set to'|@translate}</label>
        <select onchange="document.getElementById('status_action_set').checked = true;" name="status" size="1">
          {html_options options=$pref_status_options selected=$pref_status_selected}
        </select>
      </td>
    </tr>

    {if isset($adviser)}
    <tr>
      <td>{'adviser'|@translate}</td>
      <td>
        <label><input type="radio" name="adviser" value="leave" checked="checked" /> {'leave'|@translate}</label>
        / {'set to'|@translate}
        <label><input type="radio" name="adviser" value="true"  />{'Yes'|@translate}</label>
        <label><input type="radio" name="adviser" value="false" />{'No'|@translate}</label>
      </td>
    </tr>
    {/if}

  </table>
</fieldset>

{* form to set properties for many users at once *}
<fieldset>
  <legend>{'Groups'|@translate}</legend>

<table>

  <tr>
    <td>{'associate to group'|@translate}</td>
    <td>
      {html_options name=associate options=$association_options selected=$associate_selected}
    </td>
  </tr>

  <tr>
    <td>{'dissociate from group'|@translate}</td>
    <td>
      {html_options name=dissociate options=$association_options selected=$dissociate_selected}
    </td>
  </tr>

</table>

</fieldset>

{* Properties *}
<fieldset>
  <legend>{'properties'|@translate}</legend>

  <table>

    <tr>
      <td>{'enabled_high'|@translate}</td>
      <td>
        <label><input type="radio" name="enabled_high" value="leave" checked="checked" /> {'leave'|@translate}</label>
        / {'set to'|@translate}
        <label><input type="radio" name="enabled_high" value="true"  />{'Yes'|@translate}</label>
        <label><input type="radio" name="enabled_high" value="false" />{'No'|@translate}</label>
      </td>
    </tr>

	<tr>
		<td>{'Privacy level'|@translate}</td>
		<td>
			<label><input type="radio" name="level_action" value="leave" checked="checked" />{'leave'|@translate}</label>
			<label><input type="radio" name="level_action" value="set" id="level_action_set" />{'set to'|@translate}</label>
			<select onchange="document.getElementById('level_action_set').checked = true;" name="level" size="1">
			  {html_options options=$level_options selected=$level_selected}
			</select>
	  </td>
	</tr>

  </table>

</fieldset>

{* preference *}
<fieldset>
  <legend>{'Preferences'|@translate}</legend>

<table>

  <tr>
    <td>{'nb_image_per_row'|@translate}</td>
    <td>
      <label><input type="radio" name="nb_image_line_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
      <label><input type="radio" name="nb_image_line_action" value="set" id="nb_image_line_action_set"  /> {'set to'|@translate}</label>
      <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>{'nb_row_per_page'|@translate}</td>
    <td>
      <label><input type="radio" name="nb_line_page_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
      <label><input type="radio" name="nb_line_page_action" value="set" id="nb_line_page_action_set" /> {'set to'|@translate}</label>
      <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>{'theme'|@translate}</td>
    <td>
      <label><input type="radio" name="template_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
      <label><input type="radio" name="template_action" value="set" id="template_action_set" /> {'set to'|@translate}</label>
      <select onchange="document.getElementById('template_action_set').checked = true;" name="template" size="1">
        {html_options values=$template_options output=$template_options selected=$template_selected}
      </select>
    </td>
  </tr>

  <tr>
    <td>{'language'|@translate}</td>
    <td>
      <label><input type="radio" name="language_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
      <label><input type="radio" name="language_action" value="set" id="language_action_set" /> {'set to'|@translate}</label>
      <select onchange="document.getElementById('language_action_set').checked = true;" name="language" size="1">
        {html_options options=$language_options selected=$language_selected}
      </select>
    </td>
  </tr>

  <tr>
    <td>{'recent_period'|@translate}</td>
    <td>
      <label><input type="radio" name="recent_period_action" value="leave" checked="checked" /> {'leave'|@translate}</label>
      <label><input type="radio" name="recent_period_action" value="set" id="recent_period_action_set"  /> {'set to'|@translate}</label>
      <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>{'auto_expand'|@translate}</td>
    <td>
      <label><input type="radio" name="expand" value="leave" checked="checked" /> {'leave'|@translate}</label>
      / {'set to'|@translate}
      <label><input type="radio" name="expand" value="true"  />{'Yes'|@translate}</label>
      <label><input type="radio" name="expand" value="false" />{'No'|@translate}</label>
    </td>
  </tr>

  <tr>
    <td>{'show_nb_comments'|@translate}</td>
    <td>
      <label><input type="radio" name="show_nb_comments" value="leave" checked="checked" /> {'leave'|@translate}</label>
      / {'set to'|@translate}
      <label><input type="radio" name="show_nb_comments" value="true" />{'Yes'|@translate}</label>
      <label><input type="radio" name="show_nb_comments" value="false" />{'No'|@translate}</label>
    </td>
  </tr>

  <tr>
    <td>{'show_nb_hits'|@translate}</td>
    <td>
      <label><input type="radio" name="show_nb_hits" value="leave" checked="checked" /> {'leave'|@translate}</label>
      / {'set to'|@translate}
      <label><input type="radio" name="show_nb_hits" value="true" />{'Yes'|@translate}</label>
      <label><input type="radio" name="show_nb_hits" value="false" />{'No'|@translate}</label>
    </td>
  </tr>

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


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


</table>

</fieldset>

<p>
  {'target'|@translate}
  <label><input type="radio" name="target" value="all" /> {'all'|@translate}</label>
  <label><input type="radio" name="target" value="selection" checked="checked" /> {'selection'|@translate}</label>
</p>

<p>
  <input class="submit" type="submit" value="{'Submit'|@translate}" name="pref_submit" {$TAG_INPUT_ENABLED} />
  <input class="submit" type="reset" value="{'Reset'|@translate}" name="pref_reset" />
</p>

</form>

<script type="text/javascript">// <![CDATA[{literal}
jQuery("form:last").submit( function() {
	if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 )
	if ( jQuery("input[name='selection[]']:checked", this).length == 0)
	{
		alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} );
		return false;
	}
	return true;
}
);{/literal}
// ]]>
</script>