2
0
forked from Wavyzz/dolibarr

Look and feel v20

This commit is contained in:
Laurent Destailleur
2024-04-01 15:04:20 +02:00
parent 3c65383533
commit e3037794aa
6 changed files with 41 additions and 21 deletions

View File

@@ -12604,16 +12604,17 @@ function getNonce()
/**
* Start a table with headers and a optional clickable number (don't forget to use "finishSimpleTable()" after the last table row)
*
* @param string $header The first left header of the table (automatic translated)
* @param string $link (optional) The link to a internal dolibarr page, when click on the number (without the first "/")
* @param string $arguments (optional) Additional arguments for the link (e.g. "search_status=0")
* @param integer $emptyRows (optional) The count of empty rows after the first header
* @param integer $number (optional) The number that is shown right after the first header, when not set the link is shown on the right side of the header as "FullList"
* @param string $header The first left header of the table (automatic translated)
* @param string $link (optional) The link to a internal dolibarr page, when click on the number (without the first "/")
* @param string $arguments (optional) Additional arguments for the link (e.g. "search_status=0")
* @param integer $emptyRows (optional) The count of empty columns after the first column
* @param integer $number (optional) The number that is shown right after the first header, when not set the link is shown on the right side of the header as "FullList"
* @param string $pictofulllist (optional) The picto to use for the full list link
* @return void
*
* @see finishSimpleTable()
*/
function startSimpleTable($header, $link = "", $arguments = "", $emptyRows = 0, $number = -1)
function startSimpleTable($header, $link = "", $arguments = "", $emptyRows = 0, $number = -1, $pictofulllist = '')
{
global $langs;
@@ -12657,7 +12658,12 @@ function startSimpleTable($header, $link = "", $arguments = "", $emptyRows = 0,
print '<a class="commonlink" href="'.DOL_URL_ROOT.'/'.$link.'">';
}
print $langs->trans("FullList");
if ($pictofulllist) {
print img_picto($langs->trans("FullList"), $pictofulllist);
} else {
print $langs->trans("FullList");
}
print '</a>';
print '</th>';
}