fw.php

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

PHP
87
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  echo '
<html>
<head>
<title>转发对话框</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript Language="JavaScript">
function clear_user()
{
  document.form1.TO_NAME.value="";
  document.form1.TO_ID.value="";
}
function LoadWindow()
{
  URL="/module/user_select";
  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
  window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizabl';
  echo 'e:1;dialogWidth:400px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function CheckForm()
{
   if (document.form1.TO_ID.value=="")
   {
   	 alert("请选择接收人!");
     return (false);
   }
 return (true);
}
</script>
</head>
<body class="bodycolor" topmargin="5">
';
  $query = (((''.'SELECT * from FILE_CONTENT where find_in_set(CONTENT_ID,\'').$CONTENT_ID).'\')');
  $cursor = exequery ($connection, $query);
  while ($ROW = mysql_fetch_array ($cursor))
  {
    $SORT_ID = $ROW['SORT_ID'];
    $USER_ID = $ROW['USER_ID'];
    if ((($SORT_ID == 0) AND ($USER_ID != $LOGIN_USER_ID)))
    {
      exit ();
    }
    $query = ((''.'SELECT USER_ID from FILE_SORT where SORT_ID=').$SORT_ID);
    $cursor1 = exequery ($connection, $query);
    if ($ROW = mysql_fetch_array ($cursor1))
    {
      $USER_ID = $ROW['USER_ID'];
      if (($USER_ID != $LOGIN_USER_ID))
      {
        exit ();
        continue;
      }
      continue;
    }
    if (($SORT_ID != '0'))
    {
      exit ();
      continue;
    }
  }
  if ((mysql_num_rows ($cursor) == 0))
  {
    exit ();
  }
  echo '<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/arrow_right.gif"  width="17" height="17">';
  echo '<s';
  echo 'pan class="big3"> 文件转发</span><br>
    </td>
  </tr>
</table>
<table align="center" border="0" width="100%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form enctype="multipart/form-data" action="fw_submit.php"  method="post" name="form1" onsubmit="return CheckForm();">
  <tr>
    <td nowrap class="TableContent" width="50">转发给:</td>
    <td class="TableData"';
  echo ' colspan="3">
    	<input type="hidden" name="TO_ID" value="">
      <textarea name="TO_NAME" class="BigStatic" cols="30" rows="8" class="BigStatic" wrap="yes" readonly></textarea>
      &nbsp;<input type="button" value="添 加" class="SmallButton" onClick="LoadWindow()" title="添加人员" name="button">
      &nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_user()" title="

⌨️ 快捷键说明

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