Here is another mod for browsing URL's in the Admin Center:
Find sub build_html_record in db_utils_pl :
Origin Version of sub build_html_record
# --------------------------------------------------------
my (%rec) = @_;
my ($output, $field);
$output = "<p><table border=0 cellpadding=3 cellspacing=1 width=500>\n";
foreach $field (@db_cols) {
next if ($db_form_len{$field} == -1);
$output .= qq~
<tr><td align=right valign=top width=20% bgcolor=#F0F0F0><$font>$field:</font></td>
<td width=80% bgcolor=#F0F0F0><$font>$rec{$field}</font></td></tr>
~;
}
$output .= "</table></p>\n";
return $output;
}
Modified Version :
# --------------------------------------------------------
my (%rec) = @_;
my ($output, $field);
$output = "<p><table border=0 cellpadding=3 cellspacing=1 width=500>\n";
foreach $field (@db_cols) {
next if ($db_form_len{$field} == -1);
if ($field eq "DownloadURL" or $field eq "Image" ) {
$output .= qq~
<tr><td align=right valign=top width=20% bgcolor="#F0F0F0"><$font><a href="$rec{$field}" target="_blank">$field:</a></font></td>
<td width=80% bgcolor="#F0F0F0"><$font>$rec{$field}</font></td></tr>
~; }
else { $output .= qq~
<tr><td align=right valign=top width=20% bgcolor=#F0F0F0><$font>$field:</font></td>
<td width=80% bgcolor=#F0F0F0><$font>$rec{$field}</font></td></tr>
~; }
}
$output .= "</table></p>\n";
return $output;
}
Explanation:
See attachement - links.def
DownloadURL : contains an url
Image : contains an url (screenshot)
You must modify the code to your requirements.
(English users: I hope the last sentence does not sound not like "Broken English" ... )
(German users: Ihr müsst den Code Schnipsel nur noch an eure Bedürfnisse anpassen)
I know it`s only a small mod - but I hope it is useful.
.
Andreas
Dr.Windows
Supernature Forum
Find sub build_html_record in db_utils_pl :
Origin Version of sub build_html_record
Code:
sub build_html_record { # --------------------------------------------------------
my (%rec) = @_;
my ($output, $field);
$output = "<p><table border=0 cellpadding=3 cellspacing=1 width=500>\n";
foreach $field (@db_cols) {
next if ($db_form_len{$field} == -1);
$output .= qq~
<tr><td align=right valign=top width=20% bgcolor=#F0F0F0><$font>$field:</font></td>
<td width=80% bgcolor=#F0F0F0><$font>$rec{$field}</font></td></tr>
~;
}
$output .= "</table></p>\n";
return $output;
}
Modified Version :
Code:
sub build_html_record { # --------------------------------------------------------
my (%rec) = @_;
my ($output, $field);
$output = "<p><table border=0 cellpadding=3 cellspacing=1 width=500>\n";
foreach $field (@db_cols) {
next if ($db_form_len{$field} == -1);
if ($field eq "DownloadURL" or $field eq "Image" ) {
$output .= qq~
<tr><td align=right valign=top width=20% bgcolor="#F0F0F0"><$font><a href="$rec{$field}" target="_blank">$field:</a></font></td>
<td width=80% bgcolor="#F0F0F0"><$font>$rec{$field}</font></td></tr>
~; }
else { $output .= qq~
<tr><td align=right valign=top width=20% bgcolor=#F0F0F0><$font>$field:</font></td>
<td width=80% bgcolor=#F0F0F0><$font>$rec{$field}</font></td></tr>
~; }
}
$output .= "</table></p>\n";
return $output;
}
Explanation:
See attachement - links.def
DownloadURL : contains an url
Image : contains an url (screenshot)
You must modify the code to your requirements.
(English users: I hope the last sentence does not sound not like "Broken English" ... )
(German users: Ihr müsst den Code Schnipsel nur noch an eure Bedürfnisse anpassen)
I know it`s only a small mod - but I hope it is useful.
.
Andreas
Dr.Windows
Supernature Forum

