⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 control.php

📁 通达OA3.0源代码
💻 PHP
字号:
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>表单打印</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script Language="JavaScript">
function copy_form()
{
  parent.form_view.document.execCommand('selectall');
  parent.form_view.document.execCommand('copy');
  alert("表单全文已复制到剪贴板!");
}

function print_preview()
{
  parent.form_view.MyWebBrowser.innerHTML="<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>";
  parent.form_view.focus();
  parent.form_view.WebBrowser.ExecWB(7,1);
}

function form_export_html()
{
  parent.form_view.MyWebBrowser.innerHTML="<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>";
  parent.form_view.WebBrowser.ExecWB(4,1);
}

function form_export_word()
{
  var FLOW_VIEW="";
  if(CHECK1.checked)
     FLOW_VIEW+="1";
  if(CHECK2.checked)
     FLOW_VIEW+="2";
  if(CHECK3.checked)
     FLOW_VIEW+="3";
  if(CHECK4.checked)
     FLOW_VIEW+="4";
  location="../print.php?WORD=1&RUN_ID=<?=$RUN_ID?>&FLOW_ID=<?=$FLOW_ID?>&FLOW_VIEW="+FLOW_VIEW;
}

function flow_view()
{
  var FLOW_VIEW="";
  if(CHECK1.checked)
     FLOW_VIEW+="1";
  if(CHECK2.checked)
     FLOW_VIEW+="2";
  if(CHECK3.checked)
     FLOW_VIEW+="3";
  if(CHECK4.checked)
     FLOW_VIEW+="4";
  parent.form_view.location="../print.php?RUN_ID=<?=$RUN_ID?>&FLOW_ID=<?=$FLOW_ID?>&FLOW_VIEW="+FLOW_VIEW;
}

function flow_window()
{
  var FLOW_VIEW="";
  if(CHECK1.checked)
     FLOW_VIEW+="1";
  if(CHECK2.checked)
     FLOW_VIEW+="2";
  if(CHECK3.checked)
     FLOW_VIEW+="3";
  if(CHECK4.checked)
     FLOW_VIEW+="4";
  window.open("../print.php?RUN_ID=<?=$RUN_ID?>&FLOW_ID=<?=$FLOW_ID?>&FLOW_VIEW="+FLOW_VIEW);
}

</script>
</head>


<body class="bodycolor" topmargin="7">
<table class="Big1" width="100%">
<tr class="Small">
	<td align="left"><b>
   <input type="checkbox" name="CHECK1" id="CHECK1" class="SmallButton" onclick="flow_view();" checked> <label for="CHECK1" style="cursor:hand">表单</label>
   <input type="checkbox" name="CHECK2" id="CHECK2" class="SmallButton" onclick="flow_view();" checked> <label for="CHECK2" style="cursor:hand">公共附件</label>
   <input type="checkbox" name="CHECK3" id="CHECK3" class="SmallButton" onclick="flow_view();" checked> <label for="CHECK3" style="cursor:hand">会签</label>
   <input type="checkbox" name="CHECK4" id="CHECK4" class="SmallButton" onclick="flow_view();" checked> <label for="CHECK4" style="cursor:hand">流程图</label></b>
  </td>
  <td align="right">
   <input type="button" value="打印预览" class="SmallButton" onclick="print_preview()">
   <input type="button" value="打印" class="SmallButton" onclick="parent.form_view.myprint();" title="打印该页面">
   <input type="button" value="复制" class="SmallButton" onclick="copy_form();" title="复制全文至剪贴版,可粘贴至word并调整格式打印(先打开word再复制)">
   <input type="button" value="导出HTML" class="SmallButton" onclick="form_export_html();" title="导出表单为HTML格式">
   <input type="button" value="导出WORD" class="SmallButton" onclick="form_export_word();" title="导出表单为WORD格式">
   <input type="button" value="新窗口" class="SmallButton" onclick="flow_window();" title="在新窗口显示表单">
   <input type="button" value="关闭" class="SmallButton" onclick="parent.close();">
  </td>
</tr>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -