📄 control.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>读邮件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function copy_email()
{
parent.mail_view.document.execCommand('selectall');
parent.mail_view.document.execCommand('copy');
parent.mail_view.document.execCommand('unselect');
alert("邮件全文已复制到剪贴板!");
}
</script>
</head>
<body class="bodycolor" topmargin="7">
<?
$CURSOR_ID=intval($CURSOR_ID)-1;
if($CURSOR_ID<0)
{
$CURSOR_ID=0;
$LIMIT_COUNT=2;
}
else
$LIMIT_COUNT=3;
$query = "SELECT EMAIL_ID from EMAIL where BOX_ID=$BOX_ID and TO_ID='$LOGIN_USER_ID' and SEND_FLAG='1' and (DELETE_FLAG='0' or DELETE_FLAG='2') order by SEND_TIME desc limit $CURSOR_ID,$LIMIT_COUNT";
$cursor= exequery($connection,$query);//echo $query;
$LETER_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$LETER_COUNT++;
if($LIMIT_COUNT==3&&$LETER_COUNT==1)
{
$EMAIL_ID_PRE=$ROW["EMAIL_ID"];
$CURSOR_ID_PRE=$CURSOR_ID+$LETER_COUNT-1;
}
if($LIMIT_COUNT==2&&$LETER_COUNT==2 || $LETER_COUNT==3)
{
$EMAIL_ID_NEXT=$ROW["EMAIL_ID"];
$CURSOR_ID_NEXT=$CURSOR_ID+$LETER_COUNT-1;
}
}
?>
<center>
<?
if($EMAIL_ID_PRE!="")
{
?>
<input type="button" value="上一封" class="BigButton" onclick="parent.location='index.php?PAGE_START=<?=$PAGE_START?>&EMAIL_ID=<?=$EMAIL_ID_PRE?>&BOX_ID=<?=$BOX_ID?>&CURSOR_ID=<?=$CURSOR_ID_PRE?>';" title="上一封邮件">
<?
}
?>
<?
if($EMAIL_ID_NEXT!="")
{
?>
<input type="button" value="下一封" class="BigButton" onclick="parent.location='index.php?PAGE_START=<?=$PAGE_START?>&EMAIL_ID=<?=$EMAIL_ID_NEXT?>&BOX_ID=<?=$BOX_ID?>&CURSOR_ID=<?=$CURSOR_ID_NEXT?>';" title="下一封邮件">
<?
}
?>
<input type="button" value="回复" class="BigButton" onclick="parent.mail_view.reply();" title="回复此邮件">
<input type="button" value="全部回复" class="BigButton" onclick="parent.mail_view.reply_all();" title="回复此邮件给所有收到该邮件的人">
<input type="button" value="转发" class="BigButton" onclick="parent.mail_view.fw();" title="转发此邮件">
<input type="button" value="删除" class="BigButton" onclick="parent.mail_view.delete_email();" title="删除此邮件">
<input type="button" value="打印" class="BigButton" onclick="parent.mail_view.print_email();" title="打印此邮件">
<input type="button" value="复制全文" class="BigButton" onclick="copy_email();" title="复制全文">
<?
if($QUERY=="")
{
?>
<input type="button" value="返回" class="BigButton" onClick="parent.location='../?BOX_ID=<?=$BOX_ID?>&PAGE_START=<?=$PAGE_START?>'">
<?
}
else
{
?>
<input type="button" value="返回" class="BigButton" onClick="history.back();">
<?
}
?>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -