1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
|
function makeimgtag2($path, $alt = '', $usehtmlconverter = 1) {
if ($alt != '' && $usehtmlconverter == 1) $alt = htmlconverter($alt);
$path = replaceImagefolder($path);
list($width, $height, $type, $attr) = @getimagesize("./$path");
#if($height>31)
#{
$x=15-$height;
return "<img src=\"".$path."\" border=\"0\" alt=\"".$alt."\" style=\"margin: ".$x."px 0pt; padding: 0pt; vertical-align: baseline; display: inline;\" title=\"".$alt."\"/>";
#}
#else{
# return "<img src=\"".$path."\" border=\"0\" alt=\"".$alt."\" title=\"".$alt."\"/>";
#}
} |