Browse Source

移除无效模块文件

tags/6.0.0
tianya 3 years ago
parent
commit
e7a824f4ba
14 changed files with 0 additions and 1779 deletions
  1. +0
    -148
      src/dede/group_edit.php
  2. +0
    -88
      src/dede/group_guestbook.php
  3. +0
    -121
      src/dede/group_main.php
  4. +0
    -86
      src/dede/group_notice.php
  5. +0
    -142
      src/dede/group_store.php
  6. +0
    -157
      src/dede/group_threads.php
  7. +0
    -173
      src/dede/group_user.php
  8. +0
    -144
      src/dede/templets/group_edit.htm
  9. +0
    -109
      src/dede/templets/group_guestbook.htm
  10. +0
    -136
      src/dede/templets/group_main.htm
  11. +0
    -109
      src/dede/templets/group_notice.htm
  12. +0
    -169
      src/dede/templets/group_store.htm
  13. +0
    -99
      src/dede/templets/group_threads.htm
  14. +0
    -98
      src/dede/templets/group_user.htm

+ 0
- 148
src/dede/group_edit.php View File

@@ -1,148 +0,0 @@
<?php
/**
* 编辑圈子
*
* @version $Id: group_edit.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/oxwindow.class.php");
require_once(DEDEADMIN."/inc/inc_archives_functions.php");
CheckPurview('group_Edit');
$id = preg_replace("#[^0-9]#", "", $id);
$action = isset($action) ? trim($action) : '';
if($id < 1)
{
ShowMsg("含有非法操作!.","-1");
exit();
}
//取出圈子信息
$row = $db->GetOne("SELECT * FROM #@__groups WHERE groupid='{$id}'");
$groupsname = $row['groupname'];
$groupstoreid = $row['storeid'];
$groupishidden = $row['ishidden'];
$groupissystem = $row['issystem'];
$groupcreater = $row['creater'];
$groupimg = $row['groupimg'];
$ismaster = $row['ismaster'];
$groupdes = dede_htmlspecialchars($row['des']);
$groupisindex = $row['isindex'];
$groupsmalltype = $row['smalltype'];
//编译小分类成数组
$smalltypes = $row['smalltype'];
$lists = array();
$smalltypes = @explode(",", $smalltypes);
foreach($smalltypes as $k)
{
$kk = @explode("|",$k);
@array_push($lists,$kk[1]);
}
//====保存圈子信息=====//
if($action=="save")
{
$groupname = cn_substr($groupname,75);
$storeid = preg_replace("#[^0-9]#", "", $store);
$issystem = preg_replace("#[^0-1]#", "", $issystem);
$ishidden = preg_replace("#[^0-1]#", "", $ishidden);
if(!isset($isindex))
{
$isindex = $groupisindex;
}
$isindex = preg_replace("#[^0-1]#", "", $isindex);
$creater = cn_substr($creater, 15);
$master = cn_substr($master, 70);
$description = cn_substr($des, 100);
$row = $db->GetOne("SELECT tops FROM #@__store_groups WHERE storeid='{$storeid}'");
if($row['tops'] >0 )
{
$rootstoreid = $row['tops'];
}
else
{
$rootstoreid = $storeid;
}
//处理上传的缩略图
if(empty($ddisremote))
{
$ddisremote = 0;
}
$litpic = GetDDImage('litpic', $picname, $ddisremote);
if(empty($litpic))
{
$litpic = $groupimg;
}
if($isindex < 1)
{
$isindex = 0;
}
$inQuery = "UPDATE #@__groups SET groupname='".$groupname."',des='".$description."',groupimg='".$litpic."',rootstoreid='{$rootstoreid}',storeid='{$storeid}',creater='".$creater."',ismaster='".$master."',issystem='{$issystem}',ishidden='{$ishidden}',isindex='".$isindex."' WHERE groupid='{$id}'";
if(!$db->ExecuteNoneQuery($inQuery))
{
ShowMsg("把数据更新到数据库groups表时出错,请检查!","-1");
exit();
}
else
{
ShowMsg("成功更改圈子设置!","-1");
exit();
}
}
//更新数据完毕
if(!$groupimg||empty($groupimg))
{
$groupimg = "img/pview.gif";
}
//类目递归
$db->SetQuery("SELECT * FROM #@__store_groups WHERE tops=0 ORDER BY orders ASC");
$db->Execute(1);
$option = '';
while($rs = $db->GetArray(1))
{
$selected = "";
if($rs['storeid']==$groupstoreid)
{
$selected = "selected='selected'";
}
$option .= "<option value='".$rs['storeid']."' ".$selected.">".$rs['storename']."</option>\n";
$v = $rs['storeid'];
$db->SetQuery("SELECT * FROM #@__store_groups WHERE tops='{$v}' ORDER BY orders ASC");
$db->Execute(2);
while($rs = $db->GetArray(2))
{
$selected = "";
if($rs['storeid']==$groupstoreid)
{
$selected = "selected='selected'";
}
$option .= "<option value='".$rs['storeid']."' ".$selected.">--".$rs['storename']."</option>\n";
}
}
$db->SetQuery("SELECT * FROM #@__group_smalltypes ORDER BY disorder ASC");
$db->Execute();
$smalltypes_option = '';
while($rs = $db->GetArray())
{
$selected = "";
if(in_array($rs['id'],$lists))
{
$selected = "selected='selected'";
}
$smalltypes_option .= "<option value='".$rs['name']."|".$rs['id']."' ".$selected.">".$rs['name']."</option>\n";
}
require_once(DEDEADMIN."/templets/group_edit.htm");
?>

+ 0
- 88
src/dede/group_guestbook.php View File

@@ -1,88 +0,0 @@
<?php
/**圈子留言管理
*
* @version $Id: group_guestbook.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC.'/datalistcp.class.php');
CheckPurview('group_Edit');
$gid = isset($gid) && is_numeric($gid) ? $gid : 0;
$id = isset($id) && is_numeric($id) ? $id : 0;
$action = isset($action) ? trim($action) : '';
$keyword = isset($keyword) ? trim($keyword) : '';
$keyword = stripslashes($keyword);
$keyword = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($keyword));
$keyword = addslashes($keyword);
$username = isset($username) ? trim($username) : '';
$username = stripslashes($username);
$username = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($username));
$username = addslashes($username);
if($gid < 1)
{
ShowMsg("含有非法操作!.","-1");
exit();
}
if($action=="del")
{
if($id > 0)
{
$db->ExecuteNoneQuery("DELETE FROM #@__group_guestbook WHERE bid='$id'");
}
}
else if($action=="save")
{
if($id > 0)
{
$row = $db->GetOne("SELECT * FROM #@__group_guestbook WHERE bid='$id'");
if(empty($message))
{
$message = $row['message'];
}
if(empty($title))
{
$title = $row['title'];
}
$db->ExecuteNoneQuery("UPDATE #@__group_guestbook SET message='".$message."',title='".$title."' WHERE bid='$id'");
}
}
else if($action=="edit")
{
$row = $db->GetOne("SELECT * FROM #@__group_guestbook WHERE bid='$id'");
$title = $row['title'];
$message = $row['message'];
}
//列表加载模板
$wheresql = "WHERE gid='{$gid}'";
if(!empty($keyword))
{
$wheresql .= " AND (title like '%".$keyword."%' OR message like '%".$keyword."%')";
}
if(!empty($username))
{
$wheresql .= " AND uname like '%".$username."%'";
}
$sql = "SELECT * FROM #@__group_guestbook $wheresql ORDER BY stime DESC";
$dl = new DataListCP();
$dl->pageSize = 20;
$dl->SetParameter("keyword",$keyword);
$dl->SetParameter("username",$username);
$dl->SetParameter("gid",$gid);
//这两句的顺序不能更换
$dl->SetTemplate(DEDEADMIN."/templets/group_guestbook.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL
$dl->Display(); //显示
?>

+ 0
- 121
src/dede/group_main.php View File

@@ -1,121 +0,0 @@
<?php
/**
* 圈子列表
*
* @version $Id: group_main.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
CheckPurview('group_Main');
require_once(DEDEINC.'/datalistcp.class.php');
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$id = isset($id) && is_numeric($id) ? $id : 0;
$action = isset($action) ? trim($action) : '';
$keyword = isset($keyword) ? trim($keyword) : '';
$keyword = stripslashes($keyword);
$keyword = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#"," ",trim($keyword));
$keyword = addslashes($keyword);
if($action=="close")
{
if($id > 0)
{
$db->ExecuteNoneQuery("UPDATE #@__groups SET ishidden=1 WHERE groupid='$id'");
}
}
else if($action=="open")
{
if($id > 0)
{
$db->ExecuteNoneQuery("UPDATE #@__groups SET ishidden=0 WHERE groupid='$id'");
}
}
else if($action=="del")
{
if($id > 0)
{
$db->ExecuteNoneQuery("DELETE FROM #@__groups WHERE groupid='$id'");
$db->ExecuteNoneQuery("DELETE FROM #@__group_threads WHERE gid='$id'");
$db->ExecuteNoneQuery("DELETE FROM #@__group_posts WHERE gid='$id'");
}
}
$db->SetQuery("SELECT * FROM #@__store_groups WHERE tops=0 ORDER BY orders ASC");
$db->Execute(1);
$option = '';
while($rs = $db->GetArray(1))
{
$option .= "<option value='".$rs['storeid']."'>".$rs['storename']."</option>\n";
$v = $rs['storeid'];
$db->SetQuery("SELECT * FROM #@__store_groups WHERE tops='{$v}' ORDER BY orders ASC");
$db->Execute(2);
while($rs = $db->GetArray(2))
{
$option .= "<option value='".$rs['storeid']."'>--".$rs['storename']."</option>\n";
}
}
$wheresql = "WHERE groupid>0";
if(!empty($keyword))
{
$wheresql .= " AND (groupname like '%".$keyword."%' OR des like '%".$keyword."%' OR creater like '%".$keyword."%')";
}
if(!isset($username))
{
$username = '';
}
if(!empty($username))
{
$wheresql .= " AND creater like '%".$username."%'";
}
if(!isset($store))
{
$store = -1;
}
if($store > 0)
{
$wheresql .= " AND (storeid='".$store."' OR rootstoreid='".$store."')";
}
$sql = "SELECT * FROM #@__groups $wheresql ORDER BY stime DESC";
$dl = new DataListCP();
$dl->pageSize = 20;
$dl->SetParameter("username",$username);
$dl->SetParameter("store",$store);
$dl->SetParameter("keyword",$keyword);
//这两句的顺序不能更换
$dl->SetTemplate(DEDEADMIN."/templets/group_main.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL
$dl->Display(); //显示
function GetGroupstore($id)
{
global $db;
$row = $db->GetOne("SELECT storename,tops FROM #@__store_groups WHERE storeid='{$id}'");
if(is_array($row))
{
$store = $row['storename'];
if(!$row['tops'])
{
return $row['storename'];
}
else
{
$rs = $db->GetOne("SELECT storename FROM #@__store_groups WHERE storeid='".$row['tops']."'");
return $rs['storename'].">".$store;
}
}
else
{
return false;
}
}
?>

+ 0
- 86
src/dede/group_notice.php View File

@@ -1,86 +0,0 @@
<?php
/**
* 圈子公告管理
*
* @version $Id: group_notice.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC.'/datalistcp.class.php');
CheckPurview('group_Edit');
$id = isset($id) && is_numeric($id) ? $id : 0;
$gid = isset($gid) && is_numeric($gid) ? $gid : 0;
$action = isset($action) ? trim($action) : '';
$keyword = isset($keyword) ? trim($keyword) : '';
$keyword = stripslashes($keyword);
$keyword = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($keyword));
$keyword = addslashes($keyword);
$username = isset($username) ? trim($username) : '';
$username = stripslashes($username);
$username = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($username));
$username = addslashes($username);
if($gid < 1)
{
ShowMsg("含有非法操作!.","-1");
exit();
}
if($action=="del")
{
if($id > 0)
{
$db->ExecuteNoneQuery("DELETE FROM #@__group_notice WHERE id='$id'");
}
}
else if($action=="edit")
{
$row = $db->GetOne("SELECT * FROM #@__group_notice WHERE id='$id'");
$title = $row['title'];
$notice = $row['notice'];
}
else if($action=="save")
{
$row = $db->GetOne("SELECT * FROM #@__group_notice WHERE id='$id'");
if(empty($title))
{
$title = $row['title'];
}
if(empty($notice))
{
$notice = $row['notice'];
}
$db->ExecuteNoneQuery("UPDATE #@__group_notice SET notice='".$notice."',title='".$title."' WHERE id='$id'");
}
unset($row);
//列表加载模板
$wheresql = "WHERE gid='{$gid}'";
if(!empty($keyword))
{
$wheresql .= " AND (title like '%".$keyword."%' OR notice like '%".$keyword."%')";
}
if(!empty($username))
{
$wheresql .= " AND uname like '%".$username."%'";
}
$sql = "SELECT * FROM #@__group_notice $wheresql ORDER BY stime DESC";
$dl = new DataListCP();
$dl->pageSize = 20;
$dl->SetParameter("keyword",$keyword);
$dl->SetParameter("username",$username);
$dl->SetParameter("gid",$gid);
//这两句的顺序不能更换
$dl->SetTemplate(DEDEADMIN."/templets/group_notice.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL
$dl->Display(); //显示
?>

+ 0
- 142
src/dede/group_store.php View File

@@ -1,142 +0,0 @@
<?php
/**
* 圈子分类设置
*
* @version $Id: group_store.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
CheckPurview('group_Store');
require_once(DEDEINC.'/datalistcp.class.php');
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$id = isset($id) && is_numeric($id) ? $id : 0;
$action = isset($action) ? trim($action) : '';
if($action=="add")
{
$storename = cn_substrR(HtmlReplace($storename, 2),20);
$tops = preg_replace("#[^0-9]#","",$tops);
$orders = preg_replace("#[^0-9]#","",$orders);
if($tops < 1)
{
$tops = 0;
}
if($orders < 1)
{
$orders = 0;
}
if(empty($storename))
{
$msg = "错误,分类名不能为空!";
}
else
{
$db->ExecuteNoneQuery("INSERT INTO #@__store_groups(storename,tops,orders) VALUES('".$storename."','".$tops."','".$orders."');");
$msg = "成功添加分类";
}
}
else if($action=="del"&&isset($id))
{
$db->ExecuteNoneQuery("DELETE FROM #@__store_groups WHERE storeid='$id'");
$msg = "删除分类:{$id} !";
}
$btypes = array();
$db->SetQuery("SELECT * FROM #@__store_groups WHERE tops=0");
$db->Execute();
$options = '';
while($rs = $db->GetArray())
{
array_push ($btypes,$rs);
}
foreach($btypes as $k=>$v)
{
$options .= "<option value='".$v['storeid']."'>".$v['storename']."</option>\r\n";
}
/*
function LoadEdit();
*/
if($action=='editload')
{
$row = $db->GetOne("Select * From #@__store_groups where storeid='$catid'");
AjaxHead();
?>
<form name='editform' action='group_store.php' method='get'>
<input type='hidden' name='action' value='editsave' />
<input type='hidden' name='catid' value='<?php echo $catid; ?>' />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="28">栏目名称:</td>
<td width="101"><input name="storename" type="text" id="storename" value="<?php echo $row['storename']; ?>" /></td>
<td width="20" align="right" valign="top"></td>
</tr>
<tr>
<td height="28">隶属栏目:</td>
<td colspan="2">
<select name="tops" id="tops">
<option value="0">顶级栏目</option>
<?php
foreach($btypes as $k=>$v)
{
if($row['tops']==$v['storeid'])
{
echo "<option value='".$v['storeid']."' selected>".$v['storename']."</option>\r\n";
}
else
{
echo "<option value='".$v['storeid']."'>".$v['storename']."</option>\r\n";
}
}
?>
</select>
</td>
</tr>
<tr>
<td height="28">排序级别:</td>
<td colspan="2"><input name="orders" type="text" id="orders" size="5" value="<?php echo $row['orders']; ?>" />
(数值小靠前)</td>
</tr>
<tr>
<td height="43">&nbsp;</td>
<td colspan="2"><input type="submit" name="Submit" value="保存更改" class="np coolbg" style="width:80px"/></td>
</tr>
</table>
</form>
<?php
exit();
}
else if($action=='editsave')
{
$db->ExecuteNoneQuery("UPDATE #@__store_groups SET storename='$storename',tops='$tops',orders='$orders' WHERE storeid='$catid'");
$msg = "成功修改栏目:{$catid} = {$storename} !";
}
else if($action=='uprank')
{
foreach($_POST as $rk=>$rv)
{
if(preg_match('#rank#i',$rk))
{
$catid = str_replace('rank_','',$rk);
$db->ExecuteNoneQuery("UPDATE #@__store_groups SET orders='{$rv}' WHERE storeid='{$catid}'");
}
}
$msg = "成功更改排序 !";
}
$sql = "SELECT storeid,storename,tops,orders FROM #@__store_groups WHERE tops=0 ORDER BY orders ASC";
$dl = new DataListCP();
$dl->pageSize = 20;
//这两句的顺序不能更换
$dl->SetTemplate(DEDEADMIN."/templets/group_store.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL
$dl->Display(); //显示
?>

+ 0
- 157
src/dede/group_threads.php View File

@@ -1,157 +0,0 @@
<?php
/**
* 圈子帖子管理
*
* @version $Id: group_threads.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
CheckPurview('group_Main');
require_once(DEDEINC.'/datalistcp.class.php');
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$id = isset($id) && is_numeric($id) ? $id : 0;
$action = isset($action) ? trim($action) : '';
$keyword = isset($keyword) ? trim($keyword) : '';
$keyword = stripslashes($keyword);
$keyword = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#"," ",trim($keyword));
$keyword = addslashes($keyword);
$username = isset($username) ? trim($username) : '';
$username = stripslashes($username);
$username = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#"," ",trim($username));
$username = addslashes($username);
if(!empty($ids))
{
foreach($ids as $val)
{
$db->ExecuteNoneQuery("DELETE FROM #@__group_threads WHERE tid='{$val}'");
$db->ExecuteNoneQuery("DELETE FROM #@__group_posts WHERE tid='$val'");
}
}
if($action != '' && $id<1)
{
ShowMsg("未定义的操作!","-1");
exit();
}
//Function 主题操作
if($action=="del")
{
if($id > 0)
{
$db->ExecuteNoneQuery("DELETE FROM #@__group_threads WHERE tid='$id'");
$db->ExecuteNoneQuery("DELETE FROM #@__group_posts WHERE tid='$id'");
}
}
else if($action=="digest")
{
//精华
$rs = $db->GetOne("SELECT digest FROM #@__group_threads WHERE tid='".$id."'");
if(is_array($rs))
{
if(!$rs['digest'])
{
$digestval = 1;
}
else
{
$digestval = 0;
}
$db->ExecuteNoneQuery("UPDATE #@__group_threads SET digest='$digestval' WHERE tid='$id'");
}
}
else if($action=="close")
{
//关闭
$rs = $db->GetOne("SELECT closed FROM #@__group_threads WHERE tid='".$id."'");
if(is_array($rs))
{
if(!$rs['closed'])
{
$closeval = 1;
}
else
{
$closeval = 0;
}
$db->ExecuteNoneQuery("UPDATE #@__group_threads SET closed='$closeval' WHERE tid='$id'");
}
}
else if($action=="top")
{
//置顶
$rs = $db->GetOne("SELECT displayorder FROM #@__group_threads WHERE tid='".$id."'");
if(is_array($rs))
{
if(!$rs['displayorder'])
{
$displayval = 1;
}
else
{
$displayval = 0;
}
$db->ExecuteNoneQuery("UPDATE #@__group_threads SET displayorder='$displayval' WHERE tid='$id'");
}
}
if(!isset($orders)) $orders = '';
$wheresql = "WHERE tid>0";
$sqlorders = "ORDER BY displayorder DESC,";
if (isset($gid) && !empty($gid))
{
$wheresql .= " AND gid=$gid";
}
if($orders=="digest")
{
$wheresql .= " AND digest=1";
}
if($orders=="close")
{
$wheresql .= " AND closed=1";
}
if(!empty($keyword))
{
$wheresql .= " AND subject like '%".$keyword."%'";
}
if(!empty($username))
{
$wheresql .= " AND (author like '%".$username."%' OR lastposter like '%".$username."%')";
}
if($orders=="rep")
{
$sqlorders = "ORDER BY replies DESC,";
}
$sqlorders .= " dateline DESC";
$sql = "SELECT * FROM #@__group_threads $wheresql $sqlorders";
$dl = new DataListCP();
$dl->pageSize = 20;
$dl->SetParameter("username", $username);
$dl->SetParameter("orders", $orders);
$dl->SetParameter("keyword", $keyword);
//这两句的顺序不能更换
$dl->SetTemplate(DEDEADMIN."/templets/group_threads.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL
$dl->Display(); //显示
function GetGroupname($id)
{
global $db;
$rs = $db->GetOne("SELECT groupname FROM #@__groups WHERE groupid='".$id."'");
if(is_array($rs)) return $rs['groupname'];
else return_nulls;
}
?>

+ 0
- 173
src/dede/group_user.php View File

@@ -1,173 +0,0 @@
<?php
/**
* 圈子用户管理
*
* @version $Id: group_user.php 1 15:34 2011-1-21 tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC.'/datalistcp.class.php');
CheckPurview('group_Edit');
$gid = isset($gid) && is_numeric($gid) ? $gid : 0;
$id = isset($id) && is_numeric($id) ? $id : 0;
$action = isset($action) ? trim($action) : '';
$username = isset($username) ? trim($username) : '';
$username = stripslashes($username);
$username = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($username));
$username = addslashes($username);
if($gid < 1)
{
ShowMsg("含有非法操作!.","-1");
exit();
}
$row = $db->GetOne("SELECT ismaster,uid FROM #@__groups WHERE groupid='{$gid}'");
$ismaster = $row['ismaster'];
$ismasterid = $row['uid'];
if($action=="del")
{
if($ismasterid == $id)
{
ShowMsg("圈主不能脱离群关系!","-1");
exit();
}
$row = $db->GetOne("SELECT username FROM #@__group_user WHERE uid='$id' AND gid='$gid'");
if(is_array($row))
{
$username = $row['username'];
$master = explode(",",$ismaster);
if(in_array($username,$master))
{
//如果会员存管理员字段将移出
$k = array_search($username,$master);
unset($master[$k]);
}
$master = array_filter($master, "filter");
$ismaster = implode(",",$master);
$db->ExecuteNoneQuery("UPDATE #@__groups SET ismaster='{$ismaster}' WHERE groupid='{$gid}'");
}
if($id > 0)
{
$db->ExecuteNoneQuery("DELETE FROM #@__group_user WHERE uid='$id' AND gid='$gid'");
}
ShowMsg("已将该会员移出本群!.","-1");
exit();
}
else if($action=="admin")
{
if($ismasterid == $id)
{
ShowMsg("圈主应同时有管理权!","-1");
exit();
}
$row = $db->GetOne("SELECT username FROM #@__group_user WHERE uid='$id' AND gid='$gid'");
if(is_array($row))
{
$username = $row['username'];
$master = explode(",",$ismaster);
if(in_array($username,$master))
{
//如果会员存管理员字段将移出
$k = array_search($username,$master);
unset($master[$k]);
$msg = "已将 {$username},设为普通会员!";
}
else
{
//否则加入到管理员数组
array_push($master,$username);
$msg = "已将 {$username},设为管理员!";
}
$master = array_filter($master, "filter");
$ismaster = implode(",",$master);
$db->ExecuteNoneQuery("UPDATE #@__groups SET ismaster='{$ismaster}' WHERE groupid='{$gid}'");
}
ShowMsg("{$msg}","-1");
exit();
}
else if($action=="add")
{
$uname = cn_substr($uname,15);
if(empty($uname))
{
ShowMsg("请填写用户名!.","-1");
exit();
}
$rs = $db->GetOne("SELECT COUNT(*) AS c FROM #@__group_user WHERE username like '$uname' AND gid='$gid'");
if($rs['c'] > 0)
{
ShowMsg("用户已加入该圈子!.","-1");
exit();
}
$row = $db->GetOne("SELECT userid,mid FROM #@__member WHERE userid like '$uname'");
if(!is_array($row))
{
ShowMsg("站内不存在该用户!.","-1");
exit();
}
else
{
$row['id'] = $row['mid'];
$db->ExecuteNoneQuery("INSERT INTO #@__group_user(uid,username,gid,jointime) VALUES('".$row['id']."','".$row['userid']."','$gid','".time()."');");
//如果设成管理员
if($setmaster)
{
$master = explode(",",$ismaster);
array_push($master,$uname);
$master = array_filter($master, "filter");
$ismaster = implode(",",$master);
$db->ExecuteNoneQuery("UPDATE #@__groups SET ismaster='{$ismaster}' WHERE groupid='{$gid}'");
}
}
ShowMsg("成功添加用户:{$uname}","-1");
exit();
}
//列表加载模板
$wheresql = "WHERE gid='{$gid}'";
if(!empty($username))
{
$wheresql .= " AND username like '%".$username."%'";
}
$sql = "SELECT * FROM #@__group_user $wheresql ORDER BY jointime DESC";
$dl = new DataListCP();
$dl->pageSize = 20;
$dl->SetParameter("username",$username);
$dl->SetParameter("id",$id);
$dl->SetParameter("gid",$gid);
//这两句的顺序不能更换
$dl->SetTemplate(DEDEADMIN."/templets/group_user.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL
$dl->Display(); //显示
function filter($var)
{
return $var == '' ? false : true;
}
function GetMaster($user)
{
global $ismaster;
$master = explode(",",$ismaster);
if(in_array($user,$master))
{
return "<img src='img/adminuserico.gif'> 管理员";
}
else
{
return "普通会员";
}
}
?>

+ 0
- 144
src/dede/templets/group_edit.htm View File

@@ -1,144 +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>圈子管理>圈子列表><?php echo $groupname?></title>
<script language='javascript' src='js/main.js'></script>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
a.current {border-left:1px solid #cfcfcf;border-right:1px solid #cfcfcf;background:#ffffff;color:#FF0000;font-weight:bold;}
</style>
<script type="text/javascript">
function checkSubmit(){
if(document.form1.groupname.value==""){
alert("圈子名称不能为空!");
return false;
}
}
function SelectImage(fname,vlist){
if(document.all){
var posLeft = window.event.clientY-100;
var posTop = window.event.clientX-400;
}
else{
var posLeft = 100;
var posTop = 100;
}
window.open("./dialog/select_images.php?f="+fname+"&imgstick="+vlist, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">圈子管理</div>
</div>
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" style="border:1px solid #CFCFCF;">
<tr>
<td width="100%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px solid #CFCFCF;" class="gtab">
<tr>
<td height="26" background="images/tbg.gif" >
<a href="group_main.php">圈子列表</a>
<a class="current" id="cate_1">基本资料</a>
<a href="group_user.php?gid=<?php echo $id?>"><span id="cate_2">成员管理</span></a>
<a href="group_guestbook.php?gid=<?php echo $id?>"><span id="cate_3">留言管理</span></a>
<a href="group_notice.php?gid=<?php echo $id?>"><span id="cate_4">公告管理</span></a></td>
</tr>
</table>
</td>
</tr>
<tr >
<td height="26" align="left" bgcolor="#FFFFFF">
<div id="cate_info_1">
<form name="form1" action="group_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
<input name="action" type="hidden" value="save">
<input name="id" type="hidden" value="<?php echo $id?>">
<table width="100%" border="0" cellpadding="0" cellspacing="6" bgcolor="#FFFFFF">
<tr bgcolor="#FDFEE9" height="26">
<td width="8%" height="30" align="right" bgcolor="#FFFFFF" >名称:</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" >
<input name="groupname" type="text" id="groupname" value="<?php echo $groupsname?>" size="50" maxlength="70" />
*在30个字符内。</td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td height="30" align="right" bgcolor="#FFFFFF" >隶属类:</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" >
<select name="store" id="store">
<option value="0">选择一分类</option>
<?php echo $option?>
</select>
*更改圈子类目。</td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td height="30" align="right" bgcolor="#FFFFFF" >&nbsp;</td>
<td height="30" colspan="2" align="left" valign="middle" bgcolor="#FFFFFF" >
<input name="issystem" type="radio" id="issystem_0" value="0" <?php if(!$groupissystem) echo "checked='checked'";?> />
普通
<input type="radio" name="issystem" value="1" id="issystem_1" <?php if($groupissystem) echo "checked='checked'";?> />
官方
<input type="radio" name="ishidden" value="0" id="ishidden_0" <?php if(!$groupishidden) echo "checked='checked'";?> />
开放
<input type="radio" name="ishidden" value="1" id="ishidden_1" <?php if($groupishidden) echo "checked='checked'";?> />
关闭
<input type="radio" name="isindex" id="isindex" value="1" <?php if($groupisindex) echo "checked='checked'";?> />
推荐模块封面<br /> </td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td height="30" align="right" bgcolor="#FFFFFF" >创建人:</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" ><input name="creater" type="text" id="creater" value="<?php echo $groupcreater?>" maxlength="15" />
*设置圈子的初始创建人。</td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td height="12" align="right" bgcolor="#FFFFFF" ><input type='checkbox' class='np' name='ddisremote' value='1'>
远程,图标: </td>
<td width="44%" height="12" align="left" bgcolor="#FFFFFF" >
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="30"> 本地上传请点击“浏览”按钮
<input name="litpic" type="file" id="litpic" style="width:200" onChange="SeePic(document.picview,document.form1.litpic);"> </td>
</tr>
<tr>
<td height="30">
<input name="picname" type="text" id="picname" style="width:250" value="<?php echo $groupimg?>" onChange="SeePic(document.picview,this.value);">
<input type="button" name="Submitss" value="在网站内选择" style="width:120" onClick="SelectImage('form1.picname','');" class='inputbut'> </td>
</tr>
</table> </td>
<td width="48%" align="left" bgcolor="#FFFFFF" >&nbsp;<img src="<?php echo $groupimg?>" name="picview" id="picview"></td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td height="30" align="right" bgcolor="#FFFFFF" >管理员:</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" ><input name="master" type="text" id="master" value="<?php echo $ismaster?>" size="20" />
*设置圈子管理员,最多可以设三位,多位用&quot;,&quot;逗号隔开。</td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td height="30" align="right" bgcolor="#FFFFFF" >说明:</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" ><textarea name="des" cols="60" rows="5" id="des"><?php echo $groupdes?></textarea>
*给圈子做个简介,最多100个字符。</td>
</tr>
<tr>
<td width="8%" height="33">&nbsp;</td>
<td width="44%"><input type="submit" name="button" id="button" value="更新设置" class="np coolbg"/></td>
<td >&nbsp;</td>
</tr>
</table>
</form>
</div>
<!--基本资料结束-->
</td>
</tr>
</table>
<a name="nmes" id="nmes"></a>
</body>
</html>

+ 0
- 109
src/dede/templets/group_guestbook.htm View File

@@ -1,109 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'>
<title>圈子管理>留言管理</title>
<script language='javascript' src='js/main.js'></script>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
a.current {border-left:1px solid #cfcfcf;border-right:1px solid #cfcfcf;background:#ffffff;color:#FF0000;font-weight:bold;}
</style>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">圈子管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td height="30" align="center" bgcolor="#ffffff">
<form action="group_guestbook.php" name="form1" method="get">
<input name="gid" type="hidden" value="<?php echo $gid?>" />
<table width="425" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="70">&nbsp;关键字:</td>
<td width="100" align="left">
<input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>"> </td>
<td width="52">&nbsp;用户:</td>
<td width="103"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
<td width="101" align="center"><input name="imageField" type="submit" class="np coolbg" value="搜索"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top:10px;">
<tr>
<td width="100%" height="24">
<table width="99%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CFCFCF;border-bottom:none;" class="gtab">
<tr>
<td height="26" background="images/tbg.gif">
<a href="group_main.php">圈子列表</a>
<a href="group_edit.php?id=<?php echo $gid?>"><span id="cate_1" >基本资料</span></a>
<a href="group_user.php?gid=<?php echo $gid?>"><span id="cate_2">成员管理</span></a>
<a id="cate_3" class="current">留言管理</a>
<a href="group_notice.php?gid=<?php echo $gid?>"><span id="cate_4">公告管理</span></a> </td>
</tr>
</table></td>
</tr>
<tr >
<td height="26" align="left" bgcolor="#FFFFFF">
<!--成员管理-->
<div id="cate_info_2">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CFCFCF">
{dede:datalist}
<?php
$rs = $fields;
$stime = date("y-m-d h:i:s",$rs['stime']);
?>
<tr>
<td height="28" colspan="2" bgcolor="#FEFCEF"><?php echo $rs['title']?></td>
</tr>
<tr>
<td width="13%" align="center" bgcolor="#FFFFFF"><a href="member_view.php?id=<?php echo $rs['userid']?>"><?php echo $rs['uname']?></a><br /> <?php echo $rs['ip']?></td>
<td align="left" bgcolor="#FFFFFF"><?php echo $rs['message']?>
<p>
<a href="group_guestbook.php?gid=<?php echo $gid?>&action=edit&id=<?php echo $rs['bid']?>#edit">修改</a>|<a href="group_guestbook.php?gid=<?php echo $gid?>&action=del&id=<?php echo $rs['bid']?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a>
时间:<?php echo $stime?></p>
</td>
</tr>
{/dede:datalist}
<tr>
<td height="28" colspan="2" bgcolor="#F9FCEF">{dede:pagelist/}</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<br />
<a name="edit" id="edit"></a>
<?php
if($action=="edit"){
?>
<form action="group_guestbook.php" method="post">
<input name="gid" type="hidden" value="<?php echo $gid;?>" />
<input name="id" type="hidden" value="<?php echo $id;?>" />
<input name="action" type="hidden" value="save" />
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td width="8%" height="30" align="left"><strong>留言标题:</strong></td>
<td width="92%"><input name="title" type="text" id="title" value="<?php echo $title;?>" size="30" /></td>
</tr>
<tr>
<td colspan="2"><?php
GetEditor("message",$message,300,"Small");
?></td>
</tr>
<tr>
<td height="30" colspan="2"><input type="submit" name="button" id="button" value="保 存" class="np coolbg"/></td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>

+ 0
- 136
src/dede/templets/group_main.htm View File

@@ -1,136 +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>圈子管理-&gt;圈子列表</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
</style>
<script type="text/javascript">
var flag=false;
function MyImage(Img){
var image=new Image();
image.src=Img.src;
width=80;//预先设置的所期望的宽的值
height=80;//预先设置的所期望的高的值
if(image.width>width||image.height>height){//现有图片只有宽或高超了预设值就进行js控制
w=image.width/width;
h=image.height/height;
if(w>h){//比值比较大==>宽比高大
//定下宽度为width的宽度
Img.width=width;
//以下为计算高度
Img.height=image.height/w;
}else{//高比宽大
//定下宽度为height高度
Img.height=height;
//以下为计算高度
Img.width=image.width/h;
}
}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">圈子管理 <a href="../group" target="_blank">[查看首页]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td height="30" align="center" bgcolor="#ffffff">
<form action="group_main.php" name="form1" method="get">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="70">&nbsp;关键字:</td>
<td width="83" align="left">
<input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>"> </td>
<td width="80">&nbsp;创建人:</td>
<td width="87"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
<td width="59" align="center">类目: </td>
<td width="161" align="left"><select name="store" id="store">
<option value="0">所有</option>
<?php echo $option?>
</select></td>
<td width="81" align="center"><input name="imageField" type="submit" class="np coolbg" value="搜索"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="margin-top:10px;background:#CFCFCF;">
<tr>
<td height="24" colspan="7" bgcolor="#EDF9D5" background="images/tbg.gif">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="29%">&nbsp;&nbsp;<strong>圈子管理>>圈子列表</strong></td>
<td width="71%" align="right">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FDFEE9" height="26">
<td width="10%" align="center">图标</td>
<td width="20%" align="center">[ID]名称/时间</td>
<td width="5%" align="center">官方?</td>
<td width="10%" align="center">创建人</td>
<td width="30%" align="center">说明</td>
<td width="10%" align="center">管理员</td>
<td width="15%" align="center">操作</td>
</tr>
<!--分页-->
{dede:datalist}
<?php
$row = $fields;
$icon = $row['groupimg'];
if(!$icon) $icon = "images/dfpic.gif";
$issystem = $row['issystem'];
if($issystem) $issystem = "<font color='red'>官方</font>";
else $issystem = "普通";
if($row['ishidden'])
{
$ishidden = "<font color='red'>关闭</font>";
$opstauts = "开放";
$opstautsdo = "open";
}
else
{
$ishidden = "<font color='green'>开放</font>";
$opstauts = "关闭";
$opstautsdo = "close";
}
?>
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td><img src="<?php echo $icon?>" align="absmiddle" onload='javascript:MyImage(this);'/></td>
<td align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26">[<?php echo $row['groupid']?>] <?php if($row['isindex']) echo "[<font color='red'>荐</font>]";?><u><a href="group_edit.php?id=<?php echo $row['groupid']?>"><?php echo $row['groupname']?></a></u>/<?php echo GetDateMk($row['stime'])?></td>
</tr>
<tr>
<td height="26">状态:<?php echo $ishidden?>;类目:<?php echo GetGroupstore($row['storeid']);?></td>
</tr>
</table></td>
<td><?php echo $issystem?></td>
<td><?php echo $row['creater']?></td>
<td title="title"><?php echo HtmlReplace($row['des'],-1);?></td>
<td><?php echo $row['ismaster']?></td>
<td>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" height="25"><a href="group_main.php?action=<?php echo $opstautsdo?>&id=<?php echo $row['groupid']?>"><?php echo $opstauts?></a> | <a href="group_edit.php?id=<?php echo $row['groupid']?>">编辑</a> | <a href="group_main.php?action=del&id=<?php echo $row['groupid']?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a> |<br /><a href="group_guestbook.php?gid=<?php echo $row['groupid']?>">留言</a> | <a href="group_threads.php?gid=<?php echo $row['groupid']?>">列表</a></td>
</tr>
</table></td>
</tr>
{/dede:datalist}
<!--分页-->
<tr>
<td height="28" colspan="7" bgcolor="#F9FCEF">&nbsp;&nbsp;{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</td>
</tr>
</table>
</body>
</html>

+ 0
- 109
src/dede/templets/group_notice.htm View File

@@ -1,109 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'>
<title>圈子管理>留言管理</title>
<script language='javascript' src='js/main.js'></script>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
a.current {border-left:1px solid #cfcfcf;border-right:1px solid #cfcfcf;background:#ffffff;color:#FF0000;font-weight:bold;}
</style>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">圈子管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td height="30" align="center" bgcolor="#ffffff">
<form action="group_notice.php" name="form1" method="get">
<input name="gid" type="hidden" value="<?php echo $gid?>" />
<table width="425" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="70">&nbsp;关键字:</td>
<td width="101" align="left">
<input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>"> </td>
<td width="52">&nbsp;用户:</td>
<td width="103"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
<td width="101" align="center"><input name="imageField" type="submit" class="np coolbg" value="搜索"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top:10px;">
<tr>
<td width="100%" height="24"><table width="99%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CFCFCF;border-bottom:none;" class="gtab">
<tr>
<td height="26" background="images/tbg.gif">
<a href="group_main.php">圈子列表</a>
<a href="group_edit.php?id=<?php echo $gid?>"><span id="cate_1" >基本资料</span></a>
<a href="group_user.php?gid=<?php echo $gid?>"><span id="cate_2">成员管理</span></a>
<a href="group_guestbook.php?gid=<?php echo $gid?>"><span id="cate_3">留言管理</span></a>
<a id="cate_4" class="current">公告管理</a> </td>
</tr>
</table></td>
</tr>
<tr >
<td height="26" align="left" bgcolor="#FFFFFF">
<!--成员管理-->
<div id="cate_info_2">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CFCFCF">
<tr bgcolor="#FBFCE2">
<td width="39%" height="28" align="center">标题</td>
<td width="14%" height="28" align="center">发布人</td>
<td width="19%" height="28" align="center">时间</td>
<td width="28%" height="28" align="center">操作</td>
</tr>
{dede:datalist}
<?php
$rs = $fields;
?>
<tr height="28" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#EDF7D0';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td height="28" align="center" ><a href="/group/group_notice.php?id=<?php echo $rs['id']?>" target="_blank"><?php echo $rs['title']?></a></td>
<td height="28" align="center" ><a href="member_view.php?id=<?php echo $rs['userid']?>"><?php echo $rs['uname']?></a></td>
<td height="28" align="center" ><?php echo GetDateMk($rs['stime'])?></td>
<td height="28" align="center"><a href="group_notice.php?action=edit&id=<?php echo $rs['id']?>&gid=<?php echo $gid?>">修改</a> | <a href="group_notice.php?action=del&id=<?php echo $rs['id']?>&gid=<?php echo $gid?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a></td>
</tr>
{/dede:datalist}
<tr>
<td height="28" colspan="4" bgcolor="#EDF9D5">{dede:pagelist/}</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<?php
if($action=="edit"){
?>
<form action="group_notice.php" method="post">
<input name="gid" type="hidden" value="<?php echo $gid;?>" />
<input name="id" type="hidden" value="<?php echo $id;?>" />
<input name="action" type="hidden" value="save" />
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td width="8%" height="30" align="left"><strong>标题:</strong></td>
<td colspan="2"><input name="title" type="text" id="title" value="<?php echo $title;?>" size="30" /></td>
</tr>
<tr>
<td><strong>内容:</strong></td>
<td width="45%"><?php
GetEditor("notice",$notice,300,"Small");
?></td>
<td width="47%">&nbsp;</td>
</tr>
<tr>
<td height="30" colspan="3"><input type="submit" name="button" id="button" value="保 存" class="np coolbg"/></td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>

+ 0
- 169
src/dede/templets/group_store.htm View File

@@ -1,169 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'>
<title>圈子分类管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href='css/tb-box.css' rel='stylesheet' type='text/css' />
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/dedeajax2.js"></script>
<script language="javascript" src="../static/js/jquery/jquery.js"></script>
<script language="javascript" src="../static/js/jquery/ui.core.js"></script>
<script language="javascript" src="../static/js/jquery/ui.draggable.js"></script>
<script lang='javascript' src='js/tb-box.js'></script>
<script type="text/javascript">
<!--
function ShowAddCatalog(){
var msgtxt = $("#addCatalog").html();
tb_showmsg(msgtxt, "增加一个分类");
// $Obj('addCatalog').style.display='block';
}
function CloseEditCatalog(){
$Obj('editCatalog').style.display='none';
}
function DelCatalog(cid){
if(window.confirm("你确实要删除这个分类么?"))
{
location.href='group_store.php?action=del&id='+cid;
}
}
function EditCatalog(cid){
tb_show("编辑圈子", 'group_store.php?catid='+cid+'&action=editload&width=400&height=200', true);
}
-->
</script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">圈子管理 <a href="../group" target="_blank">[查看首页]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" background="images/tbg.gif">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>分类列表</strong> </td>
<td align='right'> [<a href="javascript:ShowAddCatalog();"><u>新增分类</u></a>] </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;border-top:none;">
<tr>
<td style="background:#ffffff;padding:7px 6px 6px 10px;" >
<font color='red'><?php if(isset($msg)) echo $msg;?></font>
</td>
</tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:7px 6px 6px 10px;" >
<table width='98%' border='0' cellpadding='0' cellspacing='2'>
<tr><td width='1%' height='1'></td><td width='70%'></td><td></td></tr>
<form name='frank' id='frank' action='group_store.php' method='post'>
<input type='hidden' name='action' value='uprank' />
{dede:datalist}
<tr height='24' bgcolor='#FDFEF1'>
<td><input type='text' size='2' name='rank_<?php echo $fields['storeid']?>' value='<?php echo $fields['orders']?>'></td>
<td style='padding-left:3px'>·<?php echo $fields['storename']?> (id = <?php echo $fields['storeid']?>)</td>
<td align='right' style='padding-right:8px;'>
<a href='javascript:EditCatalog(<?php echo $fields['storeid']?>);'>修改</a> | <a href='javascript:DelCatalog(<?php echo $fields['storeid']?>);'>删除</a></td></tr>
<?php
$db->SetQuery("SELECT * FROM #@__store_groups WHERE tops='".$fields['storeid']."' ORDER BY orders ASC");
$db->Execute();
while($rs = $db->GetArray()){
?>
<tr height='24'>
<td><input type='text' size='2' name='rank_<?php echo $rs['storeid']?>' value='<?php echo $rs['orders']?>'></td>
<td style='padding-left:18px'>·<?php echo $rs['storename']?> (id = <?php echo $rs['storeid']?>)</td>
<td align='right' style='padding-right:8px;'><a href='javascript:EditCatalog(<?php echo $rs['storeid']?>);'>修改</a> | <a href='javascript:DelCatalog(<?php echo $rs['storeid']?>);'>删除</a>
</td></tr>
<?php
}?>
{/dede:datalist}
<tr>
<td height="30" colspan="3" >
<input type='Submit' name='Submit' value='更新排序' style='width:80px' class="np coolbg"/></td>
</tr>
</form>
<tr bgcolor="#F9FCEF">
<td height="26" colspan="3" align="center" bgcolor="#F9FCEF"> {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/} </td>
</tr>
</table>
</td>
</tr>
</table>
<div id="editCatalog">
<span id='editCatalogBody'>请稍候,正在载入...</span>
</div>
<!-- 下面是隐藏的栏目增加/修改表单 -->
<div id="addCatalog">
<form name='addform' id='addform' action='group_store.php?action=add' method='post'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="28">分类名称:</td>
<td width="101" align="left"><input name="storename" type="text" id="storename" /></td>
<td width="20" align="right" valign="top"></td>
</tr>
<tr>
<td height="28">隶属分类:</td>
<td colspan="2" align="left">
<select name="tops" id="tops">
<option value="0">新建顶级分类</option>
<?php echo $options?>
</select>
</td>
</tr>
<tr>
<td height="28">排序级别:</td>
<td colspan="2" align="left"><input name="orders" type="text" id="orders" size="5" value="0" />
(数值小靠前)</td>
</tr>
<tr>
<td height="43">&nbsp;</td>
<td colspan="2" align="left"><input type="submit" name="Submit" value="增加分类" class="np coolbg" style="width:80px"/></td>
</tr>
</table>
</form>
</div>
</body>
</html>

+ 0
- 99
src/dede/templets/group_threads.htm View File

@@ -1,99 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'>
<title>圈子管理->主题管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
</style>
<script type="text/javascript">
function CheckAll(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
e.checked == true ? e.checked = false : e.checked = true;
}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">圈子管理->主题管理 <a href="../group" target="_blank">[查看首页]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td height="30" align="center" bgcolor="#ffffff">
<form action="group_threads.php" name="form1" method="get">
<table width="380" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="69">&nbsp;关键字:</td>
<td width="83" align="left">
<input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>"> </td>
<td width="60">&nbsp;用户:</td>
<td width="87"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
<td width="81" align="center"><input name="imageField" type="submit" class="np coolbg" value="搜索"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<form action="group_threads.php" method="post" onSubmit="return(confirm('删除后无法恢复,您确定删除吗?'))">
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="0" height="26" style="border:1px solid #CFCFCF;border-bottom:none;margin-top:10px;">
<tr>
<td width="53%" height="30" align="left" background="images/tbg.gif" style="padding-left:10px;"><font color="#458146"><strong>所有主题</strong></font></td>
<td width="47%" height="30" align="right" background="images/tbg.gif">&nbsp;<a href="group_threads.php?orders=digest" ><font color="#458146">精品区</font></a> <font color="#458146">|</font> <a href="group_threads.php?orders=close" ><font color="#458146">已关闭</font></a><font color="#458146">|</font> <a href="group_threads.php?orders=rep"><font color="#458146">最多回复</font></a>&nbsp;&nbsp;</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="30" align="center" bgcolor="#FAFCEF">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" style="background:#CFCFCF;">
<tr bgcolor="#FDFEE9" >
<td width="3%" height="24" align="left" bgcolor="#FDFEE9"></td>
<td width="5%" height="24" align="center" bgcolor="#FDFEE9">点击</td>
<td width="5%" height="24" align="center" bgcolor="#FDFEE9">回复</td>
<td width="44%" height="24" align="left" bgcolor="#FDFEE9">标题/圈子</td>
<td width="16%" height="24" align="center" bgcolor="#FDFEE9">作者</td>
<td width="15%" height="24" align="center" bgcolor="#FDFEE9">最后回复</td>
<td width="12%" align="center" bgcolor="#FDFEE9">操作</td>
</tr>
{dede:datalist}
<?php
$row = $fields;
$titleleft = "";
$subject = $row['subject'];
if($row['digest']) $titleleft .= "<span style='color:green;'>[精]</span>";
if($row['displayorder']) $titleleft .= "<span style='color:red;'>[顶]</span>";
if($row['closed']) $subject = "<s>".$subject."</s>";
$subject = $titleleft.$subject;
?>
<tr bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td height="28" align="center"><input name="ids[]" type="checkbox" id="Ids-<?php echo $row['tid']?>" value="<?php echo $row['tid']?>" /></td>
<td height="28" align="center"><?php echo $row['views']?></td>
<td height="28" align="center"><?php echo $row['replies']?></td>
<td height="28" align="left"><?php echo $subject?>/<a href="group_edit.php?id=<?php echo $row['gid']?>"><?php echo GetGroupname($row['gid'])?></a></td>
<td height="28" align="center"><a href="member_view.php?id=<?php echo $row['authorid']?>"><?php echo $row['author']?></a> [<?php echo GetDateMk($row['dateline'])?>]</td>
<td height="28" align="center"><?php echo $row['lastposter']?> [<?php echo GetDateMk($row['lastpost'])?>]</td>
<td height="28" align="center"><a href="group_threads.php?action=del&id=<?php echo $row['tid']?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a>|<a href="group_threads.php?action=close&id=<?php echo $row['tid']?>">关闭</a>|<a href="group_threads.php?action=digest&id=<?php echo $row['tid']?>">加精</a>|<a href="group_threads.php?action=top&id=<?php echo $row['tid']?>">置顶</a></td>
</tr>
{/dede:datalist}
<tr>
<td height="28" colspan="7" align="left" bgcolor="#F9FCEF">
<table width="100%" border="0">
<tr>
<td width="26%">&nbsp;<input type="button" class="np coolbg" onClick="CheckAll(this.form)" value="反 选" />
<input type="submit" class="np coolbg" value="删除" /></td>
<td width="74%" align="right">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}&nbsp;&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

+ 0
- 98
src/dede/templets/group_user.htm View File

@@ -1,98 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'>
<title>圈子管理>圈子列表><?php echo $groupname?></title>
<script language='javascript' src='js/main.js'></script>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
a.current {border-left:1px solid #cfcfcf;border-right:1px solid #cfcfcf;background:#ffffff;color:#FF0000;font-weight:bold;}
</style>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">圈子管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td height="30" align="left" bgcolor="#ffffff">
<table width="228" border="0" align="left" cellpadding="0" cellspacing="0">
<form action="group_user.php" method="get" name="form1" id="form1">
<input name="gid" type="hidden" value="<?php echo $gid?>" />
<tr>
<td width="60">&nbsp;成员:</td>
<td width="87"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
<td width="81" align="center"><input name="imageField" type="submit" class="np coolbg" value="搜索"/></td>
</tr>
</form>
</table>
<table width="405" border="0" cellpadding="0" cellspacing="0">
<form action="group_user.php" method="get" name="form2" id="form2">
<input name="gid" type="hidden" value="<?php echo $gid?>" />
<input name="action" type="hidden" value="add" />
<tr>
<td width="90" align="right">&nbsp;加入会员:</td>
<td width="112"><input name="uname" type="text" id="uname" size="15" style="width:100" value="<?php echo $username?>" /></td>
<td width="75" align="left"><input type="radio" name="setmaster" id="setmaser" value="1" />
管理员</td>
<td width="128" align="left"><input name="imageField2" type="submit" class="np coolbg" value="添加" id="imageField"/></td>
</tr>
</form>
</table></td>
</tr>
</table>
<br />
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="100%" height="24">
<table width="99%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CFCFCF;border-bottom:none;" class="gtab">
<tr>
<td height="26" background="images/tbg.gif" >
<a href="group_main.php">圈子列表</a>
<a href="group_edit.php?id=<?php echo $gid?>"><span id="cate_1" >基本资料</span></a>
<a id="cate_2" class="current">成员管理</a>
<a href="group_guestbook.php?gid=<?php echo $gid?>"><span id="cate_3">留言管理</span></a>
<a href="group_notice.php?gid=<?php echo $gid?>"><span id="cate_4">公告管理</span></a> </td>
</tr>
</table></td>
</tr>
<tr >
<td height="26" align="left" bgcolor="#FFFFFF">
<!--成员管理-->
<div id="cate_info_2">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CFCFCF">
<tr bgcolor="#FBFCE2">
<td width="19%" height="28" align="center">用户名</td>
<td width="17%" height="28" align="center">身份</td>
<td width="17%" height="28" align="center">加入时间</td>
<td width="13%" height="28" align="center">发贴数</td>
<td width="11%" align="center">回贴数</td>
<td width="23%" align="center">操作</td>
</tr>
{dede:datalist}
<?php
$rs = $fields;
?>
<tr height="28" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td height="28" align="center" ><a href="member_view.php?id=<?php echo $rs['uid']?>"><?php echo $rs['username']?></a></td>
<td height="28" align="center" ><?php echo GetMaster($rs['username'])?></td>
<td height="28" align="center" ><?php echo GetDateMk($rs['jointime'])?></td>
<td height="28" align="center" ><?php echo $rs['posts']?></td>
<td height="28" align="center" ><?php echo $rs['replies']?></td>
<td height="28" align="center" ><a href="group_user.php?action=admin&id=<?php echo $rs['uid']?>&gid=<?php echo $gid?>">设为管理员</a> | <a href="group_user.php?action=del&id=<?php echo $rs['uid']?>&gid=<?php echo $gid?>">移出群</a></td>
</tr>
{/dede:datalist}
<tr>
<td height="28" colspan="6" bgcolor="#F9FCEF">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<a name="nmes" id="nmes"></a>
</body>
</html>

Loading…
Cancel
Save