New area "moderation"
- Moved several admin pages to the moderation area - ACL still is checking for administrator credentials
This commit is contained in:
parent
4fb7e9b023
commit
18f54f4425
61 changed files with 1707 additions and 1417 deletions
21
view/templates/moderation/aside.tpl
Normal file
21
view/templates/moderation/aside.tpl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
// update pending count //
|
||||
$(function(){
|
||||
|
||||
$("nav").bind('nav-update', function(e,data){
|
||||
var elm = $('#pending-update');
|
||||
var register = $(data).find('register').html();
|
||||
if (register=="0") { register=""; elm.hide();} else { elm.show(); }
|
||||
elm.html(register);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{{foreach $subpages as $page}}
|
||||
<h4>{{$page.0}}</h4>
|
||||
<ul class="admin linklist" role="menu">
|
||||
{{foreach $page.1 as $item}}
|
||||
<li class='admin link button {{$item.2}}' role="menuitem"><a href='{{$item.0}}'>{{$item.1}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
{{/foreach}}
|
67
view/templates/moderation/blocklist/contact.tpl
Normal file
67
view/templates/moderation/blocklist/contact.tpl
Normal file
|
@ -0,0 +1,67 @@
|
|||
<script>
|
||||
function selectall(cls) {
|
||||
$('.' + cls).prop('checked', true);
|
||||
return false;
|
||||
}
|
||||
function selectnone(cls) {
|
||||
$('.' + cls).prop('checked', false);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
<p>{{$description nofilter}}</p>
|
||||
<form action="{{$baseurl}}/admin/blocklist/contact" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
|
||||
<h3>{{$h_contacts}}</h3>
|
||||
{{if $contacts}}
|
||||
<table id="contactblock">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{foreach $th_contacts as $th}}
|
||||
<th>
|
||||
{{$th}}
|
||||
</th>
|
||||
{{/foreach}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $contacts as $contact}}
|
||||
<tr>
|
||||
<td class="checkbox"><input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/></td>
|
||||
<td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.nickname}}"></td>
|
||||
<td class="name">
|
||||
{{$contact.name}}<br>
|
||||
<a href="{{$contact.url}}" title="{{$contact.nickname}}">{{$contact.addr}}</a>
|
||||
</td>
|
||||
<td class="reason">{{if $contact.block_reason}}{{$contact.block_reason}}{{else}}N/A{{/if}}</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<p><a href="#" onclick="return selectall('contacts_ckbx');">{{$select_all}}</a> | <a href="#" onclick="return selectnone('contacts_ckbx');">{{$select_none}}</a></p>
|
||||
{{$paginate nofilter}}
|
||||
<div class="submit"><input type="submit" name="page_contactblock_unblock" value="{{$unblock}}" /></div>
|
||||
{{else}}
|
||||
<p>{{$no_data}}</p>
|
||||
{{/if}}
|
||||
</form>
|
||||
|
||||
<h3>{{$h_newblock}}</h3>
|
||||
<form action="{{$baseurl}}/admin/blocklist/contact" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<table id="contactblock">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{include file="field_input.tpl" field=$contacturl}}</td>
|
||||
<td>{{include file="field_checkbox.tpl" field=$contact_block_purge}}</td>
|
||||
<td>{{include file="field_textarea.tpl" field=$contact_block_reason}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="submit"><input type="submit" name="page_contactblock_block" value="{{$submit}}" /></div>
|
||||
</form>
|
||||
</div>
|
||||
|
56
view/templates/moderation/blocklist/server/add.tpl
Normal file
56
view/templates/moderation/blocklist/server/add.tpl
Normal file
|
@ -0,0 +1,56 @@
|
|||
<div id="adminpage">
|
||||
<p><a href="{{$baseurl}}/admin/blocklist/server">{{$l10n.return_list}}</a></p>
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
{{$l10n.syntax nofilter}}
|
||||
|
||||
<form action="{{$baseurl}}/admin/blocklist/server/add" method="get">
|
||||
{{include file="field_input.tpl" field=$newdomain}}
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary">{{$l10n.submit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
{{if $pattern}}
|
||||
<h2>{{$l10n.matching_servers}}</h2>
|
||||
<form action="{{$baseurl}}/admin/blocklist/server/add" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<input type="hidden" name="pattern" value="{{$pattern}}">
|
||||
<table class="table table-condensed table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{$l10n.server_name}}</th>
|
||||
<th>{{$l10n.server_domain}}</th>
|
||||
<th>{{$l10n.known_contacts}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">{{$l10n.server_count}}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
{{foreach $gservers as $gserver}}
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<span class="network-label icon" alt="{{$gserver.network_name}}" title="{{$gserver.network_name}}">
|
||||
<i class="fa fa-{{$gserver.network_icon}}"></i>
|
||||
</span>
|
||||
</td>
|
||||
<th>{{$gserver.site_name|default:$gserver.domain}}</th>
|
||||
<td>
|
||||
<a href="{{$gserver.url}}" target="_blank" rel="noreferrer noopener">{{$gserver.domain}} <i class="fa fa-external-link"></i></a>
|
||||
</td>
|
||||
<td class="text-right">{{$gserver.contacts}} <i class="fa fa-user"></i></td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$newpurge}}
|
||||
{{include file="field_input.tpl" field=$newreason}}
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary" name="page_blocklist_add" value="{{$l10n.add_pattern}}">{{$l10n.add_pattern}}</button>
|
||||
</div>
|
||||
</form>
|
||||
{{/if}}
|
||||
</div>
|
52
view/templates/moderation/blocklist/server/import.tpl
Normal file
52
view/templates/moderation/blocklist/server/import.tpl
Normal file
|
@ -0,0 +1,52 @@
|
|||
<div id="adminpage">
|
||||
<p><a href="{{$baseurl}}/admin/blocklist/server">{{$l10n.return_list}}</a></p>
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
{{if !$blocklist}}
|
||||
{{$l10n.download nofilter}}
|
||||
|
||||
<form action="{{$baseurl}}/admin/blocklist/server/import" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
{{include file="field_input.tpl" field=$listfile}}
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary" name="page_blocklist_upload" value="{{$l10n.upload}}">{{$l10n.upload}}</button>
|
||||
</div>
|
||||
</form>
|
||||
{{else}}
|
||||
<h2>{{$l10n.patterns}}</h2>
|
||||
<form action="{{$baseurl}}/admin/blocklist/server/import" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<input type="hidden" name="blocklist" value="{{$blocklist|json_encode}}">
|
||||
<table class="table table-condensed table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{$l10n.domain_pattern}}</th>
|
||||
<th>{{$l10n.block_reason}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">{{$l10n.pattern_count}}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
{{foreach $blocklist as $block}}
|
||||
<tr>
|
||||
<th>{{$block.domain}}</th>
|
||||
<td>{{$block.reason}}</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div role="radiogroup" aria-labelledby="mode">
|
||||
<label id="mode">{{$l10n.mode}}</label>
|
||||
{{include file="field_radio.tpl" field=$mode_append}}
|
||||
{{include file="field_radio.tpl" field=$mode_replace}}
|
||||
</div>
|
||||
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary" name="page_blocklist_import" value="{{$l10n.import}}">{{$l10n.import}}</button>
|
||||
</div>
|
||||
</form>
|
||||
{{/if}}
|
||||
</div>
|
45
view/templates/moderation/blocklist/server/index.tpl
Normal file
45
view/templates/moderation/blocklist/server/index.tpl
Normal file
|
@ -0,0 +1,45 @@
|
|||
<script>
|
||||
function confirm_delete(uname){
|
||||
return confirm("{{$l10n.confirm_delete}}".format(uname));
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$l10n.title}} - {{$l10n.page}}</h1>
|
||||
<p>{{$l10n.intro}}</p>
|
||||
<p>{{$l10n.public nofilter}}</p>
|
||||
|
||||
<h2>{{$l10n.importtitle}}</h2>
|
||||
{{$l10n.download nofilter}}
|
||||
|
||||
<form action="{{$baseurl}}/admin/blocklist/server/import" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token_import}}">
|
||||
{{include file="field_input.tpl" field=$listfile}}
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary" name="page_blocklist_upload">{{$l10n.importsubmit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<h2>{{$l10n.addtitle}}</h2>
|
||||
{{$l10n.syntax nofilter}}
|
||||
<form action="{{$baseurl}}/admin/blocklist/server/add" method="get">
|
||||
{{include file="field_input.tpl" field=$newdomain}}
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary">{{$l10n.addsubmit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{{if $entries}}
|
||||
<h2>{{$l10n.currenttitle}}</h2>
|
||||
<form action="{{$baseurl}}/admin/blocklist/server" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
{{foreach $entries as $e}}
|
||||
{{include file="field_input.tpl" field=$e.domain}}
|
||||
{{include file="field_input.tpl" field=$e.reason}}
|
||||
{{include file="field_checkbox.tpl" field=$e.delete}}
|
||||
{{/foreach}}
|
||||
<div class="submit">
|
||||
<button type="submit" class="btn btn-primary" name="page_blocklist_edit" value="{{$l10n.savechanges}}">{{$l10n.savechanges}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</form>
|
||||
</div>
|
12
view/templates/moderation/item/delete.tpl
Normal file
12
view/templates/moderation/item/delete.tpl
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
<p>{{$intro1}}</p>
|
||||
<p>{{$intro2}}</p>
|
||||
|
||||
<form action="{{$baseurl}}/admin/item/delete" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
{{include file="field_input.tpl" field=$deleteitemguid}}
|
||||
<div class="submit"><input type="submit" name="page_deleteitem_submit" value="{{$submit}}" /></div>
|
||||
</form>
|
||||
|
||||
</div>
|
67
view/templates/moderation/item/source.tpl
Normal file
67
view/templates/moderation/item/source.tpl
Normal file
|
@ -0,0 +1,67 @@
|
|||
<div id="source" class="generic-page-wrapper">
|
||||
<h2>{{$title}}</h2>
|
||||
<form action="admin/item/source" method="get" class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
{{include file="field_input.tpl" field=$guid}}
|
||||
</div>
|
||||
<p><button type="submit" class="btn btn-primary">{{$submit}}</button></p>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{{if $source}}
|
||||
<div class="itemsource-results">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{$itemidlbl}}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{$item_id}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{$itemurilbl}}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{$item_uri}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{$termslbl}}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-condensed table-striped">
|
||||
<tr>
|
||||
<th>{{$typelbl}}</th>
|
||||
<th>{{$termlbl}}</th>
|
||||
<th>{{$urllbl}}</th>
|
||||
</tr>
|
||||
{{foreach $terms as $term}}
|
||||
<tr>
|
||||
<td>
|
||||
{{if $term.type == 1}}{{$tag}}{{/if}}
|
||||
{{if $term.type == 2}}{{$mentionlbl}}{{/if}}
|
||||
{{if $term.type == 8}}{{$implicitlbl}}{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{$term.name}}
|
||||
</td>
|
||||
<td>
|
||||
{{$term.url}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{$sourcelbl}}</h3>
|
||||
</div>
|
||||
<pre><code class="language-php">{{$source}}</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
9
view/templates/moderation/settings_head.tpl
Normal file
9
view/templates/moderation/settings_head.tpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.settings-content-block').hide();
|
||||
$('.settings-heading').click(function(){
|
||||
$('.settings-content-block').hide();
|
||||
$(this).next('.settings-content-block').toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
16
view/templates/moderation/summary.tpl
Normal file
16
view/templates/moderation/summary.tpl
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
<div id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<dl>
|
||||
<dt>{{$users.0}}</dt>
|
||||
<dd>{{$users.1}}</dd>
|
||||
</dl>
|
||||
{{foreach $accounts as $p}}
|
||||
<dl>
|
||||
<dt>{{$p.0}}</dt>
|
||||
<dd>{{if $p.1}}{{$p.1}}{{else}}0{{/if}}</dd>
|
||||
</dl>
|
||||
{{/foreach}}
|
||||
|
||||
</div>
|
88
view/templates/moderation/users/active.tpl
Normal file
88
view/templates/moderation/users/active.tpl
Normal file
|
@ -0,0 +1,88 @@
|
|||
<script>
|
||||
function confirm_delete(uname) {
|
||||
return confirm("{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
|
||||
function confirm_delete_multi() {
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
|
||||
function selectall(cls) {
|
||||
$("." + cls).attr('checked', 'checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}} ({{$count}})</h1>
|
||||
|
||||
<form action="{{$baseurl}}/{{$query_string}}" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<table id="users">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{foreach $th_users as $th}}
|
||||
<th>
|
||||
<a href="{{$baseurl}}/admin/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
|
||||
{{if $order_users == $th.1}}
|
||||
{{if $order_direction_users == "+"}}
|
||||
↓
|
||||
{{else}}
|
||||
↑
|
||||
{{/if}}
|
||||
{{else}}
|
||||
↕
|
||||
{{/if}}
|
||||
{{$th.0}}
|
||||
</a>
|
||||
</th>
|
||||
{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $users as $u}}
|
||||
<tr>
|
||||
<td><img class="icon" src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
|
||||
<td class="name"><a href="{{$u.url}}" title="{{$u.nickname}}">{{$u.name}}</a></td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="register_date">{{$u.register_date}}</td>
|
||||
<td class="login_date">{{$u.login_date}}</td>
|
||||
<td class="lastitem_date">{{$u.lastitem_date}}</td>
|
||||
<td class="login_date">{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}} {{if $u.blocked}}{{$blocked}}{{/if}}</td>
|
||||
<td class="checkbox">
|
||||
{{if $u.is_deletable}}
|
||||
<input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</td>
|
||||
|
||||
<td class="tools">
|
||||
{{if $u.is_deletable}}
|
||||
<a href="{{$baseurl}}/admin/users/active/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
|
||||
<span class="icon block {{if $u.blocked==0}}dim{{/if}}"></span>
|
||||
</a>
|
||||
<a href="{{$baseurl}}/admin/users/active/delete/{{$u.uid}}?t={{$form_security_token}}" title="{{$delete}}" onclick="return confirm_delete('{{$u.name}}')">
|
||||
<span class="icon drop"></span>
|
||||
</a>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="selectall"><a href="#" onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit">
|
||||
<input type="submit" name="page_users_block" value="{{$block}}"/>
|
||||
<input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"/>
|
||||
</div>
|
||||
</form>
|
||||
{{$pager nofilter}}
|
||||
<p>
|
||||
<a href="{{$base_url}}/admin/users/create">{{$h_newuser}}</a>
|
||||
</p>
|
||||
</div>
|
86
view/templates/moderation/users/blocked.tpl
Normal file
86
view/templates/moderation/users/blocked.tpl
Normal file
|
@ -0,0 +1,86 @@
|
|||
<script>
|
||||
function confirm_delete(uname) {
|
||||
return confirm("{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
|
||||
function confirm_delete_multi() {
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
|
||||
function selectall(cls) {
|
||||
$("." + cls).attr('checked', 'checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}} ({{$count}})</h1>
|
||||
|
||||
<form action="{{$baseurl}}/{{$query_string}}" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
|
||||
<table id="users">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{foreach $th_users as $th}}
|
||||
<th>
|
||||
<a href="{{$baseurl}}/admin/users/blocked?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
|
||||
{{if $order_users == $th.1}}
|
||||
{{if $order_direction_users == "+"}}
|
||||
↓
|
||||
{{else}}
|
||||
↑
|
||||
{{/if}}
|
||||
{{else}}
|
||||
↕
|
||||
{{/if}}
|
||||
{{$th.0}}
|
||||
</a>
|
||||
</th>
|
||||
{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $users as $u}}
|
||||
<tr>
|
||||
<td><img class="icon" src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
|
||||
<td class="name"><a href="{{$u.url}}" title="{{$u.nickname}}">{{$u.name}}</a></td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="register_date">{{$u.register_date}}</td>
|
||||
<td class="login_date">{{$u.login_date}}</td>
|
||||
<td class="lastitem_date">{{$u.lastitem_date}}</td>
|
||||
<td class="login_date">{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}} {{if $u.blocked}}{{$blocked}}{{/if}}</td>
|
||||
<td class="checkbox">
|
||||
{{if $u.is_deletable}}
|
||||
<input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</td>
|
||||
|
||||
<td class="tools">
|
||||
{{if $u.is_deletable}}
|
||||
<a href="{{$baseurl}}/admin/users/blocked/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
|
||||
<span class="icon block {{if $u.blocked==0}}dim{{/if}}"></span>
|
||||
</a>
|
||||
<a href="{{$baseurl}}/admin/users/blocked/delete/{{$u.uid}}?t={{$form_security_token}}" title="{{$delete}}" onclick="return confirm_delete('{{$u.name}}')">
|
||||
<span class="icon drop"></span>
|
||||
</a>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="selectall"><a href="#" onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit">
|
||||
<input type="submit" name="page_users_unblock" value="{{$unblock}}"/>
|
||||
<input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"/>
|
||||
</div>
|
||||
{{$pager nofilter}}
|
||||
</form>
|
||||
</div>
|
21
view/templates/moderation/users/create.tpl
Normal file
21
view/templates/moderation/users/create.tpl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/{{$query_string}}" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<table id="users">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{include file="field_input.tpl" field=$newusername}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{include file="field_input.tpl" field=$newusernickname}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{include file="field_input.tpl" field=$newuseremail}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="submit"><input type="submit" name="add_new_user_submit" value="{{$submit}}"/></div>
|
||||
</form>
|
||||
</div>
|
46
view/templates/moderation/users/deleted.tpl
Normal file
46
view/templates/moderation/users/deleted.tpl
Normal file
|
@ -0,0 +1,46 @@
|
|||
<script>
|
||||
function confirm_delete(uname) {
|
||||
return confirm("{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
|
||||
function confirm_delete_multi() {
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
|
||||
function selectall(cls) {
|
||||
$("." + cls).attr('checked', 'checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}} ({{$count}})</h1>
|
||||
|
||||
<form action="{{$baseurl}}/{{$query_string}}" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
|
||||
<table id="deleted">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{foreach $th_deleted as $th}}
|
||||
<th>{{$th}}</th>
|
||||
{{/foreach}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $users as $u}}
|
||||
<tr>
|
||||
<td><img class="icon" src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
|
||||
<td class="name"><a href="{{$u.url}}" title="{{$u.nickname}}">{{$u.name}}</a></td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="register_date">{{$u.register_date}}</td>
|
||||
<td class="login_date">{{$u.login_date}}</td>
|
||||
<td class="lastitem_date">{{$u.lastitem_date}}</td>
|
||||
<td class="login_date">{{$u.deleted}}</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{$pager nofilter}}
|
||||
</form>
|
||||
</div>
|
89
view/templates/moderation/users/index.tpl
Normal file
89
view/templates/moderation/users/index.tpl
Normal file
|
@ -0,0 +1,89 @@
|
|||
<script>
|
||||
function confirm_delete(uname) {
|
||||
return confirm("{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
|
||||
function confirm_delete_multi() {
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
|
||||
function selectall(cls) {
|
||||
$("." + cls).attr('checked', 'checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}} ({{$count}})</h1>
|
||||
|
||||
<form action="{{$baseurl}}/{{$query_string}}" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<table id="users">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{foreach $th_users as $th}}
|
||||
<th>
|
||||
<a href="{{$baseurl}}/admin/users?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
|
||||
{{if $order_users == $th.1}}
|
||||
{{if $order_direction_users == "+"}}
|
||||
↓
|
||||
{{else}}
|
||||
↑
|
||||
{{/if}}
|
||||
{{else}}
|
||||
↕
|
||||
{{/if}}
|
||||
{{$th.0}}
|
||||
</a>
|
||||
</th>
|
||||
{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $users as $u}}
|
||||
<tr>
|
||||
<td><img class="icon" src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
|
||||
<td class="name"><a href="{{$u.url}}" title="{{$u.nickname}}">{{$u.name}}</a></td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="register_date">{{$u.register_date}}</td>
|
||||
<td class="login_date">{{$u.login_date}}</td>
|
||||
<td class="lastitem_date">{{$u.lastitem_date}}</td>
|
||||
<td class="login_date">{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}} {{if $u.blocked}}{{$blocked}}{{/if}}</td>
|
||||
<td class="checkbox">
|
||||
{{if $u.is_deletable}}
|
||||
<input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</td>
|
||||
|
||||
<td class="tools">
|
||||
{{if $u.is_deletable}}
|
||||
<a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
|
||||
<span class="icon block {{if $u.blocked==0}}dim{{/if}}"></span>
|
||||
</a>
|
||||
<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>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="selectall"><a href="#" onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit">
|
||||
<input type="submit" name="page_users_block" value="{{$block}}"/>
|
||||
<input type="submit" name="page_users_unblock" value="{{$unblock}}"/>
|
||||
<input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"/>
|
||||
</div>
|
||||
</form>
|
||||
{{$pager nofilter}}
|
||||
<p>
|
||||
<a href="{{$base_url}}/admin/users/create">{{$h_newuser}}</a>
|
||||
</p>
|
||||
</div>
|
64
view/templates/moderation/users/pending.tpl
Normal file
64
view/templates/moderation/users/pending.tpl
Normal file
|
@ -0,0 +1,64 @@
|
|||
<script>
|
||||
function confirm_delete(uname) {
|
||||
return confirm("{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
|
||||
function confirm_delete_multi() {
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
|
||||
function selectall(cls) {
|
||||
$("." + cls).attr('checked', 'checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id="adminpage">
|
||||
<h1>{{$title}} - {{$page}} ({{$count}})</h1>
|
||||
|
||||
<form action="{{$baseurl}}/{{$query_string}}" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
|
||||
{{if $pending}}
|
||||
<table id="pending">
|
||||
<thead>
|
||||
<tr>
|
||||
{{foreach $th_pending as $th}}
|
||||
<th>{{$th}}</th>{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $pending as $u}}
|
||||
<tr>
|
||||
<td class="created">{{$u.created}}</td>
|
||||
<td class="name">{{$u.name}}</td>
|
||||
<td class="email">{{$u.email}}</td>
|
||||
<td class="checkbox">
|
||||
<input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}"/>
|
||||
</td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/admin/users/pending/allow/{{$u.uid}}?t={{$form_security_token}}" title="{{$approve}}">
|
||||
<span class="icon like"></span>
|
||||
</a>
|
||||
<a href="{{$baseurl}}/admin/users/pending/deny/{{$u.uid}}?t={{$form_security_token}}" title="{{$deny}}">
|
||||
<span class="icon dislike"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="pendingnote"><p><span>{{$pendingnotetext}}:</span> {{$u.note}}</p></td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="selectall"><a href="#" onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit">
|
||||
<input type="submit" name="page_users_deny" value="{{$deny}}"/>
|
||||
<input type="submit" name="page_users_approve" value="{{$approve}}"/>
|
||||
</div>
|
||||
{{else}}
|
||||
<p>{{$no_pending}}</p>
|
||||
{{/if}}
|
||||
</form>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue