Browse Source

删除无效资源

tags/6.1.7
tianya 3 years ago
parent
commit
4a53072f69
26 changed files with 246 additions and 1486 deletions
  1. +0
    -13
      src/admin/css/indexbody.css
  2. +0
    -1
      src/admin/inc/grouplist.txt
  3. +0
    -4
      src/admin/index_body.php
  4. +0
    -22
      src/admin/js/frame.js
  5. +242
    -1
      src/admin/js/indexbody.js
  6. +0
    -37
      src/admin/mail_file_manage.php
  7. +0
    -42
      src/admin/mail_getfile.php
  8. +0
    -94
      src/admin/mail_send.php
  9. +0
    -103
      src/admin/mail_title.php
  10. +0
    -83
      src/admin/mail_title_send.php
  11. +0
    -55
      src/admin/mail_type.php
  12. +0
    -136
      src/admin/pic_view.php
  13. +4
    -243
      src/admin/templets/index_body.htm
  14. +0
    -75
      src/admin/templets/mail_file_manage.htm
  15. +0
    -50
      src/admin/templets/mail_getfile.htm
  16. +0
    -93
      src/admin/templets/mail_send.htm
  17. +0
    -71
      src/admin/templets/mail_title_add.htm
  18. +0
    -71
      src/admin/templets/mail_title_edit.htm
  19. +0
    -47
      src/admin/templets/mail_title_main.htm
  20. +0
    -50
      src/admin/templets/mail_title_send.htm
  21. +0
    -44
      src/admin/templets/mail_type_add.htm
  22. +0
    -46
      src/admin/templets/mail_type_edit.htm
  23. +0
    -39
      src/admin/templets/mail_type_main.htm
  24. +0
    -58
      src/admin/templets/pic_view.htm
  25. +0
    -5
      src/data/admin/quickmenu-1.txt
  26. +0
    -3
      src/data/admin/quickmenu.txt

+ 0
- 13
src/admin/css/indexbody.css View File

@@ -119,19 +119,6 @@
padding-left:110px;
background:url(../../images/ico_spider.gif)no-repeat scroll 10px 15px transparent
}
#quickmenu {
width:100%;
height:46px;
overflow:hidden
}
#quickmenu .icoitem {
float:left;
height:24px;
line-height:24px;
margin-top:10px;
padding-left:30px;
overflow:hidden
}
.dboxtable td.nline {
height:26px;
border-bottom:1px dashed #CFD7C4


+ 0
- 1
src/admin/inc/grouplist.txt View File

@@ -80,7 +80,6 @@
>sys_Feedback>评论管理
>sys_Upload>管理任意上传
>sys_MyUpload>管理我的上传
>pic_view>图片浏览器

>>会员管理



+ 0
- 4
src/admin/index_body.php View File

@@ -20,10 +20,6 @@ if (empty($dopost)) {
fclose($fp);
$oktime = substr($upTime, 0, 4).'-'.substr($upTime, 4, 2).'-'.substr($upTime, 6, 2);
$offUrl = SpGetNewInfo();
$dedecmsidc = DEDEDATA.'/admin/idc.txt';
$fp = fopen($dedecmsidc, 'r');
$dedeIDC = fread($fp, filesize($dedecmsidc));
fclose($fp);
include DedeInclude('templets/index_body.htm');
exit();
}


+ 0
- 22
src/admin/js/frame.js View File

@@ -4,9 +4,6 @@ var navIE = document.all && navigator.userAgent.indexOf("Firefox") == -1;
var myspeed = 0;
$(function () {

//快捷菜单
bindQuickMenu();

//左侧菜单开关
LeftMenuToggle();

@@ -29,25 +26,6 @@ $(function () {
}
});

function bindQuickMenu() {//快捷菜单
$("#ac_qucikmenu").bind("mouseenter", function () {
$("#qucikmenu").slideDown("fast");
}).dblclick(function () {
$("#qucikmenu").slideToggle("fast");
}).bind("mouseleave", function () {
hidequcikmenu = setTimeout('$("#qucikmenu").slideUp("fast");', 700);
$(this).bind("mouseenter", function () { clearTimeout(hidequcikmenu); });
});
$("#qucikmenu").bind("mouseleave", function () {
hidequcikmenu = setTimeout('$("#qucikmenu").slideUp("fast");', 700);
$(this).bind("mouseenter", function () { clearTimeout(hidequcikmenu); });
}).find("a").click(function () {
$(this).blur();
$("#qucikmenu").slideUp("fast");
//$("#ac_qucikmenu").text($(this).text());
});
}

function LeftMenuToggle() {//左侧菜单开关
$("#togglemenu").click(function () {
if ($("body").attr("class") == "showmenu") {


+ 242
- 1
src/admin/js/indexbody.js View File

@@ -18,4 +18,245 @@ function ListAll(){
function ShowWaitDiv(){
$DE('loaddiv').style.display = 'block';
return true;
}
}

$(function(){
$.get("index_testenv.php", function (data){
if (data !== ''){
$("#tips").html(data);
}
});
$.get("index_body.php?dopost=get_articles", function (data){
if (data !== ''){
$("#newarticles").html(data);
}
});
});

var dedebizInfo;
function ViewDedeBIZ(){
console.log(dedebizInfo);
ShowMsg(`
<table width="100%" class="table table-borderless">
<tbody>
<tr>
<td style="width:50%">版本号:</td>
<td>V${dedebizInfo.result.server_version}</td>
</tr>
<tr>
<td style="width:50%">运行时间:</td>
<td>${dedebizInfo.result.server_run_time}</td>
</tr>
<tr>
<td style="width:50%">服务器系统:</td>
<td>${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch})</td>
</tr>
<tr>
<td style="width:50%">内存占用:</td>
<td>${dedebizInfo.result.server_memory_usage}%</td>
</tr>
</tbody>
</table>
`);
}
function LoadServer(){
$.get("index_body.php?dopost=system_info", function(data){
let rsp = JSON.parse(data);
if (rsp.code === 200){
let infoStr = `<table width="100%" class="table table-borderless"><tbody>`;
if (typeof rsp.result.domain !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">授权域名:</td>
<td>${rsp.result.domain} <a href="${cfg_biz_dedebizUrl}/auth/?domain=${rsp.result.domain}" class="btn btn-success btn-sm">查看</a></td>
</tr>
`;
}
if (typeof rsp.result.title !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">站点名称:</td>
<td>${rsp.result.title}</td>
</tr>
`;
}
if (typeof rsp.result.stype !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">站点类型:</td>
<td>${rsp.result.stype}</td>
</tr>
`;
}
if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">授权版本:</td>
<td>V${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td>
</tr>
`;
}
if (rsp.result.core === null || rsp.result.core.code != 200){
//下面是DedeBIZ Core组件信息
infoStr += `
<tr>
<td style="width:50%">版本组件:</td>
<td><a href="${cfg_biz_dedebizUrl}/start?code=-1008" target="_blank" class="btn btn-danger btn-sm">如何启动组件</a></td>
</tr>
`;
} else {
dedebizInfo = JSON.parse(rsp.result.core.data);
infoStr += `
<tr>
<td style="width:50%">版本组件:</td>
<td><a href="javascript:ViewDedeBIZ()" class="btn btn-success btn-sm">查看组件信息</a></td>
</tr>
`;
}
infoStr += "</tbody></table>";
$("#_systeminfo").html(infoStr);
} else {
$("#_systeminfo").html(`
<table width="100%" class="table table-borderless">
<tbody>
<tr>
<td style="width:60%">尚未启动商业版服务,原因:${rsp.msg}</td>
<td style="text-align:right">当前版本:社区版<a href="${cfg_biz_dedebizUrl}/start?code=${rsp.code}" target="_blank" class="btn btn-success btn-sm" style="margin-left:10px">升级商业版</a></td>
</tr>
<tr>
<td colspan="2">如果您已购买商业版授权,您可以在我们的授权中心查询到相信关授权信息,如果查询结果与实际授权不符,则说明您可能购买了非法商业授权,请及时与我们取得联系,谢谢。</td>
</tr>
</tbody>
</table>
`);
}
});
}
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
function LoadStat() {
$.get("index_body.php?dopost=get_statistics", function(data){
let rsp = JSON.parse(data);
if (rsp.code == 200) {
var tpv = parseInt(rsp.result.pv);
var tuv = parseInt(rsp.result.uv);
var tip = parseInt(rsp.result.ip);
var tvv = parseInt(rsp.result.vv);
$("#today_pv").html(tpv);
$("#today_uv").html(tuv);
$("#today_ip").html(tip);
$("#today_vv").html(tvv);
$.get("index_body.php?dopost=get_statistics&sdate=-1", function(data){
let rsp = JSON.parse(data);
if (rsp.code == 200) {
$("#total_pv").html(parseInt(rsp.result.pv)+tpv);
$("#total_uv").html(parseInt(rsp.result.uv)+tuv);
$("#total_ip").html(parseInt(rsp.result.ip)+tip);
$("#total_vv").html(parseInt(rsp.result.vv)+tvv);
}
});
}
});
var d = new Date();
d.setDate(d.getDate() - 1);
var s = d.Format("yyyy-MM-dd");
s = s.replaceAll("-","");
$.get("index_body.php?dopost=get_statistics&sdate="+s, function(data){
let rsp = JSON.parse(data);
if (rsp.code == 200) {
$("#yestoday_pv").html(rsp.result.pv);
$("#yestoday_uv").html(rsp.result.uv);
$("#yestoday_ip").html(rsp.result.ip);
$("#yestoday_vv").html(rsp.result.vv);
}
});
}
async function LoadStatChart() {
const ctx = document.getElementById('statChart').getContext('2d');
let labels = [];
let pvs = [];
let ips = [];
let uvs = [];
let vvs = [];
for (let i = 15; i > 0; i--) {
var d = new Date();
d.setDate(d.getDate() - i);
var s = d.Format("yyyy-MM-dd");
labels.push(d.Format("MM-dd"));
s = s.replaceAll("-","");
let resp = await fetch("index_body.php?dopost=get_statistics&sdate="+s);
let data = await resp.json();
if (data.code == 200) {
pvs.push(typeof data.result.pv=="undefined"? 0 : data.result.pv);
ips.push(typeof data.result.ip=="undefined"? 0 : data.result.ip);
uvs.push(typeof data.result.uv=="undefined"? 0 : data.result.uv);
vvs.push(typeof data.result.vv=="undefined"? 0 : data.result.vv);
}
}
const myChart = new Chart(ctx, {
type: 'line',
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
title: {
display: true,
text: `${cfg_webname}流量统计图`
}
}
},
data: {
labels: labels,
datasets: [{
label: 'IP',
data: ips,
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor :'rgba(255, 99, 132, 0.2)',
borderWidth: 1
},
{
label: 'PV',
data: pvs,
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor :'rgba(54, 162, 235, 0.2)',
borderWidth: 1
},{
label: 'UV',
data: uvs,
borderColor: 'rgba(255, 206, 86, 1)',
backgroundColor: 'rgba(255, 206, 86, 0.2)',
borderWidth: 1
},{
label: '访问次数',
data: vvs,
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
borderWidth: 1
}
]
},
});
}
$(document).ready(function(){
LoadServer();
LoadStat();
LoadStatChart();
setInterval(function(){
LoadServer();
}, 60000)
});

+ 0
- 37
src/admin/mail_file_manage.php View File

@@ -1,37 +0,0 @@
<?php
require(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/libraries/oxwindow.class.php");
CheckPurview('plus_Mail');
if(!isset($fmdo)) $fmdo="";
if($fmdo=="del")
{
$filename = $cfg_basedir.$activepath."/$filename";
@unlink($filename);
$t="文件";
ShowMsg("成功删除一个".$t."","mail_file_manage.php");
} else {
if(!isset($activepath)){
$activepath=$cfg_cmspath;
}
$inpath = "";
$activepath = str_replace("..","",$activepath);
$activepath = preg_replace("#^/{1,}#","/",$activepath);
if($activepath == "/"){
$activepath = "";
}
if($activepath == ""){
$inpath = $cfg_basedir."/data/mail";
} else {
$inpath = $cfg_basedir.$activepath."/data/mail";
}
$activeurl = $activepath;
if(preg_match("#".$cfg_templets_dir."#i", $activepath)){
$istemplets = true;
} else {
$istemplets = false;
}
include DedeInclude('templets/mail_file_manage.htm');
}


?>

+ 0
- 42
src/admin/mail_getfile.php View File

@@ -1,42 +0,0 @@
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('plus_Mail');
if(!isset($dopost)){
$dopost = '';
}
if($dopost=="save"){
$start = empty($start)? 1 : intval(preg_replace("/[\d]/",'', $start));
$end = empty($end)? 0 : intval(preg_replace("/[\d]/",'', $end));
if(!preg_match("/^[0-9a-z_]+$/i",$filename)){
ShowMsg("请填写正确的文件名!","-1");
exit();
}
if($end!="0") $wheresql="where mid between $start and $end";
else $wheresql="";
$sql="SELECT email FROM #@__member $wheresql";
$db->Execute('me',$sql);
while($row = $db->GetArray()){
$mails[]=$row;
}
$email="";
foreach($mails as $mail){
$email.=$mail['email'].",";
}
$m_file = DEDEDATA."/mail/".$filename.".txt";
if (file_exists($m_file)) {
ShowMsg("该文件已经存在,重新换个文件名!","-1");
exit();
} else {
$fp = fopen($m_file,'w');
flock($fp,3);
fwrite($fp,$email);
fclose($fp);
ShowMsg("获取邮件列表成功!","-1");
exit();
}
}
require_once(DEDEADMIN."/templets/mail_getfile.htm");
?>

+ 0
- 94
src/admin/mail_send.php View File

@@ -1,94 +0,0 @@
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEADMIN.'/inc/inc_archives_functions.php');
CheckPurview('plus_Mail');
//邮件发送函数
function sendmail($email, $mailtitle, $mailbody)
{
global $cfg_sendmail_bysmtp, $cfg_smtp_server, $cfg_smtp_port, $cfg_smtp_usermail, $cfg_smtp_password, $cfg_webname;
global $cfg_bizcore_appid,$cfg_bizcore_key,$cfg_bizcore_hostname,$cfg_bizcore_port;
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;
$client->key = $cfg_bizcore_key;
$client->MailSend($email,$mailtitle,$mailtitle,$mailbody);
$client->Close();
} else {
if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server))
{
$mailtype = 'HTML';
require_once(DEDEINC.'/libraries/mail.class.php');
$smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);
$smtp->debug = false;
if(!$smtp->smtp_sockopen($cfg_smtp_server)){
ShowMsg('邮件发送失败,请联系管理员','-1');
exit();
}
$smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
} else {
@mail($email, $mailtitle, $mailbody, $headers);
}
}
}

if(!isset($action)){
$action = '';
}
if($action==""){
$mfile = glob(DEDEDATA.'/mail/*.txt');
$mnumber = count($mfile);
$mailfiles = array();
if($mnumber > 0){
if(is_array($mfile)){
foreach( $mfile as $key=>$filename){
$mailfiles[$key] = basename($filename);
}
}
}
unset($mfile);
require_once(DEDEADMIN."/templets/mail_send.htm");
}
if($action=="post"){
if($title==''){
ShowMsg("请填写信息标题!","-1");
exit();
}
if($message==''){
ShowMsg("请填写内容!","-1");
exit();
}
if($mode=="group"){
if(file_exists(DEDEDATA.'/mail/'.$mailfile)){
$address = file(DEDEDATA.'/mail/'.$mailfile);
$address=implode(",", $address);
} else {
ShowMsg($mailfile."不存在","-1");
exit();
}
}elseif($mode=="more"){
$address=$address2;
}
if(!preg_match('/^(.+)@(.+)$/',$address)){
ShowMsg("请填写正确的邮件地址!","-1");
exit();
}
$title = cn_substrR(HtmlReplace($title,1),60);
$sendtime = time();
$mailtitle = $title;
$mailto = $address;
$mailbody = stripslashes($message);
$pattern="/\\".$cfg_medias_dir."/";
$mailbody =preg_replace($pattern,$cfg_basehost.$cfg_medias_dir,$mailbody);
$fromid=$cuserLogin->getUserID();
$fromuid=$cuserLogin->getUserName();
sendmail($mailto,$mailtitle,$mailbody);

//$inquery = "INSERT INTO `#@__member_mail` (`fromid`,`fromuid`,`address`,`title`,`sendtime`,`message`)VALUES ('$fromid','$fromuid','$mailto','$mailtitle','$sendtime','$mailbody'); ";
//$dsql->ExecuteNoneQuery($inquery);
ShowMsg('邮件已成功发送','mail_send.php');
exit();
}

+ 0
- 103
src/admin/mail_title.php View File

@@ -1,103 +0,0 @@
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/datalistcp.class.php");
CheckPurview('plus_Mail');
if(!isset($dopost)) $dopost = '';
if($dopost=="add"){
$dsql->SetQuery("SELECT id,typename FROM `#@__mail_type` ORDER BY id");
$dsql->Execute();
$btypes = Array();
while($row = $dsql->GetArray())
{
$btypes[$row['id']] = $row['typename'];
}
require_once(DEDEADMIN."/templets/mail_title_add.htm");
}elseif($dopost=="edit"){
$dsql->SetQuery("SELECT id,typename FROM `#@__mail_type` ORDER BY id");
$dsql->Execute();
$btypes = Array();
while($row = $dsql->GetArray())
{
$btypes[$row['id']] = $row['typename'];
}
$row=$dsql->GetOne("SELECT * FROM `#@__mail_title` WHERE id=$id");
require_once(DEDEADMIN."/templets/mail_title_edit.htm");
}elseif($dopost=="addsave"){
if(!preg_match('/[0-9]/',$period)){
ShowMsg("期刊号只能为数字!","-1");
exit();
}
if($typeid=="0"){
ShowMsg("请选择类别!","-1");
exit();
}
if($title==''){
ShowMsg("请填写信息标题!","-1");
exit();
}
if($message==''){
ShowMsg("请填写内容!","-1");
exit();
}
$message = stripslashes($message);
$pattern="/\\".$cfg_medias_dir."/";
$message =preg_replace($pattern,$cfg_basehost.$cfg_medias_dir,$message);
$title = cn_substrR(HtmlReplace($title,1),60);
$addtime=$sendtime = time();
$writer= $cuserLogin->getUserName();
$mid=$cuserLogin->getUserID();
$query = "INSERT INTO #@__mail_title (period,typeid,title,content,addtime,sendtime,writer,mid,state,count) VALUES ('$period','$typeid','$title','$message','$addtime',0,'$writer','$mid',0,0)";
if(!$dsql->ExecuteNoneQuery($query)){
ShowMsg("更新数据库#@__mail_title表时出错,请检查","javascript:;");
exit();
} else {
ShowMsg("发表期刊成功","mail_title.php");
exit();
}
}elseif($dopost=="editsave"){
if(!preg_match('/[0-9]/',$period)){
ShowMsg("期刊号只能为数字!","-1");
exit();
}
if($title==''){
ShowMsg("请填写信息标题!","-1");
exit();
}
if($message==''){
ShowMsg("请填写内容!","-1");
exit();
}
$message = stripslashes($message);
$pattern="/\\".$cfg_medias_dir."/";
$message =preg_replace($pattern,$cfg_basehost.$cfg_medias_dir,$message);
$title = cn_substrR(HtmlReplace($title,1),60);
$writer= $cuserLogin->getUserName();
$mid=$cuserLogin->getUserID();

$query = "UPDATE #@__mail_title SET period='$period',typeid='$typeid',title='$title',content='$message',writer='$writer',mid='$mid' WHERE id=$id";
if(!$dsql->ExecuteNoneQuery($query)){
ShowMsg("更新数据库#@__mail_title表时出错,请检查","javascript:;");
exit();
} else {
ShowMsg("编辑期刊成功","mail_title.php");
exit();
}
}elseif($dopost=="delete"){
$dsql->ExecuteNoneQuery("Delete From `#@__mail_title` where id='$id'");
ShowMsg("删除期刊成功","mail_title.php");
exit();
} else {
function GetSendTimeMk($mktime){
if($mktime=="0") return "未发送";
else return MyDate('Y-m-d H:i:s',$mktime);
}
$sql = "SELECT t.*,p.typename FROM `#@__mail_title` AS t LEFT JOIN `#@__mail_type` AS p ON t.typeid=p.id ORDER BY t.id desc";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN."/templets/mail_title_main.htm");
$dlist->SetSource($sql);
$dlist->display();
}

?>

+ 0
- 83
src/admin/mail_title_send.php View File

@@ -1,83 +0,0 @@
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/datalistcp.class.php");
CheckPurview('plus_Mail');
if(!isset($dopost)) $dopost = '';
if($dopost=="send"){
//邮件发送函数
function sendmail($email, $mailtitle, $mailbody)
{
global $cfg_sendmail_bysmtp, $cfg_smtp_server, $cfg_smtp_port, $cfg_smtp_usermail, $cfg_smtp_password, $cfg_webname;
global $cfg_bizcore_appid,$cfg_bizcore_key,$cfg_bizcore_hostname,$cfg_bizcore_port;
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;
$client->key = $cfg_bizcore_key;
$client->MailSend($email,$mailtitle,$mailtitle,$mailbody);
$client->Close();
} else {
if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server))
{
$mailtype = 'HTML';
require_once(DEDEINC.'/libraries/mail.class.php');
$smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);
$smtp->debug = false;
if(!$smtp->smtp_sockopen($cfg_smtp_server)){
ShowMsg('邮件发送失败,请联系管理员','-1');
exit();
}
$smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
} else {
@mail($email, $mailtitle, $mailbody, $headers);
}
}
}
$row=$dsql->GetOne("SELECT * FROM `#@__mail_title` WHERE id=$id");
$mailtitle=$row['title'];
$mailbody=$row['content'];
$sql="SELECT m.email FROM `#@__member` AS m LEFT JOIN `#@__mail_order` AS o ON o.mid=m.mid WHERE o.typeid=$typeid";
$db->Execute('me',$sql);
while($row = $db->GetArray()){
$mails[]=$row;
}
$email="";
foreach($mails as $mail){
$email.=$mail['email'].",";
}
$mailto=$email;
sendmail($mailto,$mailtitle,$mailbody);
$sendtime = time();
$inquery = "UPDATE `#@__mail_title` SET count=count+1,sendtime='$sendtime',state='1' WHERE id=$id";
if($dsql->ExecuteNoneQuery($inquery)){
ShowMsg('邮件已成功发送','mail_title_send.php');
exit();
}
} else {
function GetState($state){
if($state=="0") return "<span style='color:#dc3545'>未发送</span>";
else return "已发送";
}
function GetSendTimeMk($mktime){
if($mktime=="0") return "<span style='color:#dc3545'>未发送</span>";
else return MyDate('Y-m-d H:i:s',$mktime);
}
function GetCount($typeid){
global $dsql;
$row=$dsql->GetOne("SELECT COUNT(typeid) as cc FROM `#@__mail_order`");
return $row['cc'];
}
$sql = "SELECT t.*,p.typename FROM `#@__mail_title` AS t LEFT JOIN `#@__mail_type` AS p ON t.typeid=p.id ORDER BY t.id desc";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN."/templets/mail_title_send.htm");
$dlist->SetSource($sql);
$dlist->display();
}

+ 0
- 55
src/admin/mail_type.php View File

@@ -1,55 +0,0 @@
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/datalistcp.class.php");
CheckPurview('plus_Mail');
if(!isset($dopost)) $dopost = '';
$id = (empty($id) ? 0 : intval($id));
if($dopost=="add"){
require_once(DEDEADMIN."/templets/mail_type_add.htm");
}elseif($dopost=="edit"){
$row=$dsql->GetOne("SELECT * FROM `#@__mail_title` WHERE id=$id");
require_once(DEDEADMIN."/templets/mail_title_edit.htm");
}elseif($dopost=="addsave"){
if($typename==""){
ShowMsg("分类名不能为空","-1");
exit();
}
$typename=Html2Text($typename,1);
$description = Html2Text($description,1);
$query = "INSERT INTO #@__mail_type (typename,description) VALUES ('$typename','$description')";
if(!$dsql->ExecuteNoneQuery($query)){
ShowMsg("更新数据库#@__mail_type表时出错,请检查","javascript:;");
exit();
} else {
ShowMsg("添加分类成功","mail_type.php");
exit();
}
}elseif($dopost=="editsave"){
if($typename==""){
ShowMsg("分类名不能为空","-1");
exit();
}
$typename=Html2Text($typename,1);
$description = Html2Text($description,1);
$query = "UPDATE #@__mail_type SET typename='$typename',description='$description' WHERE id=$id";
if(!$dsql->ExecuteNoneQuery($query)){
ShowMsg("更新数据库#@__mail_type表时出错,请检查","javascript:;");
exit();
} else {
ShowMsg("修改分类成功","mail_type.php");
exit();
}
}elseif($dopost=="delete"){
$dsql->ExecuteNoneQuery("Delete From `#@__mail_type` where id='$id'");
ShowMsg("删除分类成功","mail_type.php");
exit();
} else {
$sql = "SELECT * FROM `#@__mail_type` ORDER BY id ";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN."/templets/mail_type_main.htm");
$dlist->SetSource($sql);
$dlist->display();
}
?>

+ 0
- 136
src/admin/pic_view.php View File

@@ -1,136 +0,0 @@
<?php
/**
* 图像查看
*
* @version $Id: pic_view.php 1 15:26 2010年7月20日Z tianya $
* @package DedeBIZ.Administrator
* @copyright Copyright (c) 2022, DedeBIZ.COM
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
CheckPurview('pic_view');
if (empty($activepath)) $activepath = $cfg_medias_dir;

$activepath = preg_replace("#\/{1,}#", "/", $activepath);
$activepath = RemoveXSS($activepath);
$truePath = $cfg_basedir.$activepath;
$listSize = 5;
include DedeInclude('templets/pic_view.htm');

function GetPrePath($nowPath)
{
if ($nowPath == "" || $nowPath == "/") {
echo ("当前为根目录\n");
} else {
$dirs = split("/", $nowPath);
$nowPath = "";
for ($i = 1; $i < count($dirs) - 1; $i++) {
$nowPath .= "/".$dirs[$i];
}
echo ("<a href=\"pic_view.php?activepath=".$nowPath."\">转到上级目录</a>\n");
}
}

function ListPic($truePath, $nowPath)
{
global $listSize;
$col = 0;
$rowdd = 0;
$rowdd++;
$imgfile = "";
$truePath = preg_replace("#\/$#", "", preg_replace("#\\\\{1,}#", "/", trim($truePath)));
$nowPath = preg_replace("#\/$#", "", preg_replace("#\/{1,}#", "/", trim($nowPath)));
$dh = dir($truePath);
echo ("<tr align='center'>\n");
while ($filename = $dh->read()) {
if (!preg_match("#\.$#", $filename)) {
$fullName = $truePath."/".$filename;
$fileUrl = $nowPath."/".$filename;
if (is_dir($fullName)) {
if ($col % $listSize == 0 && $col != 0) {
echo ("</tr>\n<tr align='center'>\n");
for ($i = $rowdd - $listSize; $i < $rowdd; $i++) {
echo ("<td>".$filelist[$i]."</td>\n");
}
echo ("</tr>\n<tr align='center'>\n");
}
$line = "
<td>
<table width='106' height='106' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'>
<tr><td align='center' bgcolor='#FFFFFF'>
<a href='pic_view.php?activepath=".$fileUrl."'>
<img src='images/pic_dir.gif'>
</a></td></tr></table></td>";
$filelist[$rowdd] = $filename;
$col++;
$rowdd++;
echo $line;
} else if (IsImg($filename)) {
if ($col % $listSize == 0 && $col != 0) {
echo ("</tr>\n<tr align='center'>\n");
for ($i = $rowdd - $listSize; $i < $rowdd; $i++) {
echo ("<td>".$filelist[$i]."</td>\n");
}
echo ("</tr>\n<tr align='center'>\n");
}
$line = "
<td>
<table width='106' height='106' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'>
<tr>
<td align='center' bgcolor='#FFFFFF'>
".GetImgFile($truePath, $nowPath, $filename)."
</td>
</tr></table></td>";
$filelist[$rowdd] = $filename;
$col++;
$rowdd++;
echo $line;
}
}
}
echo ("</tr>\n");
if (!empty($filelist)) {
echo ("<tr align='center'>\n");
$t = ($rowdd - 1) % $listSize;
if ($t == 0) {
$t = $listSize;
}
for ($i = $rowdd - $t; $i < $rowdd; $i++) {
echo ("<td>".$filelist[$i]."</td>\n");
}
echo ("</tr>\n");
}
}

function GetImgFile($truePath, $nowPath, $fileName)
{
$toW = 102;
$toH = 102;
$srcFile = $truePath."/".$fileName;
$info = "";
$data = GetImageSize($srcFile, $info);
$srcW = $data[0];
$srcH = $data[1];
if ($toW >= $srcW && $toH >= $srcH) {
$ftoW = $srcW;
$ftoH = $srcH;
} else {
$toWH = $toW / $toH;
$srcWH = $srcW / $srcH;
if ($toWH <= $srcWH) {
$ftoW = $toW;
$ftoH = $ftoW * ($srcH / $srcW);
} else {
$ftoH = $toH;
$ftoW = $ftoH * ($srcW / $srcH);
}
}
return ("<a href='".$nowPath."/".$fileName."' target='_blank'><img src='".$nowPath."/".$fileName."' width='".$ftoW."' height='".$ftoH."' border='0'></a>");
}

function IsImg($fileName)
{
if (preg_match("#\.(jpg|gif|png)$#", $fileName)) return 1;
else return 0;
}

+ 4
- 243
src/admin/templets/index_body.htm View File

@@ -9,6 +9,10 @@
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
<link rel="stylesheet" href="css/indexbody.css">
<script>
const cfg_biz_dedebizUrl = '<?php echo $cfg_biz_dedebizUrl;?>';
const cfg_webname = '<?php echo $cfg_webname;?>';
</script>
<script src="../static/web/js/jquery.min.js"></script>
<script src="../static/web/js/bootstrap.bundle.min.js"></script>
<script src="../static/web/js/webajax.js"></script>
@@ -168,248 +172,5 @@ table.stattable td{padding:.6rem;border-bottom:1px solid #dee2e6;text-align:righ
</form>
</div>
</div>
<script>
$(function(){
$.get("index_testenv.php", function (data){
if (data !== ''){
$("#tips").html(data);
}
});
$.get("index_body.php?dopost=get_articles", function (data){
if (data !== ''){
$("#newarticles").html(data);
}
});
});
</script>
<script>
var dedebizInfo;
function ViewDedeBIZ(){
console.log(dedebizInfo);
ShowMsg(`
<table width="100%" class="table table-borderless">
<tbody>
<tr>
<td style="width:50%">版本号:</td>
<td>V${dedebizInfo.result.server_version}</td>
</tr>
<tr>
<td style="width:50%">运行时间:</td>
<td>${dedebizInfo.result.server_run_time}</td>
</tr>
<tr>
<td style="width:50%">服务器系统:</td>
<td>${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch})</td>
</tr>
<tr>
<td style="width:50%">内存占用:</td>
<td>${dedebizInfo.result.server_memory_usage}%</td>
</tr>
</tbody>
</table>
`);
}
function LoadServer(){
$.get("index_body.php?dopost=system_info", function(data){
let rsp = JSON.parse(data);
if (rsp.code === 200){
let infoStr = `<table width="100%" class="table table-borderless"><tbody>`;
if (typeof rsp.result.domain !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">授权域名:</td>
<td>${rsp.result.domain} <a href="<?php echo $cfg_biz_dedebizUrl;?>/auth/?domain=${rsp.result.domain}" class="btn btn-success btn-sm">查看</a></td>
</tr>
`;
}
if (typeof rsp.result.title !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">站点名称:</td>
<td>${rsp.result.title}</td>
</tr>
`;
}
if (typeof rsp.result.stype !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">站点类型:</td>
<td>${rsp.result.stype}</td>
</tr>
`;
}
if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined"){
infoStr += `
<tr>
<td style="width:50%">授权版本:</td>
<td>V${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td>
</tr>
`;
}
if (rsp.result.core === null || rsp.result.core.code != 200){
//下面是DedeBIZ Core组件信息
infoStr += `
<tr>
<td style="width:50%">版本组件:</td>
<td><a href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=-1008" target="_blank" class="btn btn-danger btn-sm">如何启动组件</a></td>
</tr>
`;
} else {
dedebizInfo = JSON.parse(rsp.result.core.data);
infoStr += `
<tr>
<td style="width:50%">版本组件:</td>
<td><a href="javascript:ViewDedeBIZ()" class="btn btn-success btn-sm">查看组件信息</a></td>
</tr>
`;
}
infoStr += "</tbody></table>";
$("#_systeminfo").html(infoStr);
} else {
$("#_systeminfo").html(`
<table width="100%" class="table table-borderless">
<tbody>
<tr>
<td style="width:60%">尚未启动商业版服务,原因:${rsp.msg}</td>
<td style="text-align:right">当前版本:社区版<a href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=${rsp.code}" target="_blank" class="btn btn-success btn-sm" style="margin-left:10px">升级商业版</a></td>
</tr>
<tr>
<td colspan="2">如果您已购买商业版授权,您可以在我们的授权中心查询到相信关授权信息,如果查询结果与实际授权不符,则说明您可能购买了非法商业授权,请及时与我们取得联系,谢谢。</td>
</tr>
</tbody>
</table>
`);
}
});
}
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
function LoadStat() {
$.get("index_body.php?dopost=get_statistics", function(data){
let rsp = JSON.parse(data);
if (rsp.code == 200) {
var tpv = parseInt(rsp.result.pv);
var tuv = parseInt(rsp.result.uv);
var tip = parseInt(rsp.result.ip);
var tvv = parseInt(rsp.result.vv);
$("#today_pv").html(tpv);
$("#today_uv").html(tuv);
$("#today_ip").html(tip);
$("#today_vv").html(tvv);
$.get("index_body.php?dopost=get_statistics&sdate=-1", function(data){
let rsp = JSON.parse(data);
if (rsp.code == 200) {
$("#total_pv").html(parseInt(rsp.result.pv)+tpv);
$("#total_uv").html(parseInt(rsp.result.uv)+tuv);
$("#total_ip").html(parseInt(rsp.result.ip)+tip);
$("#total_vv").html(parseInt(rsp.result.vv)+tvv);
}
});
}
});
var d = new Date();
d.setDate(d.getDate() - 1);
var s = d.Format("yyyy-MM-dd");
s = s.replaceAll("-","");
$.get("index_body.php?dopost=get_statistics&sdate="+s, function(data){
let rsp = JSON.parse(data);
if (rsp.code == 200) {
$("#yestoday_pv").html(rsp.result.pv);
$("#yestoday_uv").html(rsp.result.uv);
$("#yestoday_ip").html(rsp.result.ip);
$("#yestoday_vv").html(rsp.result.vv);
}
});
}
async function LoadStatChart() {
const ctx = document.getElementById('statChart').getContext('2d');
let labels = [];
let pvs = [];
let ips = [];
let uvs = [];
let vvs = [];
for (let i = 15; i > 0; i--) {
var d = new Date();
d.setDate(d.getDate() - i);
var s = d.Format("yyyy-MM-dd");
labels.push(d.Format("MM-dd"));
s = s.replaceAll("-","");
let resp = await fetch("index_body.php?dopost=get_statistics&sdate="+s);
let data = await resp.json();
if (data.code == 200) {
pvs.push(typeof data.result.pv=="undefined"? 0 : data.result.pv);
ips.push(typeof data.result.ip=="undefined"? 0 : data.result.ip);
uvs.push(typeof data.result.uv=="undefined"? 0 : data.result.uv);
vvs.push(typeof data.result.vv=="undefined"? 0 : data.result.vv);
}
}
const myChart = new Chart(ctx, {
type: 'line',
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
title: {
display: true,
text: '<?php echo $cfg_webname; ?>流量统计图'
}
}
},
data: {
labels: labels,
datasets: [{
label: 'IP',
data: ips,
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor :'rgba(255, 99, 132, 0.2)',
borderWidth: 1
},
{
label: 'PV',
data: pvs,
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor :'rgba(54, 162, 235, 0.2)',
borderWidth: 1
},{
label: 'UV',
data: uvs,
borderColor: 'rgba(255, 206, 86, 1)',
backgroundColor: 'rgba(255, 206, 86, 0.2)',
borderWidth: 1
},{
label: '访问次数',
data: vvs,
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
borderWidth: 1
}
]
},
});
}
$(document).ready(function(){
LoadServer();
LoadStat();
LoadStatChart();
setInterval(function(){
LoadServer();
}, 60000)
});
</script>
</body>
</html>

+ 0
- 75
src/admin/templets/mail_file_manage.htm View File

@@ -1,75 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>邮件列表文件管理</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<style>
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
.current {border:1px solid #dbe4cd;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
</head>
<body>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="26" colspan="4" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif">
<div style="float:left;padding-right:5px;padding-left:10px;">邮件列表管理</div>
</td>
</tr>
<tr bgcolor="#FBFCE2" height="26" align="center">
<td width="28%">文件名</td>
<td width="16%" background="img/newlinebg3.gif">文件大小</td>
<td width="22%" background="img/wbg.gif">创建时间</td>
<td width="34%" background="img/newlinebg3.gif">操作</td>
</tr>
<?php
$dh = dir($inpath);
$ty1="";
$ty2="";
$files = $dirs = array();
while(($file = $dh->read()) !== false)
{
if($file!="." && $file!=".." && !is_dir("$inpath/$file"))
{
@$filesize = filesize("$inpath/$file");
@$filesize=$filesize/1024;
@$filetime = filemtime("$inpath/$file");
@$filetime = MyDate("Y-m-d H:i:s",$filetime);
if($filesize<0.1)
{
@list($ty1,$ty2)=explode(".",$filesize);
$filesize=$ty1.".".substr($ty2,0,2);
}
else
{
@list($ty1,$ty2)=explode(".",$filesize);
$filesize=$ty1.".".substr($ty2,0,1);
}
}
if(!is_dir("$inpath/$file"))
{
$line = "\n<tr bgcolor='#FFFFFF' onMouseMove=\"javascript:this.bgColor='#FCFDEE';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">
<td align='center'>$file</td>
<td align='center'>$filesize KB</td>
<td align='center'>$filetime</td>
<td align='center'>
<a href='mail_file_manage.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath."/data/mail")."'>[删除]</a>
</td>
</tr>";
$files[] = $line;
}
}
$dh->close();
foreach ($files as $file)
{
echo $file;
}
?>
<tr>
<td height="8" colspan="4" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 50
src/admin/templets/mail_getfile.htm View File

@@ -1,50 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<style>
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
.current {border:1px solid #dbe4cd;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="30" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px">发送邮件</td>
</tr>
<tr bgcolor="#ffffff" height="26">
<td colspan="7" align="left">
<form method="post" action="mail_getfile.php">
<input name="dopost" type="hidden" value="save">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#ffffff">
<tr>
<td width="15%" height="30" align="right">条件:</td>
<td width="85%" height="26">开始MID<input name="start" type="text" id="start" class="company_manage_form_label" style="width:50px;height:16px;margin-top:5px;margin-left:10px">
-- 结束MID<input name="end" type="text" id="end" class="company_manage_form_label" style="width:50px;height:16px;margin-top:5px;margin-left:10px">(获取全部可以不填写)</td>
</tr>
<tr>
<td width="15%" height="30" align="right">保存邮件列表的文件名:</td>
<td width="85%" height="26"><input name="filename" type="text" id="filename" class="company_manage_form_label" style="width:150px;height:16px;margin-top:5px;margin-left:10px;" value="<?php echo 'mail_'.date('Ymdhis'); ?>"/>
.TXT (只能是英文,字母,下划线组成)</td>
</tr>
<tr>
<td height="26" align="right" valign="top">&nbsp;</td>
<td height="30"><input type="submit" value="提交" class="button01"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr bgcolor="#F8FBFB">
<td height="26" colspan="92" align="center" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 93
src/admin/templets/mail_send.htm View File

@@ -1,93 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<style>
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
.current {border:1px solid #dbe4cd;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
<script language="javascript">
function ShowMore(formitem,one,more,group)
{
if(formitem.checked){
document.getElementById(one).style.display = '';
document.getElementById(more).style.display = 'none';
document.getElementById(group).style.display = 'none';
}
}
</script>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="26" colspan="9" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px">发送邮件</td>
</tr>
<tr bgcolor="#ffffff" height="26">
<td colspan="7" align="left">
<form method="post" action="mail_send.php">
<input name="action" type="hidden" value="post">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#ffffff">
<tr>
<td width="15%" height="30" align="right">发送到:</td>
<td height="26" colspan="2">
<input type="radio" name="mode" id="radio" value="one" onClick="ShowMore(this,'one','more','group');" checked /> 单人
<input type="radio" name="mode" id="radio" value="more" onClick="ShowMore(this,'more','one','group')"> 多人
<input type="radio" name="mode" id="radio" value="group" onClick="ShowMore(this,'group','one','more')"> 邮件群发
</td>
</tr>
<tr id="one">
<td height="30" align="right">E-Mail地址:</td>
<td height="26" colspan="2"><input name="address" type="text" class="text" value="@" size="28" maxlength="40" style="width:250px;margin-top:10px;margin-left:10px"> 填写用户的E-Mail地址</td>
</tr>
<tr id="more" style="display:none">
<td height="30" align="right">E-Mail地址:</td>
<td height="26" colspan="2"><textarea name="address2" cols="28" rows="4" class="text" style="width:250px;margin-top:10px;margin-left:10px;">@,@</textarea> 不同的E-Mail地址之间用,号隔开</td>
</tr>
<tr id="group" style="display:none">
<td height="30" align="right">邮件列表:</td>
<td height="26" colspan="2">
<select name="mailfile" id="mailfile" style="margin-left:10px">
<?php
foreach($mailfiles as $i=>$mailfile)
{
$selected = ($mailfile==$filename) ? " selected " : "";
?>
<option value="<?php echo $mailfile; ?>" <?php echo $selected; ?> ><?php echo $mailfile; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td height="30" align="right">邮件标题:</td>
<td height="26" colspan="2"><input name="title" type="text" id="title" class="company_manage_form_label" style="width:250px;margin-top:10px;margin-left:10px"> 标题少于70个字符内</td>
</tr>
<tr>
<td height="26" align="right" valign="top" style="padding-top:10px"><label for="pm_textarea">邮件内容:</label></td>
<td height="120" width="560" style="padding-left:10px">
<div style="width:568px;"><?php GetEditor("message","",450,"MemberLit"); ?></div>
</td>
<td width="310"></td>
</tr>
<tr>
<td height="26" align="right" valign="top"></td>
<td height="26" colspan="2" ><input type="submit" value="提交" class="button01"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr bgcolor="#F8FBFB">
<td height="30" colspan="9" align="center" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 71
src/admin/templets/mail_title_add.htm View File

@@ -1,71 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<style>
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
.current {border:1px solid #dbe4cd;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="26" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px">增加期刊</td>
</tr>
<tr bgcolor="#ffffff" height="26">
<td colspan="7" align="left">
<form method="post" action="mail_title.php">
<input name="dopost" type="hidden" value="addsave">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#ffffff">
<tr>
<td width="129" height="30" align="right" >期刊号:</td>
<td height="26" colspan="2">第<input name="period" type="text" class="text" value="01" size="28" style="width:40px;height:16px;margin-top:2px">期</td>
</tr>
<tr id="one">
<td width="129" height="30" align="right">订阅分类:</td>
<td height="26" colspan="2">
<select name="typeid" id="typeid">
<option value='0'>类别</option>
<?php
if(!isset($typeid)) $typeid = 0;
foreach($btypes as $k=>$v){
echo "<option value='$k'>$v</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td width="129" height="30" align="right">邮件标题:</td>
<td height="26" colspan="2"><input name="title" type="text" id="title" class="company_manage_form_label" style="width:250px;height:16px;margin-top:5px">
标题少于70个字符内</td>
</tr>
<tr>
<td height="12" align="right" valign="top" bgcolor="#ffffff" style="padding-top:5px;"><label for="pm_textarea">邮件内容:</label></td>
<td height="120" bgcolor="#ffffff" width="568">
<?php GetEditor("message","",450,"MemberLit"); ?>
</td>
<td width="314" bgcolor="#ffffff">&nbsp;</td>
</tr>

<tr>
<td height="26" align="right" valign="top" bgcolor="#ffffff">&nbsp;</td>
<td height="30" colspan="2" bgcolor="#ffffff"><input type="submit" value="提交" class="button01"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr bgcolor="#F8FBFB">
<td height="26" align="center" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 71
src/admin/templets/mail_title_edit.htm View File

@@ -1,71 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<style>
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
.current {border:1px solid #dbe4cd;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="30" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px">编辑期刊</td>
</tr>
<tr bgcolor="#ffffff" height="26">
<td colspan="7" align="left">
<form method="post" action="mail_title.php">
<input name="dopost" type="hidden" value="editsave">
<input name="id" type="hidden" value="<?php echo $row['id'] ?>">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#ffffff">
<tr>
<td width="129" height="30" align="right">期刊号:</td>
<td height="26" colspan="2">第<input name="period" type="text" class="text" value="<?php echo $row['period'] ?>" size="28" style="width:40px;margin-top:5px">期</td>
</tr>
<tr id="one">
<td width="129" height="30" align="right">订阅分类:</td>
<td height="26" colspan="2">
<select name="typeid" id="typeid">
<?php
foreach($btypes as $k=>$v){
if($row['typeid']==$k) echo "<option value='$k' selected>$v</option>";
else echo "<option value='$k'>$v</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td width="129" height="30" align="right">邮件标题:</td>
<td height="26" colspan="2"><input name="title" type="text" id="title" class="company_manage_form_label" style="width:250px;margin-top:5px" value="<?php echo $row['title'] ?>"/>
标题少于70个字符内</td>
</tr>
<tr>
<td height="12" align="right" valign="top" bgcolor="#ffffff" style="padding-top:5px;"><label for="pm_textarea">邮件内容:</label></td>
<td height="120" bgcolor="#ffffff" width="568">
<div style="width:568px;"><?php GetEditor("message",$row['content'],450,"MemberLit"); ?></div>
</td>
<td width="314" bgcolor="#f6f6f6">&nbsp;</td>
</tr>

<tr>
<td height="26" align="right" valign="top" bgcolor="#ffffff">&nbsp;</td>
<td height="30" colspan="2" bgcolor="#ffffff"><input type="submit" value="提交" class="button01"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr bgcolor="#F8FBFB">
<td height="26" align="center" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 47
src/admin/templets/mail_title_main.htm View File

@@ -1,47 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="26" colspan="8" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif">
<div style="float:left;padding-right:5px;padding-left:10px;">期刊管理</div>
<div style='float:right;padding-right:10px;'>[<a href="mail_title.php?dopost=add">添加期刊</a>]</div>
</td>
</tr>
<tr bgcolor="#FBFCE2" >
<td height="26" width="5%" align="center">ID</td>
<td width="5%" align="center">期刊号</td>
<td align="center" >期刊名称</td>
<td width="10%" align="center">所属分类</td>
<td width="10%" align="center">添加时间</td>
<td width="10%" align="center">发送时间</td>
<td width="10%" align="center">编辑人</td>
<td width="10%" align="center">操作</td>
</tr>
{dede:datalist}
<tr bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td align="center">{dede:field.id/}</td>
<td align="center">{dede:field.period/}</td>
<td align="center">{dede:field.title/}</td>
<td align="center">{dede:field.typename/}</td>
<td align="center">{dede:field.addtime function='GetDateTimeMk(@me)'/}</td>
<td align="center">{dede:field.sendtime function='GetSendTimeMk(@me)'/}</td>
<td align="center">{dede:field.writer/}</td>
<td align="center"><a href="mail_title.php?dopost=edit&id={dede:field.id/}">编辑</a> | <a href="mail_title.php?dopost=delete&id={dede:field.id/}">删除</a></td>
</tr>
{/dede:datalist}
<tr>
<td height="8" colspan="8" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 50
src/admin/templets/mail_title_send.htm View File

@@ -1,50 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<td height="26" colspan="10" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif">
<div style="float:left;padding-right:5px;padding-left:10px;">群发期刊</div>
<div style='float:right;padding-right:10px;'>[<a href="mail_title.php?dopost=add">添加期刊</a>]</div>
</td>
</tr>
<tr bgcolor="#FBFCE2">
<td height="26" width="5%" align="center" >ID</td>
<td width="5%" align="center">期刊号</td>
<td align="center" >期刊名称</td>
<td width="10%" align="center">所属分类</td>
<td width="10%" align="center">订阅数</td>
<td width="10%" align="center">添加时间</td>
<td width="10%" align="center">发送时间</td>
<td width="10%" align="center">状态</td>
<td width="10%" align="center">发送次数</td>
<td width="10%" align="center">操作</td>
</tr>
{dede:datalist}
<tr bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td align="center">{dede:field.id/}</td>
<td align="center">{dede:field.period/}</td>
<td align="center">{dede:field.title/}</td>
<td align="center">{dede:field.typename/}</td>
<td align="center">{dede:field.typeid function='GetCount(@me)'/}</td>
<td align="center">{dede:field.addtime function='GetDateTimeMk(@me)'/}</td>
<td align="center">{dede:field.sendtime function='GetSendTimeMk(@me)'/}</td>
<td align="center">{dede:field.state function='GetState(@me)'/}</td>
<td align="center">{dede:field.count/}</td>
<td align="center"><a href="mail_title_send.php?dopost=send&typeid={dede:field.typeid/}&id={dede:field.id/}">开始发送</a></td>
</tr>
{/dede:datalist}
<tr>
<td height="7" colspan="10" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 44
src/admin/templets/mail_type_add.htm View File

@@ -1,44 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="30" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif" style="padding-left:10px">添加分类</td>
</tr>
<tr bgcolor="#ffffff" height="26">
<td colspan="7" align="left">
<form method="post" action="mail_type.php">
<input name="dopost" type="hidden" value="addsave">
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td width="129" height="30" align="right">分类名称:</td>
<td height="30" colspan="2"><input name="typename" type="text" id="typename" class="company_manage_form_label" style="width:250px;margin-top:5px;margin-left:10px"></td>
</tr>
<tr>
<td height="12" align="right" valign="top" style="padding-top:5px;">分类描述:</td>
<td height="120" style="padding-left: 12px;"><textarea name="description" cols="45" id="description" style="width:260px;height:120px;"></textarea></td>
<td width="314">&nbsp;</td>
</tr>
<tr>
<td height="26" align="right" valign="top">&nbsp;</td>
<td height="30" colspan="2"><input type="submit" value="提交" class="button01"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr bgcolor="#F8FBFB">
<td height="26" align="center" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 46
src/admin/templets/mail_type_edit.htm View File

@@ -1,46 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td height="30" colspan="9" bgcolor="#EDF9D5" style="padding-left:10px">编辑分类</td>
</tr>
<tr bgcolor="#ffffff" height="26">
<td colspan="7" align="left">
<form method="post" action="mail_type.php">
<input name="dopost" type="hidden" value="editsave">
<input name="id" type="hidden" value="<?php echo $row['id'] ?>">
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td width="129" height="30" align="right" bgcolor="#ffffff">分类名称:</td>
<td height="30" colspan="2" bgcolor="#ffffff"><input name="typename" type="text" id="typename" class="company_manage_form_label" style="width:250px;height:16px;margin-top:5px;margin-left:10px;" value="<?php echo $row['typename'] ?>"></td>
</tr>
<tr>
<td height="12" align="right" valign="top" bgcolor="#ffffff" style="padding-top:5px;">分类描述:</td>
<td height="120" bgcolor="#ffffff" width="568" style="padding-left: 12px;"><textarea name="description" cols="45" id="description" style="width:260px;height:120px;"><?php echo $row['description'] ?></textarea></td>
<td width="314" bgcolor="#ffffff">&nbsp;</td>
</tr>

<tr>
<td height="26" align="right" valign="top" bgcolor="#f6f6f6">&nbsp;</td>
<td height="30" colspan="2" bgcolor="#ffffff"><input type="submit" value="提交" class="button01"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr bgcolor="#f6f6f6">
<td height="26" colspan="9" align="center">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 39
src/admin/templets/mail_type_main.htm View File

@@ -1,39 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>发送邮件</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">邮件订阅</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle">
<tr>
<td width="92%" height="26" colspan="4" bgcolor="#EDF9D5" background="../static/web/img/tbg.gif">
<div style='float:left;padding-right:5px;padding-left:10px;'>分类管理</div>
<div style='float:right;padding-right:10px;'>[<a href="mail_type.php?dopost=add">新增分类</a>]</div>
</td>
</tr>
<tr bgcolor="#FBFCE2">
<td align="center" width="10%">ID</td>
<td align="center" width="20%">分类名称</td>
<td align="center">分类描述</td>
<td align="center" width="30%">操作</td>
</tr>
{dede:datalist}
<tr bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td align="center">{dede:field.id/}</td>
<td align="center">{dede:field.typename/}</td>
<td align="center">{dede:field.description/}</td>
<td align="center"><a href="mail_type.php?dopost=edit&id={dede:field.id/}">编辑</a> | <a href="mail_type.php?dopost=delete&id={dede:field.id/}">删除</a></td>
</tr>
{/dede:datalist}
<tr>
<td height="7" colspan="4" bgcolor="#f6f6f6">&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 0
- 58
src/admin/templets/pic_view.htm View File

@@ -1,58 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>图片浏览器</title>
<link rel="stylesheet" href="../static/web/css/admin.css">
<script language="javascript">
function getPic(str)
{
var ss = new Array(3);
ss = str.split("@");
window.opener.document.form1.imgsrc.value=ss[0];
window.opener.document.form1.imgwidth.value=ss[1];
window.opener.document.form1.imgheight.value=ss[2];
window.opener.document.form1.picview.src=ss[0];
window.opener=true;
window.close();
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1">
<tr>
<td height="10" colspan="<?php echo $listSize?>"></td>
</tr>
<tr>
<td colspan="<?php echo $listSize?>">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="4%" align="center" bgcolor="#F9F9F7" height="26"><img src="../static/web/img/file_dir.gif"></td>
<td width="55%" align="center" bgcolor="#F9F9F7"><input name="activepath" type="text" id="path" size="30" style="height:15pt" value="<?php echo $activepath?>"></td>
<td width="20%" bgcolor="#F9F9F7">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="6%">&nbsp;</td>
<td width="44%"><input name="imageField" type="image" src="../static/web/img/next.gif"></td>
<td width="50%"><a href="file_manage_main.php?activepath=<?php echo $activepath?>"><img src="../static/web/img/file_view.gif"></a></td>
</tr>
</table></td>
<td width="22%" bgcolor="#F9F9F7">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="18%" align="right"><img src="../static/web/img/file_topdir.gif" width="18" height="17"></td>
<td width="82%"><?php GetPrePath($activepath); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr><td height="4" colspan="<?php echo $listSize?>"></td></tr>
<?php ListPic($truePath,$activepath); ?>
</form>
</table>
</body>
</html>

+ 0
- 5
src/data/admin/quickmenu-1.txt View File

@@ -1,5 +0,0 @@
<menu:item ico="../static/web/img/addnews.gif" link="content_list.php" title="文档列表" />
<menu:item ico="../static/web/img/menuarrow.gif" link="feedback_main.php" title="评论管理" />
<menu:item ico="../static/web/img/manage1.gif" link="public_guide.php" title="内容发布" />
<menu:item ico="../static/web/img/file_dir.gif" link="catalog_main.php" title="栏目管理" />
<menu:item ico="../static/web/img/manage1.gif" link="sys_info.php" title="修改参数" />

+ 0
- 3
src/data/admin/quickmenu.txt View File

@@ -1,3 +0,0 @@
<menu:item ico="../static/web/img/addnews.gif" link="content_list.php" title="文档列表" />
<menu:item ico="../static/web/img/menuarrow.gif" link="feedback_main.php" title="评论管理" />
<menu:item ico="../static/web/img/manage1.gif" link="public_guide.php" title="内容发布" />

Loading…
Cancel
Save