Hi guys,
i want to display attachment($file) link in textarea where visitor can copy link 4 dwnld mngr. Heres code
echo "<div class='fileList'>";
$thumb = str_replace(substr($file,strrpos($file,'/')+1),'thumb-'.substr($file,strrpos($file,'/')+1),$file);
$thumb = substr($thumb,0,strrpos($thumb,'.')).'.jpg';
if(is_file($thumb)){
echo "<img src='$thumb' /><br/>";
}
echo substr($file,strrpos($file,'/')+1)." (".format_size(filesize($file)).")<br/>";
echo"<a class=\"vb\" href=\"".$file."\" onclick=\"openwin()\">Download NOW</a><br/>
i want to display attachment($file) link in textarea where visitor can copy link 4 dwnld mngr. Heres code
echo "<div class='fileList'>";
$thumb = str_replace(substr($file,strrpos($file,'/')+1),'thumb-'.substr($file,strrpos($file,'/')+1),$file);
$thumb = substr($thumb,0,strrpos($thumb,'.')).'.jpg';
if(is_file($thumb)){
echo "<img src='$thumb' /><br/>";
}
echo substr($file,strrpos($file,'/')+1)." (".format_size(filesize($file)).")<br/>";
echo"<a class=\"vb\" href=\"".$file."\" onclick=\"openwin()\">Download NOW</a><br/>
Comment