📄 mail.php
字号:
<?php
include("fun_check.php");
include("../includes/fun_data.php");
include("../includes/inc_var.php");
if(empty($_GET["id"]))
{
$to = "全体用户";
$id = 0;
}
else
{
$id = $_GET["id"];
DB($g_db_host, $g_db_name, $g_db_user, $g_db_password);
$db = new DBReader;
$db->execute("SELECT * FROM `".$g_db_prefix."user` WHERE u_ID = '".$id."'");
if($db->count()==0)
{
$to = "全体用户";
$id = 0;
}
else
{
$dbrow = $db->reader();
$to = "<a href=\"../index.php?id=".$id."\" target=\"_blank\">".$dbrow["u_name"]."</a>";
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>星雨留言板</title>
<link rel="stylesheet" type="text/css" href="../includes/main.css">
</head>
<body>
<script language="JavaScript">
function formcheck() {
if (this.document.form.subject.value==""){
window.alert("请输入主题!");
this.document.form.subject.focus();
return;
}
if(this.document.form.content.value==""){
window.alert("请输入内容!");
this.document.form.content.focus();
return;
}
this.document.form.submit();
return;
}
</script>
<form action="m_send.php" method="post" name="form" id="form">
<table width="100%" border="0">
<tr>
<th height="25" colspan="3">邮件群发</th>
</tr>
<tr>
<td height="25" align="right">收件人:</td>
<td colspan="2"><?php echo $to;?>
<input name="id" type="hidden" id="id" value="<?php echo $id;?>"></td>
</tr>
<tr>
<td width="20%" height="25" align="right">主题:</td>
<td colspan="2"> <input name="subject" type="text" class="textbox" id="subject" size="80" maxlength="255">
</td>
</tr>
<tr>
<td align="right" valign="top">内容:</td>
<td colspan="2"><textarea name="content" cols="80" rows="20" class="textbox" id="content"></textarea></td>
</tr>
<tr align="center">
<td height="25" colspan="3"> <input type="button" name="Submit" value="发送" class="button" onClick="javascript:formcheck();"> <input type="reset" name="Submit2" value="重置" class="button"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -