📄 content_-2.php
字号:
<?php
$paraarray = getindexpara( $block_id );
$rownum = $paraarray['block_row'];
$CUR_DATE = date( "Y-m-d", time( ) );
$notify_count = 0;
$query = "\r\n\t\tSELECT * from NOTIFY where (TO_ID='ALL_DEPT' or InStr(TO_ID,',{$LOGIN_DEPT_ID},')>0) and begin_date<='{$CUR_DATE}' and (end_date>='{$CUR_DATE}' or end_date is null) order by BEGIN_DATE desc LIMIT 0,{$rownum} \r\n\t\t";
$cursor = exequery( $connection, $query );
$i = 1;
while ( $row = mysql_fetch_array( $cursor ) )
{
++$notify_count;
$notify_id = $row['NOTIFY_ID'];
$subject = $row['SUBJECT'];
$readers = $row['READERS'];
$from_id = $row['FROM_ID'];
$subject = str_replace( "<", "<", $subject );
$subject = str_replace( ">", ">", $subject );
$subject = stripslashes( $subject );
$begin_date = $row['BEGIN_DATE'];
$begin_date = strtok( $begin_date, " " );
echo "\t<div class=\"linkdiv\">\r\n\t<IMG SRC=\"/images/littlegif/news_bullet.gif\" WIDTH=\"15\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"\">\r\n\t<a href=\"#\" onclick=\"openWindows('/general/notify/show/read_notify.php?NOTIFY_ID=";
echo $notify_id;
echo "');\">";
echo substrgb( $subject, $paraarray['subject_length'], "..." );
echo "</a>\r\n ";
if ( $paraarray['is_show_date'] == 1 )
{
echo "<span class =\"linkgray10\">({$begin_date})</span>";
}
if ( $paraarray['is_show_creator'] == 1 )
{
$user_name = getusername( $from_id );
}
echo "<span class =\"linkgray\">{$user_name}</span>";
if ( !find_id( $readers, $LOGIN_USER_ID ) )
{
echo "<img src='/images/newred.gif' alt='未查看' align='absmiddle'>";
}
echo "\t</div>\r\n\t";
++$i;
}
if ( $notify_count == 0 )
{
echo $nothingdata;
}
echo "<div align=\"right\" style=\"padding:2px;font-size:12px;\"><a href=\"/general/notify/show\">更多</a></div>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -