📄 control.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>表单打印</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction copy_form()\r\n{\r\n parent.form_view.document.execCommand('selectall');\r\n parent.form_view.document.execCommand('copy');\r\n alert(\"表单全文已复制到剪贴板!\");\r\n}\r\n\r\nfunction print_preview()\r\n{\r\n parent.form_view.focus();\r\n parent.form_view.WebBrowser.ExecWB(7,1);\r\n}\r\n\r\nfunction form_export()\r\n{\r\n parent.form_view.focus();\r\n parent.form_view.WebBrowser.Exec";
echo "WB(4,1);\r\n}\r\n\r\nfunction flow_view()\r\n{\r\n var FLOW_VIEW=\"\";\r\n if(CHECK1.checked)\r\n FLOW_VIEW+=\"1\";\r\n if(CHECK2.checked)\r\n FLOW_VIEW+=\"2\";\r\n if(CHECK3.checked)\r\n FLOW_VIEW+=\"3\";\r\n if(CHECK4.checked)\r\n FLOW_VIEW+=\"4\";\r\n parent.form_view.location=\"print.php?RUN_ID=";
echo $RUN_ID;
echo "&FLOW_ID=";
echo $FLOW_ID;
echo "&FLOW_VIEW=\"+FLOW_VIEW;\r\n}\r\n\r\nfunction flow_window()\r\n{\r\n var FLOW_VIEW=\"\";\r\n if(CHECK1.checked)\r\n FLOW_VIEW+=\"1\";\r\n if(CHECK2.checked)\r\n FLOW_VIEW+=\"2\";\r\n if(CHECK3.checked)\r\n FLOW_VIEW+=\"3\";\r\n if(CHECK4.checked)\r\n FLOW_VIEW+=\"4\";\r\n window.open(\"print.php?RUN_ID=";
echo $RUN_ID;
echo "&FLOW_ID=";
echo $FLOW_ID;
echo "&FLOW_VIEW=\"+FLOW_VIEW);\r\n}\r\n\r\n</script>\r\n</head>\r\n\r\n\r\n<body class=\"bodycolor\" topmargin=\"7\">\r\n<table class=\"Big1\" width=\"100%\">\r\n<tr>\r\n\t<td align=\"left\"><b>\r\n <input type=\"checkbox\" name=\"CHECK1\" id=\"CHECK1\" class=\"BigButton\" onclick=\"flow_view();\" checked> <label for=\"CHECK1\" style=\"cursor:hand\">表单</label> \r\n <input type=\"checkbox\" name=\"CHECK2\" id=\"CHECK2\" class=\"BigButton\" onclick=\"flow_view()";
echo ";\" checked> <label for=\"CHECK2\" style=\"cursor:hand\">公共附件</label> \r\n <input type=\"checkbox\" name=\"CHECK3\" id=\"CHECK3\" class=\"BigButton\" onclick=\"flow_view();\" checked> <label for=\"CHECK3\" style=\"cursor:hand\">会签</label> \r\n <input type=\"checkbox\" name=\"CHECK4\" id=\"CHECK4\" class=\"BigButton\" onclick=\"flow_view();\" checked> <label for=\"CHECK4\" style=\"cursor:hand\">流程图</label></b>\r\n </td>\r\n ";
echo " <td align=\"right\">\r\n <input type=\"button\" value=\"打印预览\" class=\"BigButton\" onclick=\"print_preview()\"> \r\n <input type=\"button\" value=\"打印\" class=\"BigButton\" onclick=\"parent.form_view.myprint();\" title=\"打印该页面\"> \r\n <input type=\"button\" value=\"复制\" class=\"BigButton\" onclick=\"copy_form();\" title=\"复制全文至剪贴版,可粘贴至word并调整格式打印(先打开word再复制)\"> \r\n <input ty";
echo "pe=\"button\" value=\"导出\" class=\"BigButton\" onclick=\"form_export();\" title=\"导出表单\"> \r\n <input type=\"button\" value=\"新窗口\" class=\"BigButton\" onclick=\"flow_window();\" title=\"在新窗口显示表单\"> \r\n <input type=\"button\" value=\"关闭\" class=\"BigButton\" onclick=\"parent.close();\">\r\n </td>\r\n</tr>\r\n</div>\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -