doc_template_select_main.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ 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">
- <title>选择模板-主窗口</title>
- </head>
- <body>
- <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);
- int type = leaf.getType();
- if (type==0) {
- out.print(StrUtil.p_center("本类无文件"));
- }
- else {
- response.sendRedirect("doc_template_list_m.jsp?dir_code=" +
- StrUtil.UrlEncode(leaf.getCode()) + "&dir_name=" +
- StrUtil.UrlEncode(leaf.getName()));
- }
- %>
- </body>
- </html>