ok, i got the short/long mod, and on my list all page i have it so you click on the picture to take you to the long results page. anyway, no matter what picture you click on it takes you to the first record, heres the code:
# create link to full display
$record_number = ((($nh - 1) * $db_max_hits) + $rec_count);
$long_url = $ENV{'QUERY_STRING'};
$long_url =~ s/\&nh=\d+//;
$long_url =~ s/\&mh=\d+//;
$long_url = "$db_script_url?$long_url&nh=$record_number&mh=1";
print "<TD>"; # do not remove this! It is necessary to make the records display properly
# Below is where you define what you want to appear for each record in the "short" display.
# You can make this whatever you want, and display as many fields as you would like.
# Choose which of the fields you would like for users to click on to reach the full display
# of records and use that field name in place of "Title" below.
#
# Be sure that you use <a href="$long_url"> for the link to your full record display.
# <-- Start of short display formatting -- >
print qq|
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CC3333" align="left">
<tr>
<td align="center"><small><font color="#FFFFFF" face="Arial"><strong></strong> <$font>$rec{'Year'} <$font>$rec{'Make'} <$font>$rec{'Model'}</strong></font><div
align="left"><table border="0" cellspacing="1" cellpadding="2" align="center" width="308"
height="105">
<tr>
<td bgcolor="#FFFFFF" width="148" rowspan="6" height="150" valign="middle" checked="false"><p
align="center"> |;
if (-e "$SAVE_DIRECTORY/$rec{$db_key}") {
opendir (GRAPHIC, "$SAVE_DIRECTORY/$rec{$db_key}") or &cgierr("unable to open directory: $SAVE_DIRECTORY/$rec{$db_key}. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
print qq|<a href="$long_url"><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}/$file" width="150" height="150" border="0"></a>|;
}
}
print qq|
.
.
.
you get the idea.. see anything wrong?
# create link to full display
$record_number = ((($nh - 1) * $db_max_hits) + $rec_count);
$long_url = $ENV{'QUERY_STRING'};
$long_url =~ s/\&nh=\d+//;
$long_url =~ s/\&mh=\d+//;
$long_url = "$db_script_url?$long_url&nh=$record_number&mh=1";
print "<TD>"; # do not remove this! It is necessary to make the records display properly
# Below is where you define what you want to appear for each record in the "short" display.
# You can make this whatever you want, and display as many fields as you would like.
# Choose which of the fields you would like for users to click on to reach the full display
# of records and use that field name in place of "Title" below.
#
# Be sure that you use <a href="$long_url"> for the link to your full record display.
# <-- Start of short display formatting -- >
print qq|
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CC3333" align="left">
<tr>
<td align="center"><small><font color="#FFFFFF" face="Arial"><strong></strong> <$font>$rec{'Year'} <$font>$rec{'Make'} <$font>$rec{'Model'}</strong></font><div
align="left"><table border="0" cellspacing="1" cellpadding="2" align="center" width="308"
height="105">
<tr>
<td bgcolor="#FFFFFF" width="148" rowspan="6" height="150" valign="middle" checked="false"><p
align="center"> |;
if (-e "$SAVE_DIRECTORY/$rec{$db_key}") {
opendir (GRAPHIC, "$SAVE_DIRECTORY/$rec{$db_key}") or &cgierr("unable to open directory: $SAVE_DIRECTORY/$rec{$db_key}. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
print qq|<a href="$long_url"><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}/$file" width="150" height="150" border="0"></a>|;
}
}
print qq|
.
.
.
you get the idea.. see anything wrong?