Watch 3 Star 8 Fork 0

froyo / thinkcmf-admin-materialdashboard

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
thinkcmf5 后台模板 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

thinkcmf-admin-materialdashboard

  • thinkcmf-admin-materialdashboard 已前端模板material-dashboard 作为基础,结合thinkcmf官方bootstrap3 的模板修改而来。模板并不是单纯修改css样式,改动了页面html结构,所以请勿直接覆盖项目模板

  • thinkcmf-admin-materialdashboard 模板采用thinkphp模板继承的方式,改变官方默认模板引入公共头文件的方式,方便样式修改,以及后期改为页面形式而不是iframe的方式

  • 改动php主要是admin/index/index中显示菜单的php代码

  • 所有页面,如果需要在模板中定义php函数,请在phpscript block中操作或者在对应的block中,block之外的所有代码无效!!!

  • 在admin/index/index中添加了一项demo菜单,用于给出表格,图表,表单页面的模板实例,记得删除

界面效果显示

chart teamplate

table teamplate

form teamplate

setting teamplate

使用方式

  • 下载文件,解压到public\themes\目录下

  • 在配置文件中设置cmf_admin_default_theme=>admin_materialdashboard

  • 新建user\controlles\AdminDemoController控制器,用于显示页面demo

namespace app\user\controller;

use cmf\controller\AdminBaseController;
use cmf\lib\Upload;
use think\View;


class AdminDemoController extends AdminBaseController
{
	public function table(){
		return $this->fetch();
	}
	public function chart(){
		return $this->fetch();
	}
	public function form(){
		return $this->fetch();
	}
}

Comments ( 3 )

You need to Sign in for post a comment

1
https://gitee.com/froyo/thinkcmf-admin-materialdashboard.git
git@gitee.com:froyo/thinkcmf-admin-materialdashboard.git

Help Search