forked from ohrionmartin/subform-power
Update
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesController.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountryController.php
|
||||
@@ -71,6 +71,22 @@ class CountryController extends FormController
|
||||
*/
|
||||
protected $view_list = 'countries';
|
||||
|
||||
/**
|
||||
* Referral value
|
||||
*
|
||||
* @var string
|
||||
* @since 5.0
|
||||
*/
|
||||
protected string $ref;
|
||||
|
||||
/**
|
||||
* Referral ID value
|
||||
*
|
||||
* @var int
|
||||
* @since 5.0
|
||||
*/
|
||||
protected int $refid;
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrenciesController.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrencyController.php
|
||||
@@ -71,6 +71,22 @@ class CurrencyController extends FormController
|
||||
*/
|
||||
protected $view_list = 'currencies';
|
||||
|
||||
/**
|
||||
* Referral value
|
||||
*
|
||||
* @var string
|
||||
* @since 5.0
|
||||
*/
|
||||
protected string $ref;
|
||||
|
||||
/**
|
||||
* Referral ID value
|
||||
*
|
||||
* @var int
|
||||
* @since 5.0
|
||||
*/
|
||||
protected int $refid;
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage DisplayController.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage ImportController.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage SubformpowerController.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage SubformpowerComponent.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesField.php
|
||||
@@ -25,6 +25,7 @@ use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
// No direct access to this file
|
||||
\defined('_JEXEC') or die;
|
||||
@@ -79,7 +80,7 @@ class CountriesField extends ListField
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
// get the return value.
|
||||
$_uri = (string) \Joomla\CMS\Uri\Uri::getInstance();
|
||||
$_uri = (string) Uri::getInstance();
|
||||
$_return = urlencode(base64_encode($_uri));
|
||||
// load return value.
|
||||
$ref .= '&return=' . $_return;
|
||||
@@ -110,12 +111,14 @@ class CountriesField extends ListField
|
||||
// build script
|
||||
$script[] = "
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.getElementById('jform_".$button_code_name."').addEventListener('change', function(e) {
|
||||
let ".$button_code_name."Field = document.getElementById('jform_".$button_code_name."');
|
||||
if (!".$button_code_name."Field) { return; }
|
||||
".$button_code_name."Field.addEventListener('change', function(e) {
|
||||
e.preventDefault();
|
||||
let ".$button_code_name."Value = this.value;
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
let ".$button_code_name."Value = document.getElementById('jform_".$button_code_name."').value;
|
||||
let ".$button_code_name."Value = ".$button_code_name."Field.value;
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
function ".$button_code_name."Button(value) {
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesfilterisoField.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesfilterisothreeField.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesfilternumcodeField.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesfilterphonecodeField.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrenciesfiltersymbolField.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HeaderCheck.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage PowerloaderHelper.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage SubformpowerHelper.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountriesModel.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountryModel.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrenciesModel.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrencyModel.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage ImportModel.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage SubformpowerModel.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage GuidRule.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CountryTable.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrencyTable.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HtmlView.php
|
||||
@@ -45,6 +45,7 @@ use JCB\Joomla\Utilities\StringHelper;
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
#[\AllowDynamicProperties]
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
/**
|
||||
@@ -109,9 +110,10 @@ class HtmlView extends BaseHtmlView
|
||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||
*
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
* @since 1.6
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
public function display($tpl = null): void
|
||||
{
|
||||
// Assign data to the view
|
||||
$this->items = $this->get('Items');
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HtmlView.php
|
||||
@@ -44,6 +44,7 @@ use JCB\Joomla\Utilities\StringHelper;
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
#[\AllowDynamicProperties]
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
/**
|
||||
@@ -132,9 +133,10 @@ class HtmlView extends BaseHtmlView
|
||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||
*
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
* @since 1.6
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
public function display($tpl = null): void
|
||||
{
|
||||
// set params
|
||||
$this->params = ComponentHelper::getParams('com_subformpower');
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HtmlView.php
|
||||
@@ -45,6 +45,7 @@ use JCB\Joomla\Utilities\StringHelper;
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
#[\AllowDynamicProperties]
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
/**
|
||||
@@ -109,9 +110,10 @@ class HtmlView extends BaseHtmlView
|
||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||
*
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
* @since 1.6
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
public function display($tpl = null): void
|
||||
{
|
||||
// Assign data to the view
|
||||
$this->items = $this->get('Items');
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HtmlView.php
|
||||
@@ -44,6 +44,7 @@ use JCB\Joomla\Utilities\StringHelper;
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
#[\AllowDynamicProperties]
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
/**
|
||||
@@ -132,9 +133,10 @@ class HtmlView extends BaseHtmlView
|
||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||
*
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
* @since 1.6
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
public function display($tpl = null): void
|
||||
{
|
||||
// set params
|
||||
$this->params = ComponentHelper::getParams('com_subformpower');
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HtmlView.php
|
||||
|
@@ -4,7 +4,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.1
|
||||
@build 21st August, 2024
|
||||
@build 4th February, 2025
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage HtmlView.php
|
||||
@@ -36,13 +36,17 @@ use JCB\Joomla\Utilities\StringHelper;
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
#[\AllowDynamicProperties]
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
/**
|
||||
* View display method
|
||||
*
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
* @since 1.6
|
||||
*/
|
||||
function display($tpl = null)
|
||||
function display($tpl = null): void
|
||||
{
|
||||
// Assign data to the view
|
||||
$this->icons = $this->get('Icons');
|
||||
@@ -104,7 +108,7 @@ class HtmlView extends BaseHtmlView
|
||||
// set page title
|
||||
$this->getDocument()->setTitle(Text::_('COM_SUBFORMPOWER_DASHBOARD'));
|
||||
// add manifest to page JavaScript
|
||||
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse('" . json_encode($this->manifest) . "');", "text/javascript");
|
||||
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse(" . json_encode($this->manifest) . ");", "text/javascript");
|
||||
// add styles
|
||||
foreach ($this->styles as $style)
|
||||
{
|
||||
|
Reference in New Issue
Block a user