2021-08-23 11:24:19 +00:00
|
|
|
<?php
|
2021-09-02 12:56:02 +00:00
|
|
|
/**
|
|
|
|
* @brief periodical, a plugin for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
|
|
|
*
|
|
|
|
* @author Jean-Christian Denis and contributors
|
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
2021-08-23 11:24:19 +00:00
|
|
|
|
|
|
|
if (!defined('DC_CONTEXT_ADMIN')) {
|
2021-08-23 22:52:29 +00:00
|
|
|
return null;
|
2021-08-23 11:24:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::check('usage,contentadmin');
|
|
|
|
|
|
|
|
# Objects
|
|
|
|
$per = new periodical($core);
|
|
|
|
|
|
|
|
# Default values
|
|
|
|
$action = isset($_POST['action']) ? $_POST['action'] : '';
|
|
|
|
|
|
|
|
############################################################
|
|
|
|
#
|
|
|
|
# One period
|
|
|
|
#
|
|
|
|
############################################################
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if ($_REQUEST['part'] == 'period') {
|
2021-08-23 11:24:19 +00:00
|
|
|
|
2021-08-23 22:52:29 +00:00
|
|
|
$starting_script = '';
|
|
|
|
|
|
|
|
# Default value for period
|
2021-10-23 12:44:54 +00:00
|
|
|
$period_id = null;
|
|
|
|
$period_title = __('One post per day');
|
|
|
|
$period_pub_nb = 1;
|
2021-08-23 22:52:29 +00:00
|
|
|
$period_pub_int = 'day';
|
2021-10-23 12:44:54 +00:00
|
|
|
$period_curdt = date('Y-m-d H:i:00', time());
|
|
|
|
$period_enddt = date('Y-m-d H:i:00', time() + 31536000); //one year
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
# Get period
|
|
|
|
if (!empty($_REQUEST['period_id'])) {
|
|
|
|
$rs = $per->getPeriods([
|
|
|
|
'periodical_id' => $_REQUEST['period_id']
|
|
|
|
]);
|
|
|
|
if ($rs->isEmpty()) {
|
|
|
|
$core->error->add(__('This period does not exist.'));
|
|
|
|
$period_id = null;
|
|
|
|
} else {
|
2021-10-23 12:44:54 +00:00
|
|
|
$period_id = $rs->periodical_id;
|
|
|
|
$period_title = $rs->periodical_title;
|
|
|
|
$period_pub_nb = $rs->periodical_pub_nb;
|
2021-08-23 22:52:29 +00:00
|
|
|
$period_pub_int = $rs->periodical_pub_int;
|
2021-10-23 12:44:54 +00:00
|
|
|
$period_curdt = date('Y-m-d H:i', strtotime($rs->periodical_curdt));
|
|
|
|
$period_enddt = date('Y-m-d H:i', strtotime($rs->periodical_enddt));
|
2021-08-23 22:52:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Set period
|
|
|
|
if ($action == 'setperiod') {
|
|
|
|
# Get POST values
|
|
|
|
if (!empty($_POST['period_title'])) {
|
|
|
|
$period_title = $_POST['period_title'];
|
|
|
|
}
|
|
|
|
if (!empty($_POST['period_pub_nb'])) {
|
|
|
|
$period_pub_nb = abs((integer) $_POST['period_pub_nb']);
|
|
|
|
}
|
|
|
|
if (!empty($_POST['period_pub_int'])
|
2021-10-23 12:44:54 +00:00
|
|
|
&& in_array($_POST['period_pub_int'], $per->getTimesCombo())
|
|
|
|
) {
|
2021-08-23 22:52:29 +00:00
|
|
|
$period_pub_int = $_POST['period_pub_int'];
|
|
|
|
}
|
|
|
|
if (!empty($_POST['period_curdt'])) {
|
|
|
|
$period_curdt = date('Y-m-d H:i:00', strtotime($_POST['period_curdt']));
|
|
|
|
}
|
|
|
|
if (!empty($_POST['period_enddt'])) {
|
|
|
|
$period_enddt = date('Y-m-d H:i:00', strtotime($_POST['period_enddt']));
|
|
|
|
}
|
|
|
|
|
|
|
|
# Check period title and dates
|
|
|
|
$old_titles = $per->getPeriods([
|
|
|
|
'periodical_title' => $period_title
|
|
|
|
]);
|
|
|
|
if (!$old_titles->isEmpty()) {
|
|
|
|
while($old_titles->fetch()) {
|
|
|
|
if (!$period_id || $old_titles->periodical_id != $period_id) {
|
|
|
|
$core->error->add(__('Period title is already taken'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (empty($period_title)) {
|
|
|
|
$core->error->add(__('Period title is required'));
|
|
|
|
}
|
|
|
|
if (strtotime($period_curdt) > strtotime($period_enddt)) {
|
|
|
|
$core->error->add(__('Start date must be older than end date'));
|
|
|
|
}
|
|
|
|
|
|
|
|
# If no error, set period
|
|
|
|
if (!$core->error->flag()) {
|
|
|
|
$cur = $per->openCursor();
|
2021-10-23 12:44:54 +00:00
|
|
|
$cur->periodical_title = $period_title;
|
|
|
|
$cur->periodical_curdt = $period_curdt;
|
|
|
|
$cur->periodical_enddt = $period_enddt;
|
2021-08-23 22:52:29 +00:00
|
|
|
$cur->periodical_pub_int = $period_pub_int;
|
2021-10-23 12:44:54 +00:00
|
|
|
$cur->periodical_pub_nb = $period_pub_nb;
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
# Update period
|
|
|
|
if ($period_id) {
|
|
|
|
$per->updPeriod($period_id, $cur);
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Period successfully updated.')
|
|
|
|
);
|
|
|
|
# Create period
|
|
|
|
} else {
|
|
|
|
$period_id = $per->addPeriod($cur);
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Period successfully created.')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if (!empty($_POST['redir'])) {
|
|
|
|
http::redirect($_POST['redir']);
|
|
|
|
} else {
|
|
|
|
$core->adminurl->redirect('admin.plugin.periodical', ['part' => 'period', 'period_id' => $period_id], '#period');
|
|
|
|
}
|
2021-08-23 22:52:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Actions on related posts
|
|
|
|
if (!$core->error->flag() && $period_id && $action && !empty($_POST['periodical_entries'])) {
|
|
|
|
# Publish posts
|
|
|
|
if ($action == 'publish') {
|
|
|
|
try {
|
|
|
|
foreach($_POST['periodical_entries'] as $id) {
|
|
|
|
$id = (integer) $id;
|
|
|
|
$core->blog->updPostStatus($id, 1);
|
|
|
|
$per->delPost($id);
|
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Entries successfully published.')
|
|
|
|
);
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if (!empty($_POST['redir'])) {
|
|
|
|
http::redirect($_POST['redir']);
|
|
|
|
} else {
|
|
|
|
$core->adminurl->redirect('admin.plugin.periodical', ['part' => 'period', 'period_id' => $period_id], '#posts');
|
|
|
|
}
|
2021-08-23 22:52:29 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Unpublish posts
|
|
|
|
if ($action == 'unpublish') {
|
|
|
|
try {
|
|
|
|
foreach($_POST['periodical_entries'] as $id) {
|
|
|
|
$id = (integer) $id;
|
|
|
|
$core->blog->updPostStatus($id,0);
|
|
|
|
$per->delPost($id);
|
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Entries successfully unpublished.')
|
|
|
|
);
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if (!empty($_POST['redir'])) {
|
|
|
|
http::redirect($_POST['redir']);
|
|
|
|
} else {
|
|
|
|
$core->adminurl->redirect('admin.plugin.periodical', ['part' => 'period', 'period_id' => $period_id], '#posts');
|
|
|
|
}
|
2021-08-23 22:52:29 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Remove posts from periodical
|
|
|
|
if ($action == 'remove_post_periodical') {
|
|
|
|
try {
|
|
|
|
foreach($_POST['periodical_entries'] as $id) {
|
|
|
|
$id = (integer) $id;
|
|
|
|
$per->delPost($id);
|
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Entries successfully removed.')
|
|
|
|
);
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if (!empty($_POST['redir'])) {
|
|
|
|
http::redirect($_POST['redir']);
|
|
|
|
} else {
|
|
|
|
$core->adminurl->redirect('admin.plugin.periodical', ['part' => 'period', 'period_id' => $period_id], '#posts');
|
|
|
|
}
|
2021-08-23 22:52:29 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Prepare combos for posts list
|
|
|
|
if ($period_id) {
|
2021-10-22 22:42:30 +00:00
|
|
|
# Filters
|
|
|
|
$post_filter = new adminPostFilter($core);
|
|
|
|
$post_filter->add('part', 'period');
|
2021-08-23 22:52:29 +00:00
|
|
|
|
2021-10-22 22:42:30 +00:00
|
|
|
$params = $post_filter->params();
|
2021-10-23 12:44:54 +00:00
|
|
|
$params['periodical_id'] = $period_id;
|
|
|
|
$params['no_content'] = true;
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
# Get posts
|
|
|
|
try {
|
|
|
|
$posts = $per->getPosts($params);
|
|
|
|
$counter = $per->getPosts($params, true);
|
|
|
|
$post_list = new adminPeriodicalList($core, $posts, $counter->f(0));
|
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
|
|
|
|
$starting_script =
|
2021-10-22 22:42:30 +00:00
|
|
|
dcPage::jsLoad('index.php?pf=periodical/js/checkbox.js') .
|
|
|
|
$post_filter->js($core->adminurl->get('admin.plugin.periodical', ['part' => 'period', 'period_id' => $period_id], '&').'#posts');
|
2021-08-23 22:52:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Display
|
|
|
|
echo '
|
|
|
|
<html><head><title>' . __('Periodical') . '</title>' .
|
|
|
|
dcPage::jsLoad('index.php?pf=periodical/js/dates.js') .
|
|
|
|
$starting_script .
|
|
|
|
dcPage::jsDatePicker() .
|
|
|
|
dcPage::jsPageTabs() .
|
|
|
|
'</head>
|
|
|
|
<body>';
|
|
|
|
|
|
|
|
echo
|
2021-10-22 22:03:15 +00:00
|
|
|
dcPage::breadcrumb([
|
2021-08-23 22:52:29 +00:00
|
|
|
html::escapeHTML($core->blog->name) => '',
|
|
|
|
__('Periodical') => $p_url . '&part=periods',
|
|
|
|
(null === $period_id ? __('New period') : __('Edit period')) => ''
|
2021-10-22 22:03:15 +00:00
|
|
|
]) .
|
2021-08-23 22:52:29 +00:00
|
|
|
dcPage::notices();
|
|
|
|
|
|
|
|
# Period form
|
|
|
|
echo '
|
2021-10-23 12:44:54 +00:00
|
|
|
<div id="period"><h3>' . (null === $period_id ? __('New period') : __('Edit period')) . '</h3>
|
2021-08-23 22:52:29 +00:00
|
|
|
<form method="post" action="' . $p_url . '">
|
|
|
|
|
|
|
|
<p><label for="period_title">' . __('Title:') . '</label>' .
|
|
|
|
form::field('period_title', 60, 255, html::escapeHTML($period_title), 'maximal') . '</p>
|
|
|
|
|
|
|
|
<div class="two-boxes">
|
|
|
|
|
|
|
|
<p><label for="period_curdt">' . __('Next update:') . '</label>' .
|
|
|
|
form::field('period_curdt', 16, 16, date('Y-m-d H:i', strtotime($period_curdt))) . '</p>
|
|
|
|
|
|
|
|
<p><label for="period_enddt">' . __('End date:') . '</label>' .
|
|
|
|
form::field('period_enddt', 16, 16, date('Y-m-d H:i', strtotime($period_enddt))) . '</p>
|
|
|
|
|
|
|
|
</div><div class="two-boxes">
|
|
|
|
|
|
|
|
<p><label for="period_pub_int">' . __('Publication frequency:') . '</label>' .
|
|
|
|
form::combo('period_pub_int',$per->getTimesCombo(), $period_pub_int) . '</p>
|
|
|
|
|
|
|
|
<p><label for="period_pub_nb">' . __('Number of entries to publish every time:') . '</label>' .
|
2021-10-23 15:08:20 +00:00
|
|
|
form::number('period_pub_nb', ['min' => 1, 'max' => 20, 'default' => $period_pub_nb]) . '</p>
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clear">
|
|
|
|
<p><input type="submit" name="save" value="' . __('Save') . '" />' .
|
|
|
|
$core->formNonce() .
|
|
|
|
form::hidden(['action'], 'setperiod') .
|
|
|
|
form::hidden(['period_id'], $period_id) .
|
|
|
|
form::hidden(['part'], 'period') .'
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>';
|
|
|
|
|
|
|
|
if ($period_id && !$core->error->flag()) {
|
|
|
|
|
|
|
|
# Actions combo box
|
2021-10-22 22:42:30 +00:00
|
|
|
$combo_action = [];
|
2021-08-23 22:52:29 +00:00
|
|
|
$combo_action[__('Entries')][__('Publish')] = 'publish';
|
|
|
|
$combo_action[__('Entries')][__('Unpublish')] = 'unpublish';
|
|
|
|
$combo_action[__('Periodical')][__('Remove from periodical')] = 'remove_post_periodical';
|
|
|
|
|
|
|
|
$base_url = $p_url .
|
|
|
|
'&period_id=' .$period_id .
|
|
|
|
'&part=period' .
|
2021-10-22 22:42:30 +00:00
|
|
|
'&user_id=' . $post_filter->user_id .
|
|
|
|
'&cat_id=' . $post_filter->cat_id .
|
|
|
|
'&status=' . $post_filter->status .
|
|
|
|
'&selected=' . $post_filter->selected .
|
|
|
|
'&attachment=' . $post_filter->attachment .
|
|
|
|
'&month=' . $post_filter->month .
|
|
|
|
'&lang=' . $post_filter->lang .
|
|
|
|
'&sortby=' . $post_filter->sortby .
|
|
|
|
'&order=' . $post_filter->order .
|
|
|
|
'&nb=' . $post_filter->nb .
|
2021-08-23 22:52:29 +00:00
|
|
|
'&page=%s' .
|
|
|
|
'#posts';
|
|
|
|
|
|
|
|
echo '
|
2021-10-23 12:44:54 +00:00
|
|
|
<div id="posts"><h3>' . __('Entries linked to this period') . '</h3>';
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
# Filters
|
2021-10-23 12:44:54 +00:00
|
|
|
$post_filter->display(['admin.plugin.periodical', '#posts'],
|
|
|
|
$core->adminurl->getHiddenFormFields('admin.plugin.periodical', [
|
|
|
|
'period_id' => $period_id,
|
|
|
|
'part' => 'period'
|
2021-10-22 22:42:30 +00:00
|
|
|
])
|
|
|
|
);
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
# Posts list
|
2021-10-23 12:44:54 +00:00
|
|
|
echo $post_list->postDisplay($post_filter, $base_url,
|
2021-08-23 22:52:29 +00:00
|
|
|
'<form action="' . $p_url . '" method="post" id="form-entries">' .
|
|
|
|
|
|
|
|
'%s' .
|
|
|
|
|
|
|
|
'<div class="two-cols">' .
|
|
|
|
'<p class="col checkboxes-helpers"></p>' .
|
|
|
|
|
|
|
|
'<p class="col right">' . __('Selected entries action:') . ' ' .
|
|
|
|
form::combo('action', $combo_action) .
|
|
|
|
'<input type="submit" value="' . __('ok') . '" /></p>' .
|
2021-10-23 12:44:54 +00:00
|
|
|
$core->adminurl->getHiddenFormFields('admin.plugin.periodical', array_merge($post_filter->values(), [
|
|
|
|
'period_id' => $period_id,
|
|
|
|
'redir' => sprintf($base_url, $post_filter->page)
|
|
|
|
])) .
|
2021-08-23 22:52:29 +00:00
|
|
|
$core->formNonce() .
|
|
|
|
'</div>' .
|
|
|
|
'</form>'
|
|
|
|
);
|
|
|
|
|
|
|
|
echo
|
|
|
|
'</div>';
|
|
|
|
}
|
2021-08-23 11:24:19 +00:00
|
|
|
|
|
|
|
############################################################
|
|
|
|
#
|
|
|
|
# All periods
|
|
|
|
#
|
|
|
|
############################################################
|
|
|
|
|
2021-08-23 22:52:29 +00:00
|
|
|
} else {
|
|
|
|
|
|
|
|
# Delete periods and related posts links
|
|
|
|
if ($action == 'deleteperiods' && !empty($_POST['periods'])) {
|
|
|
|
try {
|
|
|
|
foreach($_POST['periods'] as $id) {
|
|
|
|
$id = (integer) $id;
|
|
|
|
$per->delPeriodPosts($id);
|
|
|
|
$per->delPeriod($id);
|
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Periods removed.')
|
|
|
|
);
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if (!empty($_POST['redir'])) {
|
|
|
|
http::redirect($_POST['redir']);
|
|
|
|
} else {
|
|
|
|
$core->adminurl->redirect('admin.plugin.periodical', ['part' => 'periods']);
|
|
|
|
}
|
2021-08-23 22:52:29 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# Delete periods related posts links (without delete periods)
|
|
|
|
if ($action == 'emptyperiods' && !empty($_POST['periods'])) {
|
|
|
|
try {
|
|
|
|
foreach($_POST['periods'] as $id) {
|
|
|
|
$id = (integer) $id;
|
|
|
|
$per->delPeriodPosts($id);
|
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::addSuccessNotice(
|
|
|
|
__('Periods emptied.')
|
|
|
|
);
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
if (!empty($_POST['redir'])) {
|
|
|
|
http::redirect($_POST['redir']);
|
|
|
|
} else {
|
|
|
|
$core->adminurl->redirect('admin.plugin.periodical', ['part' => 'periods']);
|
|
|
|
}
|
2021-08-23 22:52:29 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-22 22:03:15 +00:00
|
|
|
$combo_action = [
|
|
|
|
__('empty periods') => 'emptyperiods',
|
|
|
|
__('delete periods') => 'deleteperiods'
|
2021-08-23 22:52:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Filters
|
2021-10-22 22:03:15 +00:00
|
|
|
$p_filter = new adminGenericFilter($core, 'periodical');
|
2021-10-22 22:42:30 +00:00
|
|
|
$p_filter->add('part', 'periods');
|
2021-08-23 22:52:29 +00:00
|
|
|
|
2021-10-22 22:03:15 +00:00
|
|
|
$params = $p_filter->params();
|
2021-08-23 22:52:29 +00:00
|
|
|
|
|
|
|
# Get periods
|
|
|
|
try {
|
|
|
|
$periods = $per->getPeriods($params);
|
|
|
|
$counter = $per->getPeriods($params, true);
|
|
|
|
$period_list = new adminPeriodicalList($core, $periods, $counter->f(0));
|
|
|
|
} catch (Exception $e) {
|
|
|
|
$core->error->add($e->getMessage());
|
|
|
|
}
|
|
|
|
|
|
|
|
# Display
|
|
|
|
echo
|
|
|
|
'<html><head><title>' . __('Periodical') . '</title>' .
|
2021-10-22 22:42:30 +00:00
|
|
|
dcPage::jsLoad('index.php?pf=periodical/js/checkbox.js') .
|
2021-10-22 22:03:15 +00:00
|
|
|
$p_filter->js($core->adminurl->get('admin.plugin.periodical', ['part' => 'periods'])) .
|
2021-08-23 22:52:29 +00:00
|
|
|
'</head>' .
|
|
|
|
'<body>' .
|
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
dcPage::breadcrumb([
|
2021-08-23 22:52:29 +00:00
|
|
|
html::escapeHTML($core->blog->name) => '',
|
|
|
|
__('Periodical') => ''
|
2021-10-23 12:44:54 +00:00
|
|
|
]) .
|
2021-08-23 22:52:29 +00:00
|
|
|
dcPage::notices() .
|
|
|
|
|
|
|
|
'<p class="top-add">
|
|
|
|
<a class="button add" href="' . $p_url . '&part=period">' . __('New period') . '</a>
|
|
|
|
</p>';
|
|
|
|
|
2021-10-22 22:03:15 +00:00
|
|
|
# Filters
|
|
|
|
$p_filter->display('admin.plugin.periodical', form::hidden('p', 'periodical') . form::hidden('part', 'periods'));
|
2021-08-23 22:52:29 +00:00
|
|
|
|
2021-10-23 12:44:54 +00:00
|
|
|
# Periods list
|
|
|
|
$period_list->periodDisplay($p_filter,
|
2021-08-23 22:52:29 +00:00
|
|
|
'<form action="' . $p_url . '" method="post" id="form-periods">' .
|
|
|
|
|
|
|
|
'%s' .
|
|
|
|
|
|
|
|
'<div class="two-cols">' .
|
|
|
|
'<p class="col checkboxes-helpers"></p>' .
|
|
|
|
|
|
|
|
'<p class="col right">' . __('Selected periods action:') . ' ' .
|
|
|
|
form::combo('action', $combo_action) .
|
|
|
|
'<input type="submit" value="' . __('ok') . '" /></p>' .
|
2021-10-22 22:03:15 +00:00
|
|
|
$core->adminurl->getHiddenFormFields('admin.plugin.periodical', array_merge(['p' => 'periodical'], $p_filter->values(true))) .
|
2021-08-23 22:52:29 +00:00
|
|
|
$core->formNonce() .
|
|
|
|
'</div>' .
|
|
|
|
'</form>'
|
|
|
|
);
|
2021-08-23 11:24:19 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dcPage::helpBlock('periodical');
|
|
|
|
|
2021-10-22 22:03:15 +00:00
|
|
|
echo '</body></html>';
|