Gossamer Forum
Home : Products : DBMan : Installation :

html.pl customization problem(s)

Quote Reply
html.pl customization problem(s)
I'm trying to ease myself into this customizing stuff slowly and have been trying to cystomize the view form on my own. Yes, I've been upping the file in Unix through BBedit (hehehehe I'm a Mac user, working on problems like this makes me wish I had a unix machine.)I keep getting an error at line 123 of html.pl which coresponds exactly at my html code area of print qq! It's a really complicated table with extra colors and such (well for me at least). If you don't mind could you point out my stupid error(s) well probably the whole donut thing. :-(

Here's the area:

sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.

my (%rec) = @_; # Load any defaults to put in the VALUE field.
($db_auto_generate and print &build_html_record(%rec) and return);

my $font_color = 'Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399';
my $font = 'Font face="Verdana, Arial, Helvetica" Size=2';

print qq|
<TABLE BORDER="4" CELLPADDING="0" CELLSPACING="2" FRAME WIDTH="700" BGCOLOR="#ffffcc">
<TR HEIGHT="13%">
<TD COLSPAN="7" BGCOLOR="#66cccc" HEIGHT="13%">$rec{'Title'}</TD>
</TR>
<TR HEIGHT="13%">
<TD BGCOLOR="#cccccc" WIDTH="9%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 1</FONT></CENTER>
</TD>
<TD WIDTH="19%" HEIGHT="13%">$rec{'Type'}</TD>
<TD BGCOLOR="#cccccc" WIDTH="13%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 2</FONT></CENTER>
</TD>
<TD WIDTH="15%" HEIGHT="13%">$rec{'Date'}</TD>
<TD BGCOLOR="#cccccc" WIDTH="7%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 3</FONT></CENTER>
</TD>
<TD WIDTH="19%" HEIGHT="13%">$rec{'ID'}</TD>
<TD WIDTH="18%" HEIGHT="13%">$rec{'Popular'}</TD>
</TR>
<TR HEIGHT="13%">
<TD BGCOLOR="#cccccc" WIDTH="9%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 4</FONT></CENTER>
</TD>
<TD WIDTH="19%" HEIGHT="13%">$rec{'Category'}</TD>
<TD BGCOLOR="#cccccc" WIDTH="13%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 5</FONT></CENTER>
</TD>
<TD WIDTH="15%" HEIGHT="13%">$rec{'Date'}</TD>
<TD BGCOLOR="#cccccc" WIDTH="7%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 6</FONT></CENTER>
</TD>
<TD WIDTH="19%" HEIGHT="13%">$rec{'Date'}</TD>
<TD ROWSPAN="4" BGCOLOR="#000066" WIDTH="18%">$rec{'ID'}</TD>
</TR>
<TR HEIGHT="13%">
<TD BGCOLOR="#cccccc" WIDTH="9%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 7</FONT></CENTER>
</TD>
<TD WIDTH="19%" HEIGHT="13%">$rec{'Date'}</TD>
<TD BGCOLOR="#cccccc" WIDTH="13%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 8</FONT></CENTER>
</TD>
<TD WIDTH="15%" HEIGHT="13%">$rec{'Date'}</TD>
<TD BGCOLOR="#cccccc" WIDTH="7%" HEIGHT="13%">
<CENTER>
<FONT SIZE="3">Box 9</FONT></CENTER>
</TD>
<TD WIDTH="19%" HEIGHT="13%">$rec{'Validated'}</TD>
</TR>
<TR HEIGHT="5%">
<TD ROWSPAN="2" BGCOLOR="#cccccc" WIDTH="9%">
<CENTER>
<FONT SIZE="3">Box 10</FONT><BR>
</CENTER>
</TD>
<TD ROWSPAN="2" COLSPAN="5">$rec{'Description'}</TD>
</TR>
<TR HEIGHT="5%"></TR>
<TR HEIGHT="13%">
<TD COLSPAN="6" HEIGHT="13%">
<DIV ALIGN="left">
<A HREF="$rec{'URL'}">'</A><A HREF="$rec{'URL'}">$rec{URL'}</A></DIV>
</TD>
<TD ROWSPAN="3" BGCOLOR="#ccffff" WIDTH="18%">$rec{'ID'}</TD>
</TR>
<TR HEIGHT="10%">
<TD COLSPAN="6" HEIGHT="10%">
<DIV ALIGN="left">
<FONT SIZE="2">Box 11</FONT></DIV>
</TD>
</TR>
<TR HEIGHT="13%">
<TD COLSPAN="6" HEIGHT="13%">
<DIV ALIGN="left">
<FONT SIZE="2">Home Page: </FONT><A HREF="$rec{'URL'}">$rec{'URL'}</A></DIV>
</TD>
</TR>
</TABLE>
|;
}


------------------
Thanks for everything !
Quote Reply
Re: html.pl customization problem(s) In reply to
 
Quote:
<A HREF="$rec{'URL'}">$rec{URL'}</A>

Your missing a single quote ' in URL.

Cheers,

Alex
Quote Reply
Re: html.pl customization problem(s) In reply to
Sh_T ... Sh_T ... Sh_T ... Sh_T !!!!

Ahhhhhhhhhhhh ...

Okay the fit is over.

Gosh darn, all that sweat and frustration over one little " ' " single quote mark. And I thought I wasn't even fit to edit my own page.

Thousands of Thanks for saving me hours of connecting to the net and starring at my monitor.

Happy Happy Joy Joy

------------------
Thanks for everything !