2 function confirm_delete(uname){
3 return confirm( "$confirm_delete".format(uname));
5 function confirm_delete_multi(){
6 return confirm("$confirm_delete_multi");
8 function selectall(cls){
9 $j("."+cls).attr('checked','checked');
14 <h1>$title - $page</h1>
16 <form action="$baseurl/admin/users" method="post">
17 <input type='hidden' name='form_security_token' value='$form_security_token'>
24 {{ for $th_pending as $th }}<th>$th</th>{{ endfor }}
30 {{ for $pending as $u }}
32 <td class="created">$u.created</td>
33 <td class="name">$u.name</td>
34 <td class="email">$u.email</td>
35 <td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_$u.hash" name="pending[]" value="$u.hash" /></td>
37 <a href="$baseurl/regmod/allow/$u.hash" title='$approve'><span class='tool like'></span></a>
38 <a href="$baseurl/regmod/deny/$u.hash" title='$deny'><span class='tool dislike'></span></a>
44 <div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">$select_all</a></div>
45 <div class="submit"><input type="submit" name="page_users_deny" value="$deny"/> <input type="submit" name="page_users_approve" value="$approve" /></div>
59 {{ for $th_users as $th }}<th>$th</th>{{ endfor }}
65 {{ for $users as $u }}
67 <td><img src="$u.micro" alt="$u.nickname" title="$u.nickname"></td>
68 <td class='name'><a href="$u.url" title="$u.nickname" >$u.name</a></td>
69 <td class='email'>$u.email</td>
70 <td class='register_date'>$u.register_date</td>
71 <td class='login_date'>$u.login_date</td>
72 <td class='lastitem_date'>$u.lastitem_date</td>
73 <td class='login_date'>$u.page_flags {{ if $u.is_admin }}($siteadmin){{ endif }}</td>
78 <input type="checkbox" class="users_ckbx" id="id_user_$u.uid" name="user[]" value="$u.uid"/></td>
84 <a href="$baseurl/admin/users/block/$u.uid?t=$form_security_token" title='{{ if $u.blocked }}$unblock{{ else }}$block{{ endif }}'><span class='icon block {{ if $u.blocked==0 }}dim{{ endif }}'></span></a>
85 <a href="$baseurl/admin/users/delete/$u.uid?t=$form_security_token" title='$delete' onclick="return confirm_delete('$u.name')"><span class='icon drop'></span></a>
92 <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">$select_all</a></div>
93 <div class="submit"><input type="submit" name="page_users_block" value="$block/$unblock" /> <input type="submit" name="page_users_delete" value="$delete" onclick="return confirm_delete_multi()" /></div>