You've already forked qlg.tsgz.moe
addons
app_download_files
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
LogSysData.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
TradeRule.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
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
hyhproject.tar.gz
index.html
index.php
reg.lock
robots.txt
96 lines
2.2 KiB
PHP
Executable File
96 lines
2.2 KiB
PHP
Executable File
<?php
|
|
namespace wstmart\admin\controller;
|
|
use wstmart\admin\model\TemplateMsgs as M;
|
|
/**
|
|
* ============================================================================
|
|
* 消息模板控制器
|
|
*/
|
|
class Templatemsgs extends Base{
|
|
|
|
public function index(){
|
|
$this->assign('src',(int)input('src'));
|
|
return $this->fetch("list");
|
|
}
|
|
/**
|
|
* 获取分页
|
|
*/
|
|
public function pageMsgQuery(){
|
|
$m = new M();
|
|
return WSTGrid($m->pageQuery(0,'TEMPLATE_SYS'));
|
|
}
|
|
/**
|
|
* 设置是否显示/隐藏
|
|
*/
|
|
public function editiIsShow(){
|
|
$m = new M();
|
|
$rs = $m->editiIsShow();
|
|
return $rs;
|
|
}
|
|
/**
|
|
* 跳转去新增页面
|
|
*/
|
|
public function toEditMsg(){
|
|
$id = (int)input('id');
|
|
$m = new M();
|
|
if($id>0){
|
|
$data = $m->getById($id);
|
|
}else{
|
|
$data = $m->getEModel('template_msgs');
|
|
}
|
|
$this->assign('object',$data);
|
|
return $this->fetch("edit_msg");
|
|
}
|
|
/**
|
|
* 跳转去新增页面
|
|
*/
|
|
public function toEditEmail(){
|
|
$id = (int)input('id');
|
|
$m = new M();
|
|
if($id>0){
|
|
$data = $m->getById($id);
|
|
}else{
|
|
$data = $m->getEModel('template_email');
|
|
}
|
|
$this->assign('object',$data);
|
|
return $this->fetch("edit_email");
|
|
}
|
|
/**
|
|
* 跳转去新增页面
|
|
*/
|
|
public function toEditSMS(){
|
|
$id = (int)input('id');
|
|
$m = new M();
|
|
if($id>0){
|
|
$data = $m->getById($id);
|
|
}else{
|
|
$data = $m->getEModel('template_sms');
|
|
}
|
|
$this->assign('object',$data);
|
|
return $this->fetch("edit_sms");
|
|
}
|
|
|
|
/**
|
|
* 发送消息
|
|
*/
|
|
public function edit(){
|
|
$m = new M();
|
|
return $m->edit();
|
|
}
|
|
|
|
/**
|
|
* 获取分页
|
|
*/
|
|
public function pageEmailQuery(){
|
|
$m = new M();
|
|
return WSTGrid($m->pageEmailQuery());
|
|
}
|
|
/**
|
|
* 获取分页
|
|
*/
|
|
public function pageSMSQuery(){
|
|
$m = new M();
|
|
return WSTGrid($m->pageQuery(2,'TEMPLATE_SMS'));
|
|
}
|
|
|
|
}
|