<%@page contentType="text/html; charset=GBK"%>
<%@page import="zr.zrpower.entity.sys.SessionUser"%>
<%@page import="zr.zrpower.ejb.sys.UIService"%>
<%@page import="zr.zrpower.ejb.sys.UserService"%>

<%@page import="java.lang.Object"%>
<HTML>
<%
  SessionUser user = (SessionUser) session.getAttribute("userinfo");
  UserService userService = new UserService();
  UIService userUI = new UIService();

 %>
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">

<link REL="stylesheet" type="text/css" href="../../../zrsysmanage/css/<%=user.getUserCSS()%>">
<script src="../../../zrsysmanage/html5/script/jquery-2.0.3.min.js" type="text/jscript" ></script>
<script src="../../../zrsysmanage/html5/layer/layer.js" type="text/jscript" ></script>
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/script/Public.js"  type="text/jscript" ></SCRIPT>
<SCRIPT LANGUAGE="javascript" type="text/jscript" >
function Check(theForm)
{
if(trim(theForm.PAGESIZE.value)=="")
{
  <%if("6".equals(user.getUserWINDOWTYPE())){%>
    layer.alert('页记录数不能为空，请输入！', {icon: 7});
  <%}else{%>
    alert("页记录数不能为空，请输入！");
  <%}%>
  SetFocus(theForm.PAGESIZE);
  return false;
}

if(isNaN(theForm.PAGESIZE.value))
{
   <%if("6".equals(user.getUserWINDOWTYPE())){%>
   layer.alert('页记录数必须为数字型', {icon: 7});
  <%}else{%>
    alert("页记录数必须为数字型！");
  <%}%>
   SetFocus(theForm.PAGESIZE);
   return false;
}

 return true;
}
</SCRIPT>
</HEAD>
<BODY class="BodyMain">
<FORM name="RegForm" method="post" Action="ConfigResult.jsp" >
<input type="hidden" name="ISSYSTEM" value="0">
<input type="hidden" name="USER_NO" value="<%=user.getUserID()%>">
<input type="hidden" name="Act" value="add">


  <br>&nbsp;
           <fieldset style="width: 98%">
           <legend>基础配置管理信息</legend>
  <TABLE border='0' width="100%" cellspacing="0" cellpadding="0" valign=center>
    <TR>
      <TD colspan=2 height=23>      </TD>
    </TR>
    <TR>
      <TD class="PutdSet" width="40%">页记录数：</TD>
      <TD>
        <input class="text" type="text" name="PAGESIZE" size="40" maxlength="4" value="<%=user.getUserPageSize()%>">
        <Font class="WriteSign">*</Font>
      </TD>
    </TR>
    <TR>
      <TD colspan=2 height=10>      </TD>
    </TR>
    <TR>
      <TD class="PutdSet">界面样式：</TD>
      <TD>
        <select name='WINDOWTYPE' class='SelectStyle'>
               <option value='1' <%if ( user.getUserWINDOWTYPE().trim().equals("1")){%>selected="selected"<%}%>>蓝色水晶型</option>
               <option value='2' <%if ( user.getUserWINDOWTYPE().equals("2")){%>selected="selected"<%}%>>绿色环保型</option>
               <option value='3' <%if ( user.getUserWINDOWTYPE().equals("3")){%>selected="selected"<%}%>>黄色典雅型</option>
               <option value='4' <%if ( user.getUserWINDOWTYPE().trim().equals("4")){%>selected="selected"<%}%>>Window(灰色)</option>
               <option value='5' <%if ( user.getUserWINDOWTYPE().trim().equals("5")){%>selected="selected"<%}%>>深蓝色</option>
               <option value='6' <%if ( user.getUserWINDOWTYPE().trim().equals("6")){%>selected="selected"<%}%>>Html5界面</option>
        </select>
        <Font class="WriteSign">*</Font>
      </TD>
    </TR>
    <TR>
      <TD colspan=2 height=10>      </TD>
    </TR>

         </TABLE>
       <br>
          </fieldset>

                 <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr align="center">
                 <%=userUI.ClickButton("保 存","JavaScript:if(Check(document.RegForm)){document.RegForm.submit();}","buttonSave.gif",user.getUserImage())%>
                 <%=userUI.ClickButton("重 填","JavaScript:document.RegForm.reset();","buttonReset.gif",user.getUserImage())%>

                 </tr></table>
                 </center>



</FORM>
</BODY>
</HTML>
<%
//清空相关对象
user = null;
userUI = null;
userService = null;
%>
