Gossamer Forum
Home : Products : Others : MySQLMan :

Changing browse table font size to 1

Quote Reply
Changing browse table font size to 1
Hi there,

Everything is working fine. But some of my tables have many columns. Does anyone knows how do I make the script create my table with the font size set to 1?

This way I could see my tables better.

Thanks if anyone have an answer...

Alvaro

Quote Reply
Re: Changing browse table font size to 1 In reply to
Edit the template files.

Regards,

Eliot Lee
Quote Reply
Re: Changing browse table font size to 1 In reply to
Hi Eliot,

I tried to insert an <FONT SIZE=1>, but I think the system insert all the data on the <%table_records%> below.

Could you give me an example, if you have one? I have tried some, but no success then.

This is an exemple of the table_browse.html.

</TR>
<%table_records%>
</TABLE>

Thank you very much in advance,

Alvaro.

Quote Reply
Re: Changing browse table font size to 1 In reply to
Hello,

If you just want to change the font size to 1, then you can add the the FONT tag in each <TD>ary[$i]</TD> (ie. <TD><FONT size=1>ary[$i]</FONT></TD>)in the following segment in sub table_browse.

for (my $i = 0; $i < $sth->{NUM_OF_FIELDS}; $i++) {
if ($i < $sth->{NUM_OF_FIELDS} - $pri_key_count) {
$ary[$i] =~ s/(\r|\n)+/<BR>\n/g;
if (defined($ary[$i])) { if ($ary[$i] ne '') { $record .= "<TD>$ary[$i]</TD>"; }

# put a space in the cell for display purpose.
else { $record .= "<TD>& nbsp;</TD>"; }
}
else {
if ($config{'show_null'}) { $record .= "<TD><FONT COLOR=green>NULL</FONT></TD>"; }
else { $record .= "<TD>$ary[$i]</TD>"; }
}
}

Cheers,

--
Gossamer Threads, Inc.
Quote Reply
Re: Changing browse table font size to 1 In reply to
Hi Steven,

Thanks for the help. It's working fine.

Cheers,