Browse Source

系统后台页面样式调整

tags/6.0.0
tianya 3 years ago
parent
commit
417fee8e5b
50 changed files with 2869 additions and 2899 deletions
  1. +1
    -1
      src/dede/content_sg_list.php
  2. +1
    -2
      src/dede/css/base.css
  3. +0
    -1
      src/dede/css/indexbody.css
  4. +57
    -44
      src/dede/feedback_main.php
  5. +1
    -1
      src/dede/freelist_main.php
  6. +1
    -1
      src/dede/inc/inc_action_info.php
  7. +194
    -240
      src/dede/index_body.php
  8. +79
    -95
      src/dede/index_testenv.php
  9. +31
    -27
      src/dede/js/main.js
  10. +1
    -1
      src/dede/login.php
  11. +0
    -2
      src/dede/member_do.php
  12. +7
    -5
      src/dede/module_main.php
  13. +2
    -2
      src/dede/swfupload.php
  14. +0
    -2
      src/dede/sys_cache_up.php
  15. +2
    -1
      src/dede/sys_info.php
  16. +75
    -58
      src/dede/templets/ad_main.htm
  17. +0
    -174
      src/dede/templets/api_ucenter_edit.htm
  18. +0
    -87
      src/dede/templets/api_ucenter_install.htm
  19. +1
    -1
      src/dede/templets/archives_add.htm
  20. +1
    -1
      src/dede/templets/archives_sg_add.htm
  21. +2
    -2
      src/dede/templets/archives_sg_edit.htm
  22. +195
    -194
      src/dede/templets/co_main.htm
  23. +105
    -99
      src/dede/templets/co_url.htm
  24. +11
    -4
      src/dede/templets/content_i_list.htm
  25. +31
    -30
      src/dede/templets/content_list.htm
  26. +214
    -233
      src/dede/templets/content_s_list.htm
  27. +2
    -0
      src/dede/templets/content_select_list.htm
  28. +42
    -39
      src/dede/templets/content_sg_list.htm
  29. +47
    -32
      src/dede/templets/diy_list.htm
  30. +66
    -47
      src/dede/templets/diy_main.htm
  31. +0
    -2
      src/dede/templets/diy_post.htm
  32. +99
    -102
      src/dede/templets/erradd.htm
  33. +173
    -165
      src/dede/templets/feedback_main.htm
  34. +41
    -29
      src/dede/templets/file_manage_main.htm
  35. +30
    -22
      src/dede/templets/freelist_main.htm
  36. +114
    -107
      src/dede/templets/friendlink_main.htm
  37. +175
    -144
      src/dede/templets/index_body.htm
  38. +104
    -52
      src/dede/templets/login.htm
  39. +157
    -141
      src/dede/templets/media_main.htm
  40. +153
    -135
      src/dede/templets/member_main.htm
  41. +1
    -1
      src/dede/templets/member_view.htm
  42. +9
    -2
      src/dede/templets/mychannel_main.htm
  43. +46
    -34
      src/dede/templets/plus_main.htm
  44. +115
    -108
      src/dede/templets/recycling.htm
  45. +325
    -308
      src/dede/templets/stepselect_main.htm
  46. +1
    -1
      src/dede/templets/sys_passport.htm
  47. +2
    -2
      src/dede/templets/sys_safe.htm
  48. +13
    -6
      src/dede/templets/tags_main.htm
  49. +92
    -72
      src/dede/templets/templets_one.htm
  50. +50
    -40
      src/dede/templets/vote_main.htm

+ 1
- 1
src/dede/content_sg_list.php View File

@@ -48,7 +48,7 @@ require_once(DEDEINC."/datalistcp.class.php");
require_once(DEDEADMIN."/inc/inc_list_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$tl = new TypeLink($cid);
$listtable = trim($tl->TypeInfos['addtable']);
$listtable = @trim($tl->TypeInfos['addtable']);
if( !empty($channelid) && !empty($ucid) && $tl->TypeInfos['channeltype'] != $channelid)
{
ShowMsg('你没权限访问此页!','javascript:;');


+ 1
- 2
src/dede/css/base.css View File

@@ -58,7 +58,6 @@ background-color: #F1F8B4;
padding: 2px;
padding-right: 5px;
padding-left: 5px;
background: url(../images/allbtbg2.gif) #EFF7D0;
cursor: pointer;
}
@@ -640,4 +639,4 @@ vertical-align: baseline;
input,
select {
height: auto !important;
}
}

+ 0
- 1
src/dede/css/indexbody.css View File

@@ -199,7 +199,6 @@ td {
}

.footer {
border-top: 1px solid #CFD7C4;
line-height: 36px;
margin-top: 8px;
font-family: Verdana, Geneva, sans-serif;

+ 57
- 44
src/dede/feedback_main.php View File

@@ -1,4 +1,5 @@
<?php
/**
* 评论管理
*
@@ -8,102 +9,114 @@
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__) . "/config.php");
//权限检查
CheckPurview('sys_Feedback');
require_once(DEDEINC."/datalistcp.class.php");
require_once(DEDEINC."/typelink.class.php");
setcookie("ENV_GOBACK_URL", $dedeNowurl, time()+3600, "/");
require_once(DEDEINC . "/datalistcp.class.php");
require_once(DEDEINC . "/typelink.class.php");
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/");
function IsCheck($st)
{
return $st==1 ? "[已审核]" : "<font color='red'>[未审核]</font>";
return $st == 1 ? "[已审核]" : "<font color='red'>[未审核]</font>";
}
function jsTrimjajx($str,$len)
function jsTrimjajx($str, $len)
{
$str = preg_replace("/{quote}(.*){\/quote}/is",'',$str);
$str = str_replace('&lt;br/&gt;',' ',$str);
$str = cn_substr($str,$len);
$str = preg_replace("/['\"\r\n]/","",$str);
$str = preg_replace("/{quote}(.*){\/quote}/is", '', $str);
$str = str_replace('&lt;br/&gt;', ' ', $str);
$str = cn_substr($str, $len);
$str = preg_replace("/['\"\r\n]/", "", $str);
$str = str_replace('&lt;', '<', $str);
$str = str_replace('&gt;', '>', $str);
return $str;
}
if(!empty($job))
{
if (!empty($job)) {
$ids = preg_replace("#[^0-9,]#", '', $fid);
if(empty($ids))
{
ShowMsg("你没选中任何选项!",$_COOKIE['ENV_GOBACK_URL'],0,500);
if (empty($ids)) {
ShowMsg("你没选中任何选项!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit;
}
}
else
{
} else {
$job = '';
}
// 更新回复统计
function UpdateReplycount($id){
global $dsql;
$row = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__feedback` WHERE fid = $id AND ischeck=1");
$dsql->ExecNoneQuery("UPDATE `#@__feedback` SET `replycount`='{$row['dd']}' WHERE `id`=$id;");
}
//删除评论
if( $job == 'del' )
{
if ($job == 'del') {
$query = "DELETE FROM `#@__feedback` WHERE id IN($ids) ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功删除指定的评论!",$_COOKIE['ENV_GOBACK_URL'],0,500);
ShowMsg("成功删除指定的评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit();
}
//删除相同IP的所有评论
else if( $job == 'delall' )
{
else if ($job == 'delall') {
$dsql->SetQuery("SELECT ip FROM `#@__feedback` WHERE id IN ($ids) ");
$dsql->Execute();
$ips = '';
while($row = $dsql->GetArray())
{
$ips .= ($ips=='' ? " ip = '{$row['ip']}' " : " Or ip = '{$row['ip']}' ");
while ($row = $dsql->GetArray()) {
$ips .= ($ips == '' ? " ip = '{$row['ip']}' " : " Or ip = '{$row['ip']}' ");
}
if($ips!='')
{
if ($ips != '') {
$query = "DELETE FROM `#@__feedback` WHERE $ips ";
$dsql->ExecuteNoneQuery($query);
}
ShowMsg("成功删除指定相同IP的所有评论!",$_COOKIE['ENV_GOBACK_URL'],0,500);
ShowMsg("成功删除指定相同IP的所有评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit();
}
//审核评论
else if($job=='check')
{
$query = "UPDATE `#@__feedback` SET ischeck=1 WHERE id IN($ids) ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功审核指定评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit();
else if ($job == 'check') {
$query = "UPDATE `#@__feedback` SET ischeck=1 WHERE id IN($ids) ";
$dsql->ExecuteNoneQuery($query);
$dquery = "SELECT * FROM `#@__feedback` WHERE id IN($ids)";
$dsql->SetQuery($dquery);
$dsql->Execute();
while ($row = $dsql->GetArray()) {
UpdateReplycount($row['fid']);
}
ShowMsg("成功审核指定评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit();
}
//浏览评论
else
{
else {
$bgcolor = '';
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$fid = isset($fid) && is_numeric($fid) ? $fid : 0;
$keyword = !isset($keyword) ? '' : $keyword;
$ip = !isset($ip) ? '' : $ip;
$tl = new TypeLink($typeid);
$openarray = $tl->GetOptionArray($typeid,$admin_catalogs,0);
$addsql = ($typeid != 0 ? " And typeid IN (".GetSonIds($typeid).")" : '');
$openarray = $tl->GetOptionArray($typeid, $admin_catalogs, 0);
$addsql = ($typeid != 0 ? " And typeid IN (" . GetSonIds($typeid) . ")" : '');
$addsql .= ($aid != 0 ? " And aid=$aid " : '');
$addsql .= ($ip != '' ? " And ip LIKE '$ip' " : '');
if ($fid > 0) {
$addsql .= " AND fid={$fid} ";
}
$querystring = "SELECT * FROM `#@__feedback` WHERE msg LIKE '%$keyword%' $addsql ORDER BY dtime DESC";
$dlist = new DataListCP();
$dlist->pageSize = 15;
$dlist->SetParameter('aid', $aid);
$dlist->SetParameter('ip', $ip);
$dlist->SetParameter('typeid', $typeid);
$dlist->SetParameter('keyword', $keyword);
$dlist->SetTemplate(DEDEADMIN.'/templets/feedback_main.htm');
$dlist->SetTemplate(DEDEADMIN . '/templets/feedback_main.htm');
$dlist->SetSource($querystring);
$dlist->Display();
}
}

+ 1
- 1
src/dede/freelist_main.php View File

@@ -66,7 +66,7 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid')
{
global $cfg_phpurl,$addsql;
$start = ($pageno-1) * $pagesize;
$printhead ="<table width='98%' border='0' cellpadding='1' cellspacing='1' align='center' class='tbtitle' style='background:#cfcfcf;margin-bottom:5px;'>
$printhead ="<table width='98%' border='0' cellpadding='1' cellspacing='1' align='center' class='table maintable table-bordered' style='background:#cfcfcf;margin-bottom:5px;'>
<tr align='center' bgcolor='#FBFCE2'>
<td width='5%' class='tbsname'><a href='#' onclick=\"ReloadPage('aid')\"><u>ID</u></a></td>
<td width='20%' class='tbsname'>列表名称</td>


+ 1
- 1
src/dede/inc/inc_action_info.php View File

@@ -418,7 +418,7 @@ $actionSearch[10] = array(
),
3 => array(
'title' =>'系统日志管理',
'description' =>'对每个登后台的管理员进行的操作进行记录',
'description' =>'对每个登后台的管理员进行的操作进行记录',
'purview' =>'sys_Log',
'linkurl' =>'log_list.php'
),


+ 194
- 240
src/dede/index_body.php View File

@@ -1,4 +1,5 @@
<?php
/**
* 管理后台首页主体
*
@@ -8,58 +9,39 @@
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require(dirname(__FILE__).'/config.php');
require(DEDEINC.'/image.func.php');
require(DEDEINC.'/dedetag.class.php');
$defaultIcoFile = DEDEDATA.'/admin/quickmenu.txt';
$myIcoFile = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt';
if(!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;
require(dirname(__FILE__) . '/config.php');
require(DEDEINC . '/image.func.php');
require(DEDEINC . '/dedetag.class.php');
$defaultIcoFile = DEDEDATA . '/admin/quickmenu.txt';
$myIcoFile = DEDEDATA . '/admin/quickmenu-' . $cuserLogin->getUserID() . '.txt';
if (!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;
//默认主页
if(empty($dopost))
{
require(DEDEINC.'/inc/inc_fun_funAdmin.php');
$verLockFile = DEDEDATA.'/admin/ver.txt';
$fp = fopen($verLockFile,'r');
$upTime = trim(fread($fp,64));
if (empty($dopost)) {
require(DEDEINC . '/inc/inc_fun_funAdmin.php');
$verLockFile = DEDEDATA . '/admin/ver.txt';
$fp = fopen($verLockFile, 'r');
$upTime = trim(fread($fp, 64));
fclose($fp);
$oktime = substr($upTime,0,4).'-'.substr($upTime,4,2).'-'.substr($upTime,6,2);
$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));
$dedecmsidc = DEDEDATA . '/admin/idc.txt';
$fp = fopen($dedecmsidc, 'r');
$dedeIDC = fread($fp, filesize($dedecmsidc));
fclose($fp);
$myMoveFile = DEDEDATA.'/admin/move-'.$cuserLogin->getUserID().'.txt';
if(file_exists($myMoveFile))
{
$fp = fopen($myMoveFile,'r');
$movedata= fread($fp,filesize($myMoveFile));
$movedata = unserialize($movedata);
$column1 = array();
$column2 = array();
foreach ($movedata['items'] as $key => $value) {
if($value['column'] == 'column1') $column1 = $column1 + array($key => $value['id']);
else if($value['column'] == 'column2') $column2 = $column2 + array($key => $value['id']);
}
include DedeInclude('templets/index_body_move.htm');
}else{
include DedeInclude('templets/index_body.htm');
}
include DedeInclude('templets/index_body.htm');
exit();
}
/*-----------------------
增加新项
function _AddNew() { }
-------------------------*/
else if($dopost=='addnew')
{
if(empty($link) || empty($title))
{
ShowMsg("链接网址或标题不能为空!","-1");
-------------------------*/ else if ($dopost == 'addnew') {
if (empty($link) || empty($title)) {
ShowMsg("链接网址或标题不能为空!", "-1");
exit();
}
$fp = fopen($myIcoFile,'r');
$fp = fopen($myIcoFile, 'r');
$oldct = trim(fread($fp, filesize($myIcoFile)));
fclose($fp);
@@ -68,214 +50,198 @@ else if($dopost=='addnew')
$ico = preg_replace("#['\"]#", '`', $ico);
$oldct .= "\r\n<menu:item ico=\"{$ico}\" link=\"{$link}\" title=\"{$title}\" />";
$myIcoFileTrue = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt';
$myIcoFileTrue = DEDEDATA . '/admin/quickmenu-' . $cuserLogin->getUserID() . '.txt';
$fp = fopen($myIcoFileTrue, 'w');
fwrite($fp, $oldct);
fclose($fp);
ShowMsg("成功增加一个项目!","index_body.php?".time());
ShowMsg("成功增加一个项目!", "index_body.php?" . time());
exit();
}
/*---------------------------
保存修改的项
function _EditSave() { }
----------------------------*/
else if($dopost=='editsave')
{
----------------------------*/ else if ($dopost == 'editsave') {
$quickmenu = stripslashes($quickmenu);
$myIcoFileTrue = DEDEDATA.'/admin/quickmenu-'.$cuserLogin->getUserID().'.txt';
$fp = fopen($myIcoFileTrue,'w');
fwrite($fp,$quickmenu);
$myIcoFileTrue = DEDEDATA . '/admin/quickmenu-' . $cuserLogin->getUserID() . '.txt';
$fp = fopen($myIcoFileTrue, 'w');
fwrite($fp, $quickmenu);
fclose($fp);
ShowMsg("成功修改快捷操作项目!","index_body.php?".time());
ShowMsg("成功修改快捷操作项目!", "index_body.php?" . time());
exit();
}
/*---------------------------
保存修改的项
function _EditSave() { }
----------------------------*/
else if($dopost=='movesave')
{
$movedata = str_replace('\\',"",$sortorder);
$movedata = json_decode($movedata,TRUE);
----------------------------*/ else if ($dopost == 'movesave') {
$movedata = str_replace('\\', "", $sortorder);
$movedata = json_decode($movedata, TRUE);
$movedata = serialize($movedata);
$myIcoFileTrue = DEDEDATA.'/admin/move-'.$cuserLogin->getUserID().'.txt';
$fp = fopen($myIcoFileTrue,'w');
fwrite($fp,$movedata);
$myIcoFileTrue = DEDEDATA . '/admin/move-' . $cuserLogin->getUserID() . '.txt';
$fp = fopen($myIcoFileTrue, 'w');
fwrite($fp, $movedata);
fclose($fp);
}
/*-----------------------------
显示修改表单
function _EditShow() { }
-----------------------------*/
else if($dopost=='editshow')
{
$fp = fopen($myIcoFile,'r');
$oldct = trim(fread($fp,filesize($myIcoFile)));
-----------------------------*/ else if ($dopost == 'editshow') {
$fp = fopen($myIcoFile, 'r');
$oldct = trim(fread($fp, filesize($myIcoFile)));
fclose($fp);
?>
<form name='editform' action='index_body.php' method='post'>
<input type='hidden' name='dopost' value='editsave' />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height='28' background="images/tbg.gif">
<div style='float:left'><b>修改快捷操作项</b></div>
<div style='float:right;padding:3px 10px 0 0;'>
<a href="javascript:CloseTab('editTab')"><img src="images/close.gif" width="12" height="12" border="0" /></a>
</div>
</td>
</tr>
<tr><td style="height:6px;font-size:1px;border-top:1px solid #8DA659">&nbsp;</td></tr>
<tr>
<td>
按原格式修改/增加XML项。
</td>
</tr>
<tr>
<td align='center'>
<textarea name="quickmenu" rows="10" cols="50" style="width:94%;height:220px"><?php echo $oldct; ?></textarea>
</td>
</tr>
<tr>
<td height="45" align="center">
<input type="submit" name="Submit" value="保存项目" class="np coolbg" style="width:80px;cursor:pointer" />
&nbsp;
<input type="reset" name="reset" value="重设" class="np coolbg" style="width:50px;cursor:pointer" />
</td>
</tr>
</table>
</form>
<form name='editform' action='index_body.php' method='post'>
<input type='hidden' name='dopost' value='editsave' />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height='28' background="images/tbg.gif">
<div style='float:left'><b>修改快捷操作项</b></div>
<div style='float:right;padding:3px 10px 0 0;'>
<a href="javascript:CloseTab('editTab')"><img src="images/close.gif" width="12" height="12" border="0" /></a>
</div>
</td>
</tr>
<tr>
<td style="height:6px;font-size:1px;border-top:1px solid #8DA659">&nbsp;</td>
</tr>
<tr>
<td>
按原格式修改/增加XML项。
</td>
</tr>
<tr>
<td align='center'>
<textarea name="quickmenu" rows="10" cols="50" style="width:94%;height:220px"><?php echo $oldct; ?></textarea>
</td>
</tr>
<tr>
<td height="45" align="center">
<input type="submit" name="Submit" value="保存项目" class="np coolbg" style="width:80px;cursor:pointer" />
&nbsp;
<input type="reset" name="reset" value="重设" class="np coolbg" style="width:50px;cursor:pointer" />
</td>
</tr>
</table>
</form>
<?php
exit();
exit();
}
/*---------------------------------
载入右边内容
function _getRightSide() { }
---------------------------------*/
else if($dopost=='getRightSide')
{
---------------------------------*/ else if ($dopost == 'getRightSide') {
$query = " SELECT COUNT(*) AS dd FROM `#@__member` ";
$row1 = $dsql->GetOne($query);
$query = " SELECT COUNT(*) AS dd FROM `#@__feedback` ";
$row2 = $dsql->GetOne($query);
$chArrNames = array();
$query = "SELECT id, typename FROM `#@__channeltype` ";
$dsql->Execute('c', $query);
while($row = $dsql->GetArray('c'))
{
while ($row = $dsql->GetArray('c')) {
$chArrNames[$row['id']] = $row['typename'];
}
$query = "SELECT COUNT(channel) AS dd, channel FROM `#@__arctiny` GROUP BY channel ";
$allArc = 0;
$chArr = array();
$dsql->Execute('a', $query);
while($row = $dsql->GetArray('a'))
{
while ($row = $dsql->GetArray('a')) {
$allArc += $row['dd'];
$row['typename'] = $chArrNames[$row['channel']];
$chArr[] = $row;
}
?>
<table width="100%" class="dboxtable">
<tr>
<td width='50%' class='nline' style="text-align:left"> 会员数: </td>
<td class='nline' style="text-align:left"> <?php echo $row1['dd']; ?> </td>
</tr>
<tr>
<td class='nline' style="text-align:left"> 文档数: </td>
<td class='nline' style="text-align:left"> <?php echo $allArc; ?> </td>
</tr>
<?php
foreach($chArr as $row)
{
?>
<tr>
<td class='nline' style="text-align:left"> <?php echo $row['typename']; ?>: </td>
<td class='nline' style="text-align:left"> <?php echo $row['dd']; ?>&nbsp; </td>
</tr>
<?php
}
?>
<tr>
<td style="text-align:left"> 评论数: </td>
<td style="text-align:left"> <?php echo $row2['dd']; ?> </td>
</tr>
<tr>
<td width='50%' class='nline' style="text-align:left"> 会员数: </td>
<td class='nline' style="text-align:left"> <?php echo $row1['dd']; ?> </td>
</tr>
<tr>
<td class='nline' style="text-align:left"> 文档数: </td>
<td class='nline' style="text-align:left"> <?php echo $allArc; ?> </td>
</tr>
<?php
foreach ($chArr as $row) {
?>
<tr>
<td class='nline' style="text-align:left"> <?php echo $row['typename']; ?>: </td>
<td class='nline' style="text-align:left"> <?php echo $row['dd']; ?>&nbsp; </td>
</tr>
<?php
}
?>
<tr>
<td style="text-align:left"> 评论数: </td>
<td style="text-align:left"> <?php echo $row2['dd']; ?> </td>
</tr>
</table>
<?php
exit();
} else if ($dopost=='getRightSideNews')
{
exit();
} else if ($dopost == 'getRightSideNews') {
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc
LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
$arcArr = array();
$dsql->Execute('m', $query);
while($row = $dsql->GetArray('m'))
{
while ($row = $dsql->GetArray('m')) {
$arcArr[] = $row;
}
AjaxHead();
?>
<table width="100%" class="dboxtable">
<?php
foreach($arcArr as $row)
{
if(trim($row['editcon'])=='') {
$row['editcon'] = 'archives_edit.php';
<?php
foreach ($arcArr as $row) {
if (trim($row['editcon']) == '') {
$row['editcon'] = 'archives_edit.php';
}
$linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
if ($row['arcrank'] == -1) $linkstr .= "<font color='red'>(未审核)</font>";
?>
<tr>
<td class='nline'>
<?php echo $linkstr; ?>
</td>
</tr>
<?php
}
$linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
?>
<tr>
<td class='nline'>
<?php echo $linkstr; ?>
</td>
</tr>
<?php
}
?>
?>
</table>
<?php
exit;
} else if ($dopost=='showauth')
{
exit;
} else if ($dopost == 'showauth') {
include('templets/index_body_showauth.htm');
exit;
} else if ($dopost=='showad')
{
} else if ($dopost == 'showad') {
include('templets/index_body_showad.htm');
exit;
} else if($dopost=='setskin')
{
$cskin = empty($cskin)? 1 : $cskin;
$skin = !in_array($cskin, array(1,2,3,4))? 1 : $cskin;
$skinconfig = DEDEDATA.'/admin/skin.txt';
PutFile($skinconfig, $skin);
} elseif ( $dopost=='get_seo' )
{
} else if ($dopost == 'setskin') {
$cskin = empty($cskin) ? 1 : $cskin;
$skin = !in_array($cskin, array(1, 2, 3, 4)) ? 1 : $cskin;
$skinconfig = DEDEDATA . '/admin/skin.txt';
PutFile($skinconfig, $skin);
} elseif ($dopost == 'get_seo') {
if (!function_exists('fsocketopen') && !function_exists('curl_init')) {
echo '没有支持的curl或fsocketopen组件';
exit;
}
function dedeseo_http_send($url, $limit=0, $post='', $cookie='', $timeout=5)
function dedeseo_http_send($url, $limit = 0, $post = '', $cookie = '', $timeout = 5)
{
$return = '';
$matches = parse_url($url);
$scheme = $matches['scheme'];
$host = $matches['host'];
$path = $matches['path'] ? $matches['path'].(@$matches['query'] ? '?'.$matches['query'] : '') : '/';
$path = $matches['path'] ? $matches['path'] . (@$matches['query'] ? '?' . $matches['query'] : '') : '/';
$port = !empty($matches['port']) ? $matches['port'] : 80;
if (function_exists('curl_init') && function_exists('curl_exec')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $scheme.'://'.$host.':'.$port.$path);
curl_setopt($ch, CURLOPT_URL, $scheme . '://' . $host . ':' . $port . $path);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, @$_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_USERAGENT, @$_SERVER['HTTP_USER_AGENT']);
if ($post) {
curl_setopt($ch, CURLOPT_POST, 1);
$content = is_array($port) ? http_build_query($post) : $post;
@@ -303,18 +269,18 @@ exit;
$header = "Accept: */*\r\n";
$header .= "Accept-Language: zh-cn\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "User-Agent: ".@$_SERVER['HTTP_USER_AGENT']."\r\n";
$header .= "User-Agent: " . @$_SERVER['HTTP_USER_AGENT'] . "\r\n";
$header .= "Host: $host:$port\r\n";
$header .= 'Content-Length: '.strlen($content)."\r\n";
$header .= 'Content-Length: ' . strlen($content) . "\r\n";
$header .= "Connection: Close\r\n";
$header .= "Cache-Control: no-cache\r\n";
$header .= "Cookie: $cookie\r\n\r\n";
$out .= $header.$content;
$out .= $header . $content;
} else {
$out = "GET $path HTTP/1.0\r\n";
$header = "Accept: */*\r\n";
$header .= "Accept-Language: zh-cn\r\n";
$header .= "User-Agent: ".@$_SERVER['HTTP_USER_AGENT']."\r\n";
$header .= "User-Agent: " . @$_SERVER['HTTP_USER_AGENT'] . "\r\n";
$header .= "Host: $host:$port\r\n";
$header .= "Connection: Close\r\n";
$header .= "Cookie: $cookie\r\n\r\n";
@@ -335,7 +301,7 @@ exit;
'timeout' => $timeout,
),
));
$fp = @fopen($scheme.'://'.$host.':'.$port.$path, 'b', false, $context);
$fp = @fopen($scheme . '://' . $host . ':' . $port . $path, 'b', false, $context);
$fpflag = 1;
}
@@ -365,100 +331,88 @@ exit;
$seo_info = array();
$seo_info = $dsql->GetOne("SELECT * FROM `#@__plus_seoinfo` ORDER BY id DESC");
$now = time();
if ( empty($seo_info) OR $now - $seo_info['create_time'] > 60*60*6 )
{
$site = str_replace(array("http://",'/'),'',$cfg_basehost);
if (empty($seo_info) or $now - $seo_info['create_time'] > 60 * 60 * 6) {
$site = str_replace(array("http://", '/'), '', $cfg_basehost);
$url = "http://www.alexa.com/siteinfo/{$site}";
$html = dedeseo_http_send($url);
//var_dump($html);exit;
if ( preg_match("#API at http://aws.amazon.com/awis -->(.*)</strong>#isU",$html,$matches) )
{
$seo_info['alexa_num'] = isset($matches[1])? trim($matches[1]) : 0;
$html = dedeseo_http_send($url);
//var_dump($html);exit;
if (preg_match("#API at http://aws.amazon.com/awis -->(.*)</strong>#isU", $html, $matches)) {
$seo_info['alexa_num'] = isset($matches[1]) ? trim($matches[1]) : 0;
}
$seo_info['alexa_num'] = empty($seo_info['alexa_num'])? 0 : $seo_info['alexa_num'];
if ( preg_match("#Flag'><strong class=\"metrics-data align-vmiddle\">(.*)</strong>#isU",$html,$matches) )
{
$seo_info['alexa_area_num'] = isset($matches[1])? trim($matches[1]) : 0;
$seo_info['alexa_num'] = empty($seo_info['alexa_num']) ? 0 : $seo_info['alexa_num'];
if (preg_match("#Flag'><strong class=\"metrics-data align-vmiddle\">(.*)</strong>#isU", $html, $matches)) {
$seo_info['alexa_area_num'] = isset($matches[1]) ? trim($matches[1]) : 0;
}
$seo_info['alexa_area_num'] = empty($seo_info['alexa_area_num'])? 0 : $seo_info['alexa_area_num'];
$seo_info['alexa_area_num'] = empty($seo_info['alexa_area_num']) ? 0 : $seo_info['alexa_area_num'];
$url = "http://www.baidu.com/s?wd=site:{$site}";
$html = Html2Text(dedeseo_http_send($url));
if ( preg_match("#结果数约([\d]+)个#",$html,$matches) )
{
$seo_info['baidu_count'] = isset($matches[1])? $matches[1] : 0;
$html = Html2Text(dedeseo_http_send($url));
if (preg_match("#结果数约([\d]+)个#", $html, $matches)) {
$seo_info['baidu_count'] = isset($matches[1]) ? $matches[1] : 0;
}
if (empty($seo_info['baidu_count']) AND preg_match("#网站共有([\d, ]+)个#",$html,$matches) )
{
$seo_info['baidu_count'] = isset($matches[1])? trim($matches[1]) : 0;
if (empty($seo_info['baidu_count']) and preg_match("#网站共有([\d, ]+)个#", $html, $matches)) {
$seo_info['baidu_count'] = isset($matches[1]) ? trim($matches[1]) : 0;
}
$seo_info['baidu_count'] = empty($seo_info['baidu_count'])? 0 : $seo_info['baidu_count'];
$seo_info['baidu_count'] = empty($seo_info['baidu_count']) ? 0 : $seo_info['baidu_count'];
$url = "http://www.sogou.com/web?query=site:{$site}";
$html = Html2Text(dedeseo_http_send($url));
if ( preg_match("#结果数约([\d]+)个#",$html,$matches) )
{
$seo_info['sogou_count'] = isset($matches[1])? $matches[1] : 0;
$html = Html2Text(dedeseo_http_send($url));
if (preg_match("#结果数约([\d]+)个#", $html, $matches)) {
$seo_info['sogou_count'] = isset($matches[1]) ? $matches[1] : 0;
}
if (empty($seo_info['sogou_count']) AND preg_match("#找到约([\d, ]+)条结果#",$html,$matches) )
{
$seo_info['sogou_count'] = isset($matches[1])? trim($matches[1]) : 0;
if (empty($seo_info['sogou_count']) and preg_match("#找到约([\d, ]+)条结果#", $html, $matches)) {
$seo_info['sogou_count'] = isset($matches[1]) ? trim($matches[1]) : 0;
}
$seo_info['sogou_count'] = empty($seo_info['sogou_count'])? 0 : $seo_info['sogou_count'];
$seo_info['sogou_count'] = empty($seo_info['sogou_count']) ? 0 : $seo_info['sogou_count'];
$url = "http://www.haosou.com/s?q=site%3A{$site}";
$html = Html2Text(dedeseo_http_send($url));
if ( preg_match("#结果数约([\d]+)个#",$html,$matches) )
{
$seo_info['haosou360_count'] = isset($matches[1])? $matches[1] : 0;
$html = Html2Text(dedeseo_http_send($url));
if (preg_match("#结果数约([\d]+)个#", $html, $matches)) {
$seo_info['haosou360_count'] = isset($matches[1]) ? $matches[1] : 0;
}
if (empty($seo_info['haosou360_count']) AND preg_match("#结果约([\d, ]+)个#",$html,$matches) )
{
$seo_info['haosou360_count'] = isset($matches[1])? trim($matches[1]) : 0;
if (empty($seo_info['haosou360_count']) and preg_match("#结果约([\d, ]+)个#", $html, $matches)) {
$seo_info['haosou360_count'] = isset($matches[1]) ? trim($matches[1]) : 0;
}
$seo_info['haosou360_count'] = empty($seo_info['haosou360_count'])? 0 : $seo_info['haosou360_count'];
$seo_info['haosou360_count'] = empty($seo_info['haosou360_count']) ? 0 : $seo_info['haosou360_count'];
$in_query = "INSERT INTO `#@__plus_seoinfo` (`create_time`, `alexa_num`, `alexa_area_num`, `baidu_count`, `sogou_count`, `haosou360_count`) VALUES ({$now}, '{$seo_info['alexa_num']}', '{$seo_info['alexa_area_num']}', '{$seo_info['baidu_count']}', '{$seo_info['sogou_count']}', '{$seo_info['haosou360_count']}');";
$dsql->ExecuteNoneQuery($in_query);
}
$inff=array(
'alexa_num'=>'Alexa全球排名',
'alexa_area_num'=>'Alexa地区排名',
'baidu_count'=>'百度收录',
'sogou_count'=>'搜狗收录',
'haosou360_count'=>'360收录',
$inff = array(
'alexa_num' => 'Alexa全球排名',
'alexa_area_num' => 'Alexa地区排名',
'baidu_count' => '百度收录',
'sogou_count' => '搜狗收录',
'haosou360_count' => '360收录',
);
?>
<table width="100%" class="dboxtable">
<tbody>
<?php
foreach( $seo_info as $key => $value )
{
if ( $key=='id' OR $key=='create_time' ) continue;
?>
<table width="100%" class="dboxtable">
<tbody>
<?php
foreach ($seo_info as $key => $value) {
if ($key == 'id' or $key == 'create_time') continue;
?>
<tr>
<td width="50%" class="nline" style="text-align:left"> <?php
echo $inff[$key];
?>
: </td>
<td class="nline" style="text-align:left"> <?php
echo $value;
?>
</td>
</tr>
<?php
}
?>
<tr>
<td width="50%" class="nline" style="text-align:left"> <?php
echo $inff[$key];
?>
: </td>
<td class="nline" style="text-align:left"> <?php
echo $value;
?>
</td>
</tr>
<?php
}
?>
</tbody></table>
</tbody>
</table>
<?php
exit;
}
?>
exit;
}
?>

+ 79
- 95
src/dede/index_testenv.php View File

@@ -1,107 +1,96 @@
<?php
@set_time_limit(0);
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__) . "/config.php");
AjaxHead();
if(!function_exists('TestWriteable'))
{
if (!function_exists('TestWriteable')) {
// 检测是否可写
function TestWriteable($d, $c=false)
function TestWriteable($d, $c = false)
{
$tfile = '_write_able.txt';
$d = preg_replace("/\/$/", '', $d);
$fp = @fopen($d.'/'.$tfile,'w');
if(!$fp)
{
if( $c==false )
{
$fp = @fopen($d . '/' . $tfile, 'w');
if (!$fp) {
if ($c == false) {
@chmod($d, 0777);
return false;
}
else return TestWriteable($d, true);
}
else
{
} else return TestWriteable($d, true);
} else {
fclose($fp);
return @unlink($d.'/'.$tfile) ? true : false;
return @unlink($d . '/' . $tfile) ? true : false;
}
}
}
if(!function_exists('TestExecuteable'))
{
if (!function_exists('TestExecuteable')) {
// 检查是否具目录可执行
function TestExecuteable($d='.', $siteuRL='', $rootDir='') {
$testStr = '<'.chr(0x3F).'p'.chr(hexdec(68)).chr(112)."\n\r";
$filename = md5($d).'.php';
$testStr .= 'function test(){ echo md5(\''.$d.'\');}'."\n\rtest();\n\r";
$testStr .= chr(0x3F).'>';
function TestExecuteable($d = '.', $siteuRL = '', $rootDir = '')
{
$testStr = '<' . chr(0x3F) . 'p' . chr(hexdec(68)) . chr(112) . "\n\r";
$filename = md5($d) . '.php';
$testStr .= 'function test(){ echo md5(\'' . $d . '\');}' . "\n\rtest();\n\r";
$testStr .= chr(0x3F) . '>';
$reval = false;
if(empty($rootDir)) $rootDir = DEDEROOT;
if (TestWriteable($d))
{
@file_put_contents($d.'/'.$filename, $testStr);
$remoteUrl = $siteuRL.'/'.str_replace($rootDir, '', str_replace("\\", '/',realpath($d))).'/'.$filename;
if (empty($rootDir)) $rootDir = DEDEROOT;
if (TestWriteable($d)) {
@file_put_contents($d . '/' . $filename, $testStr);
$remoteUrl = $siteuRL . '/' . str_replace($rootDir, '', str_replace("\\", '/', realpath($d))) . '/' . $filename;
$tempStr = @PostHost($remoteUrl);
$reval = (md5($d) == trim($tempStr))? true : false;
unlink($d.'/'.$filename);
$reval = (md5($d) == trim($tempStr)) ? true : false;
unlink($d . '/' . $filename);
return $reval;
} else
{
} else {
return -1;
}
}
}
if(!function_exists('PostHost'))
{
function PostHost($host,$data='',$method='GET',$showagent=null,$port=null,$timeout=30){
if (!function_exists('PostHost')) {
function PostHost($host, $data = '', $method = 'GET', $showagent = null, $port = null, $timeout = 30)
{
$parse = @parse_url($host);
if (empty($parse)) return false;
if ((int)$port>0) {
if ((int)$port > 0) {
$parse['port'] = $port;
} elseif (!@$parse['port']) {
$parse['port'] = '80';
}
$parse['host'] = str_replace(array('http://','https://'),array('','ssl://'),"$parse[scheme]://").$parse['host'];
if (!$fp=@fsockopen($parse['host'],$parse['port'],$errnum,$errstr,$timeout)) {
$parse['host'] = str_replace(array('http://', 'https://'), array('', 'ssl://'), "$parse[scheme]://") . $parse['host'];
if (!$fp = @fsockopen($parse['host'], $parse['port'], $errnum, $errstr, $timeout)) {
return false;
}
$method = strtoupper($method);
$wlength = $wdata = $responseText = '';
$parse['path'] = str_replace(array('\\','//'),'/',@$parse['path'])."?".@$parse['query'];
if ($method=='GET') {
$parse['path'] = str_replace(array('\\', '//'), '/', @$parse['path']) . "?" . @$parse['query'];
if ($method == 'GET') {
$separator = @$parse['query'] ? '&' : '';
substr($data,0,1)=='&' && $data = substr($data,1);
$parse['path'] .= $separator.$data;
} elseif ($method=='POST') {
$wlength = "Content-length: ".strlen($data)."\r\n";
substr($data, 0, 1) == '&' && $data = substr($data, 1);
$parse['path'] .= $separator . $data;
} elseif ($method == 'POST') {
$wlength = "Content-length: " . strlen($data) . "\r\n";
$wdata = $data;
}
$write = "$method $parse[path] HTTP/1.0\r\nHost: $parse[host]\r\nContent-type: application/x-www-form-urlencoded\r\n{$wlength}Connection: close\r\n\r\n$wdata";
@fwrite($fp,$write);
@fwrite($fp, $write);
while ($data = @fread($fp, 4096)) {
$responseText .= $data;
}
@fclose($fp);
empty($showagent) && $responseText = trim(stristr($responseText,"\r\n\r\n"),"\r\n");
empty($showagent) && $responseText = trim(stristr($responseText, "\r\n\r\n"), "\r\n");
return $responseText;
}
}
if(!function_exists('TestAdminPWD'))
{
if (!function_exists('TestAdminPWD')) {
//返回结果,-1:没有更改默认管理员名称 -2:没有更改默认管理员用户名和密码 0:没有发现默认账号
function TestAdminPWD()
function TestAdminPWD()
{
global $dsql;
// 查询栏目表确定栏目所在的目录
$sql = "SELECT usertype,userid,pwd FROM #@__admin WHERE `userid`='admin'";
$row = $dsql->GetOne($sql);
if(is_array($row))
{
if($row['pwd'] == 'f297a57a5a743894a0e4')
{
if (is_array($row)) {
if ($row['pwd'] == 'f297a57a5a743894a0e4') {
return -2;
} else {
return -1;
@@ -112,24 +101,24 @@ if(!function_exists('TestAdminPWD'))
}
}
if(!function_exists('IsWritable'))
{
if (!function_exists('IsWritable')) {
// 检测是否可写
function IsWritable($pathfile) {
$isDir = substr($pathfile,-1)=='/' ? true : false;
function IsWritable($pathfile)
{
$isDir = substr($pathfile, -1) == '/' ? true : false;
if ($isDir) {
if (is_dir($pathfile)) {
mt_srand((double)microtime()*1000000);
$pathfile = $pathfile.'dede_'.uniqid(mt_rand()).'.tmp';
mt_srand((float)microtime() * 1000000);
$pathfile = $pathfile . 'dede_' . uniqid(mt_rand()) . '.tmp';
} elseif (@mkdir($pathfile)) {
return IsWritable($pathfile);
} else {
return false;
}
}
@chmod($pathfile,0777);
$fp = @fopen($pathfile,'ab');
if ($fp===false) return false;
@chmod($pathfile, 0777);
$fp = @fopen($pathfile, 'ab');
if ($fp === false) return false;
fclose($fp);
$isDir && @unlink($pathfile);
return true;
@@ -146,20 +135,16 @@ $safeMsg = array();
// <a href="'.$helpurl.'" style="color:blue;text-decoration:underline;" target="_blank">查看如何取消</a>';
//}
$dirname = str_replace('index_body.php', '', strtolower($_SERVER['PHP_SELF']));
if(preg_match("#[\\|/]dede[\\|/]#", $dirname))
{
if (preg_match("#[\\|/]dede[\\|/]#", $dirname)) {
$safeMsg[] = '默认管理目录为dede,需要立即将它更名;';
}
if(IsWritable(DEDEDATA.'/common.inc.php'))
{
if (IsWritable(DEDEDATA . '/common.inc.php')) {
$safeMsg[] = '强烈建议data/common.inc.php文件属性设置为644(Linux/Unix)或只读(NT);';
}
$rs = TestAdminPWD();
if($rs < 0)
{
if ($rs < 0) {
$linkurl = "<a href='sys_admin_user.php' style='color:blue;text-decoration:underline;'>马上修改</a>";
switch ($rs)
{
switch ($rs) {
case -1:
$msg = "没有更改默认管理员名称admin,建议您修改为其他管理账号!{$linkurl}";
break;
@@ -177,33 +162,32 @@ if($rs < 0)
//}
?>
<?php
if(count($safeMsg) > 0)
{
if (count($safeMsg) > 0) {
?>
<!--安全检测提示 -->
<div id="safemsg">
<dl class="dbox" id="item1" style="margin-left:0.5%;margin-right:0.5%; width:97%">
<dt class='lside'><span class='l'><?php echo $cfg_soft_enname; ?>安全提示</span></dt>
<dd>
<div id='safelist'>
<table width="98%" border="0" cellspacing="1" cellpadding="0" style="color:red">
<?php
$i=1;
foreach($safeMsg as $key => $val)
{
?>
<tr>
<td><font color="black"><?php echo $i;?>.</font><?php echo $val;?></td>
</tr>
<?php
$i++;
}
?>
</table>
</div>
</dd>
</dl>
</div>
<!--安全检测提示 -->
<div class="card">
<div class="card-header">
DedeCMS安全提示
</div>
<div class="card-body">
<table width="98%" border="0" cellspacing="1" cellpadding="0" style="color:red">
<?php
$i = 1;
foreach ($safeMsg as $key => $val) {
?>
<tr>
<td>
<font color="black"><?php echo $i; ?>.</font><?php echo $val; ?>
</td>
</tr>
<?php
$i++;
}
?>
</table>
</div>
</div>
<?php
}
?>

+ 31
- 27
src/dede/js/main.js View File

@@ -783,32 +783,36 @@ $(document).ready(function () {
}, 500);
}
$('.datepicker').daterangepicker({
"singleDatePicker": true,
"autoApply": true,
"showDropdowns": true,
"linkedCalendars": false,
"timePicker": true,
"timePicker24Hour": true,
"timePickerSeconds": true,
"showCustomRangeLabel": false,
ranges: {
'今日': [moment(), moment()],
'昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'本月': [moment().startOf('month'), moment().startOf('month')],
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
},
"locale": {
format: 'YYYY-MM-DD HH:mm:ss',
applyLabel: '确定',
cancelLabel: '取消',
daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
'七月', '八月', '九月', '十月', '十一月', '十二月'],
firstDay: 1
}
}, function (start) {
$(this).val(start.format("YYYY-MM-DD HH:mm:ss"));
});
if (typeof $.daterangepicker !== "undefined") {
$('.datepicker').daterangepicker({
"singleDatePicker": true,
"autoApply": true,
"showDropdowns": true,
"linkedCalendars": false,
"timePicker": true,
"timePicker24Hour": true,
"timePickerSeconds": true,
"showCustomRangeLabel": false,
ranges: {
'今日': [moment(), moment()],
'昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'本月': [moment().startOf('month'), moment().startOf('month')],
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
},
"locale": {
format: 'YYYY-MM-DD HH:mm:ss',
applyLabel: '确定',
cancelLabel: '取消',
daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
'七月', '八月', '九月', '十月', '十一月', '十二月'],
firstDay: 1
}
}, function (start) {
$(this).val(start.format("YYYY-MM-DD HH:mm:ss"));
});
}
})

+ 1
- 1
src/dede/login.php View File

@@ -1,6 +1,6 @@
<?php
/**
* 后台登
* 后台登
*
* @version $Id: login.php 1 8:48 2010年7月13日Z tianya $
* @package DedeCMS.Administrator


+ 0
- 2
src/dede/member_do.php View File

@@ -59,7 +59,6 @@ if($dopost=="delmember")
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_operation` WHERE mid='$id' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE toid='$id' Or fromid='$id' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_friends` WHERE mid='$id' Or fid='$id' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_vhistory` WHERE mid='$id' Or vid='$id' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` WHERE mid='$id' ");
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET mid='0' WHERE mid='$id'");
#api{{
@@ -122,7 +121,6 @@ if($dopost=="delmember")
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_operation` WHERE mid IN (".str_replace("`",",",$id).") ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE toid IN (".str_replace("`",",",$id).") Or fromid IN (".str_replace("`",",",$id).") ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_friends` WHERE mid IN (".str_replace("`",",",$id).") Or fid IN (".str_replace("`",",",$id).") ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_vhistory` WHERE mid IN (".str_replace("`",",",$id).") Or vid IN (".str_replace("`",",",$id).") ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` WHERE mid IN (".str_replace("`",",",$id).") ");
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET mid='0' WHERE mid IN (".str_replace("`",",",$id).")");
}


+ 7
- 5
src/dede/module_main.php View File

@@ -88,11 +88,13 @@ if($action=='')
$dm = new DedeModule($mdir);
if(empty($moduletype)) $moduletype = '';
$modules_remote = $dm->GetModuleUrlList($moduletype,$mdurl);
$modules = array();
$modules = $dm->GetModuleList($moduletype);
is_array($modules) || $modules = array();
$modules = array_merge($modules,$modules_remote);
$modules_remote = $dm->GetModuleUrlList($moduletype,$mdurl);
$modules = array();
$modules = $dm->GetModuleList($moduletype);
is_array($modules) || $modules = array();
if (is_array($modules_remote) && count($modules_remote) > 0) {
$modules = array_merge($modules, $modules_remote);
}
require_once(dirname(__FILE__)."/templets/module_main.htm");
$dm->Clear();
exit();


+ 2
- 2
src/dede/swfupload.php View File

@@ -197,13 +197,13 @@ else if($dopost=='ddimg')
{
//生成缩略图
ob_start();
if(!preg_match("/^(http:\/\/)?([^\/]+)/i", $img)) $img = $cfg_basedir.$img;
if(!preg_match("/^(http[s]?:\/\/)?([^\/]+)/i", $img)) $img = $cfg_basedir.$img;
ImageResizeNew($img, $cfg_ddimg_width, $cfg_ddimg_height, '', false);
$imagevariable = ob_get_contents();
ob_end_clean();
header('Content-type: image/jpeg');
header('Content-Length: '.strlen($imagevariable));
echo $imagevariable;
echo $imagevariable;
exit();
}
/************************


+ 0
- 2
src/dede/sys_cache_up.php View File

@@ -49,8 +49,6 @@ if($dopost=="ok")
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arccache`");
echo "\n成功更新arclist调用缓存,准备清理过期会员访问历史...<hr />";
$oldtime = time() - (90 * 24 * 3600);
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_vhistory` WHERE vtime<'$oldtime' ");
echo "成功清理过期会员访问历史,准备清理过期短信...<hr />";
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE sendtime<'$oldtime' ");
echo "成功清理过期短信,准备修正错误文档,这可能要占较长的时间...";
if($uparc == 1)


+ 2
- 1
src/dede/sys_info.php View File

@@ -140,12 +140,13 @@ EOT;
if ($keywords)
{

$dsql->SetQuery("SELECT * FROM `#@__sysconfig` WHERE info LIKE '%$keywords%' order by aid asc");
$dsql->SetQuery("SELECT * FROM `#@__sysconfig` WHERE info LIKE '%$keywords%' OR varname LIKE '%$keywords%' order by aid asc");
$dsql->Execute();
while ($row = $dsql->GetArray()) {
$bgcolor = ($i++%2==0)? "#F9FCEF" : "#ffffff";
$row['info'] = preg_replace("#{$keywords}#", '<font color="red">'.$keywords.'</font>', $row['info']);
$row['varname'] = preg_replace("#{$keywords}#", '<font color="red">'.$keywords.'</font>', $row['varname']);
?>
<tr align="center" height="25" bgcolor="<?php echo $bgcolor?>">
<td width="300"><?php echo $row['info']; ?>: </td>


+ 75
- 58
src/dede/templets/ad_main.htm View File

@@ -1,42 +1,57 @@
{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">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>广告管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.maintable {
width: 98% !important;
}
</style>
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
<b><a href="ad_main.php">广告管理</a></b>&nbsp;[<a href="ad_add.php"><u>增加一个新广告</u></a>]
[<a href="adtype_main.php"><u>广告分类管理</u></a>]</td>
</tr>
<tr>
<td height="28" colspan="7" style="padding-left:10px;" bgcolor="#FFFFFF"><table>
<tr>
<form action='ad_main.php' method='get' name='form3' id="form3">
<input type='hidden' name='dopost' value='listArchives' />
<td><table width='600' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='90' align='center'>请选择分类:</td>
<td width='124'><select name='clsid' style='width:150' id="clsid">
<option value='0'>默认分类...</option>
<?php echo $option;?>
</select></td>
<td width='71'> 关键字: </td>
<td width='185'><input type='text' name='keyword' style='width:150' /></td>
<td width="130"><input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np" /></td>
</tr>
</table></td>
</form>
</tr>
</table></td>
</tr>
<tr align="center" bgcolor="#FBFCE2"" height="24">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3">
<tr>
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
<b><a href="ad_main.php">广告管理</a></b>&nbsp;[<a href="ad_add.php"><u>增加一个新广告</u></a>]
[<a href="adtype_main.php"><u>广告分类管理</u></a>]</td>
</tr>
<tr>
<td height="28" colspan="7" style="padding-left:10px;" bgcolor="#FFFFFF">
<table style="width: 70%;" class="table-borderless">
<tr>
<form action='ad_main.php' method='get' name='form3' id="form3">
<input type='hidden' name='dopost' value='listArchives' />
<td>
<table border='0' cellpadding='0' cellspacing='0' class="table maintable table-borderless">
<tr>
<td width='90' align='center'>请选择分类:</td>
<td width='124'><select name='clsid' style='width:150' id="clsid">
<option value='0'>默认分类...</option>
<?php echo $option;?>
</select></td>
<td width='71'> 关键字: </td>
<td width='185'><input type='text' name='keyword' style='width:150' /></td>
<td width="130"><input name="imageField" type="image" src="images/button_search.gif" width="60"
height="22" border="0" class="np" /></td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2"" height=" 24">
<td width="8%">编号</td>
<td width="20%">分类</td>
<td width="20%">广告名称</td>
@@ -44,31 +59,33 @@
<td width="11%">是否限时</td>
<td width="11%">结束时间</td>
<td width="18%">管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.aid /}</td>
<td>{dede:field.clsname function='TestType(@me,1)'/}</td>
<td>{dede:field.adname /}</td>
<td>{dede:field.typename function='TestType(@me)'/}</td>
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
<td>
<a href='ad_edit.php?aid={dede:field.aid /}&dopost=gettag'>[代码]</a>
<a href='ad_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
<a href='ad_edit.php?aid={dede:field.aid /}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="24">
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.aid /}</td>
<td>{dede:field.clsname function='TestType(@me,1)'/}</td>
<td>{dede:field.adname /}</td>
<td>{dede:field.typename function='TestType(@me)'/}</td>
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
<td>
<a href='ad_edit.php?aid={dede:field.aid /}&dopost=gettag'>[代码]</a>
<a href='ad_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
<a href='ad_edit.php?aid={dede:field.aid /}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="24">
<td colspan="7">
{dede:pagelist listsize=5/}
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

+ 0
- 174
src/dede/templets/api_ucenter_edit.htm View File

@@ -1,174 +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>ucenter1.5.0配置向导</title>
<style rel="stylesheet" type="text/css">
<!--
*{ word-wrap:break-word; outline:none; }
body{ background:#FFF; text-align:center; }
body, td, input, textarea, select, button{ color:#666; font:12px "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; }
body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin:0; padding:0; }
h1, h2, h3, h4, h5, h6{ font-size:12px; }
a{ color:#2366A8; text-decoration:none; }
a:hover { text-decoration:underline; }
a img{ border:none; }
em, cite, th{ font-style:normal; font-weight:normal; }
table{ border-collapse:collapse; }
/* form */
textarea, input{ padding:2px; border:1px solid; border-color:#666 #eee #eee #666; }
input.txt:hover, input.txt:focus, textarea:hover, textarea:focus{ border-color:#09C; background:#F5F9FD; }
.radio{ margin-top:-1px; border:none; vertical-align:middle; }
.checkbox{ height:14px; border:none; vertical-align:middle; }
.btn{ margin:3px 0; padding:2px 5px; *padding:4px 5px 1px; border-color:#ddd #666 #666 #ddd; background:#DDD; color:#000; cursor:pointer; }
.sgbtn{ margin-left:20px; padding:3px 7px; *padding:4px 7px 2px; border:1px solid #B5CFD9; background:#F2F9FD; color:#666; font-size:12px; font-weight:400; }
.sgbtn:hover{ text-decoration:none; }
.bigarea{ margin-left:5px; width:230px; height:120px; }
.opt{ clear:both; overflow:hidden; }
.opt th{ padding:5px 0; font-weight:700; text-align:left; }
.opt td{ padding-bottom:10px; }
.opt .txt, .opt textarea{ vertical-align:middle; margin-right:10px; width:180px; }
.opt select{ vertical-align:middle; margin-right:10px; }
.opt .area{ height:80px; }
.opt .bigarea { width: 500px; height: 80px; }
.opt label{ margin-right:20px; }
.opt p{ float:left; line-height:180%; }
/* title */
h3{ font-size:14px; }
h3 .btn{ margin-left:10px; vertical-align:middle; }
.mainbox{ margin:10px 0; padding:20px; text-align:left;}
-->
</style>
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
<div class="mainbox">
<h3 style="margin-bottom:10px;">修改接口配置<a href="module_main.php" class="sgbtn">返回模块列表</a></h3>
<form action="api_ucenter.php" method="post">
<input name="dopost" type="hidden" value="edit" />
<table class="opt">
<tr>
<th colspan="2">ID: {dede:var.uc_setings.appid/}</th>
</tr>
<tr>
<th colspan="2">服务端地址:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="uc_setings[ucapi]" value="{dede:var.uc_setings.ucapi/}" /></td>
<td>在您 UCenter 地址或者目录改变的情况下,修改此项,一般情况请不要改动<br />
例如: http://www.site.com/uc_server (最后不要加'/')。</td>
</tr>
<tr>
<th colspan="2">服务端 IP:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="uc_setings[ucip]" value="{dede:var.uc_setings.ucip/}" /></td>
<td>正常情况下留空即可。如果由于域名解析问题导致 UCenter 与该应用通信失败,请尝试设置为该应用所在服务器的 IP 地址。</td>
</tr>
<tr>
<th colspan="2">通信密钥:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="uc_setings[authkey]" value="{dede:var.uc_setings.authkey/}" /></td>
<td>只允许使用英文字母及数字,限 64 字节。应用端的通信密钥必须与此设置保持一致,否则该应用将无法与 UCenter 正常通信。</td>
</tr>
<tr>
<th colspan="2">连接方式:</th>
</tr>
<tr>
<td>
<select name="uc_setings[connect]" onChange="if(this.value==''){document.getElementById('ucmysql').style.display = 'none';}else{document.getElementById('ucmysql').style.display = '';}">
<option value="mysql" <?php if(!empty($_vars['uc_setings']['connect'])) echo 'selected="selected"';?>> 数据库方式(MySQL) </option>
<option value="" <?php if(empty($_vars['uc_setings']['connect'])) echo 'selected="selected"';?>> 接口方式(fsockopen) </option>
</select>
</td>
<td>请根据您的服务器网络环境选择适当的连接方式。</td>
</tr>
<tr>
<td colspan="2">
<table id="ucmysql" class="opt" <?php if(empty($_vars['uc_setings']['connect'])) echo 'style="display:none;"';?>>
<tr>
<th colspan="2">数据库服务器:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="uc_setings[dbhost]" value="{dede:var.uc_setings.dbhost/}" />
</td>
<td>默认:localhost, 如果 MySQL 端口不是默认的 3306,请填写如下形式:127.0.0.1:6033。</td>
</tr>
<tr>
<th colspan="2">数据库用户名:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="uc_setings[dbuser]" value="{dede:var.uc_setings.dbuser/}" />
</td>
<td>登录uc服务端的数据库用户名。</td>
</tr>
<tr>
<th colspan="2">数据库密码:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="uc_setings[dbpass]" value="********" />
</td>
<td>登录uc服务端数据库使用的密码。</td>
</tr>
<tr>
<th colspan="2">数据库名:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="uc_setings[dbname]" value="{dede:var.uc_setings.dbname/}" />
</td>
<td>登录uc服务端的数据库名称。</td>
</tr>
<tr>
<th colspan="2">数据库表前缀:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="uc_setings[dbtablepre]" value="{dede:var.uc_setings.dbtablepre/}" />
</td>
<td>uc服务端使用的数据库表前缀,一不般为 uc_ 。</td>
</tr>
</table>
</td>
</tr>
<tr>
<th colspan="2">正确的配置信息:</th>
</tr>
<tr>
<th>
<textarea class="area" onFocus="this.select()">
define('UC_CONNECT', '{dede:var.uc_setings.connect/}');
define('UC_DBHOST', '{dede:var.uc_setings.dbhost/}');
define('UC_DBUSER', '{dede:var.uc_setings.dbuser/}');
define('UC_DBPW', '********');
define('UC_DBNAME', '{dede:var.uc_setings.dbname/}');
define('UC_DBCHARSET', 'gbk');
define('UC_DBTABLEPRE', '`{dede:var.uc_setings.dbname/}`.uc_');
define('UC_DBCONNECT', '0');
define('UC_KEY', '{dede:var.uc_setings.authkey/}');
define('UC_API', '{dede:var.uc_setings.ucapi/}');
define('UC_CHARSET', 'gbk');
define('UC_IP', '{dede:var.uc_setings.ucip/}');
define('UC_APPID', '{dede:var.uc_setings.appid/}');
define('UC_PPP', '20');
</textarea>
</th>
<td>当应用的 UCenter 配置信息丢失时可复制左侧的代码到应用的配置文件中</td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" 提 交 " class="btn" tabindex="3" /></div>
</form>
</div>
</body>
</html>

+ 0
- 87
src/dede/templets/api_ucenter_install.htm View File

@@ -1,87 +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>ucenter1.5.0安装向导</title>
<style rel="stylesheet" type="text/css">
<!--
*{ word-wrap:break-word; outline:none; }
body{ background:#FFF; text-align:center; }
body, td, input, textarea, select, button{ color:#666; font:12px "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; }
body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin:0; padding:0; }
h1, h2, h3, h4, h5, h6{ font-size:12px; }
a{ color:#2366A8; text-decoration:none; }
a:hover { text-decoration:underline; }
a img{ border:none; }
em, cite, th{ font-style:normal; font-weight:normal; }
table{ border-collapse:collapse; }
/* form */
textarea, input{ padding:2px; border:1px solid; border-color:#666 #eee #eee #666; }
input.txt:hover, input.txt:focus, textarea:hover, textarea:focus{ border-color:#09C; background:#F5F9FD; }
.radio{ margin-top:-1px; border:none; vertical-align:middle; }
.checkbox{ height:14px; border:none; vertical-align:middle; }
.btn{ margin:3px 0; padding:2px 5px; *padding:4px 5px 1px; border-color:#ddd #666 #666 #ddd; background:#DDD; color:#000; cursor:pointer; }
.sgbtn{ margin-left:20px; padding:3px 7px; *padding:4px 7px 2px; border:1px solid #B5CFD9; background:#F2F9FD; color:#666; font-size:12px; font-weight:400; }
.sgbtn:hover{ text-decoration:none; }
.bigarea{ margin-left:5px; width:230px; height:120px; }
.opt{ clear:both; overflow:hidden; }
.opt th{ padding:5px 0; font-weight:700; text-align:left; }
.opt td{ padding-bottom:10px; }
.opt .txt, .opt textarea{ vertical-align:middle; margin-right:10px; width:180px; }
.opt select{ vertical-align:middle; margin-right:10px; }
.opt .area{ height:80px; }
.opt .bigarea { width: 500px; height: 80px; }
.opt label{ margin-right:20px; }
.opt p{ float:left; line-height:180%; }
/* title */
h3{ font-size:14px; }
h3 .btn{ margin-left:10px; vertical-align:middle; }
.mainbox{ margin:10px 0; padding:20px; text-align:left;}
.note{ margin:5px 0; padding:10px; width:580px; border:1px solid #B5CFD9; background:#F5F9FD; }
.i{ padding-left:22px; line-height:19px; background:url(img/help.gif) no-repeat; }
.i a{ text-decoration:underline; }
.i a:hover{ text-decoration:none; }
.fixwidth{ width: 100%; }
.fixwidthdec{ width:700px; }
-->
</style>
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
<div class="mainbox">
<h3 style="margin-bottom:10px;">安装向导<a href="module_main.php" class="sgbtn">返回模块列表</a></h3>
<div class="note fixwidthdec"><p class="i">首次安装前请备份好{dede:var.uc_config_file/}配置文件.以防止修改错误导致网站无法运行</p></div>
<form action="api_ucenter.php" method="post">
<input name="dopost" type="hidden" value="install" />
<table class="opt">
<tr>
<th colspan="2">服务端地址:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="uc_setings[ucapi]" value="" /></td>
<td>该值在您安装完 UCenter 后会被初始化,在您 UCenter 地址或者目录改变的情况下,修改此项,一般情况请不要改动<br />
例如: http://www.site.com/uc_server (最后不要加'/')。</td>
</tr>
<tr>
<th colspan="2">创始人密码:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="uc_setings[authkey]" value="" /></td>
<td>该值在您安装完 UCenter 后会被初始化一个登录密码,UCenter称之为“创始人密码”</td>
</tr>
<tr>
<th colspan="2">服务端IP地址:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="uc_setings[ucip]" value="127.0.0.1" /></td>
<td>如果您的服务器无法通过域名访问 UCenter,可以输入 UCenter 服务器的 IP 地址</td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" 确认安装 " class="btn" tabindex="3" /></div>
</form>
</div>
</body>
</html>

+ 1
- 1
src/dede/templets/archives_add.htm View File

@@ -15,10 +15,10 @@
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language='javascript' src="js/main.js"></script>
<link href="../static/css/daterangepicker.css" rel="stylesheet">
<script type="text/javascript" src="../static/js/moment.min.js"></script>
<script type="text/javascript" src="../static/js/daterangepicker.js"></script>
<script language='javascript' src="js/main.js"></script>
<script src="../static/js/bootstrap.bundle.js"></script>
<link rel="stylesheet" href="../static/css/jquery.fileupload.css">
<link href="../static/css/cropper.min.css" rel="stylesheet">


+ 1
- 1
src/dede/templets/archives_sg_add.htm View File

@@ -11,10 +11,10 @@ body { background-image: url(images/allbg.gif); }
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language='javascript' src="js/main.js"></script>
<link href="../static/css/daterangepicker.css" rel="stylesheet">
<script type="text/javascript" src="../static/js/moment.min.js"></script>
<script type="text/javascript" src="../static/js/daterangepicker.js"></script>
<script language='javascript' src="js/main.js"></script>
<script src="../static/js/bootstrap.bundle.js"></script>
<link rel="stylesheet" href="../static/css/jquery.fileupload.css">
<link href="../static/css/cropper.min.css" rel="stylesheet">


+ 2
- 2
src/dede/templets/archives_sg_edit.htm View File

@@ -11,10 +11,10 @@ body { background-image: url(images/allbg.gif); }
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/main.js"></script>
<link href="../static/css/daterangepicker.css" rel="stylesheet">
<script type="text/javascript" src="../static/js/moment.min.js"></script>
<script type="text/javascript" src="../static/js/daterangepicker.js"></script>
<script language="javascript" src="js/main.js"></script>
<link href="../static/css/daterangepicker.css" rel="stylesheet">
<script src="../static/js/bootstrap.bundle.js"></script>
<link rel="stylesheet" href="../static/css/jquery.fileupload.css">
<link href="../static/css/cropper.min.css" rel="stylesheet">


+ 195
- 194
src/dede/templets/co_main.htm View File

@@ -1,202 +1,203 @@
{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">
<!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>
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript">
if(moz) {
extendEventObject();
extendElementModel();
emulateAttachEvent();
}
//编辑节点
function EditNote(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_edit.php?nid="+nid;
}
//编辑节点配置
function EditNoteText(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_edit_text.php?nid="+nid;
}
//清空节点
function ClearNote(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_do.php?dopost=clear&nid="+nid;
}
//删除节点
function DelNote(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
if(window.confirm('你确定要删除这个节点吗?'))
{ location.href = "co_do.php?dopost=delete&nid="+nid; }
}
//查看已下载的内容
function ViewDown(nid)
{
if(nid=="") nid = getOneItem();
location.href = "co_url.php?nid="+nid;
}
//测试规则
function TestRule(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_test_rule.php?nid="+nid;
}
//导出采集
function ExportDown(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_export.php?nid="+nid;;
}
//导入规则
function GetRule()
{
location.href = "co_get_corule.php";
}
//导出规则
function ExportRule(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_export_corule.php?nid="+nid;
}
//采集所选节点
function GatherSel(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_gather_start.php?nid="+nid;
}
//复制所选节点
function CopyNote(nid)
{
if(nid=="") nid = getOneItem();
if(nid==""){ alert("请选择一个节点!"); return;}
location.href = "co_do.php?dopost=copy&nid="+nid;
}
//上下文菜单
function ShowMenu(evt,obj,nid)
{
var eobj,popupoptions
popupoptions = [
new ContextItem("测试当前节点",function(){ TestRule(nid); }),
new ContextItem("采集当前节点",function(){ GatherSel(nid); }),
new ContextSeperator(),
new ContextItem("更改当前节点",function(){ EditNote(nid); }),
new ContextItem("更改节点配置",function(){ EditNoteText(nid); }),
new ContextSeperator(),
new ContextItem("查看采集内容",function(){ ViewDown(nid); }),
new ContextItem("导出采集",function(){ ExportDown(nid); }),
new ContextSeperator(),
new ContextItem("清空已下载信息",function(){ ClearNote(nid); }),
new ContextItem("删除当前节点",function(){ DelNote(nid); }),
new ContextSeperator(),
new ContextItem("复制当前节点",function(){ CopyNote(nid); }),
new ContextSeperator(),
new ContextItem("导出配置规则",function(){ ExportRule(nid); }),
new ContextItem("关闭菜单(<u>C</u>)",function(){})
]
ContextMenu.display(evt,popupoptions)
}
//获得选中其中一个的id
function getOneItem()
{
var allSel="";
if(document.form1.nids.value) return document.form1.nids.value;
for(i=0;i<document.form1.nids.length;i++)
{
if(document.form1.nids[i].checked)
{
allSel = document.form1.nids[i].value;
break;
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>采集节点管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript">
if (moz) {
extendEventObject();
extendElementModel();
emulateAttachEvent();
}
//编辑节点
function EditNote(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_edit.php?nid=" + nid;
}
//编辑节点配置
function EditNoteText(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_edit_text.php?nid=" + nid;
}
//清空节点
function ClearNote(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_do.php?dopost=clear&nid=" + nid;
}
//删除节点
function DelNote(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
if (window.confirm('你确定要删除这个节点吗?')) { location.href = "co_do.php?dopost=delete&nid=" + nid; }
}
//查看已下载的内容
function ViewDown(nid) {
if (nid == "") nid = getOneItem();
location.href = "co_url.php?nid=" + nid;
}
//测试规则
function TestRule(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_test_rule.php?nid=" + nid;
}
//导出采集
function ExportDown(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_export.php?nid=" + nid;;
}
//导入规则
function GetRule() {
location.href = "co_get_corule.php";
}
//导出规则
function ExportRule(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_export_corule.php?nid=" + nid;
}
//采集所选节点
function GatherSel(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_gather_start.php?nid=" + nid;
}
//复制所选节点
function CopyNote(nid) {
if (nid == "") nid = getOneItem();
if (nid == "") { alert("请选择一个节点!"); return; }
location.href = "co_do.php?dopost=copy&nid=" + nid;
}
//上下文菜单
function ShowMenu(evt, obj, nid) {
var eobj, popupoptions
popupoptions = [
new ContextItem("测试当前节点", function () { TestRule(nid); }),
new ContextItem("采集当前节点", function () { GatherSel(nid); }),
new ContextSeperator(),
new ContextItem("更改当前节点", function () { EditNote(nid); }),
new ContextItem("更改节点配置", function () { EditNoteText(nid); }),
new ContextSeperator(),
new ContextItem("查看采集内容", function () { ViewDown(nid); }),
new ContextItem("导出采集", function () { ExportDown(nid); }),
new ContextSeperator(),
new ContextItem("清空已下载信息", function () { ClearNote(nid); }),
new ContextItem("删除当前节点", function () { DelNote(nid); }),
new ContextSeperator(),
new ContextItem("复制当前节点", function () { CopyNote(nid); }),
new ContextSeperator(),
new ContextItem("导出配置规则", function () { ExportRule(nid); }),
new ContextItem("关闭菜单(<u>C</u>)", function () { })
]
ContextMenu.display(evt, popupoptions)
}
//获得选中其中一个的id
function getOneItem() {
var allSel = "";
if (document.form1.nids.value) return document.form1.nids.value;
for (i = 0; i < document.form1.nids.length; i++) {
if (document.form1.nids[i].checked) {
allSel = document.form1.nids[i].value;
break;
}
}
return allSel;
}
</script>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.maintable {
width: 98%!important;
}
}
return allSel;
}
</script>
<link href="css/base.css" rel="stylesheet" type="text/css">
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8' onLoad="ContextMenu.intializeContextMenu()">
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
<tr>
<td height="20" colspan="7" background='images/tbg.gif'> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="18" style="padding-left:10px;"><strong>采集节点管理:</strong></td>
<td width="80%" align="right">
<input type="button" name="ba" value="添加新节点" onClick="location='co_add.php?action=select';" class="coolbg np" style="width:100px" />
</td>
</tr>
</table></td>
</tr>
<tr align="center" height="26" bgcolor="#FBFCE2">
<td width="8%">选择</td>
<td width="32%">节点名称</td>
<td width="18%">针对规则</td>
<td width="10%">最后采集日期</td>
<td width="10%">加入日期</td>
<td width="10%">编码</td>
<td width="10%">网址数</td>
</tr>
<form name="form1">
{dede:datalist}
<tr bgcolor="#FFFFFF" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" oncontextmenu="ShowMenu(event,this,{dede:field.nid /});">
<td><input type='checkbox' name='nids' value='{dede:field.nid /}' class='np'></td>
<td><a href='co_url.php?nid={dede:field.nid /}'>{dede:field.notename /}</a></td>
<td>{dede:field.typename /}</td>
<td>{dede:field.cotime function='GetDatePage(@me)' /}</td>
<td>{dede:field.uptime function='GetDatePage(@me)' /}</td>
<td>{dede:field.sourcelang /}</td>
<td>{dede:field.nid function='TjUrlNum(@me)' /}</td>
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
<tr>
<td height="20" colspan="7" background='images/tbg.gif'>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table-borderless">
<tr>
<td width="20%" height="18" style="padding-left:10px;"><strong>采集节点管理:</strong></td>
<td width="80%" align="right">
<input type="button" name="ba" value="添加新节点" onClick="location='co_add.php?action=select';"
class="coolbg np" style="width:100px" />
</td>
</tr>
</table>
</td>
</tr>
{/dede:datalist}
</form>
<tr bgcolor="#ffffff">
<td height="24" colspan="7">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
&nbsp;
<a href="#" onClick="location='co_add.php?action=select';" class='coolbg np'>增加新节点</a>
<a href="javascript:GetRule();" class='coolbg np'>导入配置</a>
<a href="javascript:ExportRule('');" class='coolbg np'>导出配置</a>
|
<a href="javascript:GatherSel('');" class='coolbg np' style='color:red'>采集</a>
<a href="javascript:ExportDown('');" class='coolbg np'>导出数据</a>
|
<a href="javascript:EditNote('');" class='coolbg np'>更改</a>
<a href="javascript:EditNoteText('');" class='coolbg np'>更改配置</a>
<a href="javascript:TestRule('');" class='coolbg np'>测试</a>
|
<a href="javascript:ViewDown('');" class='coolbg np'>查看已下载</a>
|
<a href="javascript:CopyNote('');" class='coolbg np'>复制</a>
<a href="javascript:ClearNote('');" class='coolbg np'>清空</a>
|
<a href="javascript:DelNote('');" class='coolbg np'>删除</a>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#F9FCEF">
<td height="24" colspan="7" align="center">
{dede:pagelist size='5' /}
</td>
</tr>
</table>
<tr align="center" height="26" bgcolor="#FBFCE2">
<td width="8%">选择</td>
<td width="32%">节点名称</td>
<td width="18%">针对规则</td>
<td width="10%">最后采集日期</td>
<td width="10%">加入日期</td>
<td width="10%">编码</td>
<td width="10%">网址数</td>
</tr>
<form name="form1">
{dede:datalist}
<tr bgcolor="#FFFFFF" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22"
oncontextmenu="ShowMenu(event,this,{dede:field.nid /});">
<td><input type='checkbox' name='nids' value='{dede:field.nid /}' class='np'></td>
<td><a href='co_url.php?nid={dede:field.nid /}'>{dede:field.notename /}</a></td>
<td>{dede:field.typename /}</td>
<td>{dede:field.cotime function='GetDatePage(@me)' /}</td>
<td>{dede:field.uptime function='GetDatePage(@me)' /}</td>
<td>{dede:field.sourcelang /}</td>
<td>{dede:field.nid function='TjUrlNum(@me)' /}</td>
</tr>
{/dede:datalist}
</form>
<tr bgcolor="#ffffff">
<td height="24" colspan="7">
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="table-borderless">
<tr>
<td>
&nbsp;
<a href="#" onClick="location='co_add.php?action=select';" class='coolbg np'>增加新节点</a>
<a href="javascript:GetRule();" class='coolbg np'>导入配置</a>
<a href="javascript:ExportRule('');" class='coolbg np'>导出配置</a>
|
<a href="javascript:GatherSel('');" class='coolbg np' style='color:red'>采集</a>
<a href="javascript:ExportDown('');" class='coolbg np'>导出数据</a>
|
<a href="javascript:EditNote('');" class='coolbg np'>更改</a>
<a href="javascript:EditNoteText('');" class='coolbg np'>更改配置</a>
<a href="javascript:TestRule('');" class='coolbg np'>测试</a>
|
<a href="javascript:ViewDown('');" class='coolbg np'>查看已下载</a>
|
<a href="javascript:CopyNote('');" class='coolbg np'>复制</a>
<a href="javascript:ClearNote('');" class='coolbg np'>清空</a>
|
<a href="javascript:DelNote('');" class='coolbg np'>删除</a>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#F9FCEF">
<td height="24" colspan="7" align="center">
{dede:pagelist size='5' /}
</td>
</tr>
</table>
</body>
</html>
</html>

+ 105
- 99
src/dede/templets/co_url.htm View File

@@ -1,105 +1,111 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript">
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.form1.aids.value) return document.form1.aids.value;
for(i=0;i<document.form1.aids.length;i++)
{
if(document.form1.aids[i].checked)
{
if(allSel=="")
allSel=document.form1.aids[i].value;
else
allSel=allSel+","+document.form1.aids[i].value;
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>采集内容管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript">
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.form1.aids.value) return document.form1.aids.value;
for (i = 0; i < document.form1.aids.length; i++) {
if (document.form1.aids[i].checked) {
if (allSel == "")
allSel = document.form1.aids[i].value;
else
allSel = allSel + "," + document.form1.aids[i].value;
}
}
return allSel;
}
function ReSel() {
for (i = 0; i < document.form1.aids.length; i++) {
if (document.form1.aids[i].checked) document.form1.aids[i].checked = false;
else document.form1.aids[i].checked = true;
}
}
function DelSel() {
var nid = getCheckboxItem();
location.href = "co_do.php?dopost=clear&ids=" + nid;
}
function DelSel2() {
var nid = getCheckboxItem();
location.href = "co_do.php?dopost=clear&clshash=true&ids=" + nid;
}
function ClearCt() {
var nid = getCheckboxItem();
location.href = "co_do.php?dopost=clearct&ids=" + nid;
}
</script>
<style>
.maintable {
width: 98%!important;
}
}
return allSel;
}
function ReSel()
{
for(i=0;i<document.form1.aids.length;i++)
{
if(document.form1.aids[i].checked) document.form1.aids[i].checked = false;
else document.form1.aids[i].checked = true;
}
}
function DelSel()
{
var nid = getCheckboxItem();
location.href = "co_do.php?dopost=clear&ids="+nid;
}
function DelSel2()
{
var nid = getCheckboxItem();
location.href = "co_do.php?dopost=clear&clshash=true&ids="+nid;
}
function ClearCt()
{
var nid = getCheckboxItem();
location.href = "co_do.php?dopost=clearct&ids="+nid;
}
</script>
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center">
<tr>
<td height="28" colspan="8" background='images/tbg.gif'>
<table width="96%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="18" style="padding-left:10px;"><strong>临时内容管理:</strong></td>
<td width="80%" align="right">
<?php echo $exportbt; ?>
<input type="button" name="ba2" value="节点管理" class="coolbg np" style="width:80px" onClick="location.href='co_main.php';" />
<input type="button" name="ba1" value="清空下载内容" class="coolbg np" style="width:100px" onClick="location.href='co_do.php?dopost=clearall';" />
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" height="26" bgcolor="#FBFCE2">
<td width="6%">选择</td>
<td width="30%">内容标题</td>
<td width="15%">所属节点</td>
<td width="10%">获取日期</td>
<td width="8%">下载</td>
<td width="8%">导出</td>
<td width="10%">预设栏目</td>
<td width="8%">来源网页</td>
</tr>
<form name="form1">
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='aids' value='{dede:field.aid/}' class='np'></td>
<td><a href='co_view.php?aid={dede:field.aid/}'>{dede:field.title/}</a></td>
<td><a href='co_edit.php?nid={dede:field.nid/}'>{dede:field.notename/}</a></td>
<td>{dede:field.dtime function="GetDateMk(@me)" /}</td>
<td>{dede:field.isdown function="IsDownLoad(@me)" /}</td>
<td>{dede:field.isex function="IsExData(@me)" /}</td>
<td>{dede:field.typename /}</td>
<td><a href='{dede:field.url/}' target='_blank'>[源网址]</a></td>
</tr>
{/dede:datalist}
</form>
<tr>
<td height="30" colspan="8" bgcolor="#FCFDF7">&nbsp;
<input type="button" name="b11" value="反选" class="coolbg np" style="width:40px" onClick="ReSel();" />  
<input type="button" name="b12" value="仅删除网址" class="coolbg np" style="width:80px" onClick="DelSel();" />
<input type="button" name="b13" value="仅清空内容" class="coolbg np" style="width:80px" onClick="ClearCt();" />
<input type="button" name="b14" value="删除网址及历史记录" class="coolbg np" style="width:120px" onClick="DelSel2();" />
</td>
</tr>
<tr>
<td height="36" colspan="8" bgcolor="#F9FCEF" align="center">
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table table-bordered maintable mt-3">
<tr>
<td height="28" colspan="8" background='images/tbg.gif'>
<table width="96%" border="0" cellpadding="0" cellspacing="0" class="table-borderless">
<tr>
<td width="20%" height="18" style="padding-left:10px;"><strong>临时内容管理:</strong></td>
<td width="80%" align="right">
<?php echo $exportbt; ?>
<input type="button" name="ba2" value="节点管理" class="coolbg np" style="width:80px"
onClick="location.href='co_main.php';" />
<input type="button" name="ba1" value="清空下载内容" class="coolbg np" style="width:100px"
onClick="location.href='co_do.php?dopost=clearall';" />
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" height="26" bgcolor="#FBFCE2">
<td width="6%">选择</td>
<td width="30%">内容标题</td>
<td width="15%">所属节点</td>
<td width="10%">获取日期</td>
<td width="8%">下载</td>
<td width="8%">导出</td>
<td width="10%">预设栏目</td>
<td width="8%">来源网页</td>
</tr>
<form name="form1">
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='aids' value='{dede:field.aid/}' class='np'></td>
<td><a href='co_view.php?aid={dede:field.aid/}'>{dede:field.title/}</a></td>
<td><a href='co_edit.php?nid={dede:field.nid/}'>{dede:field.notename/}</a></td>
<td>{dede:field.dtime function="GetDateMk(@me)" /}</td>
<td>{dede:field.isdown function="IsDownLoad(@me)" /}</td>
<td>{dede:field.isex function="IsExData(@me)" /}</td>
<td>{dede:field.typename /}</td>
<td><a href='{dede:field.url/}' target='_blank'>[源网址]</a></td>
</tr>
{/dede:datalist}
</form>
<tr>
<td height="30" colspan="8" bgcolor="#FCFDF7">&nbsp;
<input type="button" name="b11" value="反选" class="coolbg np" style="width:40px" onClick="ReSel();" />  
<input type="button" name="b12" value="仅删除网址" class="coolbg np" style="width:80px" onClick="DelSel();" />
<input type="button" name="b13" value="仅清空内容" class="coolbg np" style="width:80px" onClick="ClearCt();" />
<input type="button" name="b14" value="删除网址及历史记录" class="coolbg np" style="width:120px" onClick="DelSel2();" />
</td>
</tr>
<tr>
<td height="36" colspan="8" bgcolor="#F9FCEF" align="center">
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
</body>
</html>
</html>

+ 11
- 4
src/dede/templets/content_i_list.htm View File

@@ -5,6 +5,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>文档管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/jquery.js"></script>
@@ -13,11 +15,16 @@
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="js/list.js"></script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cfcfcf">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered maintable mt-3">
<tr>
<td align="center" height="28" background="images/newlinebg3.gif">
<input type='button' class="coolbg np"
@@ -44,7 +51,7 @@
</table>
<table width='98%' border='0' cellpadding='2' cellspacing='1' bgcolor='#cfcfcf' align='center'
style="margin-top:8px;">
style="margin-top:8px;" class="table-bordered">
<tr bgcolor='#EEF4EA' height='26'>
<td background='images/wbg.gif' colspan='7' style="padding-left:10px;">
{dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键进行常用操作)
@@ -64,7 +71,7 @@
<form name="form2">
{dede:datalist}
<table width="98%" border="0" cellpadding="1" cellspacing="1" class='ilist' bgcolor="{dede:label bind="
GetColor('#FAFAF1','#FFFFFF')" /}" align='center' style="margin-top:8px;">
GetColor('#FAFAF1','#FFFFFF')" /}" align='center' style="margin-top:8px;" class="table">
<tr>
<td width="13%" align='center'>
<img src="{dede:field.litpic function='CheckPic(@me)' /}" width="80" height="60" alt="文档图片"
@@ -126,7 +133,7 @@
<form name='form3' action='content_i_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives' />
<table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' align="center"
style="margin-top:8px">
style="margin-top:8px" class="mb-3">
<tr>
<td background='images/wbg.gif' align='center'>
<table border='0' cellpadding='0' cellspacing='0' height="32">


+ 31
- 30
src/dede/templets/content_list.htm View File

@@ -5,6 +5,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>文档管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
@@ -12,40 +14,39 @@
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="js/list.js"></script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
<!-- 快速转换位置按钮 -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CFCFCF" align="center">
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="table maintable table-bordered mt-3">
<tr>
<td height="26" background="images/newlinebg3.gif">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<input type='button' class="coolbg np"
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
value='添加文档' />
{dede:if $adminid==$mid }
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';" value='全部文档' />
{else}
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
value='我的文档' />
{/dede:if}
{dede:global.CheckUserSend/}
<input type='button' class="coolbg np" onClick="location='catalog_main.php';"
value='栏目管理' />
<input type='button' class="coolbg np" name='bb1'
onClick="location='makehtml_list.php?cid={dede:global.cid/}';" value='更新列表' />
<input type='button' class="coolbg np" name='bb2'
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" value='更新文档' />
<input type='button' class="coolbg np" name='bb1'
onClick="location='recycling.php?cid={dede:global.cid/}';" value='文章回收站' />
</td>
</tr>
</table>
<td align="center">
<input type='button' class="coolbg np"
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
value='添加文档' />
{dede:if $adminid==$mid }
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';" value='全部文档' />
{else}
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
value='我的文档' />
{/dede:if}
{dede:global.CheckUserSend/}
<input type='button' class="coolbg np" onClick="location='catalog_main.php';"
value='栏目管理' />
<input type='button' class="coolbg np" name='bb1'
onClick="location='makehtml_list.php?cid={dede:global.cid/}';" value='更新列表' />
<input type='button' class="coolbg np" name='bb2'
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" value='更新文档' />
<input type='button' class="coolbg np" name='bb1'
onClick="location='recycling.php?cid={dede:global.cid/}';" value='文章回收站' />
</td>
</tr>
</table>
@@ -53,7 +54,7 @@
<!-- 内容列表 -->
<form name="form2">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center"
style="margin-top:8px">
style="margin-top:8px" class="table table-bordered maintable">
<tr bgcolor="#E7E7E7">
<td height="28" colspan="10" background="images/tbg.gif" style="padding-left:10px;">
◆ {dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键弹出菜单)
@@ -137,7 +138,7 @@
<form name='form3' action='content_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives' />
<table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' align="center"
style="margin-top:8px">
style="margin-top:8px" class="mb-3">
<tr bgcolor='#EEF4EA'>
<td background='images/wbg.gif' align='center'>
<table border='0' cellpadding='0' cellspacing='0' height="32">


+ 214
- 233
src/dede/templets/content_s_list.htm View File

@@ -1,246 +1,227 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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" type="text/css" href="css/base.css">
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript">
if(moz) {
extendEventObject();
extendElementModel();
emulateAttachEvent();
}
function viewArc(aid){
if(aid==0) aid = getOneItem();
window.open("archives_do.php?aid="+aid+"&dopost=viewArchives");
}
function editArc(aid){
if(aid==0) aid = getOneItem();
location="archives_do.php?aid="+aid+"&dopost=editArchives";
}
function updateArc(aid){
var qstr=getCheckboxItem();
if(aid==0) aid = getOneItem();
location="archives_do.php?aid="+aid+"&dopost=makeArchives&qstr="+qstr;
}
function checkArc(aid){
var qstr=getCheckboxItem();
if(aid==0) aid = getOneItem();
location="archives_do.php?aid="+aid+"&dopost=checkArchives&qstr="+qstr;
}
function adArc(aid){
var qstr=getCheckboxItem();
if(aid==0) aid = getOneItem();
location="archives_do.php?aid="+aid+"&dopost=commendArchives&qstr="+qstr;
}
function delArc(aid){
var qstr=getCheckboxItem();
if(aid==0) aid = getOneItem();
location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=delArchives";
}
//上下文菜单
function ShowMenu(evt,obj,aid,atitle)
{
var eobj,popupoptions
popupoptions = [
new ContextItem("浏览文档",function(){ viewArc(aid); }),
new ContextItem("编辑文档",function(){ editArc(aid); }),
new ContextSeperator(),
new ContextItem("更新HTML",function(){ updateArc(aid); }),
new ContextItem("审核文档",function(){ checkArc(aid); }),
new ContextItem("推荐文档",function(){ adArc(aid); }),
new ContextSeperator(),
new ContextItem("删除文档",function(){ delArc(aid); }),
new ContextSeperator(),
new ContextItem("全部选择",function(){ selAll(); }),
new ContextItem("取消选择",function(){ noSelAll(); }),
new ContextSeperator(),
new ContextItem("关闭菜单",function(){})
]
ContextMenu.display(evt,popupoptions)
}
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>专题管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript">
if (moz) {
extendEventObject();
extendElementModel();
emulateAttachEvent();
}
function viewArc(aid) {
if (aid == 0) aid = getOneItem();
window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives");
}
function editArc(aid) {
if (aid == 0) aid = getOneItem();
location = "archives_do.php?aid=" + aid + "&dopost=editArchives";
}
function updateArc(aid) {
var qstr = getCheckboxItem();
if (aid == 0) aid = getOneItem();
location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr;
}
function checkArc(aid) {
var qstr = getCheckboxItem();
if (aid == 0) aid = getOneItem();
location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr;
}
function adArc(aid) {
var qstr = getCheckboxItem();
if (aid == 0) aid = getOneItem();
location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr;
}
function delArc(aid) {
var qstr = getCheckboxItem();
if (aid == 0) aid = getOneItem();
location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives";
}
//上下文菜单
function ShowMenu(evt, obj, aid, atitle) {
var eobj, popupoptions
popupoptions = [
new ContextItem("浏览文档", function () { viewArc(aid); }),
new ContextItem("编辑文档", function () { editArc(aid); }),
new ContextSeperator(),
new ContextItem("更新HTML", function () { updateArc(aid); }),
new ContextItem("审核文档", function () { checkArc(aid); }),
new ContextItem("推荐文档", function () { adArc(aid); }),
new ContextSeperator(),
new ContextItem("删除文档", function () { delArc(aid); }),
new ContextSeperator(),
new ContextItem("全部选择", function () { selAll(); }),
new ContextItem("取消选择", function () { noSelAll(); }),
new ContextSeperator(),
new ContextItem("关闭菜单", function () { })
]
ContextMenu.display(evt, popupoptions)
}
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.form2.arcID.value) return document.form2.arcID.value;
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
if(allSel=="")
allSel=document.form2.arcID[i].value;
else
allSel=allSel+"`"+document.form2.arcID[i].value;
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.form2.arcID.value) return document.form2.arcID.value;
for (i = 0; i < document.form2.arcID.length; i++) {
if (document.form2.arcID[i].checked) {
if (allSel == "")
allSel = document.form2.arcID[i].value;
else
allSel = allSel + "`" + document.form2.arcID[i].value;
}
}
return allSel;
}
}
return allSel;
}
//获得选中其中一个的id
function getOneItem()
{
var allSel="";
if(document.form2.arcID.value) return document.form2.arcID.value;
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
allSel = document.form2.arcID[i].value;
break;
//获得选中其中一个的id
function getOneItem() {
var allSel = "";
if (document.form2.arcID.value) return document.form2.arcID.value;
for (i = 0; i < document.form2.arcID.length; i++) {
if (document.form2.arcID[i].checked) {
allSel = document.form2.arcID[i].value;
break;
}
}
return allSel;
}
}
return allSel;
}
function selAll()
{
for(i=0;i<document.form2.arcID.length;i++)
{
if(!document.form2.arcID[i].checked)
{
document.form2.arcID[i].checked=true;
function selAll() {
for (i = 0; i < document.form2.arcID.length; i++) {
if (!document.form2.arcID[i].checked) {
document.form2.arcID[i].checked = true;
}
}
}
function noSelAll() {
for (i = 0; i < document.form2.arcID.length; i++) {
if (document.form2.arcID[i].checked) {
document.form2.arcID[i].checked = false;
}
}
}
}
}
function noSelAll()
{
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
document.form2.arcID[i].checked=false;
</script>
<style>
.maintable {
width: 98% !important;
}
}
}
</script>
</style>
</head>
<body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' valign='top'>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="26" background="images/newlinebg3.gif">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<input type='button' class="coolbg np" onClick="location='makehtml_spec.php';" value='更新专题HTML' />
<input type='button' class="coolbg np" onClick="location='spec_add.php';" value='添加专题' />
<?php echo $CheckUserSend?>
<input type='button' class="coolbg np" onClick="location='catalog_main.php';" value='频道管理' />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#FFFFFF"><td height="4"></td></tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf">
<tr bgcolor="#E7E7E7">
<td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
<strong>文章列表</strong>
(在文章标题处使用鼠标右键进行常用操作)
</td>
</tr>
<form name="form2">
<tr align="center" bgcolor="#FBFCE2" height="25">
<td width="6%">ID</td>
<td width="4%">选择</td>
<td width="30%">文章标题</td>
<td width="12%">更新时间</td>
<td width="11%">类目</td>
<td width="8%">点击</td>
<td width="7%">HTML</td>
<td width="9%">权限</td>
<td width="12%">属性</td>
</tr>
{dede:datalist}
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="25" oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
<td>{dede:field.id/}</td>
<td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
<td align='left'>
<a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives' oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
<u>{dede:field.title/}</u>
</a>
</td>
<td><?php echo MyDate("Y-m-d H:i",$fields['senddate'])?></td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td>{dede:field.click/}</td>
<td><?php echo IsHtmlArchives($fields['ismake'])?></td>
<td><?php echo GetRankName($fields['arcrank'])?></td>
<td><?php echo IsCommendArchives($fields['flag'])?></td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff">
<td height="24" colspan="9">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:viewArc(0)" class="coolbg">&nbsp;查看&nbsp;</a>
<a href="javascript:editArc(0)" class="coolbg">&nbsp;更改&nbsp;</a>
<a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
<a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
<a href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
</td>
</tr>
</form>
<tr align="right" bgcolor="#F9FCEF">
<td height="20" colspan="9" align="center">
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="4"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="28">
<table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf'>
<tr bgcolor='#EEF4EA'>
<form name='form3' action='content_s_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives'>
<td background='images/wbg.gif'>
<table width='600' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='90' align='center'>请选择类目:</td>
<td width='160'>
<select name='cid' style='width:150'>
<option value='0'>选择分类...</option>
<?php echo $optionarr?>
</select>
</td>
<td width='70'>
关键字:
</td>
<td width='160'>
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
</td>
<td>
<input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="4"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6"
class="table maintable table-bordered mt-3">
<tr>
<td height="26" background="images/newlinebg3.gif">
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table-borderless">
<tr>
<td align="center">
<input type='button' class="coolbg np" onClick="location='makehtml_spec.php';"
value='更新专题HTML' />
<input type='button' class="coolbg np" onClick="location='spec_add.php';" value='添加专题' />
<?php echo $CheckUserSend?>
<input type='button' class="coolbg np" onClick="location='catalog_main.php';"
value='频道管理' />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered">
<tr bgcolor="#E7E7E7">
<td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
<strong>文章列表</strong>
(在文章标题处使用鼠标右键进行常用操作)
</td>
</tr>
<form name="form2">
<tr align="center" bgcolor="#FBFCE2" height="25">
<td width="6%">ID</td>
<td width="4%">选择</td>
<td width="30%">文章标题</td>
<td width="12%">更新时间</td>
<td width="11%">类目</td>
<td width="8%">点击</td>
<td width="7%">HTML</td>
<td width="9%">权限</td>
<td width="12%">属性</td>
</tr>
{dede:datalist}
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="25"
oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
<td>{dede:field.id/}</td>
<td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
<td align='left'>
<a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'
oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
<u>{dede:field.title/}</u>
</a>
</td>
<td><?php echo MyDate("Y-m-d H:i",$fields['senddate'])?></td>
<td>{dede:field.typeid function='GetTypename(@me)'/}</td>
<td>{dede:field.click/}</td>
<td><?php echo IsHtmlArchives($fields['ismake'])?></td>
<td><?php echo GetRankName($fields['arcrank'])?></td>
<td><?php echo IsCommendArchives($fields['flag'])?></td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff">
<td height="24" colspan="9">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:viewArc(0)" class="coolbg">&nbsp;查看&nbsp;</a>
<a href="javascript:editArc(0)" class="coolbg">&nbsp;更改&nbsp;</a>
<a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
<a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
<a href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
</td>
</tr>
</form>
<tr align="right" bgcolor="#F9FCEF">
<td height="20" colspan="9" align="center">
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
<form name='form3' action='content_s_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives'>
<table width='98%' align="center" border='0' class="mb-3" cellpadding='1' cellspacing='1' class="table-borderless" background="images/wbg.gif">
<tr>
<td width='90' align='center'>请选择类目:</td>
<td width='160'>
<select name='cid' style='width:150'>
<option value='0'>选择分类...</option>
<?php echo $optionarr?>
</select>
</td>
<td width='70'>
关键字:
</td>
<td width='160'>
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
</td>
<td>
<input name="imageField" type="image" src="images/button_search.gif" width="60" height="22"
border="0" class="np">
</td>
</tr>
</table>
</form>
</body>
</html>

+ 2
- 0
src/dede/templets/content_select_list.htm View File

@@ -3,6 +3,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>选择文章</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript">
//获得选中文件的文件名


+ 42
- 39
src/dede/templets/content_sg_list.htm View File

@@ -5,6 +5,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>文档管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
@@ -126,51 +128,52 @@
}
}
</script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center">
<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="table table-bordered maintable mt-3">
<tr>
<td align="center">
<input type='button' class="coolbg np"
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
value='添加文档' />
{dede:if $adminid==$mid }
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';"
value='全部文档' />
{else}
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
value='我的文档' />
{/dede:if}
<input type='button' class="coolbg np" onClick="location='catalog_main.php';"
value='栏目管理' />
<input type='button' class="coolbg np" name='bb1'
onClick="location='makehtml_list.php?cid={dede:global.cid/}';"
value='更新列表' />
<input type='button' class="coolbg np" name='bb2'
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';"
value='更新文档' />
<?php echo $CheckUserSend; ?>
</td>
</tr>
</table>
<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center" class="mt-3">
<tr>
<td align='center' valign='top'>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="26" background="images/newlinebg3.gif">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<input type='button' class="coolbg np"
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
value='添加文档' />
{dede:if $adminid==$mid }
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';"
value='全部文档' />
{else}
<input type='button' class="coolbg np"
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
value='我的文档' />
{/dede:if}
<input type='button' class="coolbg np" onClick="location='catalog_main.php';"
value='栏目管理' />
<input type='button' class="coolbg np" name='bb1'
onClick="location='makehtml_list.php?cid={dede:global.cid/}';"
value='更新列表' />
<input type='button' class="coolbg np" name='bb2'
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';"
value='更新文档' />
<?php echo $CheckUserSend; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#FFFFFF">
<td height="4"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered">
<tr bgcolor="#E7E7E7">
<td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
{dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键进行常用操作)
@@ -239,12 +242,12 @@
</tr>
<tr bgcolor="#FFFFFF">
<td height="26">
<table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf'>
<tr bgcolor='#EEF4EA'>
<table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' class="table table-bordered">
<tr bgcolor='#F7F7F7'>
<form name='form3' action='content_sg_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives'>
<td background='images/wbg.gif'>
<table width='600' border='0' cellpadding='0' cellspacing='0'>
<td>
<table width='600' border='0' cellpadding='0' cellspacing='0' class="table-borderless">
<tr>
<td width='90' align='center'>请选择类目:</td>
<td width='160'>


+ 47
- 32
src/dede/templets/diy_list.htm View File

@@ -1,28 +1,40 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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><?php echo $diy->name;?></title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title><?php echo $diy->name;?></title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;"><?php echo $diy->name;?>内容列表</div>
</div>
<form action="diy_list.php" method="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>" />
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td colspan="3" height="28" background='images/tbg.gif'>
<div style='float:left'>&nbsp;<a href='diy_main.php'><b>自定义表单管理</b></a> &gt; <b>内容列表</b></div>
<div style='float:right;padding-right:8px;'>
<a href="../plus/diy.php?action=list&diyid=<?php echo $diy->diyid; ?>" target="_blank"><img src='images/gtk-tmp.png' align='left' title='预览' alt='预览' /><u>前台预览</u></a>
<div class="bodytitle mt-3">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;"><?php echo $diy->name;?>内容列表</div>
</div>
</td>
</tr>
{dede:datalist}
<?php
<form action="diy_list.php" method="post">
<input type="hidden" name="diyid" value="<?php echo $diyid;?>" />
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable"
style="background:#CFCFCF;">
<tr>
<td colspan="3" height="28" background='images/tbg.gif'>
<div style='float:left'>&nbsp;<a href='diy_main.php'><b>自定义表单管理</b></a> &gt; <b>内容列表</b></div>
<div style='float:right;padding-right:8px;'>
<a href="../plus/diy.php?action=list&diyid=<?php echo $diy->diyid; ?>" target="_blank"><img
src='images/gtk-tmp.png' align='left' title='预览' alt='预览' /><u>前台预览</u></a>
</div>
</td>
</tr>
{dede:datalist}
<?php
if(!empty($fields))
{
$allowhtml = array('htmltext');
@@ -51,17 +63,20 @@ if(!empty($fields))
echo "<tr><td bgcolor=\"#ffffff\">暂无记录</td></tr>";
}
?>
{/dede:datalist}
<tr><td colspan="3" bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td></tr>
<tr>
<td colspan="3" height='36' align="center" bgcolor="#F8FCF1">
<label><input type="radio" name="action" value="check" class='np' />审核</label>
<label><input type="radio" name="action" value="delete" class='np' />删除</label>
&nbsp;&nbsp;
<input type="submit" name="submit" value="提交" class='np coolbg' />
</td>
</tr>
</table>
</form>
{/dede:datalist}
<tr>
<td colspan="3" bgcolor="#ffffff">{dede:pagelist listsize=5 /}</td>
</tr>
<tr>
<td colspan="3" height='36' align="center" bgcolor="#F8FCF1">
<label><input type="radio" name="action" value="check" class='np' />审核</label>
<label><input type="radio" name="action" value="delete" class='np' />删除</label>
&nbsp;&nbsp;
<input type="submit" name="submit" value="提交" class='np coolbg' />
</td>
</tr>
</table>
</form>
</body>
</html>

+ 66
- 47
src/dede/templets/diy_main.htm View File

@@ -1,61 +1,80 @@
{dede:page pagesize="50"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 href="css/base.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>自定义表单管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">自定义表单管理</div>
</div>
<div class="bodytitle mt-3">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">自定义表单管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="border:1px solid #CFCFCF;border-bottom:none;">
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="maintable"
style="border:1px solid #CFCFCF;border-bottom:none;">
<tr>
<td bgcolor="#EDF9D5" class="tbtitletxt" background="images/tbg.gif">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' style="padding-left:10px;">[<a href="diy_add.php"><u>增加新的自定义表单</u></a>]</td>
<td align='right'>
[图片说明:
<img src='images/manage1.gif' valign="middle"alt='更改' />更改
<img src='images/file_del.gif' valign="middle" alt='删除' />删除
]
</td>
</tr>
</table>
</td>
</tr>
</table>
<td bgcolor="#EDF9D5" class="tbtitletxt" background="images/tbg.gif">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' style="padding-left:10px;">[<a href="diy_add.php"><u>增加新的自定义表单</u></a>]</td>
<td align='right'>
[图片说明:
<img src='images/manage1.gif' valign="middle" alt='更改' />更改
<img src='images/file_del.gif' valign="middle" alt='删除' />删除
]
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class='tbtitle' style='background:#CFCFCF;margin-bottom:5px;'>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class='table maintable table-bordered'
style='background:#CFCFCF;margin-bottom:5px;'>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td>diyid</td>
<td>名称</td>
<td>表名</td>
<td>管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.diyid/}</td>
<td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}"><u>{dede:field.name/}</u></a></td>
<td>{dede:field.table/}</td>
<td>
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=edit'><img src='images/manage1.gif' alt='更改' /></a> |
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=delete'><img src='images/file_del.gif' alt='删除' /></a> |
<a href="../plus/diy.php?action=list&diyid={dede:field.diyid/}" target="_blank"><img src='images/gtk-tmp.png' title='预览' alt='预览' />前台预览</a>
</td>
</tr>
{/dede:datalist}
</table>
<td>diyid</td>
<td>名称</td>
<td>表名</td>
<td>管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.diyid/}</td>
<td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}"><u>{dede:field.name/}</u></a></td>
<td>{dede:field.table/}</td>
<td>
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=edit'><img src='images/manage1.gif'
alt='更改' /></a> |
<a href='diy_edit.php?diyid={dede:field.diyid/}&dopost=delete'><img src='images/file_del.gif'
alt='删除' /></a> |
<a href="../plus/diy.php?action=list&diyid={dede:field.diyid/}" target="_blank"><img
src='images/gtk-tmp.png' title='预览' alt='预览' />前台预览</a>
</td>
</tr>
{/dede:datalist}
</table>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<table class="mb-3" width="98%" border="0" cellpadding="5" cellspacing="1" align="center"
style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td height="35" align="center" style="background:#F9FCEF;padding:7px 6px 6px 10px;" >{dede:pagelist listsize=6/}</td>
</tr>
</table>
<td height="35" align="center" style="background:#F9FCEF;padding:7px 6px 6px 10px;">{dede:pagelist
listsize=6/}</td>
</tr>
</table>
</body>
</html>

+ 0
- 2
src/dede/templets/diy_post.htm View File

@@ -7,7 +7,6 @@
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="javascript">
<!--
function SelectTemplets(fname){
if(document.all){
var posLeft = window.event.clientY-100;
@@ -19,7 +18,6 @@ function SelectTemplets(fname){
}
window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
-->
</script>
</head>
<body leftmargin='8' topmargin='8'>


+ 99
- 102
src/dede/templets/erradd.htm View File

@@ -1,114 +1,111 @@
{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">
<!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 href="css/base.css" rel='stylesheet' type='text/css'>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>挑错管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel='stylesheet' type='text/css'>
<style>
.maintable {
width: 98% !important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<script type="text/javascript">
function getOneItem()
{
var allSel="";
if(document.form2.id.value) return document.form2.id.value;
for(i=0;i<document.form2.id.length;i++)
{
if(document.form2.id[i].checked)
{
allSel = document.form2.id[i].value;
break;
<script type="text/javascript">
function getOneItem() {
var allSel = "";
if (document.form2.id.value) return document.form2.id.value;
for (i = 0; i < document.form2.id.length; i++) {
if (document.form2.id[i].checked) {
allSel = document.form2.id[i].value;
break;
}
}
return allSel;
}
}
return allSel;
}
function getCheckboxItem()
{
var allSel="";
if(document.form2.id.value) return document.form2.id.value;
for(i=0;i<document.form2.id.length;i++)
{
if(document.form2.id[i].checked)
{
if(allSel=="")
allSel=document.form2.id[i].value;
else
allSel=allSel+"`"+document.form2.id[i].value;
function getCheckboxItem() {
var allSel = "";
if (document.form2.id.value) return document.form2.id.value;
for (i = 0; i < document.form2.id.length; i++) {
if (document.form2.id[i].checked) {
if (allSel == "")
allSel = document.form2.id[i].value;
else
allSel = allSel + "`" + document.form2.id[i].value;
}
}
return allSel;
}
}
return allSel;
}
function selAll()
{
for(i=0;i<document.form2.id.length;i++)
{
if(!document.form2.id[i].checked)
{
document.form2.id[i].checked=true;
function selAll() {
for (i = 0; i < document.form2.id.length; i++) {
if (!document.form2.id[i].checked) {
document.form2.id[i].checked = true;
}
}
}
}
}
function noSelAll()
{
for(i=0;i<document.form2.id.length;i++)
{
if(document.form2.id[i].checked)
{
document.form2.id[i].checked=false;
function noSelAll() {
for (i = 0; i < document.form2.id.length; i++) {
if (document.form2.id[i].checked) {
document.form2.id[i].checked = false;
}
}
}
}
}
function delArc(id){
var qstr=getCheckboxItem();
location="erraddsave.php?id="+qstr+"&dopost=delete";
}
</script>
function delArc(id) {
var qstr = getCheckboxItem();
location = "erraddsave.php?id=" + qstr + "&dopost=delete";
}
</script>
<form name="form2">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="8" style="padding-left:10px;">
<b>文章错误管理</b>&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="5%">选择</td>
<td width="7%">编号</td>
<td width="12%">挑错人</td>
<td width="20%">文章名称</td>
<td width="12%">出错类型</td>
<td width="14%">挑错时间</td>
<td width="15%">错误内容</td>
<td width="15%">修改建议</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input name="id" type="checkbox" id="id" value="{dede:field.id/}" class="np"></td>
<td>{dede:field.id /}</td>
<td>{dede:field.mid function='username(@me)'/}</td>
<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'><u>{dede:field.title /}</u></a></td>
<td>{dede:field.type function='typename(@me)'/}</td>
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.errtxt /}</td>
<td>{dede:field.oktxt /}</td>
</tr>
{/dede:datalist}
<tr align="left" bgcolor="#ffffff" height="28">
<td colspan="8">
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
</td>
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"
class="table maintable table-bordered mt-3">
<tr>
<td height="28" background="images/tbg.gif" colspan="8" style="padding-left:10px;">
<b>文章错误管理</b>&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="5%">选择</td>
<td width="7%">编号</td>
<td width="12%">挑错人</td>
<td width="20%">文章名称</td>
<td width="12%">出错类型</td>
<td width="14%">挑错时间</td>
<td width="15%">错误内容</td>
<td width="15%">修改建议</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center"
onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input name="id" type="checkbox" id="id" value="{dede:field.id/}" class="np"></td>
<td>{dede:field.id /}</td>
<td>{dede:field.mid function='username(@me)'/}</td>
<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'><u>{dede:field.title /}</u></a>
</td>
<td>{dede:field.type function='typename(@me)'/}</td>
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
<td>{dede:field.errtxt /}</td>
<td>{dede:field.oktxt /}</td>
</tr>
{/dede:datalist}
<tr align="left" bgcolor="#ffffff" height="28">
<td colspan="8">
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
</td>
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=5/}
</td>
</tr>
</table>
</form>
</body>
</html>

+ 173
- 165
src/dede/templets/feedback_main.htm View File

@@ -1,172 +1,180 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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>
<script language='javascript'>
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.feedback.fid.value) return document.feedback.fid.value;
for(i=0;i<document.feedback.fid.length;i++)
{
if(document.feedback.fid[i].checked)
{
if(allSel=="")
allSel=document.feedback.fid[i].value;
else
allSel=allSel+","+document.feedback.fid[i].value;
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>评论管理</title>
<script language='javascript'>
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.feedback.fid.value) return document.feedback.fid.value;
for (i = 0; i < document.feedback.fid.length; i++) {
if (document.feedback.fid[i].checked) {
if (allSel == "")
allSel = document.feedback.fid[i].value;
else
allSel = allSel + "," + document.feedback.fid[i].value;
}
}
return allSel;
}
}
return allSel;
}
function selAll()
{
for(i=0;i<document.feedback.fid.length;i++)
{
document.feedback.fid[i].checked=true;
}
}
function selNone()
{
for(i=0;i<document.feedback.fid.length;i++)
{
document.feedback.fid[i].checked=false;
}
}
function selNor()
{
for(i=0;i<document.feedback.fid.length;i++)
{
if(document.feedback.fid[i].checked==false)
document.feedback.fid[i].checked=true;
else
document.feedback.fid[i].checked=false;
}
}
function delFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else if(window.confirm('你确定要删除这些评论吗?')) location.href="feedback_main.php?job=del&fid="+qstr;
}
function delFeedbackIP()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else if(window.confirm('你确定要删除这些评论吗?')) location.href="feedback_main.php?job=delall&fid="+qstr;
}
function checkFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("您没选中任何内容!");
else location.href="feedback_main.php?job=check&fid="+qstr;
}
function editFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("您没选中任何内容!");
else location.href="feedback_edit.php?job=edit&fid="+qstr;
}
</script>
<link href="css/base.css" rel="stylesheet" type="text/css">
function selAll() {
for (i = 0; i < document.feedback.fid.length; i++) {
document.feedback.fid[i].checked = true;
}
}
function selNone() {
for (i = 0; i < document.feedback.fid.length; i++) {
document.feedback.fid[i].checked = false;
}
}
function selNor() {
for (i = 0; i < document.feedback.fid.length; i++) {
if (document.feedback.fid[i].checked == false)
document.feedback.fid[i].checked = true;
else
document.feedback.fid[i].checked = false;
}
}
function delFeedback() {
var qstr = getCheckboxItem();
if (qstr == "") alert("你没选中任何内容!");
else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=del&fid=" + qstr;
}
function delFeedbackIP() {
var qstr = getCheckboxItem();
if (qstr == "") alert("你没选中任何内容!");
else if (window.confirm('你确定要删除这些评论吗?')) location.href = "feedback_main.php?job=delall&fid=" + qstr;
}
function checkFeedback() {
var qstr = getCheckboxItem();
if (qstr == "") alert("您没选中任何内容!");
else location.href = "feedback_main.php?job=check&fid=" + qstr;
}
function editFeedback() {
var qstr = getCheckboxItem();
if (qstr == "") alert("您没选中任何内容!");
else location.href = "feedback_edit.php?job=edit&fid=" + qstr;
}
</script>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background='images/tbg.gif' style="padding-left:10px;">
<div style="float:left;">
<a href='feedback_main.php'><u><b>评论管理</b></u></a>
</div>
<div style="float:right;padding-right:10px">
<form name='form1'>
关键字:
<input type='text' size='15' name='keyword' style='width:150'>
<select name="typeid" style="width:180">
<option value="0">--请选择--</option>
{dede:global.openarray /}
</select>
<input type='submit' name='sb' value=' 搜索 ' class='coolbt' />
</form>
</div>
</td>
</tr>
<form name='feedback'>
<tr>
<td height="215" bgcolor="#FFFFFF" valign="top">
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
{dede:datalist}
<tr height='25'>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEF7D2">
<tr bgcolor="#F4FAE4">
<td width="9%">
&nbsp;选择 <input name="fid" type="checkbox" class="np" id="fid" value="{dede:field.id/}">
</td>
<td width="12%">
用户:{dede:field.username/}
</td>
<td width="30%">
文档:<a href='feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle function="RemoveXSS(@me)"/}</u></a> (<a href="{dede:global.cfg_phpurl /}/view.php?aid={dede:field.aid/}" target="_blank"><u>浏览</u></a>)
</td>
<td width="18%" align="center">
IP地址:<a href='feedback_main.php?ip={dede:field.ip/}'><u>{dede:field.ip/}</u></a>
</td>
<td width="21%">
时间:{dede:field.dtime function="GetDateTimeMK(@me)" /}
</td>
<td width="10%" align="center">
<a href='feedback_edit.php?id={dede:field.id/}'><img src="images/feedback-edit.gif" border="0" width="45" height="18"></a>
</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="28" colspan="6">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
{dede:field.ischeck function="IsCheck(@me)" /}
{dede:field.msg function='cn_substr(Text2Html(@me), 50)'/}
</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"></td>
</tr>
</table></td>
</tr>
{/dede:datalist}
<tr>
<td height='20' align='center' bgcolor="#F9FCEF">
{dede:pagelist listsize='5' /}
</td>
</tr>
<tr>
<td height='30'>
<table width="98%">
<tr>
<td width="30%">
<input type='button' name='kk1' value='全选' onClick="selAll()" class="coolbg np" />
<input type='button' name='kk2' value='取消' onClick="selNone()" class="coolbg np" />
<input type='button' name='kk3' value='反选' onClick="selNor()" class="coolbg np" />
</td>
<td align="right">
<input type='button' name='db' value=' 删除相同IP的所有评论 ' onClick="delFeedbackIP()" class="coolbg np" />
<input type='button' name='db' value=' 删除评论 ' onClick="delFeedback()" class="coolbg np" />
<input type='button' name='db2' value=' 审核评论 ' onClick="checkFeedback()" class="coolbg np" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" class="table table-borderless maintable mt-3">
<tr>
<td height="28" background='images/tbg.gif' style="padding-left:10px;">
<div style="float:left;">
<a href='feedback_main.php'><u><b>评论管理</b></u></a>
</div>
<div style="float:right;padding-right:10px">
<form name='form1'>
关键字:
<input type='text' size='15' name='keyword' style='width:150'>
<select name="typeid" style="width:180">
<option value="0">--请选择--</option>
{dede:global.openarray /}
</select>
<input type='submit' name='sb' value=' 搜索 ' class='coolbt' />
</form>
</div>
</td>
</tr>
<form name='feedback'>
<tr>
<td height="215" bgcolor="#FFFFFF" valign="top">
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
{dede:datalist}
<tr height='25'>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEF7D2" class="table table-borderless">
<tr bgcolor="#F4FAE4">
<td width="9%">
&nbsp;选择 <input name="fid" type="checkbox" class="np" id="fid"
value="{dede:field.id/}">
</td>
<td width="12%">
用户:{dede:field.username/}
</td>
<td width="30%">
文档:<a href='feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle
function="RemoveXSS(@me)"/}</u></a> (<a
href="{dede:global.cfg_phpurl /}/view.php?aid={dede:field.aid/}"
target="_blank"><u>浏览</u></a>) <?php if($fields['replycount'] > 0) { ?><a href='feedback_main.php?fid={dede:field.id/}'>({dede:field.replycount/}条回复)</a> <?php } ?>
</td>
<td width="18%" align="center">
IP地址:<a
href='feedback_main.php?ip={dede:field.ip/}'><u>{dede:field.ip/}</u></a>
</td>
<td width="21%">
时间:{dede:field.dtime function="GetDateTimeMK(@me)" /}
</td>
<td width="10%" align="center">
<a href='feedback_edit.php?id={dede:field.id/}'><img
src="images/feedback-edit.gif" border="0" width="45"
height="18"></a>
</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="28" colspan="6">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
{dede:field.ischeck function="IsCheck(@me)" /}
{dede:field.msg function='cn_substr(Text2Html(@me), 50)'/}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
{/dede:datalist}
<tr>
<td height='20' align='center' bgcolor="#F9FCEF">
{dede:pagelist listsize='5' /}
</td>
</tr>
<tr>
<td height='30'>
<table width="98%">
<tr>
<td width="30%">
<input type='button' name='kk1' value='全选' onClick="selAll()"
class="coolbg np" />
<input type='button' name='kk2' value='取消' onClick="selNone()"
class="coolbg np" />
<input type='button' name='kk3' value='反选' onClick="selNor()"
class="coolbg np" />
</td>
<td align="right">
<input type='button' name='db' value=' 删除相同IP的所有评论 '
onClick="delFeedbackIP()" class="coolbg np" />
<input type='button' name='db' value=' 删除评论 ' onClick="delFeedback()"
class="coolbg np" />
<input type='button' name='db2' value=' 审核评论 ' onClick="checkFeedback()"
class="coolbg np" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html>

+ 41
- 29
src/dede/templets/file_manage_main.htm View File

@@ -1,22 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<style>
.linerow{border-bottom: 1px solid #CBD8AC;height:24px}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>文件管理器</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.linerow {
border-bottom: 1px solid #CBD8AC;
height: 24px
}
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width='98%' border='0' cellspacing='1' cellpadding='2' align='center' style="background:#cfcfcf;">
<tr bgcolor="#cfcfcf" height="28" align="center">
<td width="28%" background="images/wbg.gif" ><strong>文件名</strong></td>
<td width="16%" background="images/newlinebg3.gif"><strong>文件大小</strong></td>
<td width="22%" background="images/wbg.gif"><strong>最后修改时间</strong></td>
<td width="34%" background="images/newlinebg3.gif"><strong>操作</strong></td>
</tr>
<?php
<table width='98%' border='0' cellspacing='1' cellpadding='2' align='center' style="background:#cfcfcf;" class="table table-bordered maintable mt-3">
<tr bgcolor="#cfcfcf" height="28" align="center">
<td width="28%" background="images/wbg.gif"><strong>文件名</strong></td>
<td width="16%" background="images/newlinebg3.gif"><strong>文件大小</strong></td>
<td width="22%" background="images/wbg.gif"><strong>最后修改时间</strong></td>
<td width="34%" background="images/newlinebg3.gif"><strong>操作</strong></td>
</tr>
<?php
$dh = dir($inpath);
$ty1="";
$ty2="";
@@ -343,20 +354,21 @@ foreach ($files as $file)
echo $file;
}
?>
<tr>
<td colspan="4" height='26' bgcolor='#F9FCEF'>
<a href='file_manage_main.php'>[根目录]</a>
&nbsp;
<a href='file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>'>[新建文件]</a>
&nbsp;
<a href='file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>'>[新建目录]</a>
&nbsp;
<a href='file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>'>[文件上传]</a>
&nbsp;
<a href='file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>'>[空间检查]</a>
&nbsp;&nbsp;</td>
</tr>
</table>
<tr>
<td colspan="4" height='26' bgcolor='#F9FCEF'>
<a href='file_manage_main.php'>[根目录]</a>
&nbsp;
<a href='file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>'>[新建文件]</a>
&nbsp;
<a href='file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>'>[新建目录]</a>
&nbsp;
<a href='file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>'>[文件上传]</a>
&nbsp;
<a href='file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>'>[空间检查]</a>
&nbsp;&nbsp;</td>
</tr>
</table>
</body>
</html>

+ 30
- 22
src/dede/templets/freelist_main.htm View File

@@ -5,14 +5,16 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>自由列表管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="JavaScript">
var pageno = 1;
var totalrow = <?php echo $totalRow?>;
var pagesize = <?php echo $pagesize?>;
var totalrow = <?php echo $totalRow;?>;
var pagesize = <?php echo $pagesize;?>;
var orderby = '<?php echo $orderby?>';
var addget = "<?php echo $addget?>";
//加载列表
@@ -54,24 +56,24 @@
var ListArea = $Obj('pagelist');
var pagenum = Math.ceil(totalrow / pagesize);
var listsize = 3;
var ahtml = "";
var ahtml = "<ul class='pagination justify-content-center'>";
var startloop = 1;
var endnum = 0;
ahtml += "共:" + totalrow + " 条记录/" + pagenum + "页";
if (pageno > 1 && pageno != 1) ahtml += " <a href='#' onclick='LoadPage(1)'>首页</a> ";
if (pageno > 1) ahtml += "<a href='#' onclick='LoadPage(" + (pageno - 1) + ")'>↑上页</a> ";
ahtml += "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">共:" + totalrow + " 条记录/" + pagenum + "页</span></li>";
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item d-none d-sm-block disabled'><a href='#' class=\"page-link\" onclick='LoadPage(1)'>首页</a></li>";
if (pageno > 1) ahtml += "<li class='page-item d-none d-sm-block'><a href='#' class=\"page-link\" onclick='LoadPage(" + (pageno - 1) + ")'>↑上页</a></li> ";
if (startnum >= pagenum - listsize) {
startloop = pagenum - (listsize * 2);
if (startloop < 1) startloop = 1;
for (i = startloop; i <= pagenum; i++) {
if (i == pageno) ahtml += i + " ";
else ahtml += "<a href='#' onclick='LoadPage(" + i + ")'>[" + i + "]</a> ";
if (i == pageno) ahtml += "<li class='page-item d-none d-sm-block disabled'><span class=\"page-link\">" + i + "</span></li>";
else ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='#' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>";
}
}
else if (pagenum < listsize) {
for (i = 1; i <= pagenum; i++) {
if (i == pageno) ahtml += i + " ";
else ahtml += "<a href='#' onclick='LoadPage(" + i + ")'>[" + i + "]</a> ";
else ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='#' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>";
}
}
else {
@@ -81,27 +83,32 @@
if (endnum >= pagenum) endnum = pagenum;
for (i = startloop; i <= endnum; i++) {
if (i == pageno) ahtml += i + " ";
else ahtml += "<a href='#' onclick='LoadPage(" + i + ")'>[" + i + "]</a> ";
else ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='#' onclick='LoadPage(" + i + ")'>[" + i + "]</a></li>";
}
}
if (pageno < pagenum) ahtml += "<a href='#' onclick='LoadPage(" + (pageno + 1) + ")'>下页↓</a> ";
if (pageno != pagenum && pagenum > 1) ahtml += " <a href='#' onclick='LoadPage(" + pagenum + ")'>末页</a>";
ListArea.innerHTML = ahtml;
if (pageno < pagenum) ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='#' onclick='LoadPage(" + (pageno + 1) + ")'>下页↓</a></li>";
if (pageno != pagenum && pagenum > 1) ahtml += "<li class='page-item d-none d-sm-block'><a class=\"page-link\" href='#' onclick='LoadPage(" + pagenum + ")'>末页</a></li>";
ListArea.innerHTML = ahtml+"</ul>";
}
</script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitle mt-3">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">频道管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle"
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="maintable"
style="border:1px solid #CFCFCF;border-bottom:none;">
<tr>
<td bgcolor="#CFCFCF" class="tbtitletxt" background="images/tbg.gif">
<table width='100%' border="0" cellpadding='0' cellspacing='0'>
<table width='100%' border="0" cellpadding='0' cellspacing='0' class="maintable">
<tr>
<td width='36%' class="tbtitletxt" style="padding-left:10px;"><strong>自由列表管理</strong>&nbsp;[<a
href="freelist_add.php"><u>增加列表</u></a>]</td>
@@ -112,16 +119,17 @@
</td>
</tr>
</table>
<span id='rslist'>
<div id='rslist'>
<?php
GetTagList($dsql,$pageno,$pagesize,$orderby);
?>
</span>
</div>
<div id='pagelist' class="mb-3 mt-3"><script language='javascript'>ReloadPageNum(1);</script></div>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center"
style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;" class="table table-borderless maintable mb-3">
<tr>
<td height="35" align="center" style="background:#F9FCEF;padding:7px 6px 3px 6px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
<form action="freelist_main.php" name="form1" id="form1">
<tr>
<td width="200" align="center">
@@ -139,12 +147,12 @@
onclick="location='makehtml_freelist.php';" class="coolbg np" />
</td>
<td width="200">
<span id='pagelist'>
<script language='javascript'>ReloadPageNum(1);</script></span>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>


+ 114
- 107
src/dede/templets/friendlink_main.htm View File

@@ -1,129 +1,136 @@
{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">
<!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 href="css/base.css" rel="stylesheet" type='text/css'>
<script language='javascript'>
function Sel(stype)
{
for(var i=0;i < document.getElementsByName('aids').length;i++)
{
if(stype=='all') document.getElementsByName('aids')[i].checked=true;
else document.getElementsByName('aids')[i].checked=false;
}
}
function checkSubmit()
{
var str = '';
for(var i=0;i < document.getElementsByName('aids').length;i++)
{
if(document.getElementsByName('aids')[i].checked){
if(str=='') str += document.getElementsByName('aids')[i].value;
else str += ',' + document.getElementsByName('aids')[i].value;
}
}
if(str=='')
{
alert('你没选择任何内容!');
return false;
}
else
{
location="friendlink_edit.php?aids="+str+"&dopost=delall";
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>友情链接管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type='text/css'>
<script language='javascript'>
function Sel(stype) {
for (var i = 0; i < document.getElementsByName('aids').length; i++) {
if (stype == 'all') document.getElementsByName('aids')[i].checked = true;
else document.getElementsByName('aids')[i].checked = false;
}
}
function checkSubmit() {
var str = '';
for (var i = 0; i < document.getElementsByName('aids').length; i++) {
if (document.getElementsByName('aids')[i].checked) {
if (str == '') str += document.getElementsByName('aids')[i].value;
else str += ',' + document.getElementsByName('aids')[i].value;
}
}
if (str == '') {
alert('你没选择任何内容!');
return false;
}
else {
location = "friendlink_edit.php?aids=" + str + "&dopost=delall";
}
}
</script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="8" style="padding-left:10px;">
<div style="float:left">
<b>友情链接管理</b>
</div>
<div style="float:right;padding-right:6px;">
[<a href="friendlink_add.php"><u>增加链接</u></a>]
[<a href="friendlink_type.php"><u>网站类型管理</u></a>]
[<a href='{dede:global name='cfg_phpurl' /}/flink.php' target='_blank'><u>友情链接预览</u></a>]
</div>
</td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#F9FCEF" colspan="8">
<form action="friendlink_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td>关键字:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:250px" value="<?php echo $keyword; ?>" /></td>
<td>
<select name="ischeck" id="ischeck">
<?php
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3">
<tr>
<td height="28" background="images/tbg.gif" colspan="8" style="padding-left:10px;">
<div style="float:left">
<b>友情链接管理</b>
</div>
<div style="float:right;padding-right:6px;">
[<a href="friendlink_add.php"><u>增加链接</u></a>]
[<a href="friendlink_type.php"><u>网站类型管理</u></a>]
[<a href='{dede:global name=' cfg_phpurl' /}/flink.php' target='_blank'><u>友情链接预览</u></a>]
</div>
</td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#F9FCEF" colspan="8">
<form action="friendlink_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3" class="table table-borderless">
<tr>
<td>关键字:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:250px"
value="<?php echo $keyword; ?>" /></td>
<td>
<select name="ischeck" id="ischeck">
<?php
foreach($selCheckArr as $k=>$v)
{
if($k==$ischeck) echo "<option value='$k' selected>$v</option>\r\n";
else echo "<option value='$k'>$v</option>\r\n";
}
?>
</select>
</td>
<td>
<input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
</td>
</tr>
</table>
</form>
</td>
</tr>
<form name='form1' method='post' action='friendlink_edit.php' onSubmit='return checkSubmit();'>
<input type='hidden' name='dopost' value='delall'/>
<input type='hidden' name='allid' value=''/>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="6%">选择</td>
<td width="23%">网站名称</td>
<td width="12%">网站Logo</td>
<td width="15%">站长Email</td>
<td width="15%">时间</td>
<td width="8%">状态</td>
<td width="8%">顺序</td>
<td width="15%">管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='aids' value='{dede:field.id/}' class='np'></td>
<td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}<br><i>地址:{dede:field.url/}</i></td>
<td>{dede:field.logo function="GetPic(@me)"/}</td>
<td>{dede:field.email/}</td>
<td>{dede:field.dtime function="MyDate('Y-m-d',@me)"/}</td>
<td>{dede:field.ischeck function="GetSta(@me)"/}</td>
<td>{dede:field.sortrank/}</td>
<td>
<a href='friendlink_edit.php?id={dede:field.id/}&dopost=getedit'>[更改]</a>
<a href='friendlink_edit.php?id={dede:field.id/}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
</select>
</td>
<td>
<input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22"
border="0" />
</td>
</tr>
</table>
</form>
</td>
</tr>
<form name='form1' method='post' action='friendlink_edit.php' onSubmit='return checkSubmit();'>
<input type='hidden' name='dopost' value='delall' />
<input type='hidden' name='allid' value='' />
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="6%">选择</td>
<td width="23%">网站名称</td>
<td width="12%">网站Logo</td>
<td width="15%">站长Email</td>
<td width="15%">时间</td>
<td width="8%">状态</td>
<td width="8%">顺序</td>
<td width="15%">管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='aids' value='{dede:field.id/}' class='np'></td>
<td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}<br><i>地址:{dede:field.url/}</i></td>
<td>{dede:field.logo function="GetPic(@me)"/}</td>
<td>{dede:field.email/}</td>
<td>{dede:field.dtime function="MyDate('Y-m-d',@me)"/}</td>
<td>{dede:field.ischeck function="GetSta(@me)"/}</td>
<td>{dede:field.sortrank/}</td>
<td>
<a href='friendlink_edit.php?id={dede:field.id/}&dopost=getedit'>[更改]</a>
<a href='friendlink_edit.php?id={dede:field.id/}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
</form>
<tr bgcolor="#ffffff" height="28">
<tr bgcolor="#ffffff" height="28">
<td colspan="8">
 
 
<a href='#' onclick='Sel("all")' class='np coolbg'>[全选]</a>
<a href='#' onclick='Sel("none")' class='np coolbg'>[取消]</a>
<a href='#' onclick='checkSubmit()' class='np coolbg'>批量删除</a>
<a href='#' onclick='Sel("none")' class='np coolbg'>[取消]</a>
<a href='#' onclick='checkSubmit()' class='np coolbg'>批量删除</a>
</td>
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=6/}
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
</body>
</html>

+ 175
- 144
src/dede/templets/index_body.htm View File

@@ -6,12 +6,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>DedeCMS Home</title>
<base target="_self">
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/indexbody.css" />
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../static/js/jquery.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/jquery.json-2.2.min.js"></script>
<script language="javascript" src="js/indexbody.js"></script>
<script type="text/javascript">
function showMore() {
@@ -32,84 +33,98 @@
});
});
</script>
<style>
.row {
display: flex;
flex-wrap: wrap;
}
.row>[class*='col-'] {
display: flex;
flex-direction: column;
}
</style>
</head>
<body leftmargin="8" topmargin='8' bgcolor="#FFFFFF">
<div style="min-width:780px">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div style='float:left'>
欢迎使用专业的PHP网站管理系统,轻松建站的首选利器 -- <?php echo $cfg_softname; ?>
</div>
<div id='' style='float:right;padding-right:8px;'>
<!-- //保留位置(顶右) -->
<body>
<div class="container-fluid">
<div>
欢迎使用专业的PHP网站管理系统,轻松建站的首选利器 -- <?php echo $cfg_softname; ?>
</div>
<div class="row">
<div id="__testEvn" class="col-md-12"></div>
<!--/#__testEvn-->
<div class="col-md-6 mt-3 updatenews">
<div class="card">
<div class="card-header">
<?php echo $cfg_soft_enname; ?> 更新消息
</div>
</td>
</tr>
<tr>
<td height="1" background="images/sp_bg.gif" style='padding:0px'></td>
</tr>
</table>
<div id="__testEvn"></div>
<div id='mainmsg'>
<div class="column" id="column1">
<!--左侧开始-->
<dl class="dbox" id="item1">
<dt class='lside'><span class='l'><?php echo $cfg_soft_enname; ?> 更新消息</span></dt>
<dd>
<div id='updatetest'>
<div id='updateinfos'>
<?php
<!--/.card-header-->
<div class="card-body">
<?php
echo "<div class='updatedvt'><b>您系统版本最后更新时间为:{$oktime} </b><br/>";
echo " <a href='javascript:LoadUpdateInfos();' class='np coolbg'>进行在线更新</a> &nbsp; \r\n";
echo " <a href='sys_repair.php' class='np coolbg'>系统错误修复</a></div>\r\n";
echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='50'></iframe>";
?>
</div>
</div>
</dd>
</dl>
<!--更新消息结束-->
<dl class='dbox' id="item2">
<dt class='lside'><span class='l'>商业授权查询</span></dt>
<dd>
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
商业授权查询
</div>
<!--/.card-header-->
<div class="card-body">
<iframe name="showauth" src="index_body.php?dopost=showauth" width="100%" frameborder="0"
scrolling="no" marginwidth="10" marginheight="10" id="showauth"></iframe>
</dd>
</dl>
<!--更新消息结束-->
<dl class='dbox' id="item3">
<dt class='lside'>
<div class='l'>快捷操作</div>
<div class='r'><a href='#' onClick="AddNew()"><b>【新增】</b></a><a href='#'
onClick="ListAll()"><b>【管理】</b></a></div>
</dt>
<dd>
<div id='quickmenu'>
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
快捷操作
<a href='javascript:AddNew()'><b>【新增】</b></a>
<a href='javascript:ListAll()'><b>【管理】</b></a>
</div>
<!--/.card-header-->
<div class="card-body">
<ul class="nav">
<?php
$dtp = new DedeTagparse();
$dtp->SetNameSpace('menu','<','>');
$dtp->LoadTemplet($myIcoFile);
if(is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag){
$title = $ctag->GetAtt('title');
$ico = $ctag->GetAtt('ico');
$link = $ctag->GetAtt('link');
echo "<div class='icoitem' style='background:url($ico) 10px 3px no-repeat;'><a href='{$link}'>{$title}</a></div>\r\n";
$dtp = new DedeTagparse();
$dtp->SetNameSpace('menu','<','>');
$dtp->LoadTemplet($myIcoFile);
if(is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag){
$title = $ctag->GetAtt('title');
$ico = $ctag->GetAtt('ico');
$link = $ctag->GetAtt('link');
echo "<li class='nav-item'><a class='nav-link' href='{$link}'><img src='{$ico}'> {$title}</a></li>\r\n";
}
}
}
?>
</div>
</dd>
?>
</ul>
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
</dl>
<!--快捷操作结束-->
<dl class="dbox" id="item4">
<dt class='lside'>
<div class='l'>系统基本信息</div>
</dt>
<dd class='intable'>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
系统基本信息
</div>
<!--/.card-header-->
<div class="card-body">
<table width="98%" class="dboxtable">
<tr>
<td width="25%" class='nline' style="text-align:right">您的级别:</td>
@@ -194,14 +209,19 @@
</td>
</tr>
</table>
</dd>
</dl>
<!--系统基本信息结束-->
<dl class='dbox' id="item5">
<dt class='lside'>
<div class='l'>程序团队</div>
</dt>
<dd class='intable'>
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
程序团队
</div>
<!--/.card-header-->
<div class="card-body">
<table width="98%" class="dboxtable">
<tr>
<td width='25%' height='36' class='nline' style="text-align:right"> 主程序研发: </td>
@@ -212,100 +232,111 @@
<td height='36' class='nline' style="text-align:right">鸣谢:</td>
<td class='nline' style="text-align:left"><a
href="https://github.com/dedetech/DedeCMSv5/graphs/contributors" target="_blank"
style="color:blue">热心用户</a>、<a href="http://www.dedecms.com/thanks.html"
target="_blank" style="color:blue">赞助商</a></td>
style="color:blue">热心用户</a></td>
</tr>
</table>
</dd>
</dl>
<!--开发团队结束-->
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
<!--左侧结束-->
<div class="column" id="column2">
<!-- //右边的快捷消息开始 -->
<dl class='dbox' id="item8">
<dt class='lside'>
<div class='l'>赞助商链接(<a href="http://ad.dedecms.com/ad/" target="_blank">说明</a>)</div>
</dt>
<dd>
<iframe name="showad" src="index_body.php?dopost=showad" frameborder="0" width="100%"
id="showad" frameborder="0" scrolling="no" marginheight="5"></iframe>
</dd>
</dl>
<!--赞助商链接结束-->
<dl class='dbox' id="item6">
<dt class='lside'>
<div class='l'>信息统计</div>
</dt>
<dd id='listCount'>
正在载入中...
</dd>
</dl>
<!--信息统计结束-->
<dl class='dbox' id="item7">
<dt class='lside'>
<div class='l'>SEO信息</div>
</dt>
<dd id='SEOInfo'>
正在载入中……
</dd>
</dl>
<dl class='dbox' id="item7">
<dt class='lside'>
<div class='l'>最新文档</div>
</dt>
<dd id='listNews'>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
SEO信息
</div>
<!--/.card-header-->
<div class="card-body">
<dd id='SEOInfo'>
正在载入中……
</dd>
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
信息统计
</div>
<!--/.card-header-->
<div class="card-body">
<dd id='listCount'>
正在载入中...
</dd>
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
<div class="col-md-6 mt-3">
<div class="card">
<div class="card-header">
最新文档
</div>
<!--/.card-header-->
<div class="card-body">
<?php
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc
LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
$arcArr = array();
$dsql->Execute('m', $query);
while($row = $dsql->GetArray('m'))
{
$arcArr[] = $row;
}
?>
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc
LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
$arcArr = array();
$dsql->Execute('m', $query);
while($row = $dsql->GetArray('m'))
{
$arcArr[] = $row;
}
?>
<table width="100%" class="dboxtable">
<?php
if(count($arcArr) > 1)
{
foreach($arcArr as $row)
{
if(trim($row['editcon'])=='') {
$row['editcon'] = 'archives_edit.php';
}
$linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
?>
if(count($arcArr) > 1)
{
foreach($arcArr as $row)
{
if(trim($row['editcon'])=='') {
$row['editcon'] = 'archives_edit.php';
}
$linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
?>
<tr>
<td class='nline' style="text-align:left">
<?php echo $linkstr; ?>
</td>
</tr>
<?php
}
} else {
?>
}
} else {
?>
<tr>
<td class='nline' style="text-align:left">
暂无新增内容
</td>
</tr>
<?php
}
?>
}
?>
</table>
</dd>
</dl>
<!--最新文档结束-->
</div>
<!--/.card-body-->
</div>
<!--/.card-->
</div>
</div>
</div>
<div class="footer">
<br style='clear:both' />
<!-- //底部 -->
<div align="center" class="footer">
Copyright &copy; 2004-2020 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>. 织梦科技 版权所有
Copyright &copy; 2004-2020 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>. 织梦科技 版权所有 <a
href="https://www.dedebiz.com" target="_blank" title="DedeBiz商业技术支持,提供更专业强大的站点应用开发技术">DedeBiz技术支持</a>
</div>
<!-- 下面是隐藏的项目 -->


+ 104
- 52
src/dede/templets/login.htm View File

@@ -1,56 +1,108 @@
<!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">
<!doctype html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title><?php echo $cfg_softname." ".$cfg_version; ?></title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/login.css" rel="stylesheet" type="text/css" />
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript">
$ = jQuery;
function changeAuthCode() {
var num = new Date().getTime();
var rand = Math.round(Math.random() * 10000);
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
</script>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="../static/css/dede.css">
<title><?php echo $cfg_softname." ".$cfg_version; ?></title>
<style>
body {
background-color: #F5F5F5;
}
header {
background-color: white;
}
header .logo {
width: 260px;
padding: 1em 0;
}
.login-from {
max-width: 680px;
width: 100%;
}
.login-area {
background-color: white;
padding: 1em;
}
.login-area .btnLogin {
width: 100%;
}
.login-power {
padding: 1em 0;
}
.login-power a ,.goindex a{
color: #3DB058;
}
.goindex {
line-height: 65px;
}
</style>
</head>
<body>
<div id="login-box">
<div class="login-top"><a href="../index.php" target="_blank" title="返回网站主页">返回网站主页</a></div>
<?php echo $redmsg; ?>
<div class="login-main">
<form name="form1" method="post" action="login.php">
<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage);?>" />
<input type="hidden" name="dopost" value="login" />
<input name='adminstyle' type='hidden' value='newdedecms' />
<dl>
<dt>用户名:</dt>
<dd><input type="text" name="userid"/></dd>
<dt>密&nbsp;&nbsp;码:</dt>
<dd><input type="password" class="alltxt" name="pwd"/></dd>
<?php
if(preg_match("/6/",$safe_gdopen))
{
?>
<dt>验证码:</dt>
<dd><input id="vdcode" type="text" name="validate" style="text-transform:uppercase;"/><img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/>
<a href="#" onClick="changeAuthCode();">看不清? </a></dd>
<?php
}
?>
<dt>&nbsp;</dt>
<dd><button type="submit" name="sm1" class="login-btn" onclick="this.form.submit();">登录</button></dd>
</dl>
</form>
</div>
<div class="login-power">Powered by<a href="http://www.dedecms.com" title="DedeCMS官网"><strong>DedeCMS<?php echo $cfg_version; ?></strong></a>&copy; 2004-2020 <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc.</div>
</div>
<div class="dede-iframe"><iframe name="loginad" src="login.php?dopost=showad" frameborder="0" id="loginad" scrolling="no" marginwidth="0" marginheight="0" width="100%"></iframe></div>
<header>
<div class="container top">
<div class="row">
<div class="col-6"><a href="."><img class="logo" src="../static/img/admin-logo.png" alt=""></a></div>
<div class="col-6 d-flex justify-content-end goindex">
<a href="../index.php"><i class="fa fa-home" aria-hidden="true"></i></a>
</div>
</div>
</div>
</header>
<main class="container login-from mt-3">
<div class="alert alert-warning" role="alert">
<?php echo $redmsg; ?>
</div>
<div class="login-area">
<h2 class="text-center">管理目录</h2>
<form name="form1" method="post" action="login.php">
<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage);?>" />
<input type="hidden" name="dopost" value="login" />
<input name='adminstyle' type='hidden' value='newdedecms' />
<div class="form-group">
<label for="iptUserid">用户名</label>
<input type="text" name="userid" class="form-control" id="iptUserid">
</div>
<div class="form-group">
<label for="iptPassword">密码</label>
<input type="password" name="pwd" class="form-control" id="iptPassword">
</div>
<div class="form-group">
<label for="iptValidate">验证码</label>
<div class="input-group">
<input type="text" name="validate" class="form-control" id="iptValidate"
style="text-transform:uppercase;">
<img src="../plus/vdimgck.php" id="validateimg" style="cursor:pointer;"
onclick="this.src='../plus/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)"
title="点击我更换图片" alt="点击我更换图片" />
</div>
</div>
<button type="submit" class="btn btn-success btnLogin">登录</button>
<div class="login-power"> Powered by<a href="http://www.dedecms.com"
title="DedeCMS官网"><strong> DedeCMS<?php echo $cfg_version; ?></strong></a>&copy; 2004-2020 <a
href="http://www.desdev.cn" target="_blank">DesDev</a> Inc. <a href="https://www.dedebiz.com"
target="_blank" title="DedeBiz商业技术支持,提供更专业强大的站点应用开发技术">DedeBiz技术支持</a></div>
</form>
</div>
</main>
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/popper.min.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/js/bootstrap.bundle.js"></script>
</body>
</html>
</html>

+ 157
- 141
src/dede/templets/media_main.htm View File

@@ -1,153 +1,169 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<style>
.napisdiv {left:10;top:0;width:150px;height:100px;position:absolute;z-index:3}
</style>
<script>
function ChangeImage(surl){ document.getElementById('picview').src = surl; }
//获得选中文件的文件名
function getCheckboxItem(){
var allSel="";
if(document.form1.aids.value) return document.form1.aids.value;
for(i=0;i<document.form1.aids.length;i++)
{
if(document.form1.aids[i].checked){
if(allSel=="")
allSel=document.form1.aids[i].value;
else
allSel=allSel+","+document.form1.aids[i].value;
}
}
return allSel;
}
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>附件数据管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.napisdiv {
left: 10;
top: 0;
width: 150px;
height: 100px;
position: absolute;
z-index: 3
}
.maintable {
width: 98%!important;
}
</style>
<script>
function ChangeImage(surl) { document.getElementById('picview').src = surl; }
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.form1.aids.value) return document.form1.aids.value;
for (i = 0; i < document.form1.aids.length; i++) {
if (document.form1.aids[i].checked) {
if (allSel == "")
allSel = document.form1.aids[i].value;
else
allSel = allSel + "," + document.form1.aids[i].value;
}
}
return allSel;
}
function AllSel(){
for(i=0;i<document.form1.aids.length;i++){
document.form1.aids[i].checked = true;
}
}
function AllSel() {
for (i = 0; i < document.form1.aids.length; i++) {
document.form1.aids[i].checked = true;
}
}
function NoneSel(){
for(i=0;i<document.form1.aids.length;i++){
document.form1.aids[i].checked = false;
}
}
function NoneSel() {
for (i = 0; i < document.form1.aids.length; i++) {
document.form1.aids[i].checked = false;
}
}
function DelSel(){
var nid = getCheckboxItem();
if(nid==""){
alert("请选择项目!\r\n");
return ;
}
location.href = "media_edit.php?dopost=del&ids="+nid;
}
</script>
function DelSel() {
var nid = getCheckboxItem();
if (nid == "") {
alert("请选择项目!\r\n");
return;
}
location.href = "media_edit.php?dopost=del&ids=" + nid;
}
</script>
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin="8">
<div id="floater" class="napisdiv">
<a href="javascript:;" onClick="ChangeImage('./dialog/img/picviewnone.gif');">
<img src='./dialog/img/picviewnone.gif' id='picview' name='picview' border='0' alt='单击关闭预览' style='z-index:10000'>
</a>
</div>
<SCRIPT language=JavaScript src="js/float.js"></SCRIPT>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf">
<tr>
<td height="28" colspan="7" background="images/tbg.gif">
<table width='96%' cellpadding='0' cellspacing='0' style="padding-left:10px;">
<tr>
<td width='30%'><b>附件数据管理</b></td>
<td align='right'>
[<a href="media_add.php"><u>上传新文件</u></a>]
<div id="floater" class="napisdiv">
<a href="javascript:;" onClick="ChangeImage('./dialog/img/picviewnone.gif');">
<img src='./dialog/img/picviewnone.gif' id='picview' name='picview' border='0' alt='单击关闭预览' style='z-index:10000'>
</a>
</div>
<SCRIPT language=JavaScript src="js/float.js"></SCRIPT>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered mt-3">
<tr>
<td height="28" colspan="7" background="images/tbg.gif">
<table width='96%' cellpadding='0' cellspacing='0' style="padding-left:10px;" class="table-borderless">
<tr>
<td width='30%'><b>附件数据管理</b></td>
<td align='right'>
[<a href="media_add.php"><u>上传新文件</u></a>]
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#ffffff" height="24">
<td colspan="7">
<table width="600" border="0" cellspacing="0" cellpadding="0" class="table-borderless">
<form name='forms' method='post' action='media_main.php'>
<tr>
<td width="10">&nbsp;</td>
<td width="70" align="center">关键字:</td>
<td width="100">
<input name="keyword" type="text" id="keyword" style="width:100" value="<?php echo $keyword?>" />
</td>
<td width="100" align="center">
<select name='mediatype' style='width:80'>
<option value='0'>文件类型</option>
<option value='1' <?php if($mediatype==1) echo " selected"?>>图片</option>
<option value='2' <?php if($mediatype==2) echo " selected"?>>FLASH</option>
<option value='3' <?php if($mediatype==3) echo " selected"?>>视频/音频</option>
<option value='4' <?php if($mediatype==4) echo " selected"?>>其它附件</option>
</select> </td>
<td width="100" align="center">
<select name='membertype' style='width:80'>
<option value='0'>用户组</option>
<option value='1' <?php if($membertype==1) echo " selected"?>>管理员</option>
<option value='2' <?php if($membertype==2) echo " selected"?>>外部会员</option>
</select>
</td>
<td>
<input class="np" name="imageField" type="image" src="images/button_search.gif" width="60" height="22"
border="0" />
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr bgcolor="#FBFCE2" height="24" align="center">
<td width="8%">选择</td>
<td width="28%">文件标题</td>
<td width="10%">文件大小</td>
<td width="15%">上传会员</td>
<td width="15%">上传时间</td>
<td width="9%">文件类型</td>
<td width="15%">管理</td>
</tr>
<form name='form1'>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>
<input type='checkbox' name='aids' id='aids{dede:field.aid/}' value='{dede:field.aid/}' class='np' />
</td>
<td>
<a href='{dede:field.url/}' title='{dede:field.url/}' target='_blank'>
<u>{dede:field.title/}</u>
</a>
</td>
<td>{dede:field.filesize function='GetFileSize(@me)'/}</td>
<td>{dede:field.adminname function="UploadAdmin(@me,$fields['membername'])"/}</td>
<td>{dede:field.uptime function="MyDate('Y-m-d H:i',@me)"/}</td>
<td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td>
<td>
<a href='media_edit.php?aid={dede:field.aid/}&dopost=edit'>更改</a>
|
<a href='media_edit.php?aid={dede:field.aid/}&dopost=del'>删除</a>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#ffffff" height="24">
<td colspan="7">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<form name='forms' method='post' action='media_main.php'>
<tr>
<td width="10">&nbsp;</td>
<td width="70" align="center">关键字:</td>
<td width="100">
<input name="keyword" type="text" id="keyword" style="width:100" value="<?php echo $keyword?>" />
</td>
<td width="100" align="center">
<select name='mediatype' style='width:80'>
<option value='0'>文件类型</option>
<option value='1'<?php if($mediatype==1) echo " selected"?>>图片</option>
<option value='2'<?php if($mediatype==2) echo " selected"?>>FLASH</option>
<option value='3'<?php if($mediatype==3) echo " selected"?>>视频/音频</option>
<option value='4'<?php if($mediatype==4) echo " selected"?>>其它附件</option>
</select> </td>
<td width="100" align="center">
<select name='membertype' style='width:80'>
<option value='0'>用户组</option>
<option value='1'<?php if($membertype==1) echo " selected"?>>管理员</option>
<option value='2'<?php if($membertype==2) echo " selected"?>>外部会员</option>
</select>
</td>
<td>
<input class="np" name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr bgcolor="#FBFCE2" height="24" align="center">
<td width="8%">选择</td>
<td width="28%">文件标题</td>
<td width="10%">文件大小</td>
<td width="15%">上传会员</td>
<td width="15%">上传时间</td>
<td width="9%">文件类型</td>
<td width="15%">管理</td>
</tr>
<form name='form1'>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24"
onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>
<input type='checkbox' name='aids' id='aids{dede:field.aid/}' value='{dede:field.aid/}' class='np'/>
</td>
<td>
<a href='{dede:field.url/}' title='{dede:field.url/}' target='_blank'>
<u>{dede:field.title/}</u>
</a>
</td>
<td>{dede:field.filesize function='GetFileSize(@me)'/}</td>
<td>{dede:field.adminname function="UploadAdmin(@me,$fields['membername'])"/}</td>
<td>{dede:field.uptime function="MyDate('Y-m-d H:i',@me)"/}</td>
<td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td>
<td>
<a href='media_edit.php?aid={dede:field.aid/}&dopost=edit'>更改</a>
|
<a href='media_edit.php?aid={dede:field.aid/}&dopost=del'>删除</a>
</td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff" height="28">
<td colspan="7">
&nbsp; <input type="button" name="b4" value="全选" class="coolbg np" style="width:40px" onClick="AllSel();" />
&nbsp; <input type="button" name="b5" value="取消" class="coolbg np" style="width:40px" onClick="NoneSel();" />
&nbsp; <input type="button" name="b6" value="删除所选" class="coolbg np" style="width:80px" onClick="DelSel();" />
</td>
</tr>
<tr bgcolor="#F9FCEF" height="36">
<td colspan="7" align="center">
{dede:pagelist listsize=5/}
</td>
{/dede:datalist}
<tr bgcolor="#ffffff" height="28">
<td colspan="7">
&nbsp; <input type="button" name="b4" value="全选" class="coolbg np" style="width:40px" onClick="AllSel();" />
&nbsp; <input type="button" name="b5" value="取消" class="coolbg np" style="width:40px" onClick="NoneSel();" />
&nbsp; <input type="button" name="b6" value="删除所选" class="coolbg np" style="width:80px" onClick="DelSel();" />
</td>
</tr>
<tr bgcolor="#F9FCEF" height="36">
<td colspan="7" align="center">
{dede:pagelist listsize=5/}
</td>
</tr>
</form>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</table>
</body>
</html>

+ 153
- 135
src/dede/templets/member_main.htm View File

@@ -1,110 +1,127 @@
{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">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/member.js"></script>
<style type="text/css">
.rb{ border-right:1px solid #666666 }
.tb{ border-top:1px solid #666666 }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>网站会员管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/member.js"></script>
<style type="text/css">
.rb {
border-right: 1px solid #666666
}
.tb {
border-top: 1px solid #666666
}
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:6px">
<tr>
<td height="30" align="center" bgcolor="#F9FCEF">
<form action="member_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td>关键字:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:120px" value="{dede:global name='keyword'/}" /></td>
<td>&nbsp;排序:</td>
<td>
<select name="sortkey" id="sortkey" style="width:120px">
{dede:global name='sortform'/}
<option value="mid">mid/注册时间</option>
<option value="logintime">登录时间</option>
<option value="rank">会员等级</option>
<option value="money">会员金币</option>
<option value="scores">会员积分</option>
</select>
</td>
<td>
<select name="sex" id="sex" style="width:60px">
{dede:global name='sexform'/}
<option value="男">男</option>
<option value="女">女</option>
<option value="保密">保密</option>
</select>
</td>
<td>
<select name="mtype" id="mtype" style="width:60px">
{dede:global name='mtypeform'/}
<?php
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"
style="margin-bottom:6px" class="table maintable table-bordered mt-3">
<tr>
<td height="30" align="center" bgcolor="#F9FCEF">
<form action="member_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3" class="table table-borderless">
<tr>
<td>关键字:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:120px"
value="{dede:global name='keyword'/}" /></td>
<td>&nbsp;排序:</td>
<td>
<select name="sortkey" id="sortkey" style="width:120px">
{dede:global name='sortform'/}
<option value="mid">mid/注册时间</option>
<option value="logintime">登录时间</option>
<option value="rank">会员等级</option>
<option value="money">会员金币</option>
<option value="scores">会员积分</option>
</select>
</td>
<td>
<select name="sex" id="sex" style="width:60px">
{dede:global name='sexform'/}
<option value="男">男</option>
<option value="女">女</option>
<option value="保密">保密</option>
</select>
</td>
<td>
<select name="mtype" id="mtype" style="width:60px">
{dede:global name='mtypeform'/}
<?php
foreach($MemberModels as $row)
{
echo "<option value=".$row['name'].">".$row['name']."</option>\r\n";
}
?>
</select>
</td>
<td>
<select name="spacesta" id="spacesta" style="width:150px">
<option value='-10'>--会员状态--</option>
<?php
</select>
</td>
<td>
<select name="spacesta" id="spacesta" style="width:150px">
<option value='-10'>--会员状态--</option>
<?php
foreach($staArr as $k=>$v)
{
if($spacesta==$k) echo "<option value='$k' selected>$v</option>\r\n";
else echo "<option value='$k'>$v</option>\r\n";
}
?>
</select></td>
<td>
<input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<form name="form2">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf">
<tr>
<td height="28" colspan="9" background="images/tbg.gif">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="29%" style="padding-left:10px;"><strong>注册会员列表</strong></td>
<td width="71%" align="right">
<a href="member_main.php">所有会员</a> |
<a href="member_main.php?spacesta=-2">被禁言用户</a> |
<a href="member_main.php?matt=1">被推荐</a> |
<a href="member_main.php?matt=0">普通</a> &nbsp;
</td>
</tr>
</select></td>
<td>
<input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22"
border="0" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FEFCEF" height="30" align="center">
<td width="3%">选择</td>
<td width="5%">mid</td>
<td width="11%">登录名</td>
<td width="16%">email/昵称</td>
<td width="5%">性别</td>
<td width="8%">会员等级</td>
<td width="20%">会员属性</td>
<td width="14%">最后登录</td>
<td>操作</td>
</tr>
{dede:datalist}
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input name="mid" type="checkbox" id="mid" value="{dede:field.mid/}" class="np" /></td>
<td>{dede:field.mid/}</td>
<td><a href="../member/index.php?uid={dede:field.userid/}" target='_blank'>
<?php
<form name="form2">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered maintable">
<tr>
<td height="28" colspan="9" background="images/tbg.gif">
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
<tr>
<td width="29%" style="padding-left:10px;"><strong>注册会员列表</strong></td>
<td width="71%" align="right">
<a href="member_main.php">所有会员</a> |
<a href="member_main.php?spacesta=-2">被禁言用户</a> |
<a href="member_main.php?matt=1">被推荐</a> |
<a href="member_main.php?matt=0">普通</a> &nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FEFCEF" height="30" align="center">
<td width="3%">选择</td>
<td width="5%">mid</td>
<td width="11%">登录名</td>
<td width="16%">email/昵称</td>
<td width="5%">性别</td>
<td width="8%">会员等级</td>
<td width="20%">会员属性</td>
<td width="14%">最后登录</td>
<td>操作</td>
</tr>
{dede:datalist}
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input name="mid" type="checkbox" id="mid" value="{dede:field.mid/}" class="np" /></td>
<td>{dede:field.mid/}</td>
<td><a href="../member/index.php?uid={dede:field.userid/}" target='_blank'>
<?php
echo '<u>'.$fields['userid'].'</u>';
if($fields['spacesta']==-2) echo "<font color='red'>(禁言)</font>";
if($fields['spacesta']==-1) echo "<font color='red'>(未审核)</font>";
@@ -112,50 +129,51 @@
echo "<br /><img src='{$fields['face']}' width='60' alt='浏览会员空间' />";
}
?>
</a></td>
<td>
{dede:field.email/}
<br />
昵称:{dede:field.uname/}
</td>
<td>
{dede:field.sex /}
</td>
<td>
<a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a>
</td>
<td>
{dede:field.mtype /}用户 {dede:field.matt function="GetMAtt(@me)" /}
<br />
金币:{dede:field.money /} 积分:{dede:field.scores /}
</td>
<td>
{dede:field.logintime function="MyDate('y-m-d H:i',@me)" /}
<br />
【{dede:field.loginip /}】
</td>
<td align="center">
<a href="member_view.php?id={dede:field.mid/}">修改</a> |
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember">删除</a> |
<a href="content_list.php?mid={dede:field.mid/}" target="_blank">文档</a> |
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self">提升</a>
</td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff">
<td height="36" colspan="9">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
(如果已经整合了论坛的用户请不要使用批量删除功能)</td>
</tr>
<tr bgcolor="#F9FCEF">
<td height="36" colspan="9" align="center">
{dede:pagelist listsize='6' /}
</td>
</tr>
</table>
</form>
</a></td>
<td>
{dede:field.email/}
<br />
昵称:{dede:field.uname/}
</td>
<td>
{dede:field.sex /}
</td>
<td>
<a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a>
</td>
<td>
{dede:field.mtype /}用户 {dede:field.matt function="GetMAtt(@me)" /}
<br />
金币:{dede:field.money /} 积分:{dede:field.scores /}
</td>
<td>
{dede:field.logintime function="MyDate('y-m-d H:i',@me)" /}
<br />
【{dede:field.loginip /}】
</td>
<td align="center">
<a href="member_view.php?id={dede:field.mid/}">修改</a> |
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember">删除</a> |
<a href="content_list.php?mid={dede:field.mid/}" target="_blank">文档</a> |
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self">提升</a>
</td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff">
<td height="36" colspan="9">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
(如果已经整合了论坛的用户请不要使用批量删除功能)</td>
</tr>
<tr bgcolor="#F9FCEF">
<td height="36" colspan="9" align="center">
{dede:pagelist listsize='6' /}
</td>
</tr>
</table>
</form>
</body>
</html>

+ 1
- 1
src/dede/templets/member_view.htm View File

@@ -184,7 +184,7 @@ function checkSubmit()
<td width="83%" class='bline' style="text-align:left;">
<a href='member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>&jumpurl=../member/edit_fullinfo.php' target='_blank'><u>查看/修改详细资料</u></a>
&nbsp;|&nbsp;
<a href='member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>' target='_blank'><u>登到此用户控制面板</u></a>
<a href='member_do.php?dopost=memberlogin&id=<?php echo $row['mid']; ?>' target='_blank'><u>登到此用户控制面板</u></a>
&nbsp;|&nbsp;
<a href='../member/index.php?uid=<?php echo $row['userid']; ?>' target='_blank'><u>浏览此用户的空间</u></a>
</td>


+ 9
- 2
src/dede/templets/mychannel_main.htm View File

@@ -4,13 +4,20 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>内容模型管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3">
<tr>
<td height="28" colspan="7" background="images/tbg.gif">
<table width='96%' cellpadding='0' cellspacing='0'>
<table width='96%' cellpadding='0' cellspacing='0' class="table table-borderless">
<tr>
<td width='20%' style="padding-left:10px;"><b>内容模型管理</b></td>
<td align='right'>


+ 46
- 34
src/dede/templets/plus_main.htm View File

@@ -1,47 +1,59 @@
{dede:config.pagesize value="50"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 href='css/base.css' rel='stylesheet' type='text/css'>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>插件管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href='css/base.css' rel='stylesheet' type='text/css'>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="25" colspan="5" background="images/tbg.gif" style="padding-left:10px;">
<table width='96%' cellpadding='0' cellspacing='0'>
<tr>
<td width='30%'><b>插件管理</b></td>
<td align='right'>
[<a href="module_main.php?moduletype=plus"><u>安装新插件</u></a>]
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3">
<tr>
<td height="25" colspan="5" background="images/tbg.gif" style="padding-left:10px;">
<table width='96%' cellpadding='0' cellspacing='0' class="table table-borderless maintable">
<tr>
<td width='30%'><b>插件管理</b></td>
<td align='right'>
[<a href="module_main.php?moduletype=plus"><u>安装新插件</u></a>]
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="10%">ID号</td>
<td width="40%">插件名称</td>
<td width="20%">插件作者</td>
<td width="30%">管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.aid /}</td>
<td>{dede:field.plusname /}</td>
<td>{dede:field.writer /}</td>
<td>{dede:field.isshow function="GetSta(@me,$fields['aid'],$fields['plusname'])"/}</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="36">
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.aid /}</td>
<td>{dede:field.plusname /}</td>
<td>{dede:field.writer /}</td>
<td>{dede:field.isshow function="GetSta(@me,$fields['aid'],$fields['plusname'])"/}</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="36">
<td colspan="5">
{dede:pagelist listsize=6/}
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

+ 115
- 108
src/dede/templets/recycling.htm View File

@@ -1,118 +1,125 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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" type="text/css" href="css/base.css">
<script language="javascript">
function moveArc(aid){
var qstr=getCheckboxItem();
if(aid==0) aid = getOneItem();
location="archives_do.php?aid="+aid+"&dopost=return&qstr="+qstr;
}
function delArc(aid){
var qstr=getCheckboxItem();
if(aid==0) aid = getOneItem();
location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=del&recycle=1";
}
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.form2.arcID.value) return document.form2.arcID.value;
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
if(allSel=="")
allSel=document.form2.arcID[i].value;
else
allSel=allSel+"`"+document.form2.arcID[i].value;
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>文档管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript">
function moveArc(aid) {
var qstr = getCheckboxItem();
if (aid == 0) aid = getOneItem();
location = "archives_do.php?aid=" + aid + "&dopost=return&qstr=" + qstr;
}
}
return allSel;
}
//获得选中其中一个的id
function getOneItem()
{
var allSel="";
if(document.form2.arcID.value) return document.form2.arcID.value;
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
allSel = document.form2.arcID[i].value;
break;
function delArc(aid) {
var qstr = getCheckboxItem();
if (aid == 0) aid = getOneItem();
location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=del&recycle=1";
}
}
return allSel;
}
function selAll()
{
for(i=0;i<document.form2.arcID.length;i++)
{
if(!document.form2.arcID[i].checked)
{
document.form2.arcID[i].checked=true;
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.form2.arcID.value) return document.form2.arcID.value;
for (i = 0; i < document.form2.arcID.length; i++) {
if (document.form2.arcID[i].checked) {
if (allSel == "")
allSel = document.form2.arcID[i].value;
else
allSel = allSel + "`" + document.form2.arcID[i].value;
}
}
return allSel;
}
}
}
function noSelAll()
{
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
document.form2.arcID[i].checked=false;
//获得选中其中一个的id
function getOneItem() {
var allSel = "";
if (document.form2.arcID.value) return document.form2.arcID.value;
for (i = 0; i < document.form2.arcID.length; i++) {
if (document.form2.arcID[i].checked) {
allSel = document.form2.arcID[i].value;
break;
}
}
return allSel;
}
}
}
</script>
function selAll() {
if (typeof document.form2.arcID === "object") {
document.form2.arcID.checked = true;
}
for (i = 0; i < document.form2.arcID.length; i++) {
if (!document.form2.arcID[i].checked) {
document.form2.arcID[i].checked = true;
}
}
}
function noSelAll() {
if (typeof document.form2.arcID === "object") {
document.form2.arcID.checked = false;
}
for (i = 0; i < document.form2.arcID.length; i++) {
if (document.form2.arcID[i].checked) {
document.form2.arcID[i].checked = false;
}
}
}
</script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body leftmargin="8" topmargin="8" background='images/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" align="center">
<tr bgcolor="#E7E7E7">
<td height="28" colspan="7" background="images/tbg.gif" style="padding-left:10px;">
<b>文档回收站</b> &nbsp;
</td>
</tr>
<form name="form2">
<tr align="center" bgcolor="#FBFCE2" height="25">
<td width="6%">ID</td>
<td width="4%">选择</td>
<td width="28%">文章标题</td>
<td width="10%">更新时间</td>
<td width="10%">类目</td>
<td width="8%">点击</td>
<td width="10%">操作</td>
</tr>
{dede:datalist}
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"
height="25" oncontextmenu="ShowMenu(event,this,{dede:field.id/},'{dede:field.title function='urlencode(@me)'/}')">
<td>{dede:field.id/}</td>
<td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
<td align='left'>
<a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'><u>{dede:field.title/}</u></a>
</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.typename/}</td>
<td>{dede:field.click/}</td>
<td><a href="javascript:moveArc({dede:field.id/})">还原</a> | <a href="javascript:delArc({dede:field.id/})">删除</a></td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff">
<td height="24" colspan="7">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:moveArc(0)" class="coolbg">&nbsp;还原&nbsp;</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a></td>
</tr>
</form>
<tr align="right" bgcolor="#F9FCEF">
<td height="30" colspan="7" align="center">
{dede:pagelist listsize=3/}</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" align="center" class="table maintable mt-3 table-bordered">
<tr bgcolor="#E7E7E7">
<td height="28" colspan="7" background="images/tbg.gif" style="padding-left:10px;">
<b>文档回收站</b> &nbsp;
</td>
</tr>
<form name="form2">
<tr align="center" bgcolor="#FBFCE2" height="25">
<td width="6%">ID</td>
<td width="4%">选择</td>
<td width="28%">文章标题</td>
<td width="10%">更新时间</td>
<td width="10%">类目</td>
<td width="8%">点击</td>
<td width="10%">操作</td>
</tr>
{dede:datalist}
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="25"
oncontextmenu="ShowMenu(event,this,{dede:field.id/},'{dede:field.title function='urlencode(@me)'/}')">
<td>{dede:field.id/}</td>
<td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
<td align='left'>
<a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'><u>{dede:field.title/}</u></a>
</td>
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
<td>{dede:field.typename/}</td>
<td>{dede:field.click/}</td>
<td><a href="javascript:moveArc({dede:field.id/})">还原</a> | <a
href="javascript:delArc({dede:field.id/})">删除</a></td>
</tr>
{/dede:datalist}
<tr bgcolor="#ffffff">
<td height="24" colspan="7">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:moveArc(0)" class="coolbg">&nbsp;还原&nbsp;</a>
<a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a></td>
</tr>
</form>
<tr align="right" bgcolor="#F9FCEF">
<td height="30" colspan="7" align="center">
{dede:pagelist listsize=3/}</td>
</tr>
</table>
</body>
</html>

+ 325
- 308
src/dede/templets/stepselect_main.htm View File

@@ -1,165 +1,172 @@
{dede:config.pagesize value="30"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<style>
li { float:left; padding-right:8px; line-height:24px; }
.abt { width:90%; border:1px #ffffff solid}
#edsta {
position:absolute;
top:73px; left:111px;
width: 278px; height: 199px;
background-color: #F9FCEF;
border: 1px solid #dedede;
display:none;
padding:3px;
}
#edsta div { margin:5px; }
</style>
<SCRIPT LANGUAGE="JavaScript" src="../static/js/dedeajax2.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var loadhtml = "<center><img src='../static/loadinglit.gif' style='padding:30px' /></center>";
function updateItem(aid)
{
var upenumf = document.getElementById('upenumf');
upenumf.ename.value = $DE('ename'+aid).value;
upenumf.disorder.value = $DE('disorder'+aid).value;
upenumf.aid.value = aid;
upenumf.submit();
}
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>联动枚举管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
li {
float: left;
padding-right: 8px;
line-height: 24px;
}
function GetSelType()
{
var selvalue = $DE('egroup1').options[$DE('egroup1').selectedIndex].value;
return selvalue;
}
.abt {
width: 90%;
border: 1px #ffffff solid
}
function AddType()
{
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=addnew',true,true,'','系统错误,无法获取数据!',loadhtml);
}
#edsta {
position: absolute;
top: 73px;
left: 111px;
width: 278px;
height: 199px;
background-color: #F9FCEF;
border: 1px solid #dedede;
display: none;
padding: 3px;
}
function AddEnum()
{
var id = GetSelType();
if(id==0) {
alert("必须选择一个类别!");
return false;
}
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=addenum&id='+id,true,true,'','系统错误,无法获取数据!',loadhtml);
}
#edsta div {
margin: 5px;
}
.maintable {
width: 98%!important;
}
</style>
<SCRIPT LANGUAGE="JavaScript" src="../static/js/dedeajax2.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var loadhtml = "<center><img src='../static/loadinglit.gif' style='padding:30px' /></center>";
function updateItem(aid) {
var upenumf = document.getElementById('upenumf');
upenumf.ename.value = $DE('ename' + aid).value;
upenumf.disorder.value = $DE('disorder' + aid).value;
upenumf.aid.value = aid;
upenumf.submit();
}
function EditType()
{
var id = GetSelType();
if(id==0) {
alert("必须选择一个类别!");
return false;
}
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=edit&id='+id,true,true,'','系统错误,无法获取数据!',loadhtml);
}
function GetSelType() {
var selvalue = $DE('egroup1').options[$DE('egroup1').selectedIndex].value;
return selvalue;
}
function ViewType()
{
var id = GetSelType();
if(id==0) {
alert("必须选择一个类别!");
return false;
}
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=view&id='+id,true,true,'','系统错误,无法获取数据!',loadhtml);
}
function AddType() {
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=addnew', true, true, '', '系统错误,无法获取数据!', loadhtml);
}
function DelType()
{
if(window.confirm("你确实要删除这个分类吗?")==false) return false;
var id = GetSelType();
if(id==0) {
alert("必须选择一个类别!");
return false;
}
location.href='stepselect_main.php?action=del&id='+id;
}
function AddEnum() {
var id = GetSelType();
if (id == 0) {
alert("必须选择一个类别!");
return false;
}
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=addenum&id=' + id, true, true, '', '系统错误,无法获取数据!', loadhtml);
}
function CloseTWin()
{
$DE('edsta').innerHTML = loadhtml;
$DE('edsta').style.display='none';
}
function EditType() {
var id = GetSelType();
if (id == 0) {
alert("必须选择一个类别!");
return false;
}
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=edit&id=' + id, true, true, '', '系统错误,无法获取数据!', loadhtml);
}
function ChangePage(sobj)
{
var ntxt = sobj.options[sobj.selectedIndex].text;
if(sobj.options[sobj.selectedIndex].value==0)
{
location.href='stepselect_main.php';
}
else
{
var ns = ntxt.split('|');
location.href='stepselect_main.php?egroup='+ns[0];
}
}
function ViewType() {
var id = GetSelType();
if (id == 0) {
alert("必须选择一个类别!");
return false;
}
var myajax = new DedeAjax($DE('edsta'));
$DE('edsta').style.display = 'block';
myajax.SendGet('stepselect_main.php?action=view&id=' + id, true, true, '', '系统错误,无法获取数据!', loadhtml);
}
function TogSel()
{
var ems = document.getElementsByName('ids[]');
for(i=0; i < ems.length; i++)
{
if(ems[i].checked==false) ems[i].checked=true;
else ems[i].checked=false;
}
}
function DelType() {
if (window.confirm("你确实要删除这个分类吗?") == false) return false;
var id = GetSelType();
if (id == 0) {
alert("必须选择一个类别!");
return false;
}
location.href = 'stepselect_main.php?action=del&id=' + id;
}
function DelSel()
{
if(window.confirm("你确实要删除这些分类吗?")) document.form1.submit();
}
function CloseTWin() {
$DE('edsta').innerHTML = loadhtml;
$DE('edsta').style.display = 'none';
}
function ChangePage2(sobj)
{
var nv = sobj.options[sobj.selectedIndex].value;
if(sobj.options[sobj.selectedIndex].value==0)
{
location.href='stepselect_main.php?egroup=<?php echo $egroup; ?>';
}
else
{
location.href='stepselect_main.php?egroup=<?php echo $egroup; ?>&topvalue='+nv;
}
}
function ChangePage(sobj) {
var ntxt = sobj.options[sobj.selectedIndex].text;
if (sobj.options[sobj.selectedIndex].value == 0) {
location.href = 'stepselect_main.php';
}
else {
var ns = ntxt.split('|');
location.href = 'stepselect_main.php?egroup=' + ns[0];
}
}
function TogSel() {
var ems = document.getElementsByName('ids[]');
for (i = 0; i < ems.length; i++) {
if (ems[i].checked == false) ems[i].checked = true;
else ems[i].checked = false;
}
}
function DelSel() {
if (window.confirm("你确实要删除这些分类吗?")) document.form1.submit();
}
//-->
</SCRIPT>
function ChangePage2(sobj) {
var nv = sobj.options[sobj.selectedIndex].value;
if (sobj.options[sobj.selectedIndex].value == 0) {
location.href = 'stepselect_main.php?egroup=<?php echo $egroup; ?>';
}
else {
location.href = 'stepselect_main.php?egroup=<?php echo $egroup; ?>&topvalue=' + nv;
}
}
</SCRIPT>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div id='edsta'><center><img src='../static/loadinglit.gif' /></center></div>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" style="margin-bottom:6px">
<tr>
<td height="28" background="images/wbg.gif" colspan="6" style="padding-left:10px;">
<div style="float:left"><b>·联动枚举组管理</b></div>
<div style="float:right"><a href='stepselect_main.php?action=upallcache'>[<u>更新所有枚举缓存</u>]</a>&nbsp;</div>
</td>
</tr>
<tr>
<td height="30" bgcolor="#ffffff" style="padding:6px;"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="85"><strong>请选择组别:</strong></td>
<td width="264">
<select name="egroup1" id="egroup1" style="width:90%;" onChange="ChangePage(this)">
<option value='0'>--所有组--</option>
<?php
<div id='edsta'>
<center><img src='../static/loadinglit.gif' /></center>
</div>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf"
style="margin-bottom:6px" class="table maintable ">
<tr>
<td height="28" background="images/wbg.gif" colspan="6" style="padding-left:10px;">
<div style="float:left"><b>·联动枚举组管理</b></div>
<div style="float:right"><a href='stepselect_main.php?action=upallcache'>[<u>更新所有枚举缓存</u>]</a>&nbsp;
</div>
</td>
</tr>
<tr>
<td height="30" bgcolor="#ffffff" style="padding:6px;">
<table width="800" border="0" cellspacing="0" cellpadding="0" class="table maintable">
<tr>
<td width="85"><strong>请选择组别:</strong></td>
<td width="264">
<select name="egroup1" id="egroup1" style="width:90%;" onChange="ChangePage(this)">
<option value='0'>--所有组--</option>
<?php
$selgroup = '';
foreach($etypes as $arr)
{
@@ -174,23 +181,30 @@ function ChangePage2(sobj)
}
}
?>
</select>
</td>
<td width="350">
<input type="button" name="gedit" id="gedit" value="修改" class="np coolbg" onClick="EditType()" />
<input type="button" name="gdel" id="gdel" value="删除" class="np coolbg" onClick="DelType()" />
<input type="button" name="gview" id="gview" value="预览" class="np coolbg" onClick="ViewType()" />
</td>
<td align="right">
<input type="button" name="addnew" id="addnew" value="新增类别组" class="np coolbg" onClick="AddType()" />
</td>
</tr>
<tr><td colspan='3' height='24' style='color:#333333'><img src='images/help.gif' /> 灰色字的为系统内置枚举,您是不能对它进行删除修改操作的,但可以添加或修改它的元素。</td></tr>
</table>
</td>
</tr>
</table>
<?php
</select>
</td>
<td width="350">
<input type="button" name="gedit" id="gedit" value="修改" class="np coolbg"
onClick="EditType()" />
<input type="button" name="gdel" id="gdel" value="删除" class="np coolbg"
onClick="DelType()" />
<input type="button" name="gview" id="gview" value="预览" class="np coolbg"
onClick="ViewType()" />
</td>
<td align="right">
<input type="button" name="addnew" id="addnew" value="新增类别组" class="np coolbg"
onClick="AddType()" />
</td>
</tr>
<tr>
<td colspan='3' height='24' style='color:#333333'><img src='images/help.gif' />
灰色字的为系统内置枚举,您是不能对它进行删除修改操作的,但可以添加或修改它的元素。</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if(!empty($egroup))
{
$arr = $dsql->GetOne("SELECT * FROM `#@__stepselect` WHERE egroup='{$egroup}' ");
@@ -210,85 +224,87 @@ if(!empty($egroup))
// 如果添加3级之类
if($topvalue % 500 != 0) $arr['issign'] = 2;
?>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style='margin-bottom:8px;'>
<tr>
<td height="28" background="images/tbg.gif" colspan="8">
<div style="float:left">
&nbsp;·<b><?php echo $selgroup; ?></b>
&gt;
<b>子分类管理</b>
</div>
<div style="float:right">
<?php
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"
style='margin-bottom:8px;' class="table maintable table-bordered">
<tr>
<td height="28" background="images/tbg.gif" colspan="8">
<div style="float:left">
&nbsp;·<b><?php echo $selgroup; ?></b>
&gt;
<b>子分类管理</b>
</div>
<div style="float:right">
<?php
if($egroup=='nativeplace') {
echo "<a href='stepselect_main.php?action=exarea' class='np coolbg'>把默认省市地区表导入</a>&nbsp;";
}
?>
</div>
</td>
</tr>
<tr bgcolor="#ffffff" height='48'>
<td>
<form action='stepselect_main.php' method='post'>
<INPUT TYPE="hidden" NAME="action" value="addenum_save" />
<INPUT TYPE="hidden" NAME="issign" value="<?php echo $arr['issign']; ?>" />
<INPUT TYPE="hidden" NAME="egroup" value="<?php echo $arr['egroup']; ?>" />
<div style='float:left;'>
<b>&nbsp;隶属分类:</b>
<select name='topvalue' style='width:130px' onChange="ChangePage2(this)">
<option value='0'><?php echo $selgroup; ?>...</option>
<?php echo $options; ?>
</select>
</div>
<div style='float:left;'>
<b>&nbsp;分类名称:</b><INPUT TYPE="text" NAME="ename" class="iptxt" style='width:350px' />
</div>
<div style='float:left;padding-left:6px'>
<INPUT TYPE="submit" name='sb2' value="增加分类" class="np coolbg"/>
</div>
<div style='clear:both;color:#333333;line-height:24px;'>
&nbsp;<img src='images/help.gif' /> 如果没选择隶属分类则表示增加的是顶级分类,用半角逗号","分开可以一次增加多个分类。
</div>
</form>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="8">
<div style="float:left">
&nbsp;·<a href='stepselect_main.php'><b><u>枚举组列表</u></b></a>
&gt; <a href='stepselect_main.php?egroup=<?php echo $egroup; ?>'><b><u><?php echo $selgroup; ?></u></b></a>
&gt; <b>子分类列表</b>
</div>
<div style="float:right"></div>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="6%">选择</td>
<td width="6%">编号</td>
<td width="20%">枚举名</td>
<td width="20%">类别组名</td>
<td width="10%">枚举类型</td>
<td width="10%">枚举值</td>
<td width="10%">组内排序</td>
<td width="18%">操作</td>
</tr>
<form action='stepselect_main.php' name='upenumf' method='post' id="upenumf">
<input type='hidden' name='action' value='upenum' />
<INPUT TYPE="hidden" NAME="aid" value="" />
<input type='hidden' name='ename' value='' />
<input type='hidden' name='disorder' value='' />
</form>
<form name='form1' action='stepselect_main.php' method='post'>
<input type='hidden' name='action' value='delenumAllSel' />
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='ids[]' value='{dede:field.id /}' class='np' /></td>
<td>{dede:field.id /}</td>
<td>
<?php
</div>
</td>
</tr>
<tr bgcolor="#ffffff" height='48'>
<td>
<form action='stepselect_main.php' method='post'>
<INPUT TYPE="hidden" NAME="action" value="addenum_save" />
<INPUT TYPE="hidden" NAME="issign" value="<?php echo $arr['issign']; ?>" />
<INPUT TYPE="hidden" NAME="egroup" value="<?php echo $arr['egroup']; ?>" />
<div style='float:left;'>
<b>&nbsp;隶属分类:</b>
<select name='topvalue' style='width:130px' onChange="ChangePage2(this)">
<option value='0'><?php echo $selgroup; ?>...</option>
<?php echo $options; ?>
</select>
</div>
<div style='float:left;'>
<b>&nbsp;分类名称:</b><INPUT TYPE="text" NAME="ename" class="iptxt" style='width:350px' />
</div>
<div style='float:left;padding-left:6px'>
<INPUT TYPE="submit" name='sb2' value="增加分类" class="np coolbg" />
</div>
<div style='clear:both;color:#333333;line-height:24px;'>
&nbsp;<img src='images/help.gif' /> 如果没选择隶属分类则表示增加的是顶级分类,用半角逗号","分开可以一次增加多个分类。
</div>
</form>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered">
<tr>
<td height="28" background="images/tbg.gif" colspan="8">
<div style="float:left">
&nbsp;·<a href='stepselect_main.php'><b><u>枚举组列表</u></b></a>
&gt; <a
href='stepselect_main.php?egroup=<?php echo $egroup; ?>'><b><u><?php echo $selgroup; ?></u></b></a>
&gt; <b>子分类列表</b>
</div>
<div style="float:right"></div>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="6%">选择</td>
<td width="6%">编号</td>
<td width="20%">枚举名</td>
<td width="20%">类别组名</td>
<td width="10%">枚举类型</td>
<td width="10%">枚举值</td>
<td width="10%">组内排序</td>
<td width="18%">操作</td>
</tr>
<form action='stepselect_main.php' name='upenumf' method='post' id="upenumf">
<input type='hidden' name='action' value='upenum' />
<INPUT TYPE="hidden" NAME="aid" value="" />
<input type='hidden' name='ename' value='' />
<input type='hidden' name='disorder' value='' />
</form>
<form name='form1' action='stepselect_main.php' method='post'>
<input type='hidden' name='action' value='delenumAllSel' />
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='ids[]' value='{dede:field.id /}' class='np' /></td>
<td>{dede:field.id /}</td>
<td>
<?php
if(!preg_match("#\.#", $fields['evalue']))
{
if($fields['evalue']>500 && $fields['evalue']%500 != 0) $fields['ename'] = " └─".$fields['ename'];
@@ -296,11 +312,11 @@ if(!empty($egroup))
$fields['ename'] = " └───".$fields['ename'];
}
?>
<input type='text' id='ename{dede:field.id/}' value='{dede:field.ename /}' class='abt' />
</td>
<td>{dede:field.egroup /}</td>
<td>
<?php
<input type='text' id='ename{dede:field.id/}' value='{dede:field.ename /}' class='abt' />
</td>
<td>{dede:field.egroup /}</td>
<td>
<?php
if(!preg_match("#\.#", $fields['evalue']))
{
if($fields['evalue']>500 && $fields['evalue']%500 != 0) echo '二级选择';
@@ -309,71 +325,71 @@ if(!empty($egroup))
echo "三级选择";
}
?></td>
<td>{dede:field.evalue /}</td>
<td><input type='text' id='disorder{dede:field.id/}' value='{dede:field.disorder /}' class='abt' /></td>
<td>
<?php
<td>{dede:field.evalue /}</td>
<td><input type='text' id='disorder{dede:field.id/}' value='{dede:field.disorder /}' class='abt' /></td>
<td>
<?php
if(!empty($egroup))
{
?>
<a href='javascript:updateItem({dede:field.id/});'>[更新]</a>
<a href='stepselect_main.php?action=delenum&id={dede:field.id/}'>[删除]</a>
<?php
<a href='javascript:updateItem({dede:field.id/});'>[更新]</a>
<a href='stepselect_main.php?action=delenum&id={dede:field.id/}'>[删除]</a>
<?php
}
else
{
echo "<a href='stepselect_main.php?egroup={$fields['egroup']}'><u>".$egroups[$fields['egroup']]."</u></a>";
}
?>
</td>
</tr>
{/dede:datalist}
</form>
<tr height="24">
<td colspan="8" bgcolor="#ffffff">
&nbsp;
<a href='javascript:TogSel();' class='np coolbg'>全选/反选</a>
&nbsp;
<a href='javascript:DelSel();' class='np coolbg'>删除所选</a>
</td>
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
<?php
</td>
</tr>
{/dede:datalist}
</form>
<tr height="24">
<td colspan="8" bgcolor="#ffffff">
&nbsp;
<a href='javascript:TogSel();' class='np coolbg'>全选/反选</a>
&nbsp;
<a href='javascript:DelSel();' class='np coolbg'>删除所选</a>
</td>
</tr>
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
<?php
}
else
{
?>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="8">
<div style="float:left">
&nbsp;·<a href='stepselect_main.php'><b><u>枚举组列表</u></b></a>
</div>
<div style="float:right"></div>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="6%">选择</td>
<td width="6%">编号</td>
<td width="28%">组类别名</td>
<td width="10%">级数</td>
<td width="10%">系统</td>
<td width="15%">缓存组名</td>
<td>操作</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='ids[]' value='{dede:field.id /}' class='np' /></td>
<td> {dede:field.id /} </td>
<td> <a href='stepselect_main.php?egroup={dede:field.egroup /}'><u>{dede:field.itemname /}</u></a> </td>
<td>
<?php
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered">
<tr>
<td height="28" background="images/tbg.gif" colspan="8">
<div style="float:left">
&nbsp;·<a href='stepselect_main.php'><b><u>枚举组列表</u></b></a>
</div>
<div style="float:right"></div>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="6%">选择</td>
<td width="6%">编号</td>
<td width="28%">组类别名</td>
<td width="10%">级数</td>
<td width="10%">系统</td>
<td width="15%">缓存组名</td>
<td>操作</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='ids[]' value='{dede:field.id /}' class='np' /></td>
<td> {dede:field.id /} </td>
<td> <a href='stepselect_main.php?egroup={dede:field.egroup /}'><u>{dede:field.itemname /}</u></a> </td>
<td>
<?php
switch ($fields['issign']) {
case 0:
echo "一级选择";
@@ -386,23 +402,24 @@ else
break;
}
?>
</td>
</td>
<td> {dede:field.issystem function="@me==1 ? '是' : '否'" /} </td>
<td>{dede:field.egroup /}</td>
<td>
<a href='stepselect_main.php?action=upallcache&egroup={dede:field.egroup /}'>[更新缓存]</a>
<a href='stepselect_main.php?egroup={dede:field.egroup /}'>[查看子分类]</a>
</td>
</tr>
<td>{dede:field.egroup /}</td>
<td>
<a href='stepselect_main.php?action=upallcache&egroup={dede:field.egroup /}'>[更新缓存]</a>
<a href='stepselect_main.php?egroup={dede:field.egroup /}'>[查看子分类]</a>
</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
<?php
<tr align="center" bgcolor="#F9FCEF" height="28">
<td colspan="8">
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
<?php
}
?>
</body>
</html>

+ 1
- 1
src/dede/templets/sys_passport.htm View File

@@ -37,7 +37,7 @@
</td>
</tr>
<tr align="center" height="25" bgcolor="#FFFFFF">
<td> 登通行证网址: </td>
<td> 登通行证网址: </td>
<td align="left">
<input type='text' name='edit___cfg_pp_login' id='edit___cfg_pp_login' style='width:80%' value='<?php echo $cfg_pp_login?>'></td>
</tr>


+ 2
- 2
src/dede/templets/sys_safe.htm View File

@@ -40,7 +40,7 @@ function delIterm(obj)
<td width="74%"><input name="gdopen[]" type="checkbox" id="gdopen1" value="1" <?php echo (preg_match("/1/",$safe_gdopen))? "checked" : ""; ?>>
<label for='gdopen1'>注册会员 </label>
<input name="gdopen[]" type="checkbox" id="gdopen2" value="2" <?php echo (preg_match("/2/",$safe_gdopen))? "checked" : ""; ?>>
<label for='gdopen2'>前台登 </label>
<label for='gdopen2'>前台登 </label>
<input name="gdopen[]" type="checkbox" id="gdopen3" value="3" <?php echo (preg_match("/3/",$safe_gdopen))? "checked" : ""; ?>>
<label for='gdopen3'>会员投稿 </label>
<input name="gdopen[]" type="checkbox" id="gdopen4" value="4" <?php echo (preg_match("/4/",$safe_gdopen))? "checked" : ""; ?>>
@@ -48,7 +48,7 @@ function delIterm(obj)
<input name="gdopen[]" type="checkbox" id="gdopen5" value="5" <?php echo (preg_match("/5/",$safe_gdopen))? "checked" : ""; ?>>
<label for='gdopen5'>会员短消息 </label>
<input name="gdopen[]" type="checkbox" id="gdopen6" value="6" <?php echo (preg_match("/6/",$safe_gdopen))? "checked" : ""; ?>>
<label for='gdopen6'>后台登 </label>
<label for='gdopen6'>后台登 </label>
<input name="gdopen[]" type="checkbox" id="gdopen7" value="7" <?php echo (preg_match("/7/",$safe_gdopen))? "checked" : ""; ?>>
<label for='gdopen7'>问答 </label></td>
</tr>


+ 13
- 6
src/dede/templets/tags_main.htm View File

@@ -5,6 +5,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>tags管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function checkall(form, prefix, checkall) {
@@ -23,16 +25,21 @@
location = "tags_main.php?action=delete&ids=" + tid;
}
</script>
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitle mt-3">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;"><a href="tags_main.php">Tags标签管理</a></div>
</div>
<div class="main">
<form name='form1' action="tags_main.php?action=fetch" method="post" style="margin-bottom:6px;">
<table width="98%" border="0" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<table width="98%" border="0" cellspacing="1" align="center" class="table maintable" style="background:#CFCFCF;">
<tr>
<td height="20" align="left" bgcolor="#F0FBBD" background="images/wbg.gif"
style="padding-left:10px;"><strong>提取TAG</strong></td>
@@ -50,11 +57,11 @@
</tr>
</table>
</form>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle"
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered"
style="background:#CFCFCF;">
<tr>
<td height="20" colspan="7" bgcolor="#F0FBBD" background="images/wbg.gif">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<td height="20" colspan="7" bgcolor="#F0F0F0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-borderless">
<tr>
<td align="left" style="padding-left:10px;"><strong>TAG维护</strong></td>
<form name='form2' action="tags_main.php">
@@ -117,7 +124,7 @@
</td>
<td>
<a href='javascript:UpdateOne(<?php echo $fields['id']; ?>);'>[更新]</a>
<a href='makehtml_taglist.php?tid=<?php echo $fields['id'];?>'>[生成HTML]</a>
<a href='javascript:DeleteOne(<?php echo $fields['id']; ?>);'>[删]</a>
</td>


+ 92
- 72
src/dede/templets/templets_one.htm View File

@@ -1,25 +1,43 @@
{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">
<!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 href='css/base.css' rel='stylesheet' type='text/css'>
<style>
ul { padding:0px; margin:0px;}
li { float:left; padding-right:8px; line-height:24px; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>单独页面管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href='css/base.css' rel='stylesheet' type='text/css'>
<style>
ul {
padding: 0px;
margin: 0px;
}
li {
float: left;
padding-right: 8px;
line-height: 24px;
}
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:6px">
<tr>
<td background="images/wbg.gif" colspan="6" style="padding-left:10px;">
<form action='templets_one.php' name='sss'>
<ul>
<li>关键字:</li>
<li><input type='text' name='keyword' value="<?php if(!empty($keyword)) $keyword = ''; ?>" style='width:160px' /></li>
<li>标识:</li>
<li><?php
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"
style="margin-bottom:6px" class="table maintable table-bordered mt-3">
<tr>
<td bgcolor="#F2F2F2" colspan="6" style="padding-left:10px;">
<form action='templets_one.php' name='sss'>
<ul>
<li>关键字:</li>
<li><input type='text' name='keyword' value="<?php if(!empty($keyword)) $keyword = ''; ?>"
style='width:160px' /></li>
<li>标识:</li>
<li><?php
$likeid = (!isset($likeid) ? '' : $likeid);
echo "<select name='likeid' id='likeid'>\r\n";
$dsql->Execute("s","Select likeid From `#@__sgpage` group by likeid ");
@@ -31,62 +49,64 @@ li { float:left; padding-right:8px; line-height:24px; }
}
echo "</select>\r\n";
?></li>
<li><input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np" /></li>
</ul>
</form>
</td>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf">
<tr>
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
<div style="float:left">
<b>◆单独页面管理</b>
</div>
<div style="float:right">
[<a href="templets_one_add.php"><u>增加一个页面</u></a>]
&nbsp;[<a href="#" onClick="document.form1.submit();"><u>更新选中页面</u></a>]
&nbsp;[<a href="templets_one_edit.php?dopost=mkall"><u>更新所有页面</u></a>]
&nbsp;&nbsp;&nbsp;&nbsp;
</div>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="6%">选择</td>
<td width="6%">编号</td>
<td width="30%">页面名称</td>
<td width="11%">需编译</td>
<td width="10%">标识</td>
<td width="12%">修改时间</td>
<td width="21%">管理</td>
</tr>
<form name='form1' action='templets_one_edit.php'>
<input type='hidden' name='dopost' value='mksel' />
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='ids[]' value='{dede:field.aid /}' class='np' ></td>
<td>{dede:field.aid /}</td>
<td><a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=edit'>{dede:field.title /}</a></td>
<td>{dede:field.ismake function='GetIsMake(@me)'/}</td>
<td>{dede:field.likeid /}</td>
<td>{dede:field.uptime function='GetDateMk(@me)'/}</td>
<td>
<a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
<a href="templets_one_edit.php?aid={dede:field.aid /}&dopost=view" target='_blank'>[预览]</a>
&nbsp;|&nbsp;
<a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
</form>
<tr align="center" bgcolor="#F9FCEF" height="24">
<td colspan="7">
{dede:pagelist listsize=6/}
</td>
</tr>
<li><input name="imageField" type="image" src="images/button_search.gif" width="60" height="22"
border="0" class="np" /></li>
</ul>
</form>
</td>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered maintable">
<tr>
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
<div style="float:left">
<b>◆单独页面管理</b>
</div>
<div style="float:right">
[<a href="templets_one_add.php"><u>增加一个页面</u></a>]
&nbsp;[<a href="#" onClick="document.form1.submit();"><u>更新选中页面</u></a>]
&nbsp;[<a href="templets_one_edit.php?dopost=mkall"><u>更新所有页面</u></a>]
&nbsp;&nbsp;&nbsp;&nbsp;
</div>
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="6%">选择</td>
<td width="6%">编号</td>
<td width="30%">页面名称</td>
<td width="11%">需编译</td>
<td width="10%">标识</td>
<td width="12%">修改时间</td>
<td width="21%">管理</td>
</tr>
<form name='form1' action='templets_one_edit.php'>
<input type='hidden' name='dopost' value='mksel' />
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><input type='checkbox' name='ids[]' value='{dede:field.aid /}' class='np'></td>
<td>{dede:field.aid /}</td>
<td><a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=edit'>{dede:field.title /}</a></td>
<td>{dede:field.ismake function='GetIsMake(@me)'/}</td>
<td>{dede:field.likeid /}</td>
<td>{dede:field.uptime function='GetDateMk(@me)'/}</td>
<td>
<a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
<a href="templets_one_edit.php?aid={dede:field.aid /}&dopost=view" target='_blank'>[预览]</a>
&nbsp;|&nbsp;
<a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
</form>
<tr align="center" bgcolor="#F9FCEF" height="24">
<td colspan="7">
{dede:pagelist listsize=6/}
</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
</body>
</html>

+ 50
- 40
src/dede/templets/vote_main.htm View File

@@ -1,54 +1,64 @@
{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">
<!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 href="css/base.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>投票管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet" type="text/css">
<style>
.maintable {
width: 98%!important;
}
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
<b>投票管理</b>&nbsp;[<a href="vote_add.php"><u>增加一组投票</u></a>]
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3">
<tr>
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
<b>投票管理</b>&nbsp;[<a href="vote_add.php"><u>增加一组投票</u></a>]
</td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="24">
<td width="8%">投票ID</td>
<td width="22%">投票名称</td>
<td width="15%">开始时间</td>
<td width="15%">结束时间</td>
<td width="10%">投票总数</td>
<td width="10%">状态</td>
<td width="10%">状态</td>
<td width="20%">管理</td>
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24"
onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.aid /}</td>
<td>
<a href='{dede:global name="cfg_phpurl" /}/vote.php?aid={dede:field.aid/}&dopost=view' target='_blank'>
<u>{dede:field.votename /}</u>
</a>
</td>
<td>{dede:field.starttime function="GetDateMk(@me)" /}</td>
<td>{dede:field.endtime function="GetDateMk(@me)" /}</td>
<td>{dede:field.totalcount /}</td>
<td><?php if($fields['isenable'] == 1){echo "<font color=red>未启用</font>";}else{echo "<font color=green>启用</font>";} ?></td>
<td>
<a href='vote_getcode.php?aid={dede:field.aid /}'>[获取代码]</a>
<a href='vote_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
&nbsp;
<a href='vote_edit.php?aid={dede:field.aid /}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="24">
</tr>
{dede:datalist}
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';"
onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td>{dede:field.aid /}</td>
<td>
<a href='{dede:global name="cfg_phpurl" /}/vote.php?aid={dede:field.aid/}&dopost=view' target='_blank'>
<u>{dede:field.votename /}</u>
</a>
</td>
<td>{dede:field.starttime function="GetDateMk(@me)" /}</td>
<td>{dede:field.endtime function="GetDateMk(@me)" /}</td>
<td>{dede:field.totalcount /}</td>
<td>
<?php if($fields['isenable'] == 1){echo "<font color=red>未启用</font>";}else{echo "<font color=green>启用</font>";} ?>
</td>
<td>
<a href='vote_getcode.php?aid={dede:field.aid /}'>[获取代码]</a>
<a href='vote_edit.php?aid={dede:field.aid /}&dopost=edit'>[更改]</a>
&nbsp;
<a href='vote_edit.php?aid={dede:field.aid /}&dopost=delete'>[删除]</a>
</td>
</tr>
{/dede:datalist}
<tr align="center" bgcolor="#F9FCEF" height="24">
<td colspan="7">{dede:pagelist listsize='6'/}</td>
</tr>
</table>
</td>
</tr>
</table>
</tr>
</table>
</body>
</html>

Loading…
Cancel
Save