You've already forked qlg.tsgz.moe
addons
extend
hyhproject
admin
behavior
common
conf
controller
Accreds.php
Addons.php
Adgoods.php
Adpositions.php
Ads.php
Areas.php
Articlecats.php
Articles.php
Attributes.php
Banks.php
Base.php
Brands.php
Carts.php
Cashdraws.php
Chargeitems.php
Cronjobs.php
Datacats.php
Datas.php
Ectday.php
Ectdeal.php
Ecttarget.php
Express.php
Friendlinks.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsclassify.php
Goodsconsult.php
Homemenus.php
Hooks.php
Images.php
Index.php
Informs.php
Logmoneys.php
Logoperates.php
Logsms.php
Logstafflogins.php
Member.php
Menus.php
Messages.php
Mobilebtns.php
Navs.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Payments.php
Platform.php
Privileges.php
Recommends.php
Reports.php
Roles.php
Settlements.php
Shops.php
Speccats.php
Staffs.php
Styles.php
Sysconfigs.php
Templatemsgs.php
Userranks.php
Users.php
Userscores.php
Wsysconfigs.php
Wxmenus.php
Wxpassivereplys.php
Wxtemplatemsgs.php
Wxusers.php
model
validate
view
app
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
66 lines
1.3 KiB
PHP
Executable File
66 lines
1.3 KiB
PHP
Executable File
<?php
|
|
namespace wstmart\admin\controller;
|
|
use wstmart\admin\model\Ads as M;
|
|
/**
|
|
* ============================================================================
|
|
* 广告控制器
|
|
*/
|
|
class Ads extends Base{
|
|
|
|
public function index(){
|
|
return $this->fetch("list");
|
|
}
|
|
/**
|
|
* 获取分页
|
|
*/
|
|
public function pageQuery(){
|
|
$m = new M();
|
|
return WSTGrid($m->pageQuery());
|
|
}
|
|
/**
|
|
* 跳去编辑页面
|
|
*/
|
|
public function toEdit(){
|
|
$m = new M();
|
|
$data = $m->getById(Input("id/d",0));
|
|
return $this->fetch("edit",['data'=>$data]);
|
|
}
|
|
/*
|
|
* 获取数据
|
|
*/
|
|
public function get(){
|
|
$m = new M();
|
|
return $m->getById(Input("id/d",0));
|
|
}
|
|
/**
|
|
* 新增
|
|
*/
|
|
public function add(){
|
|
$m = new M();
|
|
return $m->add();
|
|
}
|
|
/**
|
|
* 修改
|
|
*/
|
|
public function edit(){
|
|
$m = new M();
|
|
return $m->edit();
|
|
}
|
|
/**
|
|
* 删除
|
|
*/
|
|
public function del(){
|
|
$m = new M();
|
|
return $m->del();
|
|
}
|
|
/**
|
|
* 修改广告排序
|
|
*/
|
|
public function changeSort(){
|
|
$m = new M();
|
|
return $m->changeSort();
|
|
}
|
|
|
|
|
|
}
|