control.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 136 行
PHP
136 行
<?
include_once 'inc/auth.php';
$FLOW_VIEW = $_COOKIE['FLOW_VIEW_COOKIE'];
if (($FLOW_VIEW == ''))
{
$FLOW_VIEW = '123';
}
echo '
<html>
<head>
<title>表单打印</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript 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';
echo '();
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)
';
echo ' FLOW_VIEW+="2";
if(CHECK3.checked)
FLOW_VIEW+="3";
if(CHECK4.checked)
FLOW_VIEW+="4";
location="../print.php?WORD=1&RUN_ID=';
echo $RUN_ID;
echo '&FLOW_ID=';
echo $FLOW_ID;
echo '&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=';
echo $RUN_ID;
echo '&FLOW_ID=';
echo $FLOW_ID;
echo '&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=';
echo $RUN_ID;
echo '&FLOW_ID=';
echo $FLOW_ID;
echo '&FLOW_VIEW="+FLOW_VIEW);
}
</script>
</head>
<body class="bodycolor" topmargin="7" leftmargin="1">
<table class="Big1" width="100%">
<tr class="Small">
<td align="left" nowrap><b>
流水号:';
echo $RUN_ID;
echo ' <input type="checkbox" name="CHECK1" id="CHECK1" class="SmallButton" onclick="flow_view();" ';
if (strstr ($FLOW_VIEW, '1'))
{
echo 'checked';
}
echo '> <label for="CHECK1" style="cursor:hand">表单</label>
<input type="checkbox" name="CHECK2" id="CHECK2" class="SmallButton" onclick="flow_view();" ';
if (strstr ($FLOW_VIEW, '2'))
{
echo 'checked';
}
echo '> <label for="CHECK2" style="cursor:hand">公共附件</label>
<input type="checkbox" name="CHECK3" id="CHECK3" class="SmallButton" onclick="flow_view();" ';
if (strstr ($FLOW_VIEW, '3'))
{
echo 'checked';
}
echo '> <label for="CHECK3" style="cursor:hand">会签</label>
<input type="checkbox" name="CHECK4" id="CHECK4" class="SmallButton" onclick="flow_view();" ';
if (strstr ($FLOW_VIEW, '4'))
{
echo 'checked';
}
echo '> <label for="CHECK4" style="cursor:hand">流程图</label></b>
</td>
<td align="right" nowrap>
<input type="button" value="打印" class="SmallButton" onclick="parent.form_view.myprint()">
<input type="button" value="打印预览" class="SmallButton" onclick="print_preview()">
<input type="button" value="复制" class="SmallButton" onclick="copy_form();" title="复制全文至剪贴版,可粘贴至word并调整';
echo '格式打印(先打开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="butto';
echo 'n" value="关闭" class="SmallButton" onclick="parent.close();">
</td>
</tr>
</div>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?