addmyface.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8"%>
- <%@ page import = "java.net.URLEncoder"%>
- <%@ page import = "cn.js.fan.web.*"%>
- <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
- <html>
- <head>
- <title>Modify my icon</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="common.css" type="text/css">
- <script language="JavaScript" type="text/JavaScript">
- // Example: obj = findObj("image1");
- function findObj(theObj, theDoc)
- {
- var p, i, foundObj;
- if(!theDoc) theDoc = document;
- if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
- {
- theDoc = parent.frames[theObj.substring(p+1)].document;
- theObj = theObj.substring(0,p);
- }
- if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
- for (i=0; !foundObj && i < theDoc.forms.length; i++)
- foundObj = theDoc.forms[i][theObj];
- for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
- foundObj = findObj(theObj,theDoc.layers[i].document);
- if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
- return foundObj;
- }
- </script>
- </head>
- <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
- <%@ include file="inc/inc.jsp"%>
- <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
- <%
- // 安全验证
- if (!privilege.isUserLogin(request))
- {
- out.print(StrUtil.p_center(SkinUtil.LoadString(request, SkinUtil.ERR_NOT_LOGIN)));
- return;
- }
- %>
- <table width="100%" height="73" align="center" class="p9">
- <form name="form2" enctype="MULTIPART/FORM-DATA" action="addmyface_do.jsp" method="post">
- <tr>
- <td height="46"><lt:Label res="res.label.forum.user" key="user_sel_icon"/>
- <input name=filename type=file id="filename"> <input type=submit value=<lt:Label key="ok"/>>
- <br>
- <lt:Label res="res.label.forum.user" key="icon_desc"/></td>
- </tr>
- <tr>
- <td height="16"><lt:Label res="res.label.forum.user" key="icon_width"/>
- <input type="text" name="width" size=5 value="120">
- <lt:Label res="res.label.forum.user" key="icon_height"/>
- <input type="text" name="height" size=5 value="150"></td>
- </tr>
- </form>
- </table>
- </body>
- </html>