Gossamer Forum
Home : Products : DBMan : Customization :

Not getting any search results.

(Page 3 of 3)
> >
Quote Reply
Re: Not getting any search results. In reply to
I just tried your search page again. Looks like you removed the line

&html_print_headers;

from sub html_view_search. You need to have that in there! Smile


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





Quote Reply
Re: Not getting any search results. In reply to
Deni.
I inserted
unless ($i%3) {
print qq|<tr valign="top">|;
}
to my cgi file after
foreach $name (@names) {
(grep $_ eq $name, @values) ?
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VALUE="$name" CHECKED> $name\n!) :
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VALUE="$name"> $name\n!);
}
return $output;
}
and still doesn't wanna change. What am I doing wrong??
Quote Reply
Re: Not getting any search results. In reply to
Again, I was unclear.

The
Code:
unless ($i%3) {
print qq|<tr valign="top">|;
}

Does not go into db.cgi. Take it out of that file.

It is a replacement for the code in sub html_record_form and sub html_search_form.

Look carefully at the code in both of those subroutines and find

Code:
unless ($i%3) {
print "<tr>";
}

That's where you need to put the align=top code.


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





Quote Reply
Re: Not getting any search results. In reply to
Deni.
Thanks for all your help today. Here are the directories that have all the file that I modified
styleforliving.com/dbman/db_cgi.txt
styleforliving.com/dbman/default_cfg.txt
styleforliving.com/dbman/html_pl.txt

I deleted some stuff in sub html_view_search. Let me know if this is gonna be problematic. So far it seems to be working OK with the lines deleted~~~>thats sort of the look I wanna achieve.
By the way, how do I make links from the BB??

[This message has been edited by JayR (edited August 28, 1999).]
Quote Reply
Re: Not getting any search results. In reply to
Deni.
How do I make links on the URL field??? and is there a code associated with the target frame that I need to inser in PERL or can I do that with HTML??
Quote Reply
Re: Not getting any search results. In reply to
Regarding frames -- if the DBMan pages are all going to be within the same frame, you don't need to worry about target frames within DBMan. Just use the frames stuff in the URLs in your menus.

To get a url to print out, use

<a href="$rec{'URL'}>$rec{'URL'}</a>

To make your checkboxes a little nicer, one thing you can do is to go into db.cgi and look for sub build_checkbox_field

In that subroutine, look for

Code:
foreach $name (@names) {
(grep $_ eq $name, @values) ?
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VALUE="$name" CHECKED> $name\n!) :
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VALUE="$name"> $name\n!);
}

Instead of the space before $name in the lines above, use &nbsp;. That will keep the checkbox and the words on the same line.

You also might want to add tags to your tables to vertically align the rows to the top, in case there's something that ends up going over two lines.

Code:
unless ($i%3) {
print "<tr valign=top>";
}

The other thing I would do is to make the table width 100%

<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=1 BGCOLOR="#FFFFCC">

I think that will look a lot better.

You can, of course, change the background color for the table to anything you want.

Not to worry about "cutting and pasting." I know you're learning some as we're going along. Besides, the code for printing out the checkboxes is pretty advanced. I could have made you type in all those things, but this is much better. Smile

Also, I know you're on a time schedule, so it's faster to give you the code than to make you work for it. Smile


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





Quote Reply
Re: Not getting any search results. In reply to
You are DA BOMB JPD. No other words. THANK YOU
Quote Reply
Re: Not getting any search results. In reply to
Deni.
I did this:
Instead of the space before $name in the lines above, use . That will keep the checkbox and the words on the same line.
and got that nasty 500 error. I will put the modified .cgi file in the followint path
styleforliving.com/dbman/db_cgi.txt

Thanks
Quote Reply
Re: Not getting any search results. In reply to
I should have been more specific. Make the lines look like

Code:
foreach $name (@names) {
(grep $_ eq $name, @values) ?
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VALUE="$name" CHECKED>&nbsp;$name\n!) :
($output .= qq!<INPUT TYPE="CHECKBOX" NAME="$column" VALUE="$name">&nbsp;$name\n!);
}



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





Quote Reply
Re: Not getting any search results. In reply to
I did it and still getting that error.
here is the updated code
styleforliving.com/dbman/db_cgi.txt
did I do something wrong again???
> >