StyleList.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>系统风格管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js">
  10. </script>
  11. <script language="JavaScript" type="text/javascript">
  12. function checksetstyle()
  13. {
  14.   for(var i=0;i<document.SetStyle.StyleID.length;i++)
  15.   {
  16.     if(document.SetStyle.StyleID[i].checked)
  17.     {
  18.       return true;
  19.     }
  20.   }
  21.   alert("请选择系统风格!");
  22.   document.SetStyle.StyleID[0].focus();
  23.   return false;
  24. }
  25. function selectstyle(ID)
  26. {
  27.   with(document.SetStyle)
  28.   {
  29.     for(i=0;i<elements.length;i++)
  30.     {
  31.       if(elements[i].type=="radio")
  32.       {
  33.               if(elements[i].name=="StyleID" && elements[i].value==ID)
  34.               {
  35.           elements[i].checked = true;
  36.           document.SetStyle.submit();
  37.           return;
  38.        }
  39.       }
  40.     }
  41.   }
  42. }
  43. </script>
  44. </head>
  45. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  46. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  47.     <tr>
  48.         <td align="center" valign="top"><p>&nbsp;</p>
  49. <%
  50. Vector vt = StyleManager.getAllRecord();
  51. %>
  52.             <table width="90%" border="3" cellpadding="3" cellspacing="1" style="">
  53.               <form name="SetStyle" action="SetUserStyle.jsp" method="post" onSubmit="javascript:return checksetstyle();">
  54. <%
  55. int i=0;
  56. for(;i<vt.size();i++)
  57. {
  58.     String strID = ((Vector)vt.get(i)).get(0).toString();
  59.     if(i % 2 == 0)
  60.     {
  61.         out.println("<tr class="DataRowsSingle" align="center" valign="middle">");
  62.     }
  63.     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>");
  64.     if(i % 2 == 1)
  65.     {
  66.       out.println("</tr>");
  67.     }
  68. }
  69. if(i % 2 == 1)
  70. {
  71.   out.println("<td align="center" valign="middle" border="0" class="DataCols">&nbsp;</td></tr>");
  72. }
  73. %>
  74.             </table>
  75.         </td>
  76.     </tr>
  77. </table>
  78. </body>
  79. </html>