0),"tid=$tid"); DB::update('forum_post',array('invisible'=>0),"tid=$tid"); cpmsg(lang('plugin/xj_event', 'shenhechenggong'), 'action=plugins&operation=config&do='.$pluginid.'&identifier=xj_event&pmod=admin_event&page='.intval($_GET['page']), 'succeed'); } if($_GET['act'] == 'qxshenhe'){ if($_GET['formhash'] != $_G['formhash']){ exit('error'); } $tid = intval($_GET['tid']); DB::update('forum_thread',array('displayorder'=>-2),"tid=$tid"); DB::update('forum_post',array('invisible'=>-2),"tid=$tid"); cpmsg(lang('plugin/xj_event', 'shenhechenggong'), 'action=plugins&operation=config&do='.$pluginid.'&identifier=xj_event&pmod=admin_event&page='.intval($_GET['page']), 'succeed'); } if($_GET['act'] == 'event_yqjl'){ if(file_exists(DISCUZ_ROOT.'./source/plugin/xj_event/module/invitation/admin_event_yqjl.php')) { @include DISCUZ_ROOT.'./source/plugin/xj_event/module/invitation/admin_event_yqjl.php'; } }elseif($_GET['act'] == 'event_xlbm'){ if(file_exists(DISCUZ_ROOT.'./source/plugin/xj_event/module/virtual/event_xlbm.php')) { @include DISCUZ_ROOT.'./source/plugin/xj_event/module/virtual/event_xlbm.php'; }else{ cpmsg(lang('plugin/xj_event','qinganzhuangzujian'),'http://addon.discuz.com/?@xj_event.plugin.70608','error'); exit; } }elseif($_GET['act'] == 'event_xlbm_full'){ if(file_exists(DISCUZ_ROOT.'./source/plugin/xj_event/module/virtual/event_xlbm_full.php')) { @include DISCUZ_ROOT.'./source/plugin/xj_event/module/virtual/event_xlbm_full.php'; } }elseif($_GET['act'] == 'event_qfwx'){ loadcache('plugin'); if($_G['cache']['plugin']['xj_wxmessage']){ header('Location: '.$_G['siteurl'].'admin.php?action=plugins&operation=config&do=100&identifier=xj_wxmessage&pmod=admin_groupsend'); exit; }else{ cpmsg(lang('plugin/xj_event','qinganzhuangchajian'),'http://addon.discuz.com/?@xj_wxmessage.plugin','error'); exit; } }else{ if($_GET['act'] == 'search'){ $keyword = addslashes($_GET['keyword']); $sqlstr = " WHERE B.subject like '%".str_replace(array('%', '*', '_'), array('\%', '%', '\_'), $keyword)."%'"; } showsubmenu(lang('plugin/xj_event', 'huodonggl')); echo '
'.lang('plugin/xj_event', 'guanjianzi').'
'; showtableheader(lang('plugin/xj_event', 'huodonggl')); showtablerow('',array(),array('ID',lang('plugin/xj_event', 'huodongmingcheng'),lang('plugin/xj_event', 'baomingrs'),lang('plugin/xj_event', 'huodongshijian'),lang('plugin/xj_event', 'fabuhd'),''),''); $ppp = 15; //ÿÌìÊýÁ¿ $page = $_GET['page']?intval($_GET['page']):1; $count = DB::result_first("SELECT COUNT(*) FROM ".DB::table('xj_event')." A LEFT JOIN ".DB::table('forum_thread')." B ON A.tid=B.tid ".$sqlstr); $query = DB::query("SELECT * FROM ".DB::table('xj_event')." A LEFT JOIN ".DB::table('forum_thread')." B ON A.tid=B.tid $sqlstr ORDER BY eid DESC LIMIT ".(($page - 1) * $ppp).",$ppp"); while($value = DB::fetch($query)) { $value['setting'] = unserialize($value['setting']); $value['number'] = DB::result_first("SELECT COUNT(*) FROM ".DB::table('xj_eventapply')." WHERE tid=".intval($value['tid'])); $value['starttime'] = $value['starttime']?dgmdate($value['starttime']):''; if($value['displayorder'] == -2){ $shenhehtml = ''.lang('plugin/xj_event', 'shenhe').''; }elseif($value['displayorder']>=0){ $shenhehtml = ''.lang('plugin/xj_event', 'quxiaoshenhe').''; } if($value['setting']['yqjl_jfs']>0){ $shenhehtml .= ' ['.lang('plugin/xj_event','yaoqingguanli').']'; } $qunfawxhtml = ' ['.lang('plugin/xj_event','qunfaweixinxiaoxi').']'; showtablerow('', array('class="td25"', 'class="td28"'), array($value['eid'],$value['subject'],$value['number'],$value['starttime'],dgmdate($value['dateline']),$shenhehtml.' ['.lang('plugin/xj_event', 'view').'] ['.lang('plugin/xj_event','xulibaoming').'] '.$qunfawxhtml)); } showtablefooter(); echo multi($count, $ppp, $page, ADMINSCRIPT."?action=plugins&operation=config&do=$pluginid&identifier=xj_event&pmod=admin_event$extra"); } ?>