<?php echo $strType; ?> : </td> <td> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <?php if ($item['content_type'] == 'folder') { echo '<img border="0" width="16" height="16" src="' . $GO_THEME->images['folder'] . '" />'; echo ' </td><td valign="top">'; echo $fbFolder; } else { echo '<img border="0" width="16" height="16" src="' . get_filetype_image($item['extension']) . '" />'; echo ' </td><td valign="top">'; echo $item['content_type_friendly']; if ($item['content_type'] != $item['content_type_friendly'] && $item['content_type'] != '') { echo '<br />(' . $item['content_type'] . ')'; } } ?> </td> </tr> </table> </td> </tr> <tr> <td><?php echo $strSize;
require $GO_LANGUAGE->get_language_file('cms'); require $GO_THEME->theme_path . 'header.inc'; echo '<input type="hidden" name="template_file_id" />'; echo '<input type="hidden" name="task" />'; echo '<table border="0" cellpadding="3" cellspacing="0"><tr>'; echo '<td width="16"> </td>'; echo '<td width="100" nowrap><h3>' . $strName . '</h3></td>'; echo '<td width="100" nowrap><h3>' . $strType . '</h3></td></tr>'; //list the files $total_size = 0; $count_files = $cms->get_template_files($_REQUEST['template_id']); while ($cms->next_record()) { $total_size += $cms->f('size'); $short_name = cut_string($cms->f('name'), 30); echo '<tr class="Table1">'; echo '<td><img width="16" height="16" border="0" src="' . get_filetype_image($cms->f('extension')) . '" /></td>'; echo '<td nowrap> <a href="javascript:paste_url(\'' . $GO_MODULES->url . 'template_file.php?template_file_id=' . $cms->f('id') . '\')" title="' . $cms->f('name') . '">' . $short_name . '</a> </td>'; echo '<td nowrap>' . $cms->f('content_type_friendly') . ' </td></tr>'; } echo '<tr><td colspan="99" height="18"> ' . $count_files . ' ' . $cms_items . '</td></tr>'; echo '</table> <script type="text/javascript"> function paste_url(url) { var textarea = opener.document.forms[0].' . $_REQUEST['SET_FIELD'] . '; if (document.all) { textarea.value=url+"\\r\\n"+textarea.value }else
$total_size += $cms->f('size'); $short_name = strip_extension(cut_string($cms->f('name'), 30)); echo '<tr id="file_' . $cms->f('id') . '" class="Table1">'; echo '<td><input onclick="javascript:file_click(this)" type="checkbox" name="files[]" value="' . $cms->f('id') . '" id="' . $cms->f('name') . '" /></td>'; echo '<td nowrap>'; if (in_array($cms->f('extension'), $image_filter)) { echo '<a href=\'javascript:_insertImage("' . $GO_MODULES->full_url . 'download.php?site_id=' . $site_id . '&file_id=' . $cms->f('id') . '");\' title="' . $cms->f('name') . '">'; } else { if ($cms->f('title') != '') { $link_name = $cms->f('title'); } else { $link_name = strip_extension($cms->f('name')); } echo '<a href=\'javascript:_insertHyperlink("' . $GO_MODULES->full_url . 'view.php?site_id=' . $site_id . '&file_id=' . $cms->f('id') . '", "' . $link_name . '");\' title="' . $cms->f('name') . '">'; } echo '<img width="16" height="16" border="0" src="' . get_filetype_image($cms->f('extension')) . '" align="absmiddle" /> '; if (isset($cut_files) && in_array($cms->f('id'), $cut_files)) { echo '<font color="#7d7d7d">' . $short_name . '</font></a> </td>'; } else { echo $short_name . '</a> </td>'; } echo '<td nowrap>' . $cms->f('friendly') . ' </td>'; /* echo '<td nowrap align="right">'.format_size($cms->f('size')).' </td>'; echo '<td nowrap>'.date($_SESSION['GO_SESSION']['date_format'], $cms->f('mtime')).' </td>'; */ echo '<td nowrap align="center">' . $cms->f('priority') . '</td>'; echo '</tr>'; echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>'; } $count_items = $count_folders + $count_files;