<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="java.util.*" %>
<%@ page import="net.sz600.basicdata.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.tool.SzDateHelp" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.organize.*" %>
<%@ include file="/sessionInfo.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
</head>

<%
	//取得个人已经设置的常用菜单
	String sMKID_selected = SzModule.getModule_common_map(szDLID_SESSION);
	Collection collTop = SzModule.getTopLevelModuleList(szCOMPANY_SESSION, isSuperManager_SESSION, szDLID_SESSION, "-4");
%>

<!-----上面的工具栏------>
<form name="formUpdate" method="post">
  <input type="hidden" name="operator" value="">
  <%@ include file="/share/title.jsp" %>
<table width="100%">
  <tr>
    <td>
      <input type="button" name="btnSave" class="btnClass" value="保存" OnClick="javascript:FormSave(formUpdate, 'control.jsp');">
      <input type="button" name="btnBack" class="btnClass" value="还原默认" OnClick="javascript:Reset(formUpdate, 'control.jsp');">
    </td>
  </tr>
</table>

<!-----信息维护------>
<table width="750" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">

  <tr>
    <td><b>请选择个人常用的模块</b></td>
  </tr>
  <tr>
    <td>
    <%
    	Iterator iterTop = collTop.iterator();
    	SzModuleInfo moduleInfo = null;
    	int i = 0;
    	while (iterTop!= null && iterTop.hasNext()) {
    		moduleInfo = (SzModuleInfo)iterTop.next();
    		i ++;
    		if (i%6==1) {
    			out.println("<br>");
    		}
    %>
    	<input type="checkbox" name="MKID" value="<%=moduleInfo.getMKID() %>" <% if (sMKID_selected.indexOf("," + moduleInfo.getMKID() + ",") >=0 ) { out.println("checked"); } %>><%=moduleInfo.getMKMC() %>
    <%
    	}
    %>
    </td>
  </tr>
</table>
</form>


<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">

</form>
<script language="javascript" src="../../share/js/commonTool.js"></script>
<script language="javascript">
  function FormSave(formName, url) {
    formName.action = url;
    formName.submit();
  }
  
  function Reset(formName, url) {
    formName.operator.value = "reset";
    formName.action = url;
    formName.submit();
  }  
</script>
