This commit is contained in:
Laurent Destailleur
2020-12-11 02:02:41 +01:00
parent 206caec290
commit 2f8ee92c51
4 changed files with 42 additions and 27 deletions

View File

@@ -34,6 +34,11 @@ class FormWebsite
*/
public $error;
/**
* var int A number of lines
*/
public $num;
/**
* Constructor
@@ -220,11 +225,11 @@ class FormWebsite
* @param string $action Action on page that use this select list
* @param string $morecss More CSS
* @param array $excludeids Exclude some ID in list
* @return string HTML select component with list of type of containers
* @return string HTML select component with list of block containers
*/
public function selectContainer($website, $htmlname = 'pageid', $pageid = 0, $showempty = 0, $action = '', $morecss = 'minwidth200', $excludeids = null)
{
global $langs;
$this->num = 0;
$atleastonepage = (is_array($website->lines) && count($website->lines) > 0);
@@ -273,6 +278,8 @@ class FormWebsite
$out .= '>';
$out .= $valueforoption;
$out .= '</option>';
++$this->num;
}
}
$out .= '</select>';