1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- /**
- * 会员短消息管理
- *
- * @version $Id: member_msg_edit.php 1 11:24 2010年7月20日Z tianya $
- * @package DedeCMS.Administrator
- * @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
- * @license http://help.dedecms.com/usersguide/license.html
- * @link http://www.dedecms.com
- */
- require_once(dirname(__FILE__)."/config.php");
- CheckPurview('sys_Log');
- if(empty($dopost))
- {
- ShowMsg("你没指定任何参数!","javascript:;");
- exit();
- }
- if(empty($dellog)) $dellog = 0;
- //删除选定状态
- if($dopost=="del")
- {
- $bkurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "member_msg_main.php";
- $ids = explode('`',$ids);
- $dquery = "";
- foreach($ids as $id)
- {
- if($dquery=="")
- {
- $dquery .= "id='$id' ";
- }
- else
- {
- $dquery .= " OR id='$id' ";
- }
- }
- if($dquery!="") $dquery = " WHERE ".$dquery;
- $dsql->ExecuteNoneQuery("DELETE FROM #@__member_msg $dquery");
- ShowMsg("成功删除指定的记录!",$bkurl);
- exit();
- }
- //审核选定状态
- else if($dopost=="check")
- {
- $bkurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "member_msg_main.php";
- $ids = explode('`',$ids);
- $dquery = "";
- foreach($ids as $id)
- {
- if($dquery=="") $dquery .= " id='$id' ";
- else $dquery .= " Or id='$id' ";
- }
- if($dquery!="") $dquery = " where ".$dquery;
- $dsql->ExecuteNoneQuery("UPDATE #@__member_msg SET ischeck=1 $dquery");
- ShowMsg("成功审核指定的记录!",$bkurl);
- exit();
- }
- else
- {
- ShowMsg("无法识别你的请求!","javascript:;");
- exit();
- }
|