-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qual: Fix notices formsetup...formwebsite.class
- Loading branch information
Showing
3 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
/* Copyright (C) 2017 Laurent Destailleur <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -27,6 +28,9 @@ | |
*/ | ||
class FormWebsite | ||
{ | ||
/** | ||
* @var DoliDB | ||
*/ | ||
private $db; | ||
|
||
/** | ||
|
@@ -35,7 +39,7 @@ class FormWebsite | |
public $error; | ||
|
||
/** | ||
* var int A number of lines | ||
* @var int A number of lines | ||
*/ | ||
public $num; | ||
|
||
|
@@ -251,10 +255,10 @@ public function selectSampleOfContainer($htmlname, $selected = '', $useempty = 0 | |
* @param Website $website Object Website | ||
* @param string $htmlname Name of select zone | ||
* @param int $pageid Preselected container ID | ||
* @param int $showempty Show empty record | ||
* @param int<0,1> $showempty Show empty record | ||
* @param string $action Action on page that use this select list | ||
* @param string $morecss More CSS | ||
* @param array $excludeids Exclude some ID in list | ||
* @param null|string[] $excludeids Exclude some ID in list | ||
* @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) | ||
|
@@ -385,7 +389,7 @@ public function getContentPageTemplate($htmlContent = 'message') | |
|
||
$out .= '<div class="template-option" data-template="'.$template.'" data-content="'.htmlentities($contentHtml).'">'; | ||
$out .= '<img class="maillayout" alt="'.$template.'" src="'.DOL_URL_ROOT.'/theme/common/maillayout/'.$template.'.png" />'; | ||
$out .= '<span class="template-option-text">'.($template != 'text' ? ucfirst($template) : ucfirst($templateFunction)).'</span>'; | ||
$out .= '<span class="template-option-text">'.($template != 'text' ? ucfirst($template) : ucfirst($templateFunction)).'</span>'; | ||
$out .= '</div>'; | ||
} | ||
$out .= '<input type="hidden" name="sample" value="" />'; | ||
|