user.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 78 行

PHP
78
字号
<?
  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;
  }
  if(edit_flag==0)
  {
     var parent_window = parent.dialogArguments;
     var control_html="<img src=\\"user.gif\\" class=\\"USER\\" align=absmiddle border=0 style=\\"cursor:hand\\" value=\\""+ITEM_NAME.value.replace("\\"","&quot;")+"\\" title=\\"部门人员控件:"+ITEM_NAME.value.replace';
  echo '("\\"","&quot;")+"\\">";
     parent_window.EDIT_HTML.insertHtml(control_html);
  }
  else
  {
     oSelection = dialogArguments.document.selection.createRange();
     sRangeType = dialogArguments.document.selection.type;
     if (sRangeType == "Control")
     {
   	oSelection(0).value = ITEM_NAME.value;
   	oSelection(0).title = "部门人员控件:"+ITEM_NAME.value;
     }
  }
  window.c';
  echo 'lose();
}
//-- 获取控件属性 --
var edit_flag=0;
function LoadDo()
{
  oSelection = dialogArguments.document.selection.createRange();
  sRangeType = dialogArguments.document.selection.type;
  if (sRangeType == "Control")
  {
  	edit_flag=1;
  	ITEM_NAME.value = oSelection(0).value;
  }
  ITEM_NAME.focus();
}
</script>
</head>
<body topmargin="0" onload="LoadDo();">
<table bo';
  echo 'rder="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
  <tr class="TableContent">
      <td nowrap><b>对应的输入框控件名称</b>:
      </td>
      <td nowrap>
       <Input name="ITEM_NAME" type="text" class="SmallInput" size="20">
      </td>
  </tr>
  <tr class="TableData">
      <td colspan="2">说明:部门人员控件选择的部门、人员将回填到该输入框中
 ';
  echo '     </td>
  </tr>
  <tr>
      <td class="TableControl" colspan="2" align="center">
        <input type="submit" onclick="my_submit();" value="确 定" class="SmallButton">
      </td>
  </tr>
</table>
</body>
</html>
';
?>

⌨️ 快捷键说明

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