You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
979 B
PHTML
37 lines
979 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
namespace Home\Controller;
|
||
|
|
||
|
/**
|
||
|
* 前台首页控制器
|
||
|
* 主要获取首页聚合数据
|
||
|
*/
|
||
|
class SiteApplyController extends BaseController {
|
||
|
|
||
|
//站点申请
|
||
|
public function index(){
|
||
|
$model = D('SiteApply');
|
||
|
$data = $model->get_promote_data();
|
||
|
$this->assign('data',$data);
|
||
|
$this->assign('account',PROMOTE_ACCOUNT);
|
||
|
$this->meta_title = "站点申请";
|
||
|
if ($_GET['msg'] && $data['status']!= 1) {
|
||
|
/* $this->assign('msg','您未申请联盟站点或正在审核中'); */
|
||
|
$this->assign('msg','您申请的联盟站点正在审核中');
|
||
|
}
|
||
|
$this->display();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 添加/编辑 站点申请
|
||
|
*/
|
||
|
public function apply(){
|
||
|
$model = D('SiteApply');
|
||
|
$res = $model->SaveData();
|
||
|
if($res !== false){
|
||
|
$this->success('申请成功!');
|
||
|
}else{
|
||
|
$this->error('申请失败:'.$model->getError());
|
||
|
}
|
||
|
}
|
||
|
}
|