<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.TreeMap" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="net.sz600.database.*" %>
<%@ page import="net.sz600.tool.*" %>
<%@ page import="net.sz600.database.SzPageInfo" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.system.SzLevelNumber" %>
<%@ page import="net.sz600.organize.SzModule" %>
<%@ page import="net.sz600.organize.SzModuleInfo" %>
<%@ page import="net.sz600.organize.SzPopedom" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ page import="net.sz600.docEngine.*" %>
<%@ page import="net.sz600.system.SzAnnex" %>
<%@ page import="net.sz600.system.SzAnnexInfo" %>
<%@ include file="/sessionInfo.jsp"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
<style type=text/css>
</style>
<style type="text/css">
	#litype{ 
	list-style-type:none; 
	list-style-image: url(../image/picli.gif); 
	} 
	.ScrollButton1{
		background-color:#800000;
		cursor:hand;
        padding:0 0 0 6px;
        color:#ffffff;
		width:20px;
		height:20px;

		
	}/*-------------------20120107 ting ------------------------------------- */ 
	.ScrollButton0{
		background-color:#e5f1ff;
		cursor:hand;
        padding:0 0 0 6px;
		width:20px;
		height:20px;
		margin-left:-3px;
		border:#002e66 0px solid;
	}/*-------------------20120107 ting ------------------------------------- */ 
	.d1 {
		padding-left:120px;
		margin-left:100px;
	}

</style>   

<script language="javascript">
 function checkMonth(oFormName, sV, sUrl) {
 	oFormName.chkDate.value = sV;
 	oFormName.action = sUrl;
 	oFormName.target = "_self";
 	oFormName.submit();
 }
</script>
</head>

<body>
<%
	BdFormControl bdFormControl = new BdFormControl();
	//取得表单模块
	Map formMap = bdFormControl.getFormMap();
	//表单循环
	BdFormInfo bdFormInfo = null;
	Iterator iterForm = null;
	iterForm = formMap.values().iterator();
	String s = "";
	
	BdValueControl bdValueControl = new BdValueControl();
	BdDesktop bdDesktop = new BdDesktop();
	String moduleName = "";
	String formName = "";
	Iterator iterKey = null;
	String sKey = "";	
	int i = 0;
	
	//取得文档模块
	ReadDocEngineXml docEngine = new ReadDocEngineXml();
	Collection docColl = docEngine.getDocList();
	DocEngineInfo docEngineInfo = null;
	Iterator iterDoc = null;
	
	
	SzModule szModule = new SzModule();
	SzModuleInfo moduleInfo = null;
	int iMKID = 0;	
	String strDate = "";
	String strTitle = "";
	String strTitle2 = "";
	
	String field_str[] = null;
	String field_format[] = null;
	String sIndexUrl = "";
	String sDetailUrl = "";
	int iFormID = 0; 
	int iInfoID = 0;
	int iCount = 0;
	int iViewType = 0;
	int iOrder = 1;
	int iUrlType = 0;
	int iTitleLen = 10;
	
	String sImg = "";
	String sImg_default = "images/share2/default1.gif";
	String sContent = "";
	String sContent_default = "数飞尔专注于企业信息化领域，为政府、企业、院校提供协同办公解决方案、产品及服务，已通过深圳市双软认证。在企业流程改造、国际技术标准方面，数飞尔在国内占有领先优势。";
	                       // + "&nbsp;&nbsp;&nbsp;&nbsp;数飞OA集办公自动化、工作协同、企业文化、决策支持于一身，真正为企业带来工作效率的提高、办公资源的节约！";
	

%>
	
<table width="100%" align="center" >
  <tr>
    <td id="id2" width="1"></td>
    
    <td valign="top" width="50%">
      <!-- 公告 -->
       <!-- 开始，最新公告 -->   
      <%
      	iMKID=2040;
      	WdyqType wdyqType = new WdyqType("12");
      	String  sTypeName = "";
      	WdyqTypeInfo wdyqTypeInfo = null;
      	int iFLID = 0;        
      %>
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" bordercolor="#FFFFFF">
              <tr>           
          <td background="../images/skin2_blue2/desktop2/d01_01.gif" width="6" height="31"></td>
          <td background="../images/skin2_blue2/desktop2/d01_03.gif" width="" height="26">
          <%
        	iFLID = 0;
        	sTypeName = "公告";
        	wdyqTypeInfo = (WdyqTypeInfo)wdyqType.getInfoByCond("FLMC LIKE '%" + sTypeName + "%' order by FLID DESC");
        	if (wdyqTypeInfo != null) {
        		iFLID = wdyqTypeInfo.getFLID();      
        	}          
          %>
             <a href="../docEngine/info/list_index.jsp?moduleId=12&MKID_SESSION=<%=iMKID%>&XXFL=<%=iFLID%>"><span class="d_down" id="btnBulletin1" OnMouseOver="OverBulletin(1, 'divBulletin', 'btnBulletin', 'lineBulletin')">最新公告</span></a>
             <img src="../images/skin2_blue2/desktop2/d_line.gif" id="lineBulletin1" style="display:none;">
          <%
        	iFLID = 0;
        	sTypeName = "通知";
        	wdyqTypeInfo = (WdyqTypeInfo)wdyqType.getInfoByCond("FLMC LIKE '%" + sTypeName + "%' order by FLID DESC");
        	if (wdyqTypeInfo != null) {
        		iFLID = wdyqTypeInfo.getFLID();      
        	}          
          %>                          
             <a href="../docEngine/info/list_index.jsp?moduleId=12&MKID_SESSION=<%=iMKID%>&XXFL=<%=iFLID%>"><span class="d_font" id="btnBulletin2" OnMouseOver="OverBulletin(2, 'divBulletin', 'btnBulletin', 'lineBulletin')">最新通知</span></a>
             <img src="../images/skin2_blue2/desktop2/d_line.gif" id="lineBulletin2">
          <%
        	iFLID = 0;
        	sTypeName = "新闻";
        	wdyqTypeInfo = (WdyqTypeInfo)wdyqType.getInfoByCond("FLMC LIKE '%" + sTypeName + "%' order by FLID DESC");
        	if (wdyqTypeInfo != null) {
        		iFLID = wdyqTypeInfo.getFLID();      
        	}          
          %>             
             <a href="../docEngine/info/list_index.jsp?moduleId=12&MKID_SESSION=<%=iMKID%>&XXFL=<%=iFLID%>"><span class="d_font" id="btnBulletin3" OnMouseOver="OverBulletin(3, 'divBulletin', 'btnBulletin', 'lineBulletin')">最新新闻</span></a></td>
<script language="javascript">
	function OverBulletinNew(index, divId, btnId, lineId, iCount) {
		for (var v=1; v<=iCount; v++) {
			var oDiv = document.getElementById(divId + v);
			var oBtn = document.getElementById(btnId + v);
			var oLineBulletin = document.getElementById(lineId + v);
			var oLineBulletinP = null;
			if (v >1) {
				oLineBulletinP = document.getElementById(lineId + (v -1));
			}
			if (index == v) {
				if (oDiv != null) {
					oDiv.style.display="";
				}
				if (oBtn != null) {
					oBtn.className = "d_down";
				}
				if (oLineBulletin != null) {
					oLineBulletin.style.display="none";
				}		
				if (oLineBulletinP != null) {
					oLineBulletinP.style.display="none";
				}												
			} else {
				if (oDiv != null) {
					oDiv.style.display="none";
				}	
				if (oBtn != null) {
					oBtn.className = "d_font";
				}
				if (oLineBulletin != null) {
					oLineBulletin.style.display="";
				}//if										
			}//else
		}//for (var v=1; v<=iCount; v++) {
	} //function OverBulletinNew
	
	function OverBulletin(id, div, btn, line) {
		var oDiv1 = document.getElementById(div + "1");
		var oDiv2 = document.getElementById(div + "2");
		var oDiv3 = document.getElementById(div + "3");
		var oBtn1 = document.getElementById(btn + "1");
		var oBtn2 = document.getElementById(btn + "2");
		var oBtn3 = document.getElementById(btn + "3");
		var oLineBulletin1 = document.getElementById(line+ "1");
		var oLineBulletin2 = document.getElementById(line+ "2");
		
		if (id==1) {
			oDiv1.style.display="";
			oDiv2.style.display="none";
			oDiv3.style.display="none";	
			
			oBtn1.className = "d_down";
			oBtn2.className = "d_font";
			oBtn3.className = "d_font";
			
			oLineBulletin1.style.display="none";
			oLineBulletin2.style.display="";		
		} else if (id==2) {
			oDiv1.style.display="none";
			oDiv2.style.display="";
			oDiv3.style.display="none";
			
			oBtn1.className = "d_font";
			oBtn2.className = "d_down";
			oBtn3.className = "d_font";
			
			oLineBulletin1.style.display="none";
			oLineBulletin2.style.display="none";						
		} else if (id==3) {
			oDiv1.style.display="none";
			oDiv2.style.display="none";
			oDiv3.style.display="";
			
			oBtn1.className = "d_font";
			oBtn2.className = "d_font";
			oBtn3.className = "d_down";		
			oLineBulletin1.style.display="";
			oLineBulletin2.style.display="none";							
		}
	}
</script>             
          <td background="../images/skin2_blue2/desktop2/d01_03.gif" height="31" valign="top" align="right" nowrap>
             &nbsp;<!---<img src="../images/skin2_blue2/desktop/d_b_min.gif"><img src="../images/skin2_blue2/desktop/d_b_line.gif"><img src="../images/skin2_blue2/desktop/d_b_close.gif">--->
          </td>
          <td background="../images/skin2_blue2/desktop2/d01_04.gif" width="6" height="31"></td>
               </tr>
            </table>
          </td>           
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="100">
              <tr>         
          <td background="../images/skin2_blue2/desktop2/d02_01.gif" width="6"></td>
          <td colspan="2" height="60" bgcolor="#FFFFFF"><!-----加一个白色背景 20120113 ting------>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >

              <tr>
                <td width="218">
                  <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" >
                    <tr><td height="5" colspan="2"></td></tr>
                    <tr><td width="5"></td>
					  <td height="100" width="180"  align="center" valign="middle">
<!-- 图片滚动--开始 -->
<script type="text/javascript">
var isPause = false;
var scrollImg = new Array();
<%
SzAnnexInfo szAnnexInfo = null;
ArrayList list1 = docEngine.getPictureList("12", session, "../images/skin_blue2", 6, szCOMPANY_SESSION);
//System.out.println(list1.size());
int index = 0;
if (list1 != null && list1.size() != 0){
	for (Object pic:list1){
		szAnnexInfo = (SzAnnexInfo)pic;
	%>
	scrollImg[<%=index ++%>] = new Array("<%=strLevel_SESSION%>docEngine/info/detail.jsp?moduleId=12&MKID_SESSION=2040&OPERATOR=detail&KEY=<%=szAnnexInfo.getFJXX()%>","<%=szAnnexInfo.getFJMC()%>","<%=strLevel_SESSION%><%=szAnnexInfo.getFJLJ()%>");
<%	}
	if (index < 6){
		while(index < 6){
%>
		scrollImg[<%=index ++%>] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_1.gif");
<%			
		}
	}
}else{%>
scrollImg[0] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_1.gif");
scrollImg[1] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_2.gif");
scrollImg[2] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_3.gif");
scrollImg[3] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_1.gif");
scrollImg[4] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_2.gif");
scrollImg[5] = new Array("http://www.saas88.com","数飞尔科技","../images/soarwell_3.gif");
<%}%>
function PlayTran()
{ 
	if(document.all)
	{
		document.getElementById('ScrollImg').filters.revealTrans.Transition=10; 
		document.getElementById('ScrollImg').filters.revealTrans.apply(); 
		document.getElementById('ScrollImg').filters.revealTrans.play();
	}
}
function ScrollPicShow(index,isContinue)
{
	if(isPause && isContinue)
	{
		window.setTimeout("ScrollPicShow("+index+",true)",10000);
		return;
	}
	ScrollButton(index);
	var simg = document.getElementById("ScrollImg");
	//var stxt = document.getElementById("ScrollTxt");
	var surl = document.getElementById("ScrollUrl");
	//var stxturl = document.getElementById("ScrollTxtUrl");
	PlayTran();
	simg.src = scrollImg[index][2];
	//stxturl.title = simg.title = surl.title = stxt.innerText = scrollImg[index][1];
	//stxturl.target = "_blank";
	//surl.target = "_blank";
	//stxturl.href = scrollImg[index][0];
	surl.href = scrollImg[index][0];
	if (scrollImg[index][0].indexOf("docEngine/info/detail.jsp") >0) {
		surl.target = "szMainFrame";    
	} else {
		surl.target = "_blank";
	}
	//按钮显示
	//定时滚动下一张
	if(index >= scrollImg.length-1 || index>=5)
	{
		index = 0;
	}
	else
	{
		index++;
	}
	if(isContinue)
	{
		window.setTimeout("ScrollPicShow("+index+",true)",5000);
	}
}

function ScrollButton(index)
{
	var buttonName = "ScrollDiv";
	for(var i=0;i<scrollImg.length;i++)
	{
		var sbut = document.getElementById(buttonName+i);
		if(i == index)
		{
			sbut.className = "ScrollButton1";
		}
		else
		{
			sbut.className = "ScrollButton0";
		}
	}
}

function PauseScroll(index)
{
	isPause = true;
	ScrollPicShow(index,false);
	window.setTimeout("isPause = false",5000);
}
</script>			
	<table width="200" height="100" border="0" cellpadding="0" cellspacing="0" >
	 <tr>
		<td valign="top">
			<table width="90" border="0" cellspacing="0" cellpadding="0"></table>
			<a id="ScrollUrl" href="#"><img id="ScrollImg" src="javascript:ScrollPicShow(0,false);" width="200" height="150" border=0 style="FILTER: revealTrans(duration=1,transition=5); border:1px solid #DADADA;" /></a>
			 <div style="width:150px; float:right; margin:-32px 0 0 28px;">
						<a class="ScrollButton1" id="ScrollDiv0" onclick="PauseScroll(0)">1</a>
						<a class="ScrollButton0" id="ScrollDiv1" onclick="PauseScroll(1)">2</a>
						<a class="ScrollButton0" id="ScrollDiv2" onclick="PauseScroll(2)">3</a>
						<a class="ScrollButton0" id="ScrollDiv3" onclick="PauseScroll(3)">4</a>
						<a class="ScrollButton0" id="ScrollDiv4" onclick="PauseScroll(4)">5</a>
						<a class="ScrollButton0" id="ScrollDiv5" onclick="PauseScroll(5)">6</a>
			</div>
			</div>
			<!-- 
			<div align="center"><a href="#" id="ScrollTxtUrl" style="overflow:hidden; text-overflow:ellipsis;" class="red12"><nobr><span id="ScrollTxt"></span></nobr></a></div>
			 -->
			 <!---------------------------20120113 ting-------------------------------->
			<!----<table width="180" border="0" align="center" cellpadding="0" cellspacing="2" style=" ">
			<tr>
				<td width="26" class="ScrollButton1" id="ScrollDiv0" onclick="PauseScroll(0)">1</td>
				<td width="26" class="ScrollButton0" id="ScrollDiv1" onclick="PauseScroll(1)">2</td>
				<td width="26" class="ScrollButton0" id="ScrollDiv2" onclick="PauseScroll(2)">3</td>
				<td width="26" class="ScrollButton0" id="ScrollDiv3" onclick="PauseScroll(3)">4</td>
				<td width="26" class="ScrollButton0" id="ScrollDiv4" onclick="PauseScroll(4)">5</td>
				<td width="26" class="ScrollButton0" id="ScrollDiv5" onclick="PauseScroll(5)">6</td>
			</tr>
			</table>-->
		</td>
	  </tr>
	</table>
	<script>ScrollPicShow(0,true);</script>	
					  </td>
                    </tr>
                          
                  </table>
                </td>

                <td valign="top" align="left">
                  <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >                                                  
                        <!--<tr  onMouseOver="javascript:this.className='trMouseOver'" onMouseOut="javascript:this.className='trMouseOut'">    <td ><img src="../images/share2/d_b_3.gif"><a href='../docEngine/info/detail.jsp?MKID_SESSION=2040&OPERATOR=detail&KEY=4&moduleId=12' title='关于公司试用OA系统的内部通知'>关于公司试用OA系统的...&nbsp;&nbsp;[07月08号15:19]</a>&nbsp;</td></tr>    <tr><td colspan="2" background="../images/share2/d_b_4.gif" height="3"></td>    </tr>----->
						<tr>
						<td align="left">
						 	<div class="d_center" id="divBulletin1" >
						   	<ul>	
						   	<!-- 显示数据 -->		
						   	<%=docEngine.printMainListNew("12", "公告", session, strSkin_SESSION, 6, 15, "0") %>			 
						  	</ul>
							</div>
						 	<div class="d_center" id="divBulletin2"   style="display:none;">
						   <ul>						 
						   	<%=docEngine.printMainListNew("12", "通知", session, strSkin_SESSION, 6, 15, "0") %>				
						    </ul>
							</div>		
						 	<div class="d_center" id="divBulletin3"   style="display:none;">
						   <ul>						 
					      <%=docEngine.printMainListNew("12", "新闻", session, strSkin_SESSION, 6, 15, "0") %>					
						    </ul>
							</div>											
						</td>
                       </tr>
                  </table>  
                  <!-----中间内容---->              
                </td>                              
              </tr>
            </table>
          </td>
          <td background="../images/skin2_blue2/desktop2/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="../images/skin2_blue2/desktop2/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="../images/skin2_blue2/desktop2/d03_02.gif" height="6"></td>
          <td background="../images/skin2_blue2/desktop2/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 结束，最新公告结束 -->    
      </td>     
      <td  width="1"></td>   		    
      <td valign="top">
      <!-- 待办 -->
       <!-- 开始，待办事务 -->   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" bordercolor="#FFFFFF">
              <tr>           
          <td background="../images/skin2_blue2/desktop2/d01_01.gif" width="6" height="31"></td>
          <td background="../images/skin2_blue2/desktop2/d01_03.gif" width="" height="26">
             <a href="../share/stat/stat_transact.jsp?MKID_SESSION=2463"><span class="d_down" id="btnTransact1" OnMouseOver="OverBulletin(1, 'divTransact', 'btnTransact', 'lineTransact')">待办<span class="news" id="alertTransact" style="display:none"></span></span></a>
             <img src="../images/skin2_blue2/desktop2/d_line.gif" id="lineTransact1" style="display:none;">
             <a href="../share/stat/stat_receive.jsp?MKID_SESSION=2465"><span class="d_font" id="btnTransact2" OnMouseOver="OverBulletin(2, 'divTransact', 'btnTransact', 'lineTransact')">待阅<span class="news" id="alertReceive" style="display:none"></span></span></a>
             <img src="../images/skin2_blue2/desktop2/d_line.gif" id="lineTransact2" >             
             <a href="../share/stat/stat_apply.jsp?MKID_SESSION=2462"><span class="d_font" id="btnTransact3" style="display:none;" OnMouseOver="OverBulletin(3, 'divTransact', 'btnTransact', 'lineTransact')">申请</span></a></td>
          <td background="../images/skin2_blue2/desktop2/d01_03.gif" height="31" valign="top" align="right" nowrap>
             &nbsp;<!---<img src="../images/skin2_blue2/desktop/d_b_min.gif"><img src="../images/skin2_blue2/desktop/d_b_line.gif"><img src="../images/skin2_blue2/desktop/d_b_close.gif">--->
          </td>
          <td background="../images/skin2_blue2/desktop2/d01_04.gif" width="6" height="31"></td>
               </tr>
            </table>
          </td>           
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="100">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop2/d02_01.gif" width="6"></td>
          <td colspan="2" height="80">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
              <td colspan="10" align="center" valign="top"  bgcolor="#FFFFFF">            
						 	<div class="d_center" id="divTransact1" >
						   	<ul>	
						   	<!-- 显示数据 -->		
									<%
									int iRecordCount = 6;
									int iTransactCount = 0;
								  iTitleLen = 20;									
	
									out.println(bdDesktop.printMainTransactNewAll("", session, strSkin_SESSION, 0, strLevel_SESSION, iRecordCount, iTitleLen));
									%>
						  	</ul>
							</div>
						 	<div class="d_center" id="divTransact2"   style="display:none;">
						   <ul>						 
						   	<!-- 显示数据 -->		
									<%
									out.println(bdDesktop.printMainReceiveNewAll("", session, strSkin_SESSION, 0, strLevel_SESSION, iRecordCount, iTitleLen));
									%>
						    </ul>
							</div>		
						 	<div class="d_center" id="divTransact3"   style="display:none;">
						   <ul>	
						    </ul>
							</div>	
				</td>
			 </tr>
            
            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop2/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>
        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop2/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop2/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop2/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 结束，待办事务结束 -->			
			<!-- 待办 end-->
			
			<table><tr><td></td></tr></table>
    </td>
     <td  width="1"></td>
    </tr>     
		<%
      int iIndex = 1;						//桌面第几快：从1开始
      int iFormCount = 3;				//1快显示多少个表单，默认4个
      String sMainTab = "";
      iRecordCount = 6;
      iTitleLen = 20;
    %>
    <tr>
      <td id="id2" width="1"></td>
      <td valign="top" width="50%">
       <!-- 第1快 开始， 表单信息 -->
       <%
       		iIndex = 1;
       		sMainTab = bdDesktop.printMainTab(iIndex, iFormCount);
       		if (!sMainTab.equals("")) {
       %>   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" bordercolor="#FFFFFF">
              <tr>           
                <td background="../images/skin2_blue2/desktop2/d01_01.gif" width="6" height="31"></td>
                
                <td background="../images/skin2_blue2/desktop2/d01_03.gif" width="" height="26">
                <%
                	out.println(sMainTab); 
                %>
                          		
          		<td background="../images/skin2_blue2/desktop2/d01_03.gif" height="31" valign="top" align="right" nowrap></td>
           		<td background="../images/skin2_blue2/desktop2/d01_04.gif" width="6" height="31"></td>
               </tr>
            </table>
          </td>           
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="100">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop2/d02_01.gif" width="6"></td>
          <td colspan="2" height="80">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
              <td colspan="10" align="center" valign="top"  bgcolor="#FFFFFF">
                <%
                	out.println(bdDesktop.printMainValue(iDLID_SESSION, iBMID_SESSION, iIndex, iFormCount, iRecordCount, iTitleLen)); 
                %>                          
			  			</td>
						</tr>			 	
            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop2/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop2/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop2/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop2/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 第1快 表单信息结束 -->   
      <%
       		}
      %>   
      </td>
      <td  width="1"></td>
      <td valign="top" width="50%">
       <!-- 第2快 开始， 表单信息 -->
       <%
       		iIndex = 2;
       		sMainTab = bdDesktop.printMainTab(iIndex, iFormCount);
       		if (!sMainTab.equals("")) {
       %>   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" bordercolor="#FFFFFF">
              <tr>           
                <td background="../images/skin2_blue2/desktop2/d01_01.gif" width="6" height="31"></td>
                
                <td background="../images/skin2_blue2/desktop2/d01_03.gif" width="" height="26">
                <%
                	out.println(sMainTab); 
                %>
                          		
          		<td background="../images/skin2_blue2/desktop2/d01_03.gif" height="31" valign="top" align="right" nowrap></td>
           		<td background="../images/skin2_blue2/desktop2/d01_04.gif" width="6" height="31"></td>
               </tr>
            </table>
          </td>           
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="100">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop2/d02_01.gif" width="6"></td>
          <td colspan="2" height="80">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
              <td colspan="10" align="center" valign="top"  bgcolor="#FFFFFF">
                <%
                	out.println(bdDesktop.printMainValue(iDLID_SESSION, iBMID_SESSION, iIndex, iFormCount, iRecordCount, iTitleLen)); 
                %>                          
			  			</td>
						</tr>			 	
            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop2/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop2/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop2/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop2/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 第2快 表单信息结束 -->   
      <%
       		}
      %>       
      
      			<table><tr><td></td></tr></table>  
      </td>
      <td  width="1"></td>
    </tr>   
    
    <tr>
      <td id="id2" width="1"></td>
      <td valign="top" width="50%">
       <!-- 第3快 开始， 表单信息 -->
       <%
       		iIndex = 3;
       		sMainTab = bdDesktop.printMainTab(iIndex, iFormCount);
       		if (!sMainTab.equals("")) {
       %>   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" bordercolor="#FFFFFF">
              <tr>           
                <td background="../images/skin2_blue2/desktop2/d01_01.gif" width="6" height="31"></td>
                
                <td background="../images/skin2_blue2/desktop2/d01_03.gif" width="" height="26">
                <%
                	out.println(sMainTab); 
                %>
                          		
          		<td background="../images/skin2_blue2/desktop2/d01_03.gif" height="31" valign="top" align="right" nowrap></td>
           		<td background="../images/skin2_blue2/desktop2/d01_04.gif" width="6" height="31"></td>
               </tr>
            </table>
          </td>           
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="100">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop2/d02_01.gif" width="6"></td>
          <td colspan="2" height="80">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
              <td colspan="10" align="center" valign="top"  bgcolor="#FFFFFF">
                <%
                	out.println(bdDesktop.printMainValue(iDLID_SESSION, iBMID_SESSION, iIndex, iFormCount, iRecordCount, iTitleLen)); 
                %>                          
			  			</td>
						</tr>			 	
            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop2/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop2/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop2/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop2/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 第3快 表单信息结束 -->   
      <%
       		}
      %>   
      </td>
      <td  width="1"></td>
      <td valign="top" width="50%">
       <!-- 第4快 开始， 表单信息 -->
       <%
       		iIndex = 4;
       		sMainTab = bdDesktop.printMainTab(iIndex, iFormCount);
       		if (!sMainTab.equals("")) {
       %>   
      <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" bordercolor="#FFFFFF">
              <tr>           
                <td background="../images/skin2_blue2/desktop2/d01_01.gif" width="6" height="31"></td>
                
                <td background="../images/skin2_blue2/desktop2/d01_03.gif" width="" height="26">
                <%
                	out.println(sMainTab); 
                %>
                          		
          		<td background="../images/skin2_blue2/desktop2/d01_03.gif" height="31" valign="top" align="right" nowrap></td>
           		<td background="../images/skin2_blue2/desktop2/d01_04.gif" width="6" height="31"></td>
               </tr>
            </table>
          </td>           
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="100">
              <tr>         
          <td background="<%=strSkin_SESSION%>/desktop2/d02_01.gif" width="6"></td>
          <td colspan="2" height="80">
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
              <td colspan="10" align="center" valign="top"  bgcolor="#FFFFFF">
                <%
                	out.println(bdDesktop.printMainValue(iDLID_SESSION, iBMID_SESSION, iIndex, iFormCount, iRecordCount, iTitleLen)); 
                %>                          
			  			</td>
						</tr>			 	
            </table>
          </td>
          <td background="<%=strSkin_SESSION%>/desktop2/d02_02.gif" width="6"></td>
               </tr>
            </table>
          </td>            
        </tr>        
        <tr>
          <td>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
              <tr>        
          <td background="<%=strSkin_SESSION%>/desktop2/d03_01.gif" width="6" height="6"></td>
          <td colspan="2" background="<%=strSkin_SESSION%>/desktop2/d03_02.gif" height="6"></td>
          <td background="<%=strSkin_SESSION%>/desktop2/d03_03.gif" width="6" height="6"></td>
               </tr>
            </table>
          </td>            
        </tr>               
      </table> 
      <!-- 第4快 表单信息结束 -->   
      <%
       		}
      %>         
      </td>
      <td  width="1"></td>
    </tr>     				
</table>  
     
      

<!-- ------------------------------------------ -->


<!-- ------------------------------------- -->


<script>

	var dragapproved=false;
	var minrestore=0;  //该变量表示窗口目前的状态，0表示初始化状态，1表示最大化状态
	var initialwidth,initialheight,windowname;
	//若Client浏览器为IE5.0以上版本的
	var ie5=document.all&&document.getElementById;
	//若Client浏览器为NetsCape6。0版本以上的
	var ns6=document.getElementById&&!document.all;
       var dwindowDiv = "";
	
	//遮罩层
	var IFrame = {			//去掉此函数，无遮罩效果
		createIframe:function() {
			var div = document.createElement("<div id='iframeDiv' style='filter:alpha(opacity=50)'></div>");
			var divFront = document.createElement("<div></div>");
			var iframe = document.createElement("<iframe frameborder='0'></iframe>");
			
			div.appendChild(divFront);
			div.appendChild(iframe);
			
			document.body.appendChild(div);
			
			div.style.height = document.body.offsetHeight;
			div.style.width = document.body.offsetWidth;
			div.style.position = "absolute";
			div.style.zIndex = 1998;
			div.style.left = 0;
			div.style.top = 0;
			
			divFront.style.height = document.body.offsetHeight;
			divFront.style.width = document.body.offsetWidth;
			divFront.style.position = "absolute";
			divFront.style.background = "black";
			divFront.style.zIndex = 1999;
			divFront.style.left = 0;
			divFront.style.top = 0;
			
			iframe.style.height = document.body.offsetHeight;
			iframe.style.width = document.body.offsetWidth;
			iframe.style.position = "absolute";
			iframe.style.zIndex = -1;
			iframe.style.left = 0;
			iframe.style.top = 0;
			
		},
		closeIframe:function() {
			var iframeDiv = document.getElementById("iframeDiv");
			document.body.removeChild(iframeDiv);
		}
	}
		
	function iecompattest(){
		return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
	}

	function drag_drop(e){
		if (ie5&&dragapproved&&event.button==1){
			document.getElementById(dwindowDiv).style.left=tempx+event.clientX-offsetx;
			document.getElementById(dwindowDiv).style.top=tempy+event.clientY-offsety;
		}else if (ns6&&dragapproved){
			document.getElementById(dwindowDiv).style.left=tempx+e.clientX-offsetx;
			document.getElementById(dwindowDiv).style.top=tempy+e.clientY-offsety;
		}
	}

	function initializedrag(e){
		offsetx=ie5? event.clientX : e.clientX;
		offsety=ie5? event.clientY : e.clientY;
		//document.getElementById("dwindowcontent").style.display="none"; //此句代码可不要
		tempx=parseInt(document.getElementById(dwindowDiv).style.left);
		tempy=parseInt(document.getElementById(dwindowDiv).style.top);

		dragapproved=true
		document.getElementById(dwindowDiv).onmousemove=drag_drop
	}

	function loadwindow(url, width, height, name, vDivName){
		dwindowDiv = vDivName;

		if (!ie5&&!ns6){  //若不为IE或Netscpae浏览器，则使用一般的Window.open进行弹出窗口处理
			window.open(url,"","width=width,height=height,scrollbars=1");
		} else { 
			IFrame.createIframe();   ////去掉此函数，无遮罩效果
			document.getElementById(dwindowDiv).style.display='';
			
			initialwidth=width;
			initialheight=height;
			windowname=name;
			
			document.getElementById(dwindowDiv).style.width=initialwidth;
			document.getElementById(dwindowDiv).style.height=initialheight;
			document.getElementById(dwindowDiv).style.left=(document.body.offsetWidth/2)-(initialwidth/2);
			document.getElementById(dwindowDiv).style.top=(document.body.offsetHeight/2)-(initialheight/2);
			document.getElementById("cframe").src=url;
			
			//document.getElementById("windowname").value = windowname;
		}
	}

	function maximize(){
		if (minrestore==0){
			minrestore=1; //maximize window
			document.getElementById("maxname").setAttribute("src","min.gif");
			document.getElementById(dwindowDiv).style.width=ns6? window.innerWidth-20 : iecompattest().clientWidth;
			document.getElementById(dwindowDiv).style.height=ns6? window.innerHeight-20 : iecompattest().clientHeight;
			
			document.getElementById(dwindowDiv).style.left=ns6? window.pageXOffset : iecompattest().scrollLeft
		    document.getElementById(dwindowDiv).style.top=ns6? window.pageYOffset : iecompattest().scrollTop
		} else {
			minrestore=0; //restore window
			document.getElementById("maxname").setAttribute("src","max.gif");
			
			document.getElementById(dwindowDiv).style.width=initialwidth;
			document.getElementById(dwindowDiv).style.height=initialheight;
			
			document.getElementById(dwindowDiv).style.left=(document.body.offsetWidth/2)-(initialwidth/2);
			document.getElementById(dwindowDiv).style.top=(document.body.offsetHeight/2)-(initialheight/2);
		}
		
		//document.getElementById("windowname").value = windowname;
		
	}

	function closeit(){
		if (confirm("关闭后不再自动弹出,可点右上角“帮助”图标查看系统操作指南")) {
			document.getElementById(dwindowDiv).style.display="none";
			IFrame.closeIframe(); //去掉此函数，无遮罩效果
		}
	}

	function stopdrag(){
		dragapproved=false;
		document.getElementById(dwindowDiv).onmousemove=null;
		//document.getElementById("dwindowcontent").style.display=""; //extra
	}

</script>

<div style="position:absolute;left:120;top:10;display:none;z-index:2000;" id="div0" onMousedown="initializedrag(event)" onMouseup="stopdrag()" onSelectStart="return false">
  <div style="height:26px;width:100%;" >
    <div style="float:left;width:5px;height:26px;background:url(<%=strLevel_SESSION%>images/2011/home/homezhanshi/d01_01.gif)"></div>
    <div style="float:left;width:auto !important;height:26px;background:url(<%=strLevel_SESSION%>images/2011/home/homezhanshi/d01_02.gif);display:block;">
		<div style="float:left;"><span class="fonthome3">数飞OA--使用入门帮助</span></div>
       <div style="float:right;">
          <a href="#" OnClick="javascript:closeit();" >
          	<img src="<%=strLevel_SESSION%>images/2011/home/images/more_03.gif" width="29" height="12" border="0">
          </a>
       </div>
    </div>
    <div style="float:right;clear:left;width:5px;height:26px;background:url(<%=strLevel_SESSION%>images/2011/home/homezhanshi/d01_03.gif)"></div>
  </div>

  <div style="height:100%;width:100%;">
    <div style="float:left;width:5px;height:100%;background:url(<%=strLevel_SESSION%>images/2011/home/homezhanshi/d02_01.gif);"></div>
    <div style="float:left;height:100%">
			<iframe id="cframe" frameborder="0" src="" width=100% height=100%></iframe>
    </div>
    <div style="float:right;clear:left;width:5px;height:100%;background:url(<%=strLevel_SESSION%>images/2011/home/homezhanshi/d02_02.gif);"></div>
  </div>

<!--
  <div style="width:100%;height:5px;">
    <div style="float:left;width:5px;height:5px;background:url(images/2011/home/homezhanshi/d03_01.gif) no-repeat;"></div>
    <div style="float:left;display:block;height:5px;background:url(images/2011/home/homezhanshi/d03_02.gif) repeat-x"></div>
    <div style="float:right;width:5px;height:5px;background:url(images/2011/home/homezhanshi/d03_03.gif) no-repeat;"></div>
  </div>
-->
</div>
<%
	String loginTime = SzConvert.toSpaceStr((String)session.getAttribute("SzGuideSession"));
  boolean hasOpenTempCookie = false;
  if (loginTime.equals("1")) {
	  session.setAttribute("SzGuideSession", "2"); 
		Cookie[] cks =request.getCookies();
		String temp_cookie = null;

	  if(cks!=null) {
    	for(int icks = 0; icks < cks.length; icks++)   {
          temp_cookie = cks[icks].getName();
          //查找用户名
          if(temp_cookie.equals("SzGuideCookie" + szDLID_SESSION)) {
              if (cks[icks].getValue().equals("2")) {
            	  hasOpenTempCookie = true;
              }
          }
    	}
	  }
  } else {
	  hasOpenTempCookie = true;
  }
  if (net.sz600.check.SzHasp.getInstance().hasDog()) {
	hasOpenTempCookie = true;
  }
	if (!hasOpenTempCookie) {
%>
<script language="javascript">
	//loadwindow('../help/guide/guide_index.jsp?divopen=1',850,460,'', 'div0');
	loadwindow('http://www.soarwell.com/FAQ/oa_user_guide.shtml#content',850,460,'', 'div0');
</script>
<%
	}
%>
<script language="javascript">
	//2011-11-04修改
	var xmlhttp = null; 
	var checkresult=null; 
	if   (window.XMLHttpRequest)   {   //   Mozilla,   Safari,...   
		xmlhttp =new XMLHttpRequest();               
	}  else if(window.ActiveXObject)   {   //   IE    
		xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");    
	}   

	function CheckAlert() { 
		xmlhttp.open("POST", "../online/message/transactAlertAction.jsp", false); 
		//xmlhttp.onreadystatechange = updatePage; 
		xmlhttp.send(null); 

		var response = xmlhttp.responseText;
		var vCount = "0";
		var vFirst = "0";
		var vIndex = 0;		
    var vIndex1 = 0;
    vIndex = response.indexOf("SzBegin");
		if (vIndex >=0) {
			vIndex1 = response.indexOf("SzEnd");
			if (vIndex1 > 7) {
		  	vCount = response.substring(vIndex + 7, vIndex1);
		  }
		  //alertTransact
		  var alertTransact = document.getElementById("alertTransact");
			if (alertTransact != null) {

		  	if (vCount > 0) {
		  		
		  		alertTransact.style.display = "";
		  		alertTransact.innerText = vCount;
		  	} else {
		  		alertTransact.style.display = "none";
		  		alertTransact.innerText = "";
		  	}		  	 
		  }
		}
		
    vIndex = response.indexOf("SzReceiveBegin");
    vCount = 0;
		if (vIndex >=0) {
			vIndex1 = response.indexOf("SzReceiveEnd");
			if (vIndex1 > 14) {
		  	vCount = response.substring(vIndex + 14, vIndex1);
		  }
		  //alertTransact
		  var alertReceive = document.getElementById("alertReceive");
			if (alertReceive != null) {

		  	if (vCount > 0) {		  		
		  		alertReceive.style.display = "";
		  		alertReceive.innerText = vCount;
		  	} else {
		  		alertReceive.style.display = "none";
		  		alertReceive.innerText = "";
		  	}		  	 
		  }
		}		
		
    vIndex = response.indexOf("SzMailBegin");
    vCount = 0;
		if (vIndex >=0) {
			vIndex1 = response.indexOf("SzMailEnd");
			if (vIndex1 > 11) {
		  	vCount = response.substring(vIndex + 11, vIndex1);
		  }
		  //alertMail
		  var alertMail = document.getElementById("alertMail");
			if (alertMail != null) {
		  	if (vCount > 0) {		  		
		  		alertMail.style.display = "";
		  		alertMail.innerText = vCount;
		  	} else {
		  		alertMail.style.display = "none";
		  		alertMail.innerText = "";
		  	}		  	 
		  }
		}				
		

		xmlhttp.abort();
	} 
	//CheckAlert();
	//window.setInterval('CheckAlert()',10000);

</script>
</body>

