15158846557 在线咨询 在线咨询
15158846557 在线咨询
所在位置: 首页 > 营销资讯 > 网站运营 > 相亲网站平台制作建设,第九篇

相亲网站平台制作建设,第九篇

时间:2023-06-10 09:48:02 | 来源:网站运营

时间:2023-06-10 09:48:02 来源:网站运营

相亲网站平台制作建设,第九篇:​

多语言交友婚恋相亲平台开发,第九篇,也是后台篇,从这篇开始,主要开始记录后台的功能和的操作部分等。

如果有什么问题需要咨询的,可以加我的扣236-0248-666

这个是预览截图效果












网站设置




class SettingController extends AdminController {




/**

* 当前模块参数

*/

protected function _infoModule(){

return array(

'info' => array(

'name' => '网站设置',

'description' => '设置网站整体功能',

),

/* 'menu' => array(

array(

'name' => '站点信息',

'url' => U('Setting/site'),

'icon' => 'exclamation-circle',

),

array(

'name' => '手机设置',

'url' => U('Setting/mobile'),

'icon' => 'mobile',

),

array(

'name' => '模板设置',

'url' => U('Setting/tpl'),

'icon' => 'eye',

),

array(

'name' => '上传设置',

'url' => U('Setting/upload'),

'icon' => 'upload',

),

array(

'name' => '性能设置',

'url' => U('Setting/performance'),

'icon' => 'dashboard',

),

array(

'name' => '安全设置',

'url' => U('Setting/shield'),

'icon' => 'shield',

)

)*/

);

}

点击并拖拽以移动

站点设置




public function site(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

public function mj(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

public function yuny(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

public function tequan(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

public function gzh(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

public function msetting(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

点击并拖拽以移动

手机设置




public function mobile(){

if(!IS_POST){

$breadCrumb = array('模板设置'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('themesList',D('Config')->themesList());

$this->assign('tplList',D('Config')->tplList());

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('模板配置成功!');

}else{

$this->error('模板配置失败');

}

}

}

点击并拖拽以移动

模板设置




public function tpl(){

if(!IS_POST){

$breadCrumb = array('模板设置'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('themesList',D('Config')->themesList());

$this->assign('tplList',D('Config')->tplList());

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay();

}else{

if(D('Config')->saveData()){

$this->success('模板配置成功!');

}else{

$this->error('模板配置失败');

}

}

}

点击并拖拽以移动

性能设置




public function performance(){

$file = APP_PATH . 'Common/Conf/performance.php';

if(!IS_POST){

$breadCrumb = array('性能设置'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',load_config($file));

$this->adminDisplay();

}else{

if(write_config($file, $_POST)){

$this->success('性能配置成功!');

}else{

$this->error('性能配置失败');

}

}

}

/**

* 安全设置

*/

public function shield(){

$file = APP_PATH . 'Common/Conf/shield.php';

if(!IS_POST){

$breadCrumb = array('安全设置'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',load_config($file));

$this->adminDisplay();

}else{

if(write_config($file, $_POST)){

$this->success('安全配置成功!');

}else{

$this->error('安全配置失败');

}

}

}

点击并拖拽以移动

支付设置




public function zhifu(){

if(!IS_POST){

$breadCrumb = array('站点信息'=>U());

$this->assign('breadCrumb',$breadCrumb);

$this->assign('info',D('Config')->getInfo());

$this->adminDisplay('pay');

}else{

if(D('Config')->saveData()){

$this->success('站点配置成功!');

}else{

$this->error('站点配置失败');

}

}

}

点击并拖拽以移动






关键词:建设,平台

74
73
25
news

版权所有© 亿企邦 1997-2025 保留一切法律许可权利。

为了最佳展示效果,本站不支持IE9及以下版本的浏览器,建议您使用谷歌Chrome浏览器。 点击下载Chrome浏览器
关闭