Gossamer Forum
Home : Products : DBMan : Installation :

Formatting page of search results - table?

Quote Reply
Formatting page of search results - table?
I was able to create a table column on the right side of the search results, but can't for the life of me figure out how to create a third column on the right side of the search results.

...for instance, if I want to put some pictures or ads on the right side of the search results.

If someone could look at:

www.bestweb.net/~cyborgny/tob/cgi-bin/dbman/main.html

look up Acadia Parish and you'll see some text to the right of the search result, but I can't get anything to the right of it.

THANKS!

Lenny
Quote Reply
Re: Formatting page of search results - table? In reply to
You would just need to add another table cell to your table after the search results print out.


------------------
JPD





Quote Reply
Re: Formatting page of search results - table? In reply to
Are you using the "user-friendly" html.pl file?

With this text you want to put on the right side -- is it part of the record or is it something you want printed out on every page?

Yes, you can use <td rowspan=4>.


------------------
JPD





Quote Reply
Re: Formatting page of search results - table? In reply to
Thanks, but where is that exactly in html.pl ?

If I have a search "field" on every consecutive line, but then I want to put a graphic whose height would be the equivalent of four lines, could I use a rowspan=4 tag in the <TR> ??

Thanks!

Lost in NYC
Quote Reply
Re: Formatting page of search results - table? In reply to
Actually, I think it's a good idea for you to be using the "user-friendly" html.pl file. It will make things a lot simpler.

Add the text you want on the right side of your pages to sub html_page_bottom.

Let's see if I can work out an example.

Code:
Welcome to my database!

some your some
stuff record stuff
on information on
the goes the
left here right

That's what you want, right?

In sub html page bottom you have your background and colors and that sort of thing first. Then you have

Code:
Welcome to my site!
<table><tr><td>
some<BR>
stuff<BR>
on<BR>
the<BR>
left<BR></td>
<td>

Your sub html_record is in a table, which goes into the cell that was started in the last line above.

In sub html_page_bottom, you would use

Code:
</td>
<td>
some<BR>
stuff<BR>
on<BR>
the<BR>
right<BR></td></table>

Does this make any sense?

------------------
JPD





Quote Reply
Re: Formatting page of search results - table? In reply to
Yes, I'm using the "user-friendly" html.pl (I hope that's a good thing) and yes this is something I want to appear on every page (like ads) not in the search fields. I may also ad some javascript to rotate these.

Thanks again!

lkz