<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.dbmanage.BPIP_TABLE"%>
<%@ page import = "zr.zrpower.ejb.sys.UIService" %>
<%@ page import = "zr.zrpower.dbmanage.service.TableSpaceService"%>

<%@ page import = "java.lang.Object"%>
<%@ page import = "java.util.*" %>
<%@ page import = "java.text.*" %>

<%
TableSpaceService Space = new TableSpaceService();

UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
%>
<HTML>
<HEAD>
<TITLE><%=SysPreperty.getProperty().SystemName%><%=SysPreperty.getProperty().Versoin%></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="<%=SysPreperty.getProperty().AppUrl%>/zrsysmanage/css/<%=user.getUserCSS()%>">

<SCRIPT LANGUAGE="JavaScript" src="../../zrsysmanage/script/Public.js"></SCRIPT>
<script language="JavaScript" type="text/JavaScript">
<!--
function Check(theForm){

  if (theForm.CHINESENAME.value == ""){

    <%if("6".equals(user.getUserWINDOWTYPE())){%>
    parent.layer.alert('表分类名称不能为空！', {icon: 7});
    <%}else{%>
    alert("表分类名称不能为空！");
    <%}%>
    theForm.CHINESENAME.focus();
    return (false);
  }
  <%if("6".equals(user.getUserWINDOWTYPE())){%>
  //parent.layer.closeAll();关闭窗口
  document.RegForm.submit();
  window.parent.parent.document.location.reload();
  <%}else{%>
  return (true);
  <%}%>

}

//-->
</script>
</HEAD>
<BODY class="BodyMain">
<FORM name="RegForm" method="post" action="../../actiontablespace.do"  onsubmit="return Check(this);">
<input type="hidden" id="Act" name="Act" value="add">


           <DIV id="divMessage" style='padding-left:0;padding-top:0;width:96%;height:98%;overflow:auto'>
           <fieldset>
           <legend>增加表分类信息</legend>
           <table border="0" class="inputTable" cellspacing="0" cellpadding="0" align="center">

           <tr>
               <td width = "18%" align="right">表分类名称：</td>
               <td class="inputTd" ><input class="text" type="text" name="CHINESENAME" size="50" maxlength="300"><Font class="WriteSign">*</Font></td>
          </tr>

          <tr>
              <td width = "18%" align="right">描述：</td>
               <td class="inputTd" ><textarea name="DESCRIPTION" rows="3" cols="51"></textarea></td>
           </tr>
          </table>
          <br>
          </fieldset>
                 <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("保存","JavaScript:if(Check(document.RegForm)){document.RegForm.submit();}","buttonSave.gif",user.getUserImage())%>
                <%if("6".equals(user.getUserWINDOWTYPE())){%>
                 <%=userUI.ClickButton("关闭","JavaScript:parent.layer.closeAll();","buttonClose.gif",user.getUserImage())%>

                <%}else{ %>
                <%=userUI.ClickButton("关闭","JavaScript:window.opener.document.location.reload();window.close();","buttonClose.gif",user.getUserImage())%>

                <%} %>
                 </tr></table>
                 </center>
          </DIV>

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