Thinkphp-based background management system Template quick setup, thinkphp background template. The thinkphp-based background management system Template is quickly built. when we build a website, backend developers compile the background management system, thinkphp background management system templates are usually set up quickly based on thinkphp background management system templates.
When building a website, backend developers often need to write a template for the background management system due to the lack of a suitable template, due to work arrangements in the past few days, I need to study the background management system of thinkcmf, so I found that the mode is quite good. I feel that almost every background management system can be applied, I divided the topic framework into four main parts: three-level menu bar, content iframe, label bar, and top bar, such:
Does it make sense? Is there any kind of backend management system that can be applied? Because the entire background is too large, but we only need a subject UI framework like this. I copied it and pasted it again, extract the UI implementation we need,
View the effect: http://www.live086.cn/Text/ (space will be disabled, so you can download the source code, directly on the local server (wampserver) can run)
Obtain source code: http://pan.baidu.com/s/1gdEqUYJ password: c951
This UI is quite special. when we select the third-level menu bar, the content iframe on the right will be changed instantly, the selected menu items will also appear on the tab bar in the form of tags. you can switch between them and close them at will. you can also click "refresh current content iframe". The entire operation is comfortable, simple, and convenient, the code mainly implements these functions from several aspects:
openapp(url, appid, appname, selectObj)
This is a core function, that is, to open the iframe corresponding to the menu bar or the label bar. the url is the path of iframe. thinkphp is generated using the U method. appid is the unique identifier of iframe and is required, it is very important to hide iframe when you switch the label column. Otherwise, you will not be able to click the menu bar. for details, you can download the source code. appname indicates the label display name, selectObj is the trigger object
$current_iframe[0].contentWindow.location.reload();
The refresh function uses the contentWindow attribute of iframe, which is equivalent to obtaining the window object of iframe, so it can be refreshed.
How to Implement Level-3 menus? Disable label implementation? You can view the source code for other details!
When we build a website, backend developers often write backend management systems...