Browse Source

移除无效资源

tags/6.1.8
tianya 2 years ago
parent
commit
ed1de46c1c
23 changed files with 4 additions and 362 deletions
  1. +1
    -1
      src/admin/article_coonepage_rule.php
  2. +1
    -1
      src/admin/member_main.php
  3. +0
    -23
      src/admin/mynews_add.php
  4. +0
    -27
      src/admin/mynews_edit.php
  5. +0
    -25
      src/admin/mynews_main.php
  6. +1
    -1
      src/admin/templets/article_coonepage_rule.htm
  7. +1
    -1
      src/admin/templets/content_i_list.htm
  8. +0
    -98
      src/admin/templets/mynews_add.htm
  9. +0
    -94
      src/admin/templets/mynews_edit.htm
  10. +0
    -47
      src/admin/templets/mynews_main.htm
  11. BIN
      src/static/web/img/addnews.gif
  12. BIN
      src/static/web/img/adminuserico.gif
  13. BIN
      src/static/web/img/close.gif
  14. BIN
      src/static/web/img/feedback-edit.gif
  15. BIN
      src/static/web/img/file_dir.gif
  16. BIN
      src/static/web/img/file_edit.gif
  17. BIN
      src/static/web/img/file_topdir.gif
  18. BIN
      src/static/web/img/file_view.gif
  19. BIN
      src/static/web/img/manage1.gif
  20. BIN
      src/static/web/img/toplogo.gif
  21. +0
    -6
      src/system/taglib/help/mynews.txt
  22. +0
    -37
      src/system/taglib/mynews.lib.php
  23. +0
    -1
      src/theme/templets/advancedsearch.htm

+ 1
- 1
src/admin/article_coonepage_rule.php View File

@@ -58,7 +58,7 @@ else if ($action == 'editload') {
<tr>
<td width="102" height="30">网站名称:</td>
<td width="302"><input name="title" type="text" id="title" style="width:200px" value="<?php echo $row['title']; ?>" /></td>
<td width="26" align="center"><a href="javascript:CloseEditNode()" class="mr-3"><img src="../static/web/img/close.gif"></a></td>
<td width="26" align="center"><a href="javascript:CloseEditNode()" class="mr-3"><i class="fa fa-window-close-o" aria-hidden="true"></i></a></td>
</tr>
<tr>
<td height="30">原内容编码:</td>


+ 1
- 1
src/admin/member_main.php View File

@@ -97,5 +97,5 @@ function GetMAtt($m)
{
if ($m < 1) return '';
else if ($m == 10) return "&nbsp;<span style='color:#dc3545'>[管理员]</span>";
else return "&nbsp;<img src='../static/web/img/adminuserico.gif'><span style='color:#dc3545'>[荐]</span>";
else return "&nbsp;<i class=\"fa fa-user-o\" aria-hidden=\"true\"></i> <span style='color:#dc3545'>[荐]</span>";
}

+ 0
- 23
src/admin/mynews_add.php View File

@@ -1,23 +0,0 @@
<?php
/**
* 站内新闻发布
*
* @version $Id: mynews_add.php 1 15:27 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('plus_站内新闻发布');
if (empty($dopost)) $dopost = "";

if ($dopost == "save") {
$dtime = GetMkTime($sdate);
$query = "INSERT INTO `#@__mynews`(title,writer,senddate,body)
VALUES('$title','$writer','$dtime','$body')";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功发布一条站内新闻", "mynews_main.php");
exit();
}
include DedeInclude('templets/mynews_add.htm');

+ 0
- 27
src/admin/mynews_edit.php View File

@@ -1,27 +0,0 @@
<?php
/**
* 站内新闻管理
*
* @version $Id: mynews_edit.php 1 15:28 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('plus_站内新闻发布');
if (empty($dopost)) $dopost = "";

$aid = preg_replace("#[^0-9]#", "", $aid);
if ($dopost == "del") {
$dsql->ExecuteNoneQuery("DELETE FROM #@__mynews WHERE aid='$aid';");
ShowMsg("成功删除一条站内新闻", "mynews_main.php");
exit();
} else if ($dopost == "editsave") {
$inquery = "UPDATE #@__mynews SET title='$title',typeid='$typeid',writer='$writer',senddate='".GetMKTime($sdate)."',body='$body' WHERE aid='$aid';";
$dsql->ExecuteNoneQuery($inquery);
ShowMsg("成功修改一条站内新闻", "mynews_main.php");
exit();
}
$myNews = $dsql->GetOne("SELECT #@__mynews.*,#@__arctype.typename FROM #@__mynews LEFT JOIN #@__arctype ON #@__arctype.id=#@__mynews.typeid WHERE #@__mynews.aid='$aid';");
include DedeInclude('templets/mynews_edit.htm');

+ 0
- 25
src/admin/mynews_main.php View File

@@ -1,25 +0,0 @@
<?php
/**
* 站内新闻管理
*
* @version $Id: mynews_main.php 1 15:28 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");
require_once(DEDEINC."/typelink/typelink.class.php");
require_once(DEDEINC."/datalistcp.class.php");
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/");
$sql = "SELECT
#@__mynews.aid,#@__mynews.title,#@__mynews.writer,
#@__mynews.senddate,#@__mynews.typeid,
#@__arctype.typename
FROM #@__mynews
LEFT JOIN #@__arctype ON #@__arctype.id=#@__mynews.typeid
ORDER BY aid DESC";
$dlist = new DataListCP();
$dlist->SetTemplet(DEDEADMIN."/templets/mynews_main.htm");
$dlist->SetSource($sql);
$dlist->display();

+ 1
- 1
src/admin/templets/article_coonepage_rule.htm View File

@@ -147,7 +147,7 @@
<tr>
<td width="102" height="30">网站名称:</td>
<td width="302"><input name="title" type="text" id="title" style="width:260px"></td>
<td width="26" align="center"><a href="javascript:CloseAddNode()" class="mr-3"><img src="../static/web/img/close.gif"></a></td>
<td width="26" align="center"><a href="javascript:CloseAddNode()" class="mr-3"><i class="fa fa-window-close-o" aria-hidden="true"></i></a></td>
</tr>
<tr>
<td height="30">原内容编码:</td>


+ 1
- 1
src/admin/templets/content_i_list.htm View File

@@ -89,7 +89,7 @@ img{margin-right:0}
<td width="32%" class="pl-3">
<p>
<input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np">
<img src="../static/web/img/trun.gif" title="编辑属性" onClick="QuickEdit({dede:field.id/},event,this);" style="cursor:pointer">
<i class="fa fa-cogs" aria-hidden="true" title="编辑属性" onClick="QuickEdit({dede:field.id/},event,this);" style="cursor:pointer"></i>
<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives" oncontextmenu="ShowMenu(event,this,{dede:field.id/},'{dede:field.title function=" str_replace('\'', '' , @me)" /}')">{dede:field.title/}&nbsp;{dede:field.flag function='IsCommendArchives(@me)'/}</a>
</p>
<span>发布时间:{dede:field.senddate function='GetDateTimeMk(@me)'/}</span>


+ 0
- 98
src/admin/templets/mynews_add.htm View File

@@ -1,98 +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>
function checkSubmit()
{
if(document.form1.title.value=="")
{
document.form1.title.focus();
alert("标题必须设定");
return false;
}
}
</script>
</head>
<body>
<table width="98%" align="center" cellpadding="2" cellspacing="1">
<form action="mynews_add.php" method="post" name="form1" onSubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="save">
<tr>
<td height="26" background="../static/web/img/tbg.gif">
<table width="99%" cellspacing="0" cellpadding="0">
<tr>
<td>站内新闻管理 &gt; 增加消息</td>
<td align="right"> <a href="mynews_main.php"><img src="../static/web/img/file_edit.gif">返回管理页</a>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="130" align="center">
<table width="98%" cellspacing="2" cellpadding="0">
<tr>
<td height="26" colspan="2" align="left"> 说明:站内新闻是为了方便站长发布站点公告而设置的一种小功能,由于要读取包括text字段的信息,应定期删除太旧的信息,否则可能会让模板解析速度变慢如果没有选择显示频道,则在这个频道中使用这个标记时会被“所有位置”的标记内容代替</td>
</tr>
<tr>
<td height="26" colspan="2" align="left"> 站内新闻调用代码:{dede:mynews row='条数' titlelen='标题长度'}Innertext{/dede:mynews},Innertext支持的字段为:[field:title
/],[field:writer /],[field:senddate /](时间),[field:body /] </td>
</tr>
<tr>
<td width="13%" height="30" align="right">标 题:</td>
<td width="87%" align="left"> <input name="title" type="text" id="title" size="35" style="width:350">
</td>
</tr>
<tr>
<td height="30" align="right">显示频道:</td>
<td align="left">
<select name="typeid" style="width:150">
<option value="0" selected>所有位置</option>
<?php
$dsql->SetQuery("Select id,typename From #@__arctype where reid=0 order by sortrank desc");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='".$row->id."'>".$row->typename."</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td height="30" align="right">发言人:</td>
<td align="left">
<input name="writer" type="text" id="writer" value="<?php echo $cuserLogin->getUserName()?>" size="16">
</td>
</tr>
<tr>
<td height="30" align="right">日期:</td>
<td align="left"><input name="sdate" type="text" id="sdate" size="25" value="<?php echo GetDateTimeMk(time())?>">
</td>
</tr>
<tr>
<td height="172" align="right">信息内容:</td>
<td height="172">
<?php
GetEditor("body","",250,"Small");
?>
</td>
</tr>
<tr>
<td height="36"></td>
<td>
<input type="submit" name="Submit" value="发布新闻" class="coolbg np">
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html>

+ 0
- 94
src/admin/templets/mynews_edit.htm View File

@@ -1,94 +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>
function checkSubmit()
{
if(document.form1.title.value=="")
{
document.form1.title.focus();
alert("标题必须设定");
return false;
}
}
</script>
</head>
<body>
<table width="98%" align="center" cellpadding="2" cellspacing="1">
<form action="mynews_edit.php" method="post" name="form1" onSubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="editsave">
<input type="hidden" name="aid" value="<?php echo $myNews['aid']?>">
<tr>
<td height="26" background="../static/web/img/tbg.gif">
<table width="99%" cellspacing="0" cellpadding="0">
<tr>
<td>站内新闻管理 &gt; 增加消息</td>
<td align="right"> <a href="mynews_main.php"><img src="../static/web/img/file_edit.gif">返回管理页</a>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="130" align="center">
<table width="98%" cellspacing="2" cellpadding="0">
<tr>
<td height="26" colspan="2" align="left">说明:站内新闻是为了方便站长发布站点公告而设置的一种小功能,由于要读取包括text字段的信息,应定期删除太旧的信息,否则可能会让模板解析速度变慢如果没有选择显示频道,则在这个频道中使用这个标记时会被“所有位置”的标记内容代替</td>
</tr>
<tr>
<td height="26" colspan="2" align="left">站内新闻调用代码:{dede:mynews row='条数' titlelen='标题长度'}Innertext{/dede:mynews},Innertext支持的字段为:[field:title /],[field:writer /],[field:senddate /](时间),[field:body /] </td>
</tr>
<tr>
<td width="10%" height="30" align="right">标题:</td>
<td align="left"> <input name="title" type="text" id="title" value="<?php echo $myNews['title']?>" size="30" style="width:300px">
</td>
</tr>
<tr>
<td height="30" align="right">显示频道:</td>
<td align="left">
<select name="typeid" style="width:150">
<?php
$dsql->SetQuery("Select id,typename From #@__arctype where reid=0 order by ABS(".$myNews['typeid']." - id) asc");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='".$row->id."'>".$row->typename."</option>";
}
if($myNews['typeid']=="0") echo "<option value=\"0\" selected>所有位置</option>";
else echo "<option value=\"0\">所有位置</option>";
?>
</select>
</td>
</tr>
<tr>
<td height="30" align="right">发言人:</td>
<td align="left"><input name="writer" type="text" id="writer" value="<?php echo $myNews['writer']?>" size="16"></td>
</tr>
<tr>
<td height="30" align="right">日期:</td>
<td align="left"><input name="sdate" type="text" id="sdate" size="25" value="<?php echo GetDateTimeMk($myNews['senddate'])?>"></td>
</tr>
<tr>
<td height="172" align="right">信息内容:</td>
<td height="172">
<?php
GetEditor("body",$myNews['body'],250,"Small");
?>
</td>
</tr>
<tr>
<td height="36"></td>
<td><input type="submit" name="Submit" value="更新新闻"> &nbsp;</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html>

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

@@ -1,47 +0,0 @@
{dede:config.pagesize value="20"/}
<!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>
<table width="98%" align="center" cellpadding="2" cellspacing="1">
<tr>
<td height="26" colspan="6" background="../static/web/img/tbg.gif">
<table width="99%" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;站内新闻管理</td>
<td align="right">[<a href="mynews_add.php">新增一则站内新闻</a>]</td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2">
<td height="26">新闻ID</td>
<td>新闻标题</td>
<td>所属频道</td>
<td>更新时间</td>
<td>发布人</td>
<td>操作</td>
</tr>
{dede:datalist empty='<tr><td colspan="6"><center>暂无内容</center></td></tr>'}
<tr height="26" align="center" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#ffffff';">
<td width="8%">{dede:field.aid/}</td>
<td width="30%">{dede:field.title /}</td>
<td width="16%">{dede:field.typename /}</td>
<td width="14%">{dede:field.senddate function="GetDateMk(@me)" /}</td>
<td width="16%">{dede:field.writer /}</td>
<td width="16%">
<a href='mynews_edit.php?aid={dede:field.aid /}'>[修改]</a>
<a href='mynews_edit.php?dopost=del&aid={dede:field.aid /}'>[删除]</a>
</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FBF2">
<td height="36" colspan="6">{dede:pagelist listsize='6'/}</td>
</tr>
</table>
</body>
</html>

BIN
src/static/web/img/addnews.gif View File

Before After
Width: 16  |  Height: 16  |  Size: 255B

BIN
src/static/web/img/adminuserico.gif View File

Before After
Width: 16  |  Height: 16  |  Size: 1021B

BIN
src/static/web/img/close.gif View File

Before After
Width: 12  |  Height: 12  |  Size: 868B

BIN
src/static/web/img/feedback-edit.gif View File

Before After
Width: 45  |  Height: 18  |  Size: 418B

BIN
src/static/web/img/file_dir.gif View File

Before After
Width: 16  |  Height: 16  |  Size: 1.0KB

BIN
src/static/web/img/file_edit.gif View File

Before After
Width: 15  |  Height: 16  |  Size: 288B

BIN
src/static/web/img/file_topdir.gif View File

Before After
Width: 18  |  Height: 17  |  Size: 266B

BIN
src/static/web/img/file_view.gif View File

Before After
Width: 60  |  Height: 20  |  Size: 174B

BIN
src/static/web/img/manage1.gif View File

Before After
Width: 16  |  Height: 16  |  Size: 617B

BIN
src/static/web/img/toplogo.gif View File

Before After
Width: 269  |  Height: 22  |  Size: 2.9KB

+ 0
- 6
src/system/taglib/help/mynews.txt View File

@@ -1,6 +0,0 @@
站内新闻调用标签
>>dede>>
{dede:mynews row='' titlelen=''/}
>>dede>>
row='1' 调用站内新闻数
titlelen='24' 新闻标题长度

+ 0
- 37
src/system/taglib/mynews.lib.php View File

@@ -1,37 +0,0 @@
<?php
/**
* 站内新闻调用标签
*
* @version $Id:mynews.lib.php 1 9:29 2010年7月6日Z tianya $
* @package DedeBIZ.Taglib
* @copyright Copyright (c) 2022, DedeBIZ.COM
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_mynews(&$ctag, &$refObj)
{
global $dsql, $envs;
//属性处理
$attlist = "row|1,titlelen|24";
FillAttsDefault($ctag->CAttribute->Items, $attlist);
extract($ctag->CAttribute->Items, EXTR_SKIP);
$innertext = trim($ctag->GetInnerText());
if (empty($row)) $row = 1;
if (empty($titlelen)) $titlelen = 30;
if (empty($innertext)) $innertext = GetSysTemplets('mynews.htm');
$idsql = '';
if ($envs['typeid'] > 0) $idsql = " WHERE typeid='".GetTopid($this->TypeID)."' ";
$dsql->SetQuery("SELECT * FROM #@__mynews $idsql ORDER BY senddate DESC LIMIT 0,$row");
$dsql->Execute();
$ctp = new DedeTagParse();
$ctp->SetNameSpace('field', '[', ']');
$ctp->LoadSource($innertext);
$revalue = '';
while ($row = $dsql->GetArray()) {
foreach ($ctp->CTags as $tagid => $ctag) {
@$ctp->Assign($tagid, $row[$ctag->GetName()]);
}
$revalue .= $ctp->GetResult();
}
return $revalue;
}

+ 0
- 1
src/theme/templets/advancedsearch.htm View File

@@ -10,7 +10,6 @@ a{color:#03F}
a:hover{color:#F30;text-decoration:none}
li,dd{margin:0;padding:0;list-style:none}
.cbox{width:98%;margin:8px auto 0px}
.top{height:60px;background:url(/static/web/img/toplogo.gif) 6px center no-repeat}
.searchbox{margin:20px 0px 0px 240px}
input,select,textarea{font-size:14px;vertical-align:middle}
.searchbox .keyword{margin:-1px 5px 0 2px;padding:6px;width:223px;height:13px;border:1px solid #a7a6aa;font-size:14px}


Loading…
Cancel
Save