Added a link to the listtemplate images to the full record

This commit is contained in:
moodler
2006-02-06 03:06:16 +00:00
parent cd2f695055
commit 653bcc596c
+2 -1
View File
@@ -134,11 +134,12 @@ class data_field_picture extends data_field_file {// extends
if ($template == 'listtemplate') {
$width = $field->param4 ? ' width="'.$field->param4.'" ':' ';
$height = $field->param5 ? ' height="'.$field->param5.'" ':' ';
$str = '<a href="view.php?d='.$field->dataid.'&rid='.$recordid.'"><img '.$width.$height.' src="'.$source.'/'.$src.'" alt="'.$alt.'" title="'.$title.'" border="0" /></a>';
} else {
$width = $field->param1 ? ' width="'.$field->param1.'" ':' ';
$height = $field->param2 ? ' height="'.$field->param2.'" ':' ';
$str = '<img '.$width.$height.' src="'.$source.'/'.$src.'" alt="'.$alt.'" title="'.$title.'" />';
}
$str = '<img '.$width.$height.' src="'.$source.'/'.$src.'" alt="'.$alt.'" title="'.$title.'" />';
return $str;
}
return false;