Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_osmembership/view/subscriptions/tmpl/default.php
Ðазад
<?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\Router\Route; Text::script('OSM_SELECT_PLAN_TO_ADD_SUBSCRIPTION', true); Factory::getApplication() ->getDocument() ->addScriptOptions('force_select_plan', (int) $this->config->force_select_plan) ->getWebAssetManager() ->useScript('core') ->useScript('table.columns') ->useScript('multiselect') ->registerAndUseScript('com_osmembership.admin-subscriptions-default', 'media/com_osmembership/js/admin-subscriptions-default.min.js'); $this->loadSearchTools(); $cols = 9; $subscriptionTypes = [ 'subscribe' => Text::_('OSM_TYPE_OF_SUBSCRIPTION_NEW'), 'renew' => Text::_('OSM_TYPE_OF_SUBSCRIPTION_RENEW'), 'upgrade' => Text::_('OSM_TYPE_OF_SUBSCRIPTION_UPGRADE'), ]; ?> <form action="<?php echo $this->getFormAction(); ?>" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data"> <div id="j-main-container" class="mp-joomla4-container"> <?php echo $this->renderSearchTools(); ?> <div class="clearfix"></div> <table class="adminlist table table-striped"> <thead> <tr> <th width="20"> <input type="checkbox" name="toggle" value="" onclick="Joomla.checkAll(this);" /> </th> <th class="title" style="text-align: left;"> <?php echo $this->gridSort('OSM_FIRSTNAME', 'tbl.first_name'); ?> </th> <?php if ($this->showLastName) { $cols++; ?> <th class="title" style="text-align: left;"> <?php echo $this->gridSort('OSM_LASTNAME', 'tbl.last_name'); ?> </th> <?php } ?> <th class="title" style="text-align: left;"> <?php echo $this->gridSort('OSM_PLAN', 'b.title'); ?> </th> <?php foreach ($this->fields as $field) { $cols++; if ($field->is_core || $field->is_searchable) { ?> <th class="title" nowrap="nowrap"> <?php echo $this->gridSort($field->title, 'tbl.' . $field->name); ?> </th> <?php } else { ?> <th class="title" nowrap="nowrap"><?php echo $field->title; ?></th> <?php } } ?> <th class="center"> <?php echo $this->gridSort('OSM_TYPE_OF_SUBSCRIPTION', 'tbl.act'); ?> </th> <th class="title center"> <?php echo $this->gridSort('OSM_START_DATE', 'tbl.from_date'); ?> / <?php echo $this->gridSort('OSM_END_DATE', 'tbl.to_date'); ?> </th> <th class="title center"> <?php echo $this->gridSort('OSM_CREATED_DATE', 'tbl.created_date'); ?> </th> <th width="10%"> <?php echo $this->gridSort('OSM_GROSS_AMOUNT', 'tbl.gross_amount'); ?> </th> <?php if ($this->config->get('show_payment_method')) { $cols++; ?> <th> <?php echo $this->gridSort('OSM_PAYMENT_METHOD', 'tbl.payment_method'); ?> </th> <?php } if ($this->config->enable_coupon) { $cols++; ?> <th> <?php echo $this->gridSort('OSM_COUPON', 'd.code'); ?> </th> <?php } ?> <th width="8%" class="center"> <?php echo $this->gridSort('OSM_SUBSCRIPTION_STATUS', 'tbl.published'); ?> </th> <?php if ($this->config->auto_generate_membership_id) { $cols++ ; ?> <th width="8%" class="center"> <?php echo $this->gridSort('OSM_MEMBERSHIP_ID', 'tbl.membership_id'); ?> </th> <?php } if ($this->config->activate_invoice_feature) { $cols++ ; ?> <th width="8%" class="center"> <?php echo $this->gridSort('OSM_INVOICE_NUMBER', 'tbl.invoice_number'); ?> </th> <?php } if ($this->config->show_download_member_card) { $cols++; ?> <th class="center"> <?php echo Text::_('OSM_MEMBER_CARD'); ?> </th> <?php } ?> <th width="2%"> <?php echo $this->gridSort('OSM_ID', 'tbl.id'); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="<?php echo $cols ; ?>"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; $statusCssClasses = [ 0 => 'osm-pending-subscription', 1 => 'osm-active-subscription', 2 => 'osm-expired-subscription', 3 => 'osm-cancelled-pending-subscription', 5 => 'osm-cancelled-refunded-subscription', ]; for ($i = 0, $n = count($this->items); $i < $n; $i++) { $row = $this->items[$i]; $link = Route::_('index.php?option=com_osmembership&view=subscription&id=' . $row->id); $checked = HTMLHelper::_('grid.id', $i, $row->id); $accountLink = 'index.php?option=com_users&task=user.edit&id=' . $row->user_id; $symbol = $row->currency_symbol ?: $row->currency; ?> <tr class="<?php echo "row$k"; if (isset($statusCssClasses[$row->published])) echo ' ' . $statusCssClasses[$row->published]; ?>"> <td> <?php echo $checked; ?> </td> <td> <a href="<?php echo $link; ?>"><?php echo $row->first_name ?: $row->username ; ?></a> <?php if ($row->username) { ?> <a href="<?php echo $accountLink; ?>" title="View Profile">(<strong><?php echo $row->username ; ?></strong>)</a> <?php } ?> </td> <?php if ($this->showLastName) { ?> <td> <?php echo $row->last_name ; ?> </td> <?php } ?> <td> <a href="<?php echo Route::_('index.php?option=com_osmembership&task=plan.edit&cid[]=' . $row->plan_id); ?>" target="_blank"><?php echo $row->plan_title ; ?></a> </td> <?php foreach ($this->fields as $field) { if ($field->is_core) { $fieldValue = $row->{$field->name}; } else { $fieldValue = $this->fieldsData[$row->id][$field->id] ?? ''; } ?> <td> <?php if ($fieldValue && $field->fieldtype == 'File' && file_exists(JPATH_ROOT . '/media/com_osmembership/upload/' . $fieldValue)) { if (OSMembershipHelper::isImageFilename($fieldValue)) { ?> <a href="<?php echo Route::_('index.php?option=com_osmembership&task=controller.download_file&file_name=' . $fieldValue); ?>"><img src="<?php echo Route::_('index.php?option=com_osmembership&task=controller.download_file&inline=1&file_name=' . $fieldValue); ?>" class="osm-uploaded-image-thumb" alt="<?php echo $fieldValue; ?>" /></a> <?php } else { ?> <a href="<?php echo Route::_('index.php?option=com_osmembership&task=controller.download_file&file_name=' . $fieldValue); ?>"><i class="fa fa-donwload"></i><strong><?php echo $fieldValue; ?></strong></a> <?php } } else { echo $fieldValue; } ?> </td> <?php } ?> <td class="center"><?php echo $subscriptionTypes[$row->act] ?? Text::_('OSM_TYPE_OF_SUBSCRIPTION_NEW'); ?></td> <td class="center"> <strong><?php echo HTMLHelper::_('date', $row->from_date, $this->config->date_format); ?></strong> <?php echo Text::_('OSM_TO'); ?> <strong> <?php if ($row->lifetime_membership || $row->to_date == '2099-12-31 23:59:59') { echo Text::_('OSM_LIFETIME'); } else { echo HTMLHelper::_('date', $row->to_date, $this->config->date_format); } ?> </strong> </td> <td class="center"> <?php echo HTMLHelper::_('date', $row->created_date, $this->config->date_format . ' H:i:s'); ?> </td> <td class="center"> <?php echo OSMembershipHelper::formatCurrency($row->gross_amount, $this->config, $symbol)?> </td> <?php if ($this->config->get('show_payment_method')) { ?> <td> <?php if ($row->gross_amount > 0 && isset($this->paymentPlugins[$row->payment_method])) { echo Text::_($this->paymentPlugins[$row->payment_method]->title); } ?> </td> <?php } if ($this->config->enable_coupon) { ?> <td> <?php if ($row->coupon_id) { ?> <a href="index.php?option=com_osmembership&view=coupon&id=<?php echo $row->coupon_id; ?>" target="_blank"><?php echo $row->coupon_code; ?></a> <?php } ?> </td> <?php } ?> <td class="center"> <?php switch ($row->published) { case 0 : case 1 : echo HTMLHelper::_('jgrid.published', $row->published, $i, 'subscription.'); break ; case 2 : echo Text::_('OSM_EXPIRED'); break ; case 3 : echo Text::_('OSM_CANCELLED_PENDING'); break ; case 4 : echo Text::_('OSM_CANCELLED_REFUNDED'); break ; } if ($row->recurring_subscription_cancelled) { echo '<br /><span class="text-error">' . Text::_('OSM_RECURRING_CANCELLED') . '</span>'; } ?> </td> <?php if ($this->config->auto_generate_membership_id) { ?> <td class="center"> <?php echo OSMembershipHelper::formatMembershipId($row, $this->config); ?> </td> <?php } if ($this->config->activate_invoice_feature) { ?> <td class="center"> <?php if ($row->invoice_number) { ?> <a href="<?php echo Route::_('index.php?option=com_osmembership&task=download_invoice&id=' . $row->id); ?>" title="<?php echo Text::_('OSM_DOWNLOAD'); ?>"><?php echo OSMembershipHelper::formatInvoiceNumber($row, $this->config); ?></a> <?php } ?> </td> <?php } if ($this->config->show_download_member_card) { ?> <td class="center"> <?php if ($row->activate_member_card_feature) { ?> <a href="<?php echo Route::_('index.php?option=com_osmembership&task=subscription.download_member_card&id=' . $row->id); ?>" title="<?php echo Text::_('OSM_DOWNLOAD'); ?>"><i class="icon icon-download"></i></a> <?php } ?> </td> <?php } ?> <td class="center"> <?php echo $row->id; ?> </td> </tr> <?php $k = 1 - $k; } ?> </tbody> </table> <?php echo HTMLHelper::_( 'bootstrap.renderModal', 'collapseModal', [ 'title' => Text::_('OSM_MASS_MAIL'), 'footer' => $this->loadTemplate('batch_footer'), ], $this->loadTemplate('batch_body') ); echo HTMLHelper::_( 'bootstrap.renderModal', 'collapseModal_Subscriptions', [ 'title' => Text::_('OSM_BATCH_SUBSCRIPTIONS'), 'footer' => $this->loadTemplate('batch_subscriptions_footer'), ], $this->loadTemplate('batch_subscriptions_body') ); if (PluginHelper::isEnabled('system', 'membershippro')) { echo HTMLHelper::_( 'bootstrap.renderModal', 'collapseModal_Sms', [ 'title' => Text::_('OSM_BATCH_SMS'), 'footer' => $this->loadTemplate('batch_sms_footer'), ], $this->loadTemplate('batch_sms_body') ); } if (count($this->exportTemplates)) { echo HTMLHelper::_( 'bootstrap.renderModal', 'collapseModal_Export_Template', [ 'title' => Text::_('OSM_EXPORT'), 'footer' => $this->loadTemplate('batch_export_footer'), ], $this->loadTemplate('batch_export_body') ); } ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="filter_order" value="<?php echo $this->state->filter_order; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $this->state->filter_order_Dir; ?>" /> <?php echo HTMLHelper::_('form.token'); ?> </div> </form> <?php if (!count($this->filters)) { ?> <form action="index.php?option=com_osmembership&view=subscriptions" method="post" name="subscriptionsExportForm" id="subscriptionsExportForm"> <input type="hidden" name="task" value=""/> <input type="hidden" id="export_filter_search" name="filter_search"/> <input type="hidden" id="export_filter_date_field" name="filter_date_field" /> <input type="hidden" id="export_filter_from_date" name="filter_from_date" value=""> <input type="hidden" id="export_filter_to_date" name="filter_to_date" value=""> <input type="hidden" id="export_filter_plan_id" name="plan_id" value=""> <input type="hidden" id="export_filter_category_id" name="filter_category_id" value=""> <input type="hidden" id="export_subscription_type" name="subscription_type" value=""> <input type="hidden" id="export_published" name="published" value=""> <input type="hidden" id="export_cid" name="cid" value=""> <input type="hidden" name="filter_order" value="<?php echo $this->state->filter_order; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $this->state->filter_order_Dir; ?>" /> <?php echo HTMLHelper::_('form.token'); ?> </form> <?php }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка