<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>{#MpTitle#}</title>
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="pragma" content="no-cache">
<meta name="copyright" content="dream4">
<meta name="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT"> 
<link href="{$tpl_dir}css/style.css" rel="stylesheet" type="text/css">
{literal}

{/literal}
</head>

<script language="JavaScript" type="text/javascript">
<!--
	function selfile(src,prv) {ldelim}
		if (prv==1)
		{ldelim}
			parent.frames['vs'].location.href = '../uploads/media{$dir}' + src;
		{rdelim} 
		else if (prv==3)
		{ldelim}
			parent.frames['vs'].location.href = '../uploads/media{$dir}' + src;
			//parent.frames['vs'].document.writeln('<img src="../uploads/media{$dir}' + src + '" border="0">');
			//parent.frames['vs'].location.href = '?do=browser&pop=1&imgfile=../uploads/media{$dir}' + src;
		{rdelim}
		else
		{ldelim}
			parent.frames['vs'].location.href = 'about:blank';
			//parent.frames['vs'].document.write('');
			//parent.frames['vs'].document.write('<img dynsrc="../uploads/media{$dir}' + src + '" border="0">');
		{rdelim}
		//parent.document.dateiname.fn.value = src;
		parent.document.dat.fn.value = src;
	{rdelim}
	function selcommon(src) {ldelim}
		parent.document.dat.fn.value = src;
	{rdelim}
	function delfile(src) {ldelim}if (window.confirm('{#FileDelC#} ' + src + ' ')) {ldelim}parent.frames['zf'].location.href = '?do=browser&pop=1&df='+src+'&typ={$smarty.request.typ}&action=delfile&dir={$dir}&file={$dir}' + src + '&cpengine={$sess}';{rdelim}{rdelim}
	parent.document.dat.dateiname.value='{$dir}';
	parent.document.getElementById('arbeitsverzeichnis').innerHTML='{$dir}';
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" id="mediapool" oncontextmenu="return false">


{strip}
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="tableborder">
  <tr>
    <td class="header">&nbsp;</td>
    <td class="header">{#MpFiles#}</td>
    <td align="center" class="header">{#MpSize#}</td>
	<td align="center" class="header">{#MpCreated#}</td>
    <td class="header">&nbsp;</td>
  </tr>
  {if $dirup==1}
  <form method="post" action="?noout=1&do=browser&pop=1&typ={$smarty.request.typ}&amp;dir={$dir}../&amp;action=list" name="updir"></form>
  <tr class="second" style="cursor:pointer" onClick="document.forms['updir'].submit();">
    <td width="5%"><div align="center"><a href="javascript:void(0);" onClick="document.forms['updir'].submit();"><img src="{$tpl_dir}/images/folder_up.gif" alt="" border="0" /></a></div></td>
    <td width="45%">
	
	&nbsp;<a href="javascript:void(0);" onClick="document.forms['updir'].submit();">..</a>&nbsp;&nbsp;</td>
   <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  {/if}
  {foreach from=$bfiles item=file}
  {assign var=id value=$id+1}
 <tr class="{cycle name='x' values='first,second'}" style="cursor:pointer" onClick="document.forms['go_folder_{$id}'].submit();">
    <td width="5%" style="padding:5px">
	<form method="post" action="?noout=1&do=browser&pop=1&typ={$file->fileopen}" name="go_folder_{$id}"></form>
	
    <div align="center"><img src="{$tpl_dir}images/folder.gif" alt="" border="0" /></div></td>
    <td width="45%">&nbsp;<a href="javascript:void(0);" onClick="selfile('');document.forms['go_folder_{$id}'].submit();"><strong>{$file->val}</strong></a>&nbsp;&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  {/foreach}
  {foreach from=$dats item=dat}
  <tr class="{cycle name='x2' values='second,first'}">
    <td width="5%">
    <div align="center"><img src="{$tpl_dir}images/mediapool/{$dat->gifend}.gif" alt="" border="0" />	</div></td>
    <td width="45%">
	
	
	{if $dat->gifend != 'php'}
	<a {popup sticky=$config_vars.POPSTICKY  sticky=false text=$lang_vars.mpFileSelectInfo} href="javascript:void(0);" onClick="
	
	{if $dat->gifend=='gif' || $dat->gifend=='png' || $dat->gifend=='jpg' || $dat->gifend=='jpeg'} 
		{if $smarty.request.typ=='all'}
			javascript:selcommon('{$dat->val}');
			{elseif $smarty.request.typ=='vide'}
			javascript:selfile('{$dat->val}',3);
			{elseif $smarty.request.type=='imglink'}
			javascript:selfile('{$dat->val}',3);
			{else}
			javascript:selfile('{$dat->val}',3);
		{/if}
	{else}
		{if $smarty.request.typ=='all'}
			javascript:selcommon('{$dat->val}');
		{elseif $smarty.request.typ=='vide'}
			javascript:selfile('{$dat->val}',3);
		{elseif $smarty.request.type=='imglink'}
			javascript:selfile('{$dat->val}',3);
		{else}
			javascript:selfile('{$dat->val}');
		{/if}
	{/if}
">

	
	{if $dat->gifend=='gif' || $dat->gifend=='png' || $dat->gifend=='jpg' || $dat->gifend=='jpeg'} 
	{$dat->bild}
	{else}
	{$dat->val}
	{/if}</a> 
	{else}
	{$dat->val}
	{/if}
	 </td>
    <td align="center">{$dat->datsize} KB</td>
	  <td align="center">{$dat->moddate}</td>
    <td align="center">

	{if $unable_delete != 1}
	{if perm('mediapool_del')}
	<a href="javascript:delfile('{$dat->val}');">
	<img src="{$tpl_dir}/images/trash.gif" alt="" border="0" />	</a>
	{/if}
	{/if}	</td>
  </tr>
  {/foreach}
</table>
{/strip}
</body>
</html>
