<%@ page language="java" 
	import="java.util.*,com.zhuozhengsoft.pageoffice.*,java.sql.*,java.io.*,javax.servlet.*,javax.servlet.http.*;" 
	pageEncoding="gb2312"%>
<%@ taglib uri="http://java.pageoffice.cn" prefix="po" %>
<%
    String fileName = "zhengshi.doc"; //正式发文的文件
	
	//*****************************卓正PageOffice组件的使用****************************
	PageOfficeCtrl poCtrl1 = new PageOfficeCtrl(request);
	poCtrl1.setServerPage(request.getContextPath()+"/poserver.zz"); //此行必须
	
	poCtrl1.setCaption(fileName);			
	poCtrl1.addCustomToolButton("另存到本地", "ShowDialog1()", 5);
    poCtrl1.addCustomToolButton("页面设置", "ShowDialog2()", 0);
    poCtrl1.addCustomToolButton("打印", "ShowDialog3()", 6);
    poCtrl1.addCustomToolButton("全屏/还原", "IsFullScreen()", 4);
			
	poCtrl1.setMenubar(false);
	poCtrl1.setOfficeToolbars(false);
	
	//poCtrl1.setSaveFilePage("savefile.jsp");
	poCtrl1.webOpen("doc/"+fileName, OpenModeType.docAdmin, "张三");
	poCtrl1.setTagId("PageOfficeCtrl1"); //此行必须							  
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title></title>
    <link href="images/csstg.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">

    </script>
</head>
<body> 
    <form id="form2">
    <div id="header">
        <div style="float: left; margin-left: 20px;">
            <img src="images/logo.jpg" height="30" /></div>
        <ul>
            <li><a target="_blank" href="http://www.zhuozhengsoft.com">卓正网站</a></li>
            <li><a target="_blank" href="http://www.zhuozhengsoft.com/poask/index.asp">客户问吧</a></li>
            <li><a href="#">在线帮助</a></li>
            <li><a target="_blank" href="http://www.zhuozhengsoft.com/contact-us.html">联系我们</a></li>
        </ul>
    </div>
    <div id="content">
        <div id="textcontent" style="width: 1000px; height: 800px;">
            <div class="flow4">
                <a href="index.jsp">
                    <img alt="返回" src="images/return.gif" border="0" />文件列表</a> <span style="width: 100px;">
                    </span><strong>文档主题：</strong> <span style="color: Red;">测试文件</span>
          
            </div>
            <!--**************   卓正 PageOffice组件 ************************-->
    <script language="javascript">
    	
        function ShowDialog1() {
            document.getElementById("PageOfficeCtrl1").ShowDialog(2);
        }
        function ShowDialog2() {
            document.getElementById("PageOfficeCtrl1").ShowDialog(5);
        }
        function ShowDialog3() {
            document.getElementById("PageOfficeCtrl1").ShowDialog(4);
        }
    
    	//全屏/还原
        function IsFullScreen() {
            document.getElementById("PageOfficeCtrl1").FullScreen = !document.getElementById("PageOfficeCtrl1").FullScreen;
        }
    </script>
             <po:PageOfficeCtrl id="PageOfficeCtrl1" />
        </div>
    </div>
    <div id="footer">
        <hr width="1000" />
        <div>
            Copyright (c) 2012 北京卓正志远软件有限公司</div>
    </div>
    </form>
</body>
</html>
