stop.php

来自「通达OA官方提供的30源代码,感觉很实在」· PHP 代码 · 共 48 行

PHP
48
字号
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>停止会议</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body class="bodycolor" topmargin="8">

<?
 $query = "SELECT * from NETMEETING where FROM_ID='$LOGIN_USER_ID' and MEET_ID='$MEET_ID'";
 $cursor= exequery($connection,$query);
 if(!$ROW=mysql_fetch_array($cursor))
 {
 	  message("提示","非法操作");
 	 	exit;
 	}   

 $MSG_FILE="msg/".$MEET_ID.".msg";
 $STOP_FILE="msg/".$MEET_ID.".stp";

 $fp = fopen($MSG_FILE,"a+");
 fputs($fp,"\n[系统消息] - 会议召集人已经结束会议  ");
 flock ($fp,2);
 fclose($fp);

 $fp = fopen($STOP_FILE,"w");
 fclose($fp);


 $query="update NETMEETING set STOP='1' where MEET_ID='$MEET_ID'";
 exequery($connection,$query);
?>

<center>
  <input type="button" value="离开会场" class="SmallButton" onclick="parent.location='../'">
</center>

<script>
   parent.chat_view.location.reload();
</script>

</body>
</html>

⌨️ 快捷键说明

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