+ ucfirst($cust_main->status). '</FONT></B>';
+
+ my @part_tag = $cust_main->part_tag;
+ if ( @part_tag ) {
+ $html .= '<TABLE>';
+ foreach my $part_tag ( @part_tag ) {
+ $html .= '<TR><TD>'.
+ '<FONT '. ( length($part_tag->tagcolor)
+ ? 'STYLE="background-color:#'.$part_tag->tagcolor.'"'
+ : ''
+ ).
+ '>'.
+ encode_entities($part_tag->tagname.': '. $part_tag->tagdesc).
+ '</FONT>'.
+ '</TD></TR>';
+ }
+ $html .= '</TABLE>';
+ }
+
+ $html .=