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

📄 login.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="ww" uri="/webwork" %>
<html>
<head><title>{*[TeemLink -- myApps platform]*}</title></head>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css">
<% 
	Cookie[] cookies = request.getCookies();
	String app = "";
	if (cookies != null && cookies.length > 0) {
		for(int i=0; i < cookies.length; i++) {
			if (cookies[i].getName().equals("APPLICATION")) {
				app = cookies[i].getValue();
			}
		}
	}
%>
<script>
	function changeTitle(index) {
		var title = document.all("title").options[index].value;
		descTd.innerHTML = '<FONT face="Dotum"  color="#AAAAAA" size=5>' + title + '</FONT>';
	}
	
	function init() {
		var application = '<%= app%>';
		var sel = document.all("application");
		if (application != null && application != ''){
			for(i=0;i<sel.options.length;i++)
			if(sel.options[i].value==application){
			    sel.selectedIndex = i;
			}
		}
		
		changeTitle(sel.selectedIndex);
	}
</script>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="init()">
<ww:form action="/login.action" method="POST" theme="simple">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%"  border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="8%" align="right"><img src="<ww:url value='/resource/images/logo.gif'/>" width="41" height="47"</td>
        <td width="3%" align="right"><img src="<ww:url value='/resource/images/logo02.gif'/>" width="5" height="47"></td>
        <td width="36%" id="descTd" style="font-weight: bold;align:center;FILTER: glow(color=white,strength=3)dropshadow(color=white,offx=2,offy=1,positive=1)" align="center">
        </td>
        <td width="53%" align="right" background="<ww:url value='/resource/images/bg01.gif'/>"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#8B8B8B"></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="60px"></td></tr>
  <tr>
    <td align="center" valign="middle">
	<table width="300px">
		<tr>
			<td colspan="2" align="center"><label class="message">{*[User Login]*}</label></td></tr>
	    <tr>
	 	    <td height="10px"></td></tr>
	 	<tr>
	 	<td colspan="2" align="center">
	 	<ww:if test="hasFieldErrors()">
	<span class="errorMessage"> <b>Errors:</b>
	<ww:iterator value="fieldErrors">
		*<ww:property value="value[0]" />;
	</ww:iterator> </span>
</ww:if>
	 	</td></tr>
	 	   
		<tr>
			<td  align="right" width="5%"><label>{*[Account]*}:</label></td>
			<td ><ww:textfield cssClass="login-input" name="username" /></td></tr>
		<tr>
			<td  align="right" width="5%"><label>{*[Password]*}:</label></td>
			<td><ww:password cssClass="login-input"  name="password" /></td></tr>		
	    
	    <ww:bean name="cn.myapps.core.deploy.application.action.ApplicationHelper" id="ih" />
	    <tr>
			<td  align="right" width="5%"><label>{*[Application]*}:</label></td>
			<td><ww:select cssClass="login-input"  name="application" list="#ih.appList" listKey="id" listValue="name" onchange="changeTitle(this.selectedIndex)"/></td></tr>	
	   			<ww:select cssStyle="display:none" name="title" list="#ih.appList" listKey="description" listValue="description" />
	    <tr>
	 	    <td height="10"></td></tr>
	    <tr>
	  
			<td colspan="2"  align="center">
			  <ww:submit name="submit" value="{*[Login]*}" theme="simple" cssClass="button-cmd"/>&nbsp;
			  <ww:reset name="reset" value="{*[Reset]*}" theme="simple" cssClass="button-cmd" />
			</td></tr>
	</table>
    </td>
  </tr>
</table>
	
</ww:form>
</body>
</html>
</http>

⌨️ 快捷键说明

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