📄 6.php
字号:
<?php
function is_priview6( $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=\"imgarrow06\" title=\"展开/收缩\" onClick=\"ControlContent06();\" 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=\"imgarrow06\" title=\"展开/收缩\" onClick=\"ControlContent06();\" 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 open_email(EMAIL_ID)\r\n{\r\n URL=\"/general/email/inbox/read_email/read_email.php?EMAIL_ID=\"+EMAIL_ID+\"&BOX_ID=0\";\r\n myleft=(screen.availWidth-500)/2;\r\n window.open(URL,\"read_email\",\"height=500,width=600,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=\"+myleft+\",resizable=yes\");\r\n}\r\nfunction ControlContent06(){\r\n if (contentid06.style.display == 'none'){\r\n\t ";
echo " contentid06.style.display = '';\r\n\t\timgarrow06.src = '";
echo $jscontrolu;
echo "';\r\n\t}\r\n else {\r\n\t contentid06.style.display = 'none';\r\n\t\timgarrow06.src = '";
echo $jscontrold;
echo "';\r\n\t}\t\r\n\r\n}\r\n</script>\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%\"> </td>\r\n <td height=\"18\">";
if ( !is_priview6( "12,", $u_priv ) )
{
echo "<span style=\"font:bold;\">最近邮件</span>";
}
else
{
echo "<a href=\"/general/email/inbox/?BOX_ID=0\" target=\"main\" class=\"".$fontstyle."\">最近邮件</a>";
}
echo "</td>\r\n </tr>\r\n </table></td>\r\n <td ";
echo $imgurl02;
echo "> </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\" cellspacing=\"0\" cellpadding=\"0\" class=\"darkbord\" id=\"contentid06\">\r\n";
if ( !is_priview6( "12,", $u_priv ) )
{
echo "<tr><td>";
message( "", "无权查看此栏目!" );
echo "</td></tr>\r\n<tr><td bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td></tr>\r\n\r\n\t\t\r\n\r\n <!---------------------短消息结束---------------------------------------> \r\n\t\t <!-------------------- 内部邮件 ----------------------->\r\n";
}
else
{
$query = "SELECT count(*) from EMAIL where TO_ID='{$LOGIN_USER_ID}' and SEND_FLAG='1' and READ_FLAG='0' and DELETE_FLAG!='1'";
$cursor = exequery( $connection, $query );
$NEW_LETER_COUNT = 0;
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$NEW_LETER_COUNT = $ROW[0];
}
$query = "SELECT count(*) from EMAIL where TO_ID='{$LOGIN_USER_ID}' and SEND_FLAG='1' and DELETE_FLAG!='1'";
$cursor = exequery( $connection, $query );
$INBOX_COUNT = 0;
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$INBOX_COUNT = $ROW[0];
}
$query = "SELECT * from EMAIL where BOX_ID=0 and TO_ID='{$LOGIN_USER_ID}' and SEND_FLAG='1' and DELETE_FLAG!='1' order by EMAIL_ID desc";
$cursor = exequery( $connection, $query );
$OUTBOX_COUNT = 0;
$i = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$OUTBOX_COUNT = count( $ROW['EMAIL_ID'] );
$EMAIL_ID = $ROW['EMAIL_ID'];
$SUBJECT = $ROW['SUBJECT'];
$SUBJECT = str_replace( "<", "<", $SUBJECT );
$SUBJECT = str_replace( ">", ">", $SUBJECT );
$SUBJECT = stripslashes( $SUBJECT );
++$i;
if ( 5 < $i )
{
}
else
{
echo "<tr height=\"20\"><td width=\"2%\"></td>\r\n<td><a href=\"javascript:open_email('";
echo $EMAIL_ID;
echo "');\">";
echo $SUBJECT;
echo "</a></td>\r\n</tr>\r\n<tr><td colspan=\"2\" bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td></tr>\r\n";
}
}
echo "<tr>\r\n<td width=\"2%\"></td>\r\n<td width=\"\">\r\n 收件箱 ";
echo $INBOX_COUNT;
echo " 封邮件,";
echo $NEW_LETER_COUNT;
echo " 封新邮件\r\n\r\n";
if ( 0 < $NEW_LETER_COUNT )
{
echo " <img src=\"/images/email_new.gif\" align=\"absmiddle\">\r\n";
}
echo "<tr><td colspan=\"2\" bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td></tr>\r\n";
}
echo "</table>\r\n</div>\r\n<br> ";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -