コード例 #1
0
ファイル: index.php プロジェクト: TAASA/Dolibarr-ERP-3.8.1
    if ($showweather) {
        print '<td class="nohover hideonsmartphone" rowspan="' . $rowspan . '" width="80" style="border-left: 1px solid #DDDDDD" align="center">';
        $text = '';
        if ($totallate > 0) {
            $text = $langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate") . ' (' . $langs->transnoentitiesnoconv("NActionsLate", $totallate) . ')';
        }
        $options = 'height="64px"';
        if ($rowspan <= 2) {
            $options = 'height="24"';
        } else {
            if ($rowspan <= 3) {
                $options = 'height="48"';
            }
        }
        // Weather logo is smaller if dashboard has few elements
        print showWeather($totallate, $text, $options);
        print '</td>';
        $showweather = 0;
    }
    print '</tr>';
    print "\n";
}
print '</table>';
// End table array
print '</div></div></div><div class="fichecenter"><br>';
/*
 * Show boxes
 */
FormOther::printBoxesArea($user, "0");
print '</div>';
/*
コード例 #2
0
ファイル: index.php プロジェクト: NoisyBoy86/Dolibarr_test
    if ($board->nbtodolate > 0) $boxwork.=img_picto($langs->trans("NActionsLate",$board->nbtodolate).' (>'.ceil($board->warning_delay).' '.$langs->trans("days").')',"warning");
    else $boxwork.='&nbsp;';
    $boxwork.='</td>';
    /*print '<td class="nowrap" align="right">';
    print ' (>'.ceil($board->warning_delay).' '.$langs->trans("days").')';
    print '</td>';*/
    
    if ($showweather)
    {
        $boxwork.='<td class="nohover hideonsmartphone" rowspan="'.$rowspan.'" width="80" style="border-left: 1px solid #DDDDDD" align="center">';
        $text='';
        if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate",$totallate).')';
        $options='height="64px"';
        if ($rowspan <= 2) $options='height="24"';  // Weather logo is smaller if dashboard has few elements
        else if ($rowspan <= 3) $options='height="48"';  // Weather logo is smaller if dashboard has few elements
        $boxwork.=showWeather($totallate,$text,$options);
        $boxwork.='</td>';
        $showweather=0;
    }
    $boxwork.='</tr>';
    $boxwork.="\n";
}

$boxwork.='</table>';   // End table array of working board
$boxwork.='</div>';

//print $boxwork;

print '</div></div></div><div class="clearboth"></div>';

print '<div class="fichecenter fichecenterbis">';