sign.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 76 行
PHP
76 行
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>签章控件设定</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
function my_submit()
{
if(ITEM_NAME.value=="")
{
alert("控件名称不能为空");
return;
}
var parent_window = parent.dialogArguments;
var control_html="<img src=\\"sign.gif\\" class=\\"SIGN\\" align=absmiddle border=0 style=\\"cursor:hand\\" value=\\""+ITEM_NAME.value.replace("\\"",""")+"\\" title=\\"签章控件:"+ITEM_NAME.value.replace("\\"",""")+"\\" dataFld=\\""+ITE';
echo 'M_LIST.value+"\\">";
if(edit_flag==1)
{
oSelection = parent.dialogArguments.document.selection.createRange();
oSelection(0).title=ITEM_NAME.value;
parent_window.doStyle("delete");
parent_window.insertHtml(control_html);
}
else
parent_window.EDIT_HTML.insertHtml(control_html);
window.close();
}
//-- 获取控件属性 --
var edit_flag=0;
function LoadDo()';
echo '
{
oSelection = dialogArguments.document.selection.createRange();
sRangeType = dialogArguments.document.selection.type;
if (sRangeType == "Control")
{
edit_flag=1;
ITEM_NAME.value = oSelection(0).value;
ITEM_LIST.value = oSelection(0).dataFld;
}
ITEM_NAME.focus();
}
</script>
</head>
<body topmargin="0" onload="LoadDo();">
<table border="0" cellspacing="1" w';
echo 'idth="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableContent">
<td nowrap>控件名称:
</td>
<td nowrap>
<Input name="ITEM_NAME" type="text" class="SmallInput" size="30">
</td>
</tr>
<tr class="TableContent">
<td nowrap>验证锁定字段<br>(用,号分隔):
</td>
<td nowrap>
<textarea name="ITEM_LIST" class="S';
echo 'mallInput" cols="28" rows="4" title="不填写则不验证"></textarea>
</td>
</tr>
<tr class="TableControl">
<td nowrap align="center" colspan=2>
<input type="button" onclick="my_submit();" value="确 定" class="SmallButton">
</td>
</tr>
</table>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?