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

📄 left.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php
 

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>控制面板</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$query = "SELECT * from USER where USER_ID='".$LOGIN_USER_ID."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$USER_NAME = $ROW['USER_NAME'];
}
echo "<table border=\"0\" cellspacing=\"0\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <TR class=\"TableHeader\" valign=top>\r\n   <TD nowrap>\r\n    <b>日志操作</b>\r\n   </TD>\r\n </TR>\r\n <TR class=\"TableData\" valign=top>\r\n   <TD nowrap>\r\n      <img border=0 src=\"/images/notify_new.gif\" WIDTH=\"19\" HEIGHT=\"18\" align=\"absmiddle\"><a href=\"new\" title=添加新日志 target=fra_main>新建</a>\r\n      <img border=0 src=\"/images/query.gif\" WIDTH=\"19\" HEIGHT=\"18\" align=\"absmiddle\"><a href=\"query.php\" title=查询已有日志 target=fra_main>查询</a>\r\n      <img border=0 src=\"/images/query.gif\" WIDTH=\"19\" HEIGHT=\"18\" align=\"absmiddle\"><a href=\"index1.php\" title=最新10篇日志 target=fra_main>最新</a>\r\n   </TD>\r\n </TR>\r\n <TR class=\"TableHeader\" valign=top>\r\n   <TD nowrap>\r\n    <b>日历</b>\r\n   </TD>\r\n </TR>\r\n <TR class=\"TableData\" valign=top>\r\n   <TD nowrap>\r\n";
$CUR_YEAR = date( "Y" );
$CUR_MON = date( "m" );
$CUR_DAY = date( "d" );
if ( $BTN_OP != "" )
{
	$DATE = strtotime( $BTN_OP." month", strtotime( $YEAR."-".$MONTH."-".$DAY ) );
	$YEAR = date( "Y", $DATE );
	$MONTH = date( "m", $DATE );
	$DAY = date( "d", $DATE );
}
if ( !$YEAR )
{
	$YEAR = $CUR_YEAR;
}
if ( !$MONTH )
{
	$MONTH = $CUR_MON;
}
if ( !$DAY )
{
	$DAY = $CUR_DAY;
}
if ( !checkdate( $MONTH, $DAY, $YEAR ) )
{
	message( "错误", "日期不正确" );
	exit( );
}
$DATE = strtotime( $YEAR."-".$MONTH."-".$DAY );
$MONTH_BEGIN = strtotime( $YEAR."-".$MONTH."-01" );
$MONTH_END = strtotime( $YEAR."-".$MONTH."-".date( "t", $DATE ) );
echo "\t\t\t  <table width=\"100%\" border=\"0\" cellspacing=\"1\" class=\"small\" cellpadding=\"3\" align=\"center\">\r\n\t\t\t    <tr align=\"center\" class=\"TableData\">\r\n\t\t\t      <td colspan=\"7\" align=\"center\">\r\n<a href=\"left.php?BTN_OP=-1&YEAR=";
echo $YEAR;
echo "&MONTH=";
echo $MONTH;
echo "&DAY=1\"><<</a>\r\n";
echo $YEAR;
echo "年";
echo $MONTH;
echo "月\r\n<a href=\"left.php?BTN_OP=1&YEAR=";
echo $YEAR;
echo "&MONTH=";
echo $MONTH;
echo "&DAY=1\">>></a>\r\n\t\t\t      \t</td>\r\n\t\t\t    </tr>\r\n\t\t\t    <tr align=\"center\" class=\"TableData\">\r\n\t\t\t      <td width=\"14%\">日</td>\r\n\t\t\t      <td width=\"14%\">一</td>\r\n\t\t\t      <td width=\"14%\">二</td>\r\n\t\t\t      <td width=\"14%\">三</td>\r\n\t\t\t      <td width=\"14%\">四</td>\r\n\t\t\t      <td width=\"14%\">五</td>\r\n\t\t\t      <td width=\"14%\">六</td>\r\n\t\t\t    </tr>\r\n\t\t\t";
$I = 1;
for ( ;	$I <= date( "t", $DATE );	++$I	)
{
	$WEEK = date( "w", strtotime( $YEAR."-".$MONTH."-".$I ) );
	if ( $WEEK == 0 || $I == 1 )
	{
		echo "<tr  class=\"TableData\">";
	}
	$J = 0;
	for ( ;	$J < $WEEK && $I == 1;	++$J	)
	{
		echo "\t\t\t     <td class=\"TableData\" valign=\"top\">&nbsp</td>\r\n\t\t\t";
	}
	echo "\t\t\t     <td valign=\"top\">\r\n\t\t\t       <div align=\"right\" class=\"";
	if ( $I == $DAY )
	{
		echo "TableContent";
	}
	echo "\" style=\"width: 100%;\">\r\n\t\t\t         <a href=\"search.php?BEGIN_DATE=";
	echo $YEAR;
	echo "-";
	echo $MONTH;
	echo "-";
	echo $I;
	echo "&END_DATE=";
	echo $YEAR;
	echo "-";
	echo $MONTH;
	echo "-";
	echo $I;
	echo "&&DIA_TYPE=0\" target=fra_main>";
	echo $I;
	echo "</a>\r\n\t\t\t       </div>\r\n\t\t\t       <div>\r\n\t\t\t         ";
	echo $CAL_ARRAY[$I];
	echo "\t\t\t       </div>\r\n\t\t\t     </td>\r\n\t\t\t";
	if ( $WEEK == 6 )
	{
		echo "</tr>";
	}
}
if ( $WEEK != 6 )
{
	$I = $WEEK;
	for ( ;	$I < 6;	++$I	)
	{
		echo "\t\t\t     <td class=\"TableData\">&nbsp</td>\r\n\t\t\t";
	}
	echo "\t\t\t   </tr>\r\n\t\t\t";
}
echo "\t\t\t\t  </table>\r\n   </TD>\r\n </TR>\r\n <TR class=\"TableHeader\" valign=top>\r\n   <TD nowrap>\r\n    <b>最新点评</b>\r\n   </TD>\r\n </TR>\r\n  <TR class=\"TableData\" valign=top>\r\n   <TD nowrap>\r\n   \t";
$query = "SELECT distinct DIARY.DIA_ID,SUBJECT,DIARY.CONTENT from DIARY,DIARY_COMMENT where DIARY_COMMENT.DIA_ID=DIARY.DIA_ID and DIARY.USER_ID='".$LOGIN_USER_ID."' order by SEND_TIME desc,DIA_DATE desc,DIA_ID desc";
$cursor = exequery( $connection, $query );
$DIA_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$DIA_COUNT;
	if ( 10 < $DIA_COUNT )
	{
		break;
	}
	$DIA_ID = $ROW['DIA_ID'];
	$SUBJECT1 = $ROW['SUBJECT'];
	$CONTENT = $ROW['CONTENT'];
	$SUBJECT1 = csubstr( strip_tags( $SUBJECT1 ), 0, 20 ).( 20 < strlen( $SUBJECT1 ) ? "..." : "" );
	if ( $SUBJECT1 == "" )
	{
		$SUBJECT1 = csubstr( strip_tags( $CONTENT ), 0, 20 ).( 20 < strlen( $CONTENT ) ? "..." : "" );
	}
	echo "    . <a href=\"read.php?DIA_ID=";
	echo $DIA_ID;
	echo "\" target=fra_main>";
	echo $SUBJECT1;
	echo "</a><br>\r\n";
}
echo "   </TD>\r\n </TR>\r\n</TABLE>\r\n\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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