📄 index.php
字号:
<?php
require("../../../class/connect.php");
include("../../../class/config.php");
include("../../../class/q_functions.php");
include("../../../class/db_sql.php");
include("../../../class/user.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=2;
$user=islogin();
$mid=(int)$_GET['mid'];
$username=RepPostStr($_GET['username']);
$re=$_GET['re'];
$out=$_GET['out'];
if($mid)
{
$r=$empire->fetch1("select title,msgtext,from_username from {$dbtbpre}enewsqmsg where mid=$mid and to_username='$user[username]' limit 1");
if(empty($username)&&$r['from_username']!=$user['username'])
{
$username=$r['from_username'];
}
$title=$r['title'];
$msgtext=$r['msgtext'];
//回复
if($re==1)
{
$title="Re:".$title;
$msgtext="\r\n"."------原文内容------\r\n".$msgtext;
}
}
$url="<a href=../../../../>首页</a> > <a href=../../cp>控制面板</a> > <a href=../../msg?out=".$out.">收件箱</a> > 发送短信息";
@include("../../../data/template/cp_1.php");
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" valign="top"> <table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="23">短信息管理</td>
</tr>
<tr>
<td height="23" bgcolor="#FFFFFF"><img src="../../../data/images/msgnav.gif" width="5" height="5"> <a href="../../msg">收件箱</a></td>
</tr>
<tr>
<td height="23" bgcolor="#FFFFFF"><img src="../../../data/images/msgnav.gif" width="5" height="5"> <a href="../../msg?out=1">发件箱</a></td>
</tr>
<tr>
<td height="23" bgcolor="#FFFFFF"><img src="../../../data/images/msgnav.gif" width="5" height="5"> <a href="../AddMsg?enews=AddMsg">发送信息</a></td>
</tr>
</table></td>
<td width="1%" valign="top"> </td>
<td width="84%" valign="top"> <div align="center">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<form action="../../../enews/index.php" method="post" name="sendmsg" id="sendmsg">
<tr class="header">
<td height="23" colspan="2">发送短信息</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">标题</td>
<td width="79%" height="25"><input name="title" type="text" id="title2" value="<?=htmlspecialchars(stripSlashes($title))?>" size="43">
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">接收者</td>
<td height="25"><input name="to_username" type="text" id="to_username2" value="<?=$username?>">
[<a href="#EmpireCMS" onclick="window.open('../../friend/change?fm=sendmsg&f=to_username','','width=250,height=360');">选择好友</a>] *</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top">内容</td>
<td height="25"><textarea name="msgtext" cols="60" rows="12" id="textarea"><?=htmlspecialchars(stripSlashes($msgtext))?></textarea>
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top"> </td>
<td height="25"><input name="inout" type="checkbox" id="inout2" value="1">
保存到发件箱</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"> </td>
<td height="25"><input type="submit" name="Submit" value="发送" onclick="document.sendmsg.enews.value='AddMsg';">
<input type="submit" name="Submit3" value="保存到发件箱" onclick="document.sendmsg.enews.value='AddOutMsg';">
<input type="reset" name="Submit2" value="重置"> <input name="enews" type="hidden" id="enews2" value="AddMsg">
<input name="out" type="hidden" id="out5" value="<?=$out?>"> </td>
</tr>
</form>
</table>
</div></td>
</tr>
</table>
<?
@include("../../../data/template/cp_2.php");
db_close();
$empire=null;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -