📄 fileark_main.jsp
字号:
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="cn.js.fan.module.cms.*" %>
<%@ page import="cn.js.fan.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../common.css" rel="stylesheet" type="text/css">
<title>选择模板-主窗口</title>
</head>
<body>
<jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
<jsp:useBean id="dir" scope="page" class="cn.js.fan.module.cms.Directory"/>
<%
String dir_code = ParamUtil.get(request, "dir_code");
if (dir_code.equals(""))
dir_code = "template";
Leaf leaf = dir.getLeaf(dir_code);
if (leaf==null) {
out.print(StrUtil.p_center("该目录已不存在"));
return;
}
int type = leaf.getType();
if (type==0) {
LeafPriv lp = new LeafPriv();
if (!dir_code.equals(""))
lp.setDirCode(dir_code);
if (lp.canUserModify(privilege.getUser(request))) {%>
<p ><BR> >> <a href="../cms/dir_frame.jsp?root_code=<%=StrUtil.UrlEncode(dir_code)%>" target="_parent">管理目录</a></p>
<%}
else
out.print(StrUtil.p_center("请选择目录!"));
}
else {
if (leaf.getType()==Leaf.TYPE_DOCUMENT)
response.sendRedirect("../doc_show.jsp?dir_code=" + StrUtil.UrlEncode(leaf.getCode()));
else
response.sendRedirect("../cms/document_list_m.jsp?dir_code=" +
StrUtil.UrlEncode(leaf.getCode()) + "&dir_name=" +
StrUtil.UrlEncode(leaf.getName()));
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -