remark.php

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

PHP
108
字号
<?
  include_once 'inc/auth.php';
  if (($OP == '1'))
  {
    echo $query = (((((((((''.'update ATTEND_DUTY set REMARK=\'').$CONTENT).'\' where USER_ID=\'').$USER_ID).'\' and REGISTER_TYPE=\'').$REGISTER_TYPE).'\' and to_days(REGISTER_TIME)=to_days(\'').$REGISTER_TIME).'\')');
    exequery ($connection, $query);
    echo ' ';
    echo '<s';
    echo 'cript>
 	window.close();
 </script>
';
    exit ();
  }
  $query1 = (((''.'select * from USER where USER_ID=\'').$USER_ID).'\'');
  $cursor1 = exequery ($connection, $query1);
  if ($ROW = mysql_fetch_array ($cursor1))
  {
    $DUTY_TYPE = $ROW['DUTY_TYPE'];
  }
  $query = ((''.'SELECT * from ATTEND_CONFIG where DUTY_TYPE=').$DUTY_TYPE);
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $temp = ('DUTY_TYPE'.$REGISTER_TYPE);
    $DUTY_TYPE = $ROW[$temp];
  }
  if (($DUTY_TYPE == '2'))
  {
    $TITLE = '备注';
  }
  if (($DUTY_TYPE == '1'))
  {
    $TITLE = '备注';
  }
  $query = (((((((''.'SELECT REMARK from ATTEND_DUTY where USER_ID=\'').$USER_ID).'\' and REGISTER_TYPE=\'').$REGISTER_TYPE).'\' and to_days(REGISTER_TIME)=to_days(\'').$REGISTER_TIME).'\')');
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $CONTENT = $ROW['REMARK'];
  }
  echo '
<html>
<head>
<title>';
  echo $TITLE;
  echo '</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript Language="JavaScript">
function CheckForm()
{
   document.form1.OP.value="1"
   return (true);
}
</script>
</head>
';
  $CUR_HOUR = '09';
  $CUR_MIN = '00';
  echo '
<body class="bodycolor" topmargin="5" onload="document.form1.CONTENT.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/calendar.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> ';
  echo $TITLE;
  echo '</span>
    </td>
  </tr>
</table>
<br>
 <table border="0" width="50%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
  <form action="remark.php"  method="post" name="form1" onsubmit="return CheckForm();">
    <tr>
      <td nowrap class="TableData"> ';
  echo $TITLE;
  echo ':</td>
      <td class="TableData">
        <textarea name="CONTENT" cols="35" rows="5" class="BigInput">';
  echo $CONTENT;
  echo '</textarea>
      </td>
    </tr>
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap>
        <input type="hidden" name="REGISTER_TYPE" value="';
  echo $REGISTER_TYPE;
  echo '">
        <input type="hidden" name="REGISTER_TIME" value="';
  echo $REGISTER_TIME;
  echo '">
        <input type="hidden" name="OP">
        <input type="hidden" name="USER_ID" value="';
  echo $USER_ID;
  echo '">
        <input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
        <input type="button" value="关闭" class="BigButton" onclick="window.close();">
      </td>
    </tr>
  </table>
</form>
</body>
</html>';
?>

⌨️ 快捷键说明

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