Teaching Resources

General | Instructions | Cases for Discussion | Lectures | Educational Links

Educational Links

select * from dirQuery order by #url.sort# /** * Will take a number returned from a File.Filesize, calculate the number in terms of Bytes/Kilobytes/Megabytes and return the result. * v2 by Haikal Saadh * * @param number Size in bytes of the file. (Required) * @return Returns a string. * @author Kyle Morgan (admin@kylemorgan.com) * @version 2, August 7, 2006 */ function fncFileSize(size) { if ((size gte 1024) and (size lt 1048576)) { return round(size / 1024) & " KB"; } else if (size gte 1048576) { return decimalFormat(size/1048576) & " MB"; } else { return "#size# bytes"; } }
Name Size Type Last Modified
class="pdf" class="doc" class="powerpoint" class="folder" href="#q.name#">#q.name# #fncFileSize(q.size)#  PDF MS Word MS PowerPoint Folder #DateFormat(q.datelastmodified, "m/d/yyyy")# #TimeFormat(q.datelastmodified, "h:mm tt")#