这是一个PHP的例子
- <!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>
- <?
- include_once("inc/auth.inc.php"); // 如需登录验证则包含,未登录将退出
- $HTML_PAGE_TITLE = _("功能模块名称");
- include_once("inc/header.inc.php"); // 如有HTML代码输出则包含
- ?>
- <script type="text/javascript" src="http://127.0.0.1/ReportServer?op=emb&resource=finereport.js"></script>
- <script language="javascript">
- function autoLoad(){
- var addr = FR.cjkEncode("http://127.0.0.1/ReportServer?reportlet=AQWT/input.cpt&op=write&填报人=<? echo "".$_SESSION["LOGIN_USER_NAME"];?>");
- document.getElementById("reportFrame").src = addr;
- }
- window.onload = autoLoad;
- </script>
- </head>
- <body class="bodycolor" topmargin="5">
- <iframe id="reportFrame" width="900" height="800" frameborder="no" border="0"></iframe>
- <div align="center"></div>
- </body>
- </html>
复制代码 将用户名赋值给CPT,实现不登陆帆软决策系统,在通达OA内部使用填报功能.
编辑于 2017-6-23 09:14
|