Src/Private/Get-HtmlLabel.ps1
Function Get-HTMLLabel { param( [string]$Label, [string]$Type, [Switch]$SubgraphLabel ) if ($Type -eq 'NoIcon') { $ICON = 'NoIcon' } elseif ($URLIcon) { $ICON = 'NoIcon' } elseif ($images[$Type]) { $ICON = $images[$Type] } else {$ICON = "no_icon.png"} if (-Not $SubgraphLabel) { if ($ICON -ne 'NoIcon') { return "<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'> <TR> <TD ALIGN='center' colspan='1'><img src='$($ICON)'/></TD> </TR> <TR> <TD ALIGN='center'>$Label</TD> </TR> </TABLE>" } else { return "<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'> <TR> <TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Veeam Logo</TD> </TR> <TR> <TD bgcolor='#FFCCCC' ALIGN='center'>$Label</TD></TR><TR><TD ALIGN='center'><font color='red'>Debug ON</font></TD> </TR> </TABLE>" } } if ($SubgraphLabel) { if ($ICON -ne 'NoIcon') { return "<TABLE border='0' cellborder='0' cellspacing='5' cellpadding='5'> <TR> <TD ALIGN='center' colspan='1' fixedsize='true' width='60' height='60'><img src='$($ICON)'/></TD> <TD ALIGN='center'>$Label</TD> </TR> </TABLE>" } else { return "<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'> <TR> <TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD> <TD bgcolor='#FFCCCC' ALIGN='center'>$Label</TD> </TR> </TABLE>" } } } |