⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remark.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once 'inc/auth.php';
if ($OP != '1')
{
	$query1 = 'select * from USER where USER_ID=\'' . $LOGIN_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=\'' . $LOGIN_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">
<script Language="JavaScript">
function CheckForm()
{
 if(document.form1.CONTENT.value=="")
 { alert("备注不能为空!");
	 return (false);
 }
else
 {
 	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"><span 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="submit" value="确定" class="BigButton">&nbsp;&nbsp;
			<input type="button" value="关闭" class="BigButton" onclick="window.close();">
		</td>
	</tr>
</table>
</form>
';
if ($OP == '1')
{
	$query = 'update ATTEND_DUTY set REMARK=\'' . $CONTENT . '\' where USER_ID=\'' . $LOGIN_USER_ID . '\' and REGISTER_TYPE=\'' . $REGISTER_TYPE . '\' and to_days(REGISTER_TIME)=to_days(\'' . $REGISTER_TIME . '\')';
	echo $query;
	exequery ($connection, $query);
	echo ' <script>
 	window.close();
 </script>
';
}
echo '</body>
</html>';
?>

⌨️ 快捷键说明

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