$files[$file1] .= '<img src="images/edit.gif" border="0" alt="' . _AT('edit') . '" title="' . _AT('edit') . '" height="15" width="18" class="img-size-fm4" />';
            $files[$file1] .= '</a>';
        }
        $files[$file1] .= '&nbsp;</td>';
        $files[$file1] .= '<td  align="right" style="white-space:nowrap">';
        if ($popup == TRUE) {
            if ($a_type > 0) {
                $files[$file1] .= '<input class="button" type="button" name="alternative" value="' . _AT('use_as_alternative') . '" onclick="javascript: setAlternative(\'' . get_relative_path($_GET['cp'], $pathext) . $file . '\', \'' . TR_BASE_HREF . $get_file . $pathext . urlencode($file) . '\', \'' . $cid . '\', \'' . $pid . '\', \'' . $a_type . '\');" />&nbsp;';
            } else {
                $files[$file1] .= '<input class="button" type="button" name="insert" value="' . _AT('insert') . '" onclick="javascript:insertFile(\'' . $file . '\', \'' . get_relative_path($_GET['cp'], $pathext) . '\', \'' . $ext . '\', \'' . $_SESSION['prefs']['PREF_CONTENT_EDITOR'] . '\');" />&nbsp;';
            }
        }
        $files[$file1] .= AT_date(_AT('filemanager_date_format'), $filedata[10], TR_DATE_UNIX_TIMESTAMP);
        $files[$file1] .= '&nbsp;</td>';
        $files[$file1] .= '<td  align="right" style="white-space:nowrap">';
        $files[$file1] .= FileUtility::get_human_size($filedata[7]) . '</td></tr>';
    }
}
// end while
// sort listing and output directories
if (is_array($dirs)) {
    ksort($dirs, SORT_STRING);
    foreach ($dirs as $x => $y) {
        echo $y;
    }
}
//sort listing and output files
if (is_array($files)) {
    ksort($files, SORT_STRING);
    foreach ($files as $x => $y) {
        echo $y;
예제 #2
0
파일: zip.php 프로젝트: harriswong/AContent
	<td align="right"><?php 
echo FileUtility::get_human_size($course_total);
?>
</td>
	<td>&nbsp;</td>
</tr>
<tr>
	<td align="right"><?php 
echo _AT('course_available_zip1');
?>
:</td>
	<td align="right"><?php 
if ($my_MaxCourseSize == TR_COURSESIZE_UNLIMITED) {
    echo _AT('unlimited');
} else {
    echo FileUtility::get_human_size($my_MaxCourseSize - $course_total);
}
?>
</td>
	<td>&nbsp;</td>
</tr>
<tr>
	<td align="right"><?php 
echo _AT('course_available_zip2');
?>
:</td>
	<td align="right"><?php 
if ($my_MaxCourseSize == TR_COURSESIZE_UNLIMITED) {
    echo _AT('unlimited');
} else {
    if ($total_after <= 0) {