📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility.php");
include_once("inc/utility_all.php");
?>
<html>
<head>
<title>网络会议</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language=JavaScript>
window.setTimeout('this.location.reload();',60000);
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/netmeeting.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 网络会议列表</span><br>
</td>
</tr>
</table>
<br>
<?
//============================ 显示已创建会议 =======================================
$CUR_TIME=date("Y-m-d H:i:s",time());
$connection=OpenConnection();
$query = "SELECT * from NETMEETING where begin_time<='$CUR_TIME' and stop='0' order by BEGIN_TIME desc";
$cursor= exequery($connection,$query);
$MEET_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$MEET_ID=$ROW["MEET_ID"];
$TO_ID=$ROW["TO_ID"];
$SUBJECT=$ROW["SUBJECT"];
if(!find_id($TO_ID,$LOGIN_USER_ID))
continue;
$MEET_COUNT++;
$SUBJECT=str_replace("<","<",$SUBJECT);
$SUBJECT=str_replace(">",">",$SUBJECT);
$SUBJECT=stripslashes($SUBJECT);
$BEGIN_TIME=$ROW["BEGIN_TIME"];
$STOP=$ROW["STOP"];
if($TO_ID!="")
{
$TO_NAME="";
$TOK=strtok($TO_ID,",");
while($TOK!="")
{
if($TO_NAME!="")
$TO_NAME.=",";
$query1="select * from USER where USER_ID='$TOK'";
$cursor1= exequery($connection,$query1);
if($ROW=mysql_fetch_array($cursor1))
$TO_NAME.=$ROW["USER_NAME"];
$TOK=strtok(",");
}
}
if($MEET_COUNT==1)
{
?>
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
<tr class="TableHeader">
<td nowrap align="center">参会范围(部门)</td>
<td nowrap align="center">会议主题</td>
<td nowrap align="center">开始时间 <img border=0 src="/images/arrow_down.gif" width="11" height="10"></td>
</tr>
<?
}
//-------------- 统计在线人数 ----------------
$CUR_TIME=date("Y-m-d H:i:s",time());
$CUR_DATE=date("Y-m-d",time());
$CUR_HOUR=date("H",time());
$CUR_MIN=date("i",time());
$USR_FILE="meeting/msg/".$MEET_ID.".usr";
$USER_FOUND=0;
if(file_exists($USR_FILE))
{
$LINES=file($USR_FILE);
$LINES_COUNT=count($LINES);
for($I=0;$I<$LINES_COUNT;$I++)
{
if($I%3==0)
{
$POS=strpos($LINES[$I+2],chr(10));
$REFRESH_TIME=substr($LINES[$I+2],0,$POS);
$STR=strtok($REFRESH_TIME," ");
$DATE=$STR;
if(compare_date($CUR_DATE,$DATE)==0)
{
$STR=strstr($REFRESH_TIME," ");
$STR=strtok($STR,":");
$HOUR=$STR;
$STR=strtok(":");
$MIN=$STR;
if((($CUR_HOUR*60+$CUR_MIN)-($HOUR*60+$MIN))<2)
$USER_FOUND++;
}
}
}
}
?>
<tr class="TableData">
<td><?=$TO_NAME?></td>
<td><a href="meeting?MEET_ID=<?=$MEET_ID?>"><?=$SUBJECT?></a>(<?=$USER_FOUND?> 人)</td>
<td nowrap align="center"><?=$BEGIN_TIME?></td>
</tr>
<?
}
if($MEET_COUNT>0)
{
?>
</table>
<?
}
else
Message("","<br>暂无进行中的网络会议");
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -