StyleList.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>系统风格管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js">
- </script>
- <script language="JavaScript" type="text/javascript">
- function checksetstyle()
- {
- for(var i=0;i<document.SetStyle.StyleID.length;i++)
- {
- if(document.SetStyle.StyleID[i].checked)
- {
- return true;
- }
- }
- alert("请选择系统风格!");
- document.SetStyle.StyleID[0].focus();
- return false;
- }
- function selectstyle(ID)
- {
- with(document.SetStyle)
- {
- for(i=0;i<elements.length;i++)
- {
- if(elements[i].type=="radio")
- {
- if(elements[i].name=="StyleID" && elements[i].value==ID)
- {
- elements[i].checked = true;
- document.SetStyle.submit();
- return;
- }
- }
- }
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <%
- Vector vt = StyleManager.getAllRecord();
- %>
- <table width="90%" border="3" cellpadding="3" cellspacing="1" style="">
- <form name="SetStyle" action="SetUserStyle.jsp" method="post" onSubmit="javascript:return checksetstyle();">
- <%
- int i=0;
- for(;i<vt.size();i++)
- {
- String strID = ((Vector)vt.get(i)).get(0).toString();
- if(i % 2 == 0)
- {
- out.println("<tr class="DataRowsSingle" align="center" valign="middle">");
- }
- out.println("<td align="center" valign="middle" border="0" class="DataCols" onmouseover="mouseontd(this);" onmouseout="mouseouttd(this,'DataCols');" width="50%" title="设置当前风格为:" + ((Vector)vt.get(i)).get(1).toString() + "" onclick="javascript:selectstyle('" + ((Vector)vt.get(i)).get(0).toString() + "');"><img src="" + ((Vector)vt.get(i)).get(2).toString() + "" width="180" boder="0"><br><input type="radio" name="StyleID" value="" + strID + "" " + (m_session.GetString("StyleID").equalsIgnoreCase(strID)?"checked":"") + ">" + ((Vector)vt.get(i)).get(1).toString() + "</a></td>");
- if(i % 2 == 1)
- {
- out.println("</tr>");
- }
- }
- if(i % 2 == 1)
- {
- out.println("<td align="center" valign="middle" border="0" class="DataCols"> </td></tr>");
- }
- %>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>