mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 18:53:01 +02:00
related to #1679 first go on title uniformization still work to do
This commit is contained in:
@@ -242,6 +242,7 @@ SELECT DISTINCT id,name,uppercats,global_rank
|
||||
display_select_cat_wrapper($query_true,array(),'category_option_true');
|
||||
display_select_cat_wrapper($query_false,array(),'category_option_false');
|
||||
$template->assign('PWG_TOKEN',get_pwg_token());
|
||||
$template->assign('ADMIN_PAGE_TITLE', l10n('Properties'));
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | sending html code |
|
||||
|
||||
@@ -87,7 +87,7 @@ $template->set_filename('cat_search', 'cat_search.tpl');
|
||||
$template->assign(
|
||||
array(
|
||||
'data_cat' => $categories,
|
||||
'ADMIN_PAGE_TITLE' => l10n('Album search tool'),
|
||||
'ADMIN_PAGE_TITLE' => l10n('Albums'),
|
||||
'placeholder' => $placeholder,
|
||||
)
|
||||
);
|
||||
|
||||
@@ -15,4 +15,16 @@ $tabsheet->set_id('albums');
|
||||
$tabsheet->select($page['tab']);
|
||||
$tabsheet->assign();
|
||||
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
FROM '.CATEGORIES_TABLE.'
|
||||
;';
|
||||
|
||||
list($nb_cats) = pwg_db_fetch_row(pwg_query($query));
|
||||
$template->assign(
|
||||
array(
|
||||
'nb_cats' => $nb_cats,
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -93,6 +93,7 @@ jQuery(document).ready(function () {
|
||||
success: function (raw_data) {
|
||||
loadState.reverse();
|
||||
data = jQuery.parseJSON(raw_data);
|
||||
console.log(data);
|
||||
if (data.stat === "ok") {
|
||||
$(".addGroupFormLabelAndInput input").val('');
|
||||
group = data.result.groups[0];
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<div class="titrePage">
|
||||
<h2>{'Properties'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
</div>
|
||||
|
||||
<form method="post" action="{$F_ACTION}" id="cat_options">
|
||||
<fieldset>
|
||||
<legend>{$L_SECTION}</legend>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
|
||||
|
||||
{footer_script}
|
||||
$(document).ready(() => {
|
||||
$("h1").append("<span class='badge-number'>"+{$nb_cats}+"</span>");
|
||||
});
|
||||
var data = {json_encode($data_cat)};
|
||||
/*
|
||||
Here data is an associative array id => category under this form
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
}());
|
||||
{/footer_script}
|
||||
|
||||
<h2>{'Piwigo configuration'|translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Piwigo configuration'|translate}</h2>
|
||||
|
||||
<form method="post" action="{$F_ACTION}" class="properties">
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
|
||||
|
||||
<h2>{'Piwigo configuration'|translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Piwigo configuration'|translate}</h2>
|
||||
|
||||
<form method="post" name="profile" action="{$GUEST_F_ACTION}" id="profile" class="properties">
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
{/html_style}
|
||||
|
||||
<h2>{'Piwigo configuration'|translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Piwigo configuration'|translate}</h2>
|
||||
|
||||
<form method="post" action="{$F_ACTION}" class="properties">
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ jQuery("input[name='mail_theme']").change(function() {
|
||||
});
|
||||
{/footer_script}
|
||||
|
||||
<h2>{'Piwigo configuration'|translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Piwigo configuration'|translate}</h2>
|
||||
|
||||
<form method="post" action="{$F_ACTION}" class="properties">
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ $(".restore-settings-button").each(function() {
|
||||
.sizeEditOpen { margin-left:10px; }
|
||||
{/html_style}
|
||||
|
||||
<h2>{'Piwigo configuration'|translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Piwigo configuration'|translate}</h2>
|
||||
|
||||
<form method="post" action="{$F_ACTION}" class="properties">
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
}());
|
||||
{/footer_script}
|
||||
|
||||
<h2>{'Piwigo configuration'|translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Piwigo configuration'|translate}</h2>
|
||||
|
||||
<form method="post" action="{$F_ACTION}" class="properties" enctype="multipart/form-data">
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ const guest_id = {$guest_id};
|
||||
{combine_script id='jquery.confirm' load='footer' require='jquery' path='themes/default/js/plugins/jquery-confirm.min.js'}
|
||||
{combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {* order 10 is required, see issue 1080 *}
|
||||
|
||||
<h2>{'History'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'History'|@translate}</h2>
|
||||
|
||||
<form class="filter" method="post" name="filter" action="">
|
||||
<fieldset class="history-filter">
|
||||
|
||||
@@ -16,7 +16,7 @@ $(".delete-lang-button").each(function() {
|
||||
{/footer_script}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Installed Languages'|@translate}</h2>
|
||||
<h2>{'Languages'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
{foreach from=$language_states item=language_state}
|
||||
|
||||
@@ -10,7 +10,7 @@ jQuery().ready(function(){ldelim}
|
||||
{/footer_script}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Add New Language'|@translate}</h2>
|
||||
<h2>{'Languages'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
{if $isWebmaster == 1}
|
||||
|
||||
@@ -17,7 +17,7 @@ jQuery(document).ready(function(){
|
||||
{/literal}{/footer_script}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Send mail to users'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Send mail to users'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
<form method="post" name="notification_by_mail" id="notification_by_mail" action="{$F_ACTION}">
|
||||
|
||||
@@ -28,7 +28,7 @@ form fieldset p.actionButtons {margin-bottom:0}
|
||||
{/html_style}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Permalinks'|@translate}</h2>
|
||||
<h2>{'Albums'|@translate}<span class='badge-number'>{$nb_cats}</span></h2>
|
||||
</div>
|
||||
|
||||
<p id="showAddPermalink"><a href="#" id="addPermalinkOpen">{'Add/delete a permalink'|@translate}</a></p>
|
||||
|
||||
@@ -69,7 +69,7 @@ jQuery().ready(function(){
|
||||
{/literal}{/html_head}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Upload Photos'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Upload Photos'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
<div class="applicationContainer">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="titrePage">
|
||||
<h2>{'Upload Photos'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
<h2>{'Upload Photos'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
<div id="ftpPage">
|
||||
|
||||
@@ -34,7 +34,7 @@ jQuery("select[name=cat]").change(function(){
|
||||
});
|
||||
{/footer_script}
|
||||
|
||||
<h2>{$NB_ELEMENTS} {'Photos'|@translate}</h2>
|
||||
<h2>{'Rating'|@translate}<span class='badge-number'>{$NB_ELEMENTS}</span></h2>
|
||||
|
||||
<form action="{$F_ACTION}" method="GET" class="filter">
|
||||
<fieldset>
|
||||
|
||||
@@ -37,7 +37,7 @@ body .ui-tooltip {
|
||||
|
||||
{/html_style}
|
||||
|
||||
<h2>{$ratings|@count} {'Users'|@translate}</h2>
|
||||
<h2>{'Rating'|@translate}<span class='badge-number'>{$ratings|@count}</span></h2>
|
||||
|
||||
<form action="{$F_ACTION}" method="GET">
|
||||
<fieldset>
|
||||
|
||||
@@ -63,7 +63,7 @@ $(window).bind("load", function() {
|
||||
{/literal}{/footer_script}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Installed Themes'|@translate}</h2>
|
||||
<h2>{'Themes'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
<div id="themesContent">
|
||||
|
||||
@@ -20,7 +20,7 @@ $(window).bind("load", function() {
|
||||
})
|
||||
{/literal}{/footer_script}
|
||||
<div class="titrePage">
|
||||
<h2>{'Add New Theme'|@translate}</h2>
|
||||
<h2>{'Themes'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
{if not empty($new_themes)}
|
||||
|
||||
@@ -209,4 +209,5 @@ $("#update_all").click(function() {
|
||||
{/foreach}
|
||||
</fieldset>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/if}
|
||||
@@ -669,6 +669,8 @@ function append_pagination_item(page = null) {
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$("h1").append(`<span class='badge-number'>`+{$nb_users - 1}+`</span>`);
|
||||
|
||||
$('select').on('change', function (user) {
|
||||
if ($(".selectize-input").hasClass("full")) {
|
||||
{* call ajax sur activity list avec uid en param *}
|
||||
|
||||
@@ -87,7 +87,7 @@ SELECT
|
||||
// | template initialization |
|
||||
// +-----------------------------------------------------------------------+
|
||||
$template->set_filename('user_activity', 'user_activity.tpl');
|
||||
$template->assign('ADMIN_PAGE_TITLE', l10n('User Activity logs'));
|
||||
$template->assign('ADMIN_PAGE_TITLE', l10n('Users'));
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | sending html code |
|
||||
@@ -131,10 +131,16 @@ foreach ($nb_lines_for_user as $id => $nb_line) {
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$template->assign('ulist', $filterable_users);
|
||||
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
FROM '.USER_INFOS_TABLE.'
|
||||
;';
|
||||
|
||||
list($nb_users) = pwg_db_fetch_row(pwg_query($query));
|
||||
$template->assign('nb_users', $nb_users);
|
||||
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'user_activity');
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user