<?php
class IndexAction extends Action {
//后台菜单管理
public function admin_menu_manage_list(){
$adminmenu=M('adminmenu')->where("dev_hidden=1")->order("id asc")->select();
$this->assign('adminmenu',$adminmenu);
$this->display();
}
//后台菜单添加
public function add_admin_menu_manage(){
$first_menu=M('adminmenu')->where("parentid=0 and dev_hidden=1")->order("id asc")->select();
$this->assign("first_menu",$first_menu);
$this->display();
}
//后台菜单添加动作
public function do_add_admin_menu_manage(){
//添加的菜单种类
$menutype=htmlspecialchars(trim($_POST['menutype']));
$menu_data['menuname']=htmlspecialchars(trim($_POST['menuname']));
$menu_data['url']=htmlspecialchars(trim($_POST['url']));
$menu_data['position']=trim($_POST['position']);
$menu_data['is_show']=htmlspecialchars(trim($_POST['is_show']));
$menu_data['addtime']=time();
$menu_data['dev_hidden']=1;
$adminmenu=M('adminmenu');
if($menutype==1){
$menu_data['url']='';
$menu_data['parentid']=0;
}elseif($menutype==2){
$menu_data['url']='';
$menu_data['parentid']=htmlspecialchars(trim($_POST['parentid']));
}elseif($menutype==3){
$menu_data['parentid']=htmlspecialchars(trim($_POST['twoid']));
}else{
$this->error("添加菜单失败,请选择要添加的菜单类型!");
}
$res=$adminmenu->add($menu_data);
if($res){
$this->success("添加菜单成功!");
}else{
$this->error("添加菜单失败!");
}
}
public function opt_close()
{
$dao = D("Close");
$username=$dao->where("id=$_GET[userid]")->getField("username");
switch ($_GET['action'])
{
case 'disaudit' :
if ($_GET['userid'] != '') {
$dao -> query('update ss_close set enabled="0" where id=' . $_GET['userid']);
}
userLog(session('adminid'), "修改注册用户状态为禁止,用户名:".$username);
$this -> assign('jumpUrl', base64_decode($_REQUEST['return']) . '#' . time());
$this -> success('操作成功');
break;
case 'audit' :
if ($_GET['userid'] != '') {
$dao -> query('update ss_close set enabled="1" where id=' . $_GET['userid']);
}
userLog(session('adminid'), "修改注册用户状态为启用,用户名:".$username);
$this -> assign('jumpUrl', base64_decode($_REQUEST['return']) . '#' . time());
$this -> success('操作成功');
break;
}
}
public function admin_close()
{
$condition = 'id>0';
$orderby = 'id desc';
$goodnum = D("Close");
$count = $goodnum -> where($condition) -> count();
$listRows = 20;
$linkFront = '';
import("@.ORG.Page");
$p = new Page($count, $listRows, $linkFront);
$goodnums = $goodnum -> limit($p -> firstRow . "," . $p -> listRows) -> where($condition) -> select();
$p -> setConfig('header', '条');
$page = $p -> show();
$this -> assign('page', $page);
$this -> assign('goodnums', $goodnums);
$this -> display();
}
//秀币转盘消费排行榜
public function admin_xiubitongji()
{
$condition = 'id>0';
if ($_GET['start_time'] != '') {
$timeArr = explode("-", $_GET['start_time']);
$unixtime = mktime(0, 0, 0, $timeArr[1], $timeArr[2], $timeArr[0]);
$condition .= ' and addtime>=' . $unixtime;
}
if ($_GET['end_time'] != '') {
$timeArr = explode("-", $_GET['end_time']);
$unixtime = mktime(0, 0, 0, $timeArr[1], $timeArr[2], $timeArr[0]);
$condition .= ' and addtime<=' . $unixtime;
}
if ($_GET['keyword'] != '' && $_GET['keyword'] != '请输入用户名') {
$keyuinfo = D("Member") -> where('username="' . $_GET['keyword'] . '"') -> select();
if ($keyuinfo) {
$condition .= ' and uid=' . $keyuinfo[0]['id'];
} else {
$this -> error('没有该用户的记录');
}
}
$beandetail = D("Coindetail");
$condition .= ' and giftid="7878" ' ;
$count = $beandetail -> where($condition) -> count();
$listRows = 20;
$linkFront = '';
import("@.ORG.Page");
$p = new Page($count, $listRows, $linkFront);
$orderby = 'sum(coin) desc';
$details = $beandetail -> field('id,uid,touid,sum(coin) as coin,sum(giftcount) as giftcount')->limit($p -> firstRow . "," . $p -> listRows) -> where($condition) -> order($orderby) -> group("uid")->select();
foreach ($details as $n => $val) {
$details[$n]['voo'] = D("Member") -> where('id=' . $val['uid']) -> select();
}
$p -> setConfig('header', '条');
$page = $p -> show();
$this -> assign('page', $page);
$this -> assign('details', $details);
$this -> display();
}
//礼物转盘消费排行榜
public function admin_liwutongji()
{
$condition = 'id>0';
if ($_GET['start_time'] != '') {
$timeArr = explode("-", $_GET['start_time']);
$unixtime = mktime(0, 0, 0, $timeArr[1], $timeArr[2], $timeArr[0]);
$condition .= ' and addtime>=' . $unixtime;
}
if ($_GET['end_time'] != '') {
$timeArr = explode("-", $_GET['end_time']);
$unixtime = mktime(0, 0, 0, $timeArr[1], $timeArr[2], $timeArr[0]);
$condition .= ' and addtime<=' . $unixtime;
}
if ($_GET['keyword'] != '' && $_GET['keyword'] != '请输入用户名') {
$keyuinfo = D("Member") -> where('username="' . $_GET['keyword'] . '"') -> select();
if ($keyuinfo) {
$condition .= ' and uid=' . $keyuinfo[0]['id'];
} else {
$this -> error('没有该用户的记录');
}
}
$beandetail = D("Coindetail");
$condition .= ' and giftid="5656" ' ;
$count = $beandetail -> where($condition) -> count();
$listRows = 20;
$linkFront = '';
import("@.ORG.Page");
$p = new Page($count, $listRows, $linkFront);
if($_GET['start_time'] != ''&&$_GET['end_time'] != '')
{
$orderby = 'sum(coin) desc';
$details = $beandetail -> field('id,uid,touid,sum(coin) as coin,count(uid) as content')->limit($p -> firstRow . "," . $p -> listRows) -> where($condition) -> order($orderby) -> group("uid")->select();
//var_dump($details);
foreach ($details as $n => $val) {
$details[$n]['voo'] = D("Member") -> where('id=' . $val['uid']) -> select();
}
$p -> setConfig('header', '条');
$page = $p -> show();
$this -> assign('page', $page);
$this -> assign('details', $details);
// $shijian= date("Y-m-d h:i:s");
// $_GET['shijian']=date("Y-m-d h:i:s");
}
else
{
$orderby = 'id desc';
$details = $beandetail -> limit($p -> firstRow . "," . $p -> listRows) -> where($condition) -> order($orderby) -> select();
foreach ($details as $n => $val) {
$details[$n]['voo'] = D("Member") -> where('id=' . $val['uid']) -> select();
}
$p -> setConfig('header', '条');
$page = $p -> show();
$this -> assign('page', $page);
$this -> assign('details', $details);
}
$this -> display();
}
//砸蛋游戏中奖排行榜
public function admin_famehall()
{
$condition = 'id>0';
if ($_GET['start_time'] != '') {
$timeArr = explode("-", $_GET['start_time']);
$unixtime = mktime(0, 0, 0, $timeArr[1], $timeArr[2], $timeArr[0]);
$condition .= ' and addtime>=' . $unixtime;
}
if ($_GET['end_time'] != '') {
$timeArr = explode("-", $_GET['end_time']);
$unixtime = mktime(0, 0, 0, $timeArr[1], $timeArr[2], $timeArr[0]);
$condition .= ' and addtime<=' . $unixtime;
}
if ($_GET['keyword'] != '' && $_GET['keyword'] != '请输入用户名')
{
$keyuinfo = D("Member") -> where('username="' . $_GET['keyword'] . '"') -> select();
if ($keyuinfo) {
$condition .= ' and touid=' . $keyuinfo[0]['id'];
} else {
$this -> error('没有该用户的记录');
}
}
$beandetail = D("Giveaway");
$orderby = 'sum(content) desc';
$condition .= ' and remark="砸蛋奖励" ' ;
$count = $beandetail -> where($condition) -> count();
$listRows = 20;
$linkFront = '';
import("@.ORG.Page");
$p = new Page($
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的云豹直播系统源码.zip
共2000个文件
png:491个
jpg:460个
html:278个
6 下载量 140 浏览量
2024-01-15
20:10:54
上传
评论
收藏 96.98MB ZIP 举报
温馨提示
快速排序 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip 基于PHP的云豹直播系统源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的云豹直播系统源码.zip (2000个子文件)
99bill[1].cert.rsa.20140803.cer 2KB
common_test.css 227KB
common160227.css 199KB
common.css 163KB
bootstrap.min.css 120KB
home.css 75KB
family.css 53KB
emceeinfo.css 28KB
common.css 21KB
index.css 20KB
default.css 19KB
system.css 19KB
main.css 19KB
rank.css 18KB
common.css 16KB
joylogin.css 13KB
familyMember.css 12KB
admincp.css 10KB
style.css 9KB
active.css 9KB
family.css 8KB
family_detail.css 8KB
jscal2.css 8KB
familyJiazu.css 6KB
ranking.css 6KB
style_search2.css 6KB
table_form.css 6KB
style_search1.css 6KB
style_search.css 6KB
calendar-blue.css 6KB
dialog.css 5KB
order.css 5KB
default.css 5KB
family_gift.css 4KB
shop.css 4KB
datepicker.css 4KB
style.css 4KB
datepicker.css 4KB
emceeno.css 4KB
sqagent.css 3KB
simple.css 3KB
reset.css 3KB
styles3.css 2KB
index.css 2KB
styles2.css 2KB
win2k.css 2KB
border-radius.css 2KB
download.css 2KB
car.css 1KB
prettify.css 960B
reduce-spacing.css 858B
styles4.css 486B
WdatePicker.css 158B
styles1.css 0B
zjd_2_.fla 354KB
zjd_1_.fla 354KB
truntable_icon.gif 162KB
static.gif 35KB
hdbg.gif 25KB
hdbg.gif 24KB
1438052947.gif 21KB
zhuanpan33.gif 21KB
unicom.gif 21KB
404.gif 16KB
35.gif 13KB
42.gif 13KB
small_elite.gif 13KB
hdbg.gif 12KB
40.gif 10KB
success.gif 8KB
18.gif 8KB
19.gif 8KB
11.gif 8KB
404.gif 7KB
bg02.gif 7KB
32.gif 7KB
49.gif 6KB
default.gif 6KB
29.gif 6KB
97.gif 5KB
65.gif 5KB
top.gif 5KB
31.gif 5KB
46.gif 5KB
57.gif 5KB
huanxun.gif 5KB
45.gif 5KB
8.gif 5KB
question.gif 5KB
f-level-20.gif 4KB
f-level-18.gif 4KB
43.gif 4KB
f-level-11.gif 4KB
f-level-16.gif 4KB
33.gif 4KB
68.gif 4KB
listico.gif 4KB
26.gif 4KB
14.gif 4KB
7.gif 4KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
毕业课程设计
- 粉丝: 2296
- 资源: 1728
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 山东大学软件学院-计算机组成原理-复习思维导图
- YOLOv10如何与其他视觉任务(如分割跟踪)进行集成
- 基于SpringBoot+thymeleaf+协同过滤算法山河旅游推荐系统
- 1-eclipse-jee-2020-06-R-win32-x86-64.zip
- 基于Springboot+Vue前后端分离的电影推荐系统
- 基于java swing 药品销售管理系统
- 矽源特LTK5313无感式升压,F类,5W音频功率放大器
- 基于YOLOv8-Fire-and-Smoke-Detection高分项目+源码+检测结果视频.zip
- json 开源库 c语言版本和c++版本都在里面
- TDOA定位算法在MATLAB中的代码实现有哪些注意事项
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功