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

📄 7.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

function is_priview7( $str, $priview )
{
	$str_array = explode( ",", $str );
	$priview = explode( ",", $priview );
	$i = 0;
	for ( ;	$i < sizeof( $priview );	++$i	)
	{
		if ( in_array( $str_array[$i], $priview ) )
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$strlink = $_SERVER['PHP_SELF'];
if ( strpos( $strlink, "block_02.php" ) === false )
{
	$isimg = true;
}
$sql = "SELECT UP.FUNC_ID_STR FROM user AS U,user_priv AS UP WHERE U.USER_ID='".$_SESSION['LOGIN_USER_ID']."' AND U.USER_PRIV=UP.USER_PRIV";
$cursor = exequery( $connection, $sql );
if ( $row = mysql_fetch_array( $cursor ) )
{
	$u_priv = $row['FUNC_ID_STR'];
}
if ( $isimg == true )
{
	$imgurl01 = "background=\"/theme/4/bg_mt_line_.gif\"";
	$imgurl02 = "background=\"/theme/1/newsbg.gif\"";
	$imgurl04 = "";
	$strimg = "<img src=\"/theme/1/gray_up_arrow.gif\" width=\"30\" height=\"22\" border=\"0\" id=\"imgarrow07\" title=\"展开/收缩\" onClick=\"ControlContent07();\" style=\"cursor:hand\">";
	$td04width = "30";
	$tdbgcolor = "#EBEBEB";
	$fontstyle = "a";
	$jscontrolu = "/theme/1/gray_up_arrow.gif";
	$jscontrold = "/theme/1/gray_down_arrow.gif";
}
else
{
	$imgurl01 = "background=\"/theme/1/darkheadleft.gif\"";
	$imgurl02 = "background=\"/theme/1/darkheadbg.gif\"";
	$imgurl04 = "/theme/1/darkheadbg.gif\"";
	$strimg = "<img src=\"/theme/1/black_up_arrow.gif\" width=\"19\" height=\"28\" border=\"0\" id=\"imgarrow07\" title=\"展开/收缩\" onClick=\"ControlContent07();\" style=\"cursor:hand\">";
	$td04width = "19";
	$tdbgcolor = "#ABABAB";
	$fontstyle = "b";
	$jscontrolu = "/theme/1/black_up_arrow.gif";
	$jscontrold = "/theme/1/black_down_arrow.gif";
}
echo "<s";
echo "cript>\r\nfunction ControlContent07(){\r\n    if (contentid07.style.display == 'none'){\r\n\t    contentid07.style.display = '';\r\n\t\timgarrow07.src = '";
echo $jscontrolu;
echo "';\r\n\t}\r\n    else {\r\n\t    contentid07.style.display = 'none';\r\n\t\timgarrow07.src = '";
echo $jscontrold;
echo "';\r\n\t}\t\r\n\r\n}\r\n</script>\r\n";
echo "<s";
echo "tyle type=\"text/css\">\r\n<!--\r\n.style2 {\tfont-size: 10px;\r\n\tfont-family: Arial, Helvetica, sans-serif;\r\n}\r\n.style5 {font-size: 12px;\r\nfont-style: italic;\r\n}\r\n-->\r\n</style>\r\n\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"/theme/1/newsbg.gif\" align=\"center\">\r\n  <tr>\r\n    <td width=\"88\" ";
echo $imgurl01;
echo ">\r\n      <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n        <tr>\r\n          <td width=\"15%\">&nbsp;</td>\r\n          <td height=\"18\">";
if ( !is_priview7( "37,", $u_priv ) )
{
	echo "<span style=\"font:bold;\">今日会议</span>";
}
else
{
	echo "<a href=\"/general/meeting/\" target=\"main\" class=\"".$fontstyle."\">今日会议</a>";
}
echo "</td>\r\n        </tr>\r\n    </table></td>\r\n    <td ";
echo $imgurl02;
echo ">&nbsp;</td>\r\n    <td width=\"";
echo $td04width;
echo "\" align=\"right\" ";
echo $imgurl04;
echo ">";
echo $strimg;
echo "</td>\r\n  </tr>\r\n</table>\r\n<div class=\"small\">\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"darkbord\" id=\"contentid07\">\r\n";
if ( !is_priview7( "37,", $u_priv ) )
{
	echo "<tr><td>";
	message( "", "无权查看此栏目!" );
	echo "</td></tr>\r\n<tr><td bgcolor=\"";
	echo $tdbgcolor;
	echo "\" height=\"1\"></td></tr>\r\n";
}
else
{
	$query = " \r\n          SELECT \r\n\t\t    M_ID,M_NAME ,M_TOPIC,M_DESC,M_PROPOSER,M_REQUEST_TIME,M_ATTENDEE,M_START,M_END,M_ROOM,M_STATUS \r\n\t\t\tFROM meeting \r\n\t\t\t   WHERE (M_STATUS='1' OR M_STATUS='2') \r\n\t\t\t\t  AND DATE_FORMAT(M_START,'%Y%m%d')='".date( "Ymd" )."' ORDER BY M_ID DESC \r\n\t\t\t\t    LIMIT 0,10\r\n\t\t\t\t\t";
	$connection = openconnection( );
	$cursor = exequery( $connection, $query );
	function isstate( $m_start, $m_end )
	{
		$ntime = date( "Y-m-d H:i:s" );
		if ( $ntime < $m_start )
		{
			$str = "会议尚未进行";
		}
		if ( $m_start <= $ntime && $ntime < $m_end )
		{
			$str = "会议正在进行";
		}
		if ( $m_end <= $ntime )
		{
			$str = "会议已经结束";
		}
		return $str;
	}
	$mc = 0;
	while ( $row = mysql_fetch_array( $cursor ) )
	{
		++$mc;
		echo "          <tr height=\"20\">\r\n\t\t  <td width=\"2%\"></td>\r\n            <td>会议名称:<a href=\"javascript:;\" onClick=\"window.open('/general/meeting/meeting_detail.php?M_ID=";
		echo $row['M_ID'];
		echo "','','height=350,width=450,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,resizable=yes');\">";
		echo $row['M_NAME'];
		echo "</a>(";
		echo isstate( $row['M_START'], $row['M_END'] );
		echo ")\r\n\t\t\t<br>主题:";
		echo $row['M_TOPIC'];
		echo "\t\t\t<br>\r\n\t\t\t";
		echo "<s";
		echo "pan style=\"font-size:10px;font-family: Arial, Helvetica, sans-serif;\">开始时间:\r\n\t\t\t";
		echo $row['M_START'];
		echo "<br>\r\n结束时间:\r\n\t\t\t";
		echo $row['M_END'];
		echo "</span>\r\n</td>\r\n          </tr>\r\n\t\t  <tr><td colspan=\"2\" bgcolor=\"";
		echo $tdbgcolor;
		echo "\" height=\"1\"></td></tr>\r\n          ";
	}
	if ( $mc < 1 )
	{
		echo "          <tr>\r\n\t\t  <td width=\"2%\" height=\"20\"></td>\r\n            <td>今天没有会议</td>\r\n          </tr>\r\n\t\t  <tr><td colspan=\"2\" bgcolor=\"";
		echo $tdbgcolor;
		echo "\" height=\"1\"></td></tr>\r\n          ";
	}
}
echo "\r\n</table>\r\n</div>\r\n<br>\r\n\r\n";
?>

⌨️ 快捷键说明

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