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&amp;task=list&amp;listdir=<?php 
        echo $listdir;
        ?>
" onclick="javascript:window.top.document.forms[0].imagecode.value = '<a href=&quot;<?php 
        echo $doc_url_link;
        ?>
&quot;>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&amp;task=delete&amp;delFile=<?php 
        echo $doc;
        ?>
&amp;listdir=<?php 
        echo $listdir;
        ?>
&amp;<?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 
    }
示例#2
0
    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=&quot;<?php 
        echo $img_url;
        ?>
&quot; align=&quot;left&quot; hspace=&quot;6&quot; alt=&quot;<?php 
        echo $img_file;
        ?>
&quot; />';"><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=&quot;<?php 
        echo $img_url;
        ?>
&quot; align=&quot;left&quot; hspace=&quot;6&quot; alt=&quot;Code&quot; />';"><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 
    }