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

📄 clubfileedit.jsp

📁 特色: 1.今晚在线社区独有的双风格分桢形式 2.社区最多可进行3级分类
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="../GVinc/gvInclude.jsp" %>
<%@ include file="clubMasterPass.jsp" %>
<jsp:useBean id="fo" scope="page" class="com.gamvan.tools.FileOperate" />
<% 	
//权限判断共享代码
boolean ispass = false;
//ArrayEdit ae = new ArrayEdit();
ispass = ae.txtsArray(gvcmgTxt,20,"|");
if(!ispass){
	out.print(prtCenter2("您无权进行此项操作!","",2));
	out.close();
}
int type = 0;
type = TypeChange.stringToInt(request.getParameter("type"));
String fileContent = "";
String filePathAndName=request.getRealPath("");
if(type==2){
	filePathAndName += "\\club\\GVscriptInc\\links.js";  //绝对路径
}else if(type==1){
	filePathAndName += "\\club\\GVscriptInc\\toplogo.js";  //绝对路径
}else if(type==3){
	filePathAndName += "\\club\\GVscriptInc\\topBar.js";  //绝对路径
}
else{
	filePathAndName += "\\club\\GVscriptInc\\toplogo.js";  //绝对路径
}

if(request.getMethod().equals("POST")){
	fileContent = request.getParameter("fileContent");
	fo.createFile(filePathAndName,clubgb.gb(fileContent.toString()),"UTF-8");
	out.print(prtCenter2(filePathAndName+"<br><br>更新成功!","./clubFileEdit.jsp?type="+type+"",1));
	out.close();
	if(true)return;
	
}
fileContent = fo.readTxt(filePathAndName,"UTF-8");
fileContent = fileContent.replaceAll("&","&amp;");
%>
<html>
<head>
<title>社区管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="99%"  border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td align="center"><strong>社区随机广告管理</strong></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#DDDDDD">
<form name="Gforms" method="post" action="">
  <tr>
    <td width="100" bgcolor="#f6f6f6"><strong>文件内容</strong></td>
    <td width="620" bgcolor="#f6f6f6">
<textarea name="fileContent" cols="80" rows="20" id="fileContent">
<%=fileContent%>
</textarea>      </td>
  </tr>
  <tr>
    <td bgcolor="#f6f6f6">&nbsp;</td>
    <td bgcolor="#f6f6f6"><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
  </tr>
  </form>
</table>
</body>
</html>

⌨️ 快捷键说明

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