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

📄 htmledit.asp

📁 多用户个人主页系统(ASP)
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="./includes/setup.asp"-->

<%
Dim FileHTML, FileS , FileText

FileS = request("file")

' 如果文件名是空的
If FileS = "" then 
Response.write "<script>alert('对不起,文件名不能为空!');location.href='javascript:self.close()'</script>"
Response.end
End if 

	Dim fso, f
	Set fso = CreateObject("Scripting.FileSystemObject")
	Set f = fso.OpenTextFile(UsersDIRPath&FileS, 1)
	FileText = F.readall
	f.Close
	Set fso = nothing
	Set f = nothing

%>
<style type="text/css">
<!--
p,td,input,select,div,tr,body,html{   font-size: 9pt ; }
a {color:#000000;font-size: 9pt;text-decoration:underline; }
a:hover {color: #000000;text-decoration:underline; }
a:active {color:#000000;text-decoration:underline; }
.style1 {
	color: #FF0000;
	font-weight: bold;
}
-->
</style>
<html>
<head>
<title><%=sitename%>——在线编辑——<%=request("file")%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css2.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
</script>
</head>
<body background="images/06.jpg" leftMargin="0" topMargin="0">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="600"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="908" height="31" align="center"><span class="style1">当前编辑的文件</span>:<%=request("file")%>
</td>
      </tr>
      <tr>
        <td align="center"><form name="form1" method="post" action="htmlsave.asp">
            <textarea name="html" cols="70" rows="26" wrap="VIRTUAL" class="input2"><%=FileText%></textarea><br>
            <input type="hidden" name="file" value="<%=fileS%>">
            <br>
            <input type="submit" name="Submit" class="input1" value="保存">
            <input type="reset" name="Submit2" class="input1" value="还原">
        </form></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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