⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.jsp

📁 jsp浏览器
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ include file="conf.jsp"%>
<%
//文件管理系统 V1.0
//2009-2-17
//woody_2006@163.com
String action = request.getParameter("action");
String file = new String(request.getParameter("file").getBytes("iso-8859-1"),"GBK");
if("update".equals(action))
{
	String code = new String(request.getParameter("code").getBytes("iso-8859-1"),"GBK");
	FileUtil.deleteFile(file);
	FileUtil.createFile(file,code);
	out.println(Tool.makeSimpleMsg("文件保存成功!"));
}
String code = FileUtil.readFile2String(file);
String top = "";
if(!Tool.isEmp(file))
{
	String[] tmp = file.split("/");
	if(tmp.length>1)
	{
		for(int i=0;i<tmp.length-1;i++)
			top += tmp[i]+"/";
	}
}
%>
<html>
<head>
<title>文件管理系统 V1.0 by woody_2006@163.com</title>
<link href="skin_1/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<form action="" target=_self method="post">
	<input type=hidden value="<%=file%>" name="file"/>
	<input type=hidden value="update" name="action"/>
	<br/><p align=center><font size="3"><b>文件管理系统 V1.0</b></font></p>
	<table id="tablehovered1" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
		<tr>
			<th height="25" >
				文件编辑器
			</th>
		</tr>
		<tr>
			<td  width="15%" height="30" class="tablerow2">
				文件源代码
			</td>
		</tr>
		<tr>
			<td  width="15%" height="30" class="tablerow1" align=center>
				<textarea rows="30" cols="155" name="code"><%=code%></textarea>
			</td>
		</tr>
	</table>
	<p align=center><input type="submit" value=" 保 存 " class="button"/>&nbsp;&nbsp;
	<input type=button onclick="location.href='index.jsp?parent=<%=top%>'" value=" 返 回 " class="button"/></p>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -