Clean code
This commit is contained in:
parent
5fd88f438f
commit
84e197e48a
@ -2071,10 +2071,8 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0;
|
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0;
|
||||||
|
|
||||||
$notooltip=0;
|
|
||||||
|
|
||||||
$result=''; $label='';
|
$result=''; $label='';
|
||||||
$link=''; $linkstart=''; $linkend='';
|
$linkstart=''; $linkend='';
|
||||||
|
|
||||||
if (! empty($this->photo))
|
if (! empty($this->photo))
|
||||||
{
|
{
|
||||||
@ -2107,7 +2105,7 @@ class Adherent extends CommonObject
|
|||||||
if ($add_save_lastsearch_values) $url.='&save_lastsearch_values=1';
|
if ($add_save_lastsearch_values) $url.='&save_lastsearch_values=1';
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = '<a href="'.$url.'"';
|
$linkstart.= '<a href="'.$url.'"';
|
||||||
$linkclose="";
|
$linkclose="";
|
||||||
if (empty($notooltip))
|
if (empty($notooltip))
|
||||||
{
|
{
|
||||||
@ -2121,10 +2119,10 @@ class Adherent extends CommonObject
|
|||||||
$linkclose.= ' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
|
$linkclose.= ' class="classfortooltip'.($morecss?' '.$morecss:'').'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
$link.=$linkclose.'>';
|
$linkstart.=$linkclose.'>';
|
||||||
$linkend='</a>';
|
$linkend='</a>';
|
||||||
|
|
||||||
$result.=$link;
|
$result.=$linkstart;
|
||||||
if ($withpictoimg) $result.='<div class="inline-block nopadding valignmiddle">';
|
if ($withpictoimg) $result.='<div class="inline-block nopadding valignmiddle">';
|
||||||
if ($withpictoimg)
|
if ($withpictoimg)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -699,7 +699,7 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
|||||||
|
|
||||||
// resume
|
// resume
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
if ($total_projectlinesa_planned){
|
if ($total_projectlinesa_planned) {
|
||||||
print '</span>';
|
print '</span>';
|
||||||
print ' <div class="progress sm" title="'.$totalAverageDeclaredProgress.'%" >';
|
print ' <div class="progress sm" title="'.$totalAverageDeclaredProgress.'%" >';
|
||||||
print ' <div class="progress-bar '.$progressBarClass.'" style="width: '.$totalAverageDeclaredProgress.'%"></div>';
|
print ' <div class="progress-bar '.$progressBarClass.'" style="width: '.$totalAverageDeclaredProgress.'%"></div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user