Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

% used html code doesn't work

Quote Reply
% used html code doesn't work
Hi,

Using Safari and IE on a mac the % used code (for folders) doesn't work. On Safari it just displays an emtpy box with black outline, and the same mailbox in IE displays a 100% green box.

I changed the code from div tags to this html and it works perfectly.

Code:
<table width="100%" style="border: 1px solid black; height: <%if is_ie%>10<%else%>8<%endif%>px;">
<tr>
<td bgcolor="<%if users_percent_used >= $alert_percent%>red<%elsif users_percent_used >= $warn_percent%>orange<%else%>green<%endif%>">
<img src="<%url_images%>/templates/<%t%>/clear.gif" width="<%users_percent_used%>%">
</td>
<td width="100%">
</td>
</tr>
</table>

That's using the Brewt template set.

r.
Quote Reply
Re: [ryel01] % used html code doesn't work In reply to
actually that code didn't quite work either - this does.


Code:

<table cellspacing="0" border="0" cellpadding="3" width="<%leftcol_width - 50%>">
<tr><td> <small>Space used: <%if users_percent_used >= $alert_percent%><font color="red"><b><%endif%><%users_percent_used%>%<%if users_percent_used >= $alert_percent%></b></font><%endif%></small></td></tr>
<tr>
<td>
<table width="100%" style="border: 1px solid black; height: <%if is_ie%>10<%else%>8<%endif%>px;">
<tr>
<td>
<table width="<%users_percent_used%>%">
<tr>
<td bgcolor="<%if users_percent_used >= $alert_percent%>red<%elsif users_percent_used >= $warn_percent%>orange<%else%>green<%endif%>">
<img src="<%url_images%>/templates/<%t%>/clear.gif" width="100%" height="3">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>


r