Skip to content

Commit

Permalink
Add TODO to print header table as Dolibarr
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-ph committed Mar 26, 2017
1 parent ae2ab32 commit ed27b44
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions htdocs/core/class/listview.class.php
Expand Up @@ -589,14 +589,17 @@ private function renderList(&$THeader, &$TField, &$TTotal, &$TTotalGroup, &$TPar
foreach($THeader as $field=>$head)
{
if(empty($head['width']))$head['width']='auto';



$out.='<th style="width:'.$head['width'].';text-align:'.$head['text-align'].'" class="liste_titre">'.$head['libelle'];

// TODO replace the actual html by this function call to print a standard output as Dolibarr then add extrafields
// $out .= getTitleFieldOfList($head, $_SERVER["PHP_SELF"],"p.ref");

if($head['order']) $out.='<span class="nowrap">
<a href="javascript:Listview_OrderDown(\''.$this->id.'\',\''.$field.'\')">'.img_down().'</a>
<a href="javascript:Listview_OrderUp(\''.$this->id.'\', \''.$field.'\')">'.img_up().'</a>
</span>';

$out.=$head['more'];
$out.='</th>';
}
Expand Down

0 comments on commit ed27b44

Please sign in to comment.