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

📄 15.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$strlink1 = $_SERVER['PHP_SELF'];
if ( strpos( $strlink1, "block_02.php" ) === false )
{
	$isimg1 = true;
}
if ( $isimg1 == true )
{
	$imgurl011 = "background=\"/theme/4/bg_mt_line_.gif\"";
	$imgurl021 = "background=\"/theme/1/newsbg.gif\"";
	$imgurl041 = "";
	$strimg1 = "<img src=\"/theme/1/gray_up_arrow.gif\" width=\"30\" height=\"22\" border=\"0\" id=\"imgarrow011\" title=\"展开/收缩\" onClick=\"ControlContent011();\" style=\"cursor:hand\">";
	$td04width1 = "30";
	$tdbgcolor1 = "#EBEBEB";
	$fontstyle1 = "a";
	$jscontrolu1 = "/theme/1/gray_up_arrow.gif";
	$jscontrold1 = "/theme/1/gray_down_arrow.gif";
}
else
{
	$imgurl011 = "background=\"/theme/1/darkheadleft.gif\"";
	$imgurl021 = "background=\"/theme/1/darkheadbg.gif\"";
	$imgurl041 = "/theme/1/darkheadbg.gif\"";
	$strimg1 = "<img src=\"/theme/1/black_up_arrow.gif\" width=\"19\" height=\"28\" border=\"0\" id=\"imgarrow011\" title=\"展开/收缩\" onClick=\"ControlContent011();\" style=\"cursor:hand\">";
	$td04width1 = "19";
	$tdbgcolor1 = "#ABABAB";
	$fontstyle1 = "b";
	$jscontrolu1 = "/theme/1/black_up_arrow.gif";
	$jscontrold1 = "/theme/1/black_down_arrow.gif";
}
echo "<s";
echo "cript>\r\nfunction ControlContent011(){\r\n    if (contentid011.style.display == 'none'){\r\n\t    contentid011.style.display = '';\r\n\t\timgarrow011.src = '";
echo $jscontrolu1;
echo "';\r\n\t}\r\n    else {\r\n\t    contentid011.style.display = 'none';\r\n\t\timgarrow011.src = '";
echo $jscontrold1;
echo "';\r\n\t}\r\n\r\n}\r\n\r\nfunction plan_detail(PLAN_ID)\r\n{\r\n URL=\"../work_plan/show/plan_detail.php?PLAN_ID=\"+PLAN_ID;\r\n myleft=(screen.availWidth-500)/2;\r\n window.open(URL,\"read_work_plan\",\"height=400,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=\"+myleft+\",resizable=yes\");\r\n}\r\n</script>\r\n\r\n<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"newsbg\" align=";
echo "\"center\">\r\n   <tr>\r\n     <td width=\"88\" ";
echo $imgurl011;
echo ">\r\n\t <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n       <tr>\r\n         <td width=\"15%\">&nbsp;</td>\r\n         <td height=\"18\"><a href='../work_plan/show/query/query.php' target='main' class=\"";
echo $fontstyle1;
echo "\">最近计划</a></td>\r\n        </tr>\r\n     </table>\r\n\t </td>\r\n     <td ";
echo $imgurl021;
echo ">&nbsp;</td>\r\n     <td width=\"";
echo $td04width1;
echo "\" align=\"right\" ";
echo $imgurl041;
echo ">";
echo $strimg1;
echo "</td>\r\n   </tr>\r\n</table>\r\n<div class=\"small\">\r\n<table width=\"100%\" id=\"contentid011\"   border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"darkbord\">\r\n\t<tr><td colspan=\"4\" bgcolor=\"";
echo $tdbgcolor1;
echo "\" height=\"1\"></td></tr>\r\n";
$CUR_DATE = date( "Y-m-d", time( ) );
$connection = openconnection( );
if ( $_SESSION['LOGIN_USER_PRIV'] != "1" )
{
	$query = "SELECT * from WORK_PLAN ORDER BY PLAN_ID DESC";
}
else
{
	$query = "SELECT * from WORK_PLAN ORDER BY PLAN_ID DESC";
}
$cursor = exequery( $connection, $query );
$PLAN_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$plan_id = $ROW['PLAN_ID'];
	$name = $ROW['NAME'];
	$CONTENT = $ROW['CONTENT'];
	$BEGIN_DATE = $ROW['BEGIN_DATE'];
	$END_DATE = $ROW['END_DATE'];
	$manager = $ROW['MANAGER'];
	$participator = $ROW['PARTICIPATOR'];
	$to_id = $ROW['TO_ID'];
	$sql = "select DEPT_ID from user where USER_ID='".$_SESSION['LOGIN_USER_ID']."'";
	$cs = exequery( $connection, $query );
	if ( $r = mysql_fetch_row( $cs ) )
	{
		$dept_id = $r[0];
	}
	if ( $to_id != "ALL_DEPT" && strpos( $manager, $_SESSION['LOGIN_USER_ID'] ) === false && strpos( $participator, $_SESSION['LOGIN_USER_ID'] ) === false && strpos( $to_id, $dept_id ) === false )
	{
		continue;
	}
	++$PLAN_COUNT;
	if ( 5 < $PLAN_COUNT )
	{
	}
	else
	{
		echo "\t<tr height=\"20\">\r\n            <td width=\"2%\" colspan=\"2\">&nbsp;</td>\r\n            <td>\r\n";
		if ( compare_date( $CUR_DATE, $BEGIN_DATE ) < 0 )
		{
			$STATUS = 1;
			$STATUS_DESC = "待生效";
		}
		else
		{
			$STATUS = 2;
			$STATUS_DESC = "<font color='#00AA00'><b>已生效</span>";
		}
		if ( $END_DATE != "0000-00-00" && 0 < compare_date( $CUR_DATE, $END_DATE ) )
		{
			$STATUS = 3;
			$STATUS_DESC = "<font color='#FF0000'><b>已终止</span>";
		}
		echo " <a href=\"javascript:plan_detail('";
		echo $plan_id;
		echo "');\">";
		echo substrgb( $name, 25, "..." );
		echo "</a></td>\r\n<td align='right'>";
		echo $STATUS_DESC;
		echo "</td>\r\n </tr>\r\n<tr><td colspan=\"4\" bgcolor=\"";
		echo $tdbgcolor1;
		echo "\" height=\"1\"></td></tr>\r\n";
	}
}
if ( $PLAN_COUNT == 0 )
{
	echo "<tr><td width=\"2%\">&nbsp;</td>\r\n  <td colspan=\"3\">暂无工作计划</td>\r\n</tr>\r\n\t  <tr><td colspan=\"4\" bgcolor=\"";
	echo $tdbgcolor1;
	echo "\" height=\"1\"></td></tr>\r\n";
}
echo "</table>\r\n</div>";
?>

⌨️ 快捷键说明

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