function show_doc($doc, $size, $listdir, $icon) { $size = HTML_Media::parse_size($size); $doc_url_link = COM_MEDIA_BASEURL . $listdir . '/' . rawurlencode($doc); $overlib = 'Filesize: ' . $size; $overlib .= '<br/><br/> *Clique para Url*'; ?> <div style="float:left; padding: 5px"> <div class="imgTotal" onmouseover="return overlib( '<?php echo $overlib; ?> ', CAPTION, '<?php echo $doc; ?> ', BELOW, RIGHT, WIDTH, 200 );" onmouseout="return nd();"> <div align="center" class="imgBorder"> <a href="index3.php?option=com_media&task=list&listdir=<?php echo $listdir; ?> " onclick="javascript:window.top.document.forms[0].imagecode.value = '<a href="<?php echo $doc_url_link; ?> ">Insert your text here</a>';"> <img border="0" src="<?php echo $icon; ?> " alt="<?php echo $doc; ?> " /></a> </div> </div> <div class="imginfoBorder"> <small> <?php echo $doc; ?> </small> <div class="buttonOut"> <a href="index2.php?option=com_media&task=delete&delFile=<?php echo $doc; ?> &listdir=<?php echo $listdir; ?> &<?php echo josSpoofValue(); ?> =1" target="_top" onclick="return deleteImage('<?php echo $doc; ?> ');"> <img src="components/com_media/images/edit_trash.gif" width="15" height="15" border="0" alt="Delete" /></a> </div> </div> </div> <?php }
function show_image($img, $file, $info, $size, $listdir) { global $mosConfig_live_site; $img_file = basename($img); $img_url = $mosConfig_live_site . '/images/stories' . $listdir . '/' . $img_file; $filesize = HTML_Media::parse_size($size); ?> <td> <table width="102" border="0" cellpadding="0" cellspacing="2"> <tr> <td align="center" class="imgBorder"> <a href="javascript:;" onClick="javascript:window.top.document.forms[0].imagecode.value = '<img src="<?php echo $img_url; ?> " align="left" hspace="6" alt="<?php echo $img_file; ?> " />';"><img src="<?php echo $img_url; ?> " <?php echo HTML_Media::imageResize($info[0], $info[1], 80); ?> alt="<?php echo $file; ?> - <?php echo $filesize; ?> " border="0"></a></td> </tr> <tr> <td> <?php echo $file; ?> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="1%" class="buttonOut"> <a href="javascript:;" onClick="javascript:window.top.document.forms[0].imagecode.value = '<img src="<?php echo $img_url; ?> " align="left" hspace="6" alt="Code" />';"><img src="components/com_media/images/edit_pencil.gif" width="15" height="15" border="0" alt="<?php echo T_('Code'); ?> "></a></td> <td width="1%" class="buttonOut"> <a href="index2.php?option=com_media&task=delete&delFile=<?php echo $file; ?> &listdir=<?php echo $listdir; ?> " target="_top" onClick="return deleteImage('<?php echo $file; ?> ');"><img src="components/com_media/images/edit_trash.gif" width="15" height="15" border="0" alt="<?php echo T_('Delete'); ?> "></a></td> <td width="98%" class="imgCaption"><?php echo $info[0] . 'x' . $info[1]; ?> </td> </tr> </table></td> </tr> </table> </td> <?php }