git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
{literal}
|
|
<script>
|
|
function cleanupFolder(path)
|
|
{
|
|
if (confirm('{/literal}{i18n}Are you sure you want to clear{/i18n}{literal} ' + path + '?'))
|
|
{
|
|
document.location = "{/literal}{$dispatcherURL}{literal}?action=cleanup&folder=" + path;
|
|
}
|
|
}
|
|
</script>
|
|
{/literal}
|
|
|
|
<table border=0 cellspacing="1" cellpadding="1" width="100%">
|
|
<tr>
|
|
<td ><B>{i18n}Description{/i18n}</td>
|
|
<td width="80" align="center"><B># {i18n}Files{/i18n}</td>
|
|
<td width="130" align="center"><B>{i18n}Space Used{/i18n}</td>
|
|
<td width="80" align="center"><B>{i18n}Action{/i18n}</td>
|
|
</tr>
|
|
<tr><td colspan=4><hr></tr>
|
|
{section name=usage loop=$usages}
|
|
{if $usages[usage].folder!= ''}
|
|
<tr>
|
|
<td><i>{$usages[usage].description}</i><br>({$usages[usage].folder}) </td>
|
|
<td align=right>{$usages[usage].files} </td>
|
|
<td align=right>{$usages[usage].filesize} </td>
|
|
<td align="center">{if $usages[usage].canClean}<a href="javascript:cleanupFolder('{$usages[usage].folder}')">{i18n}cleanup{/i18n}</a>{else}{i18n}N/A{/i18n}{/if} </td>
|
|
</tr>
|
|
{/if}
|
|
{/section}
|
|
<tr><td colspan=4><hr></tr>
|
|
</table>
|