When we build the site, back-end developers in the background of the management system, often because of the lack of a suitable background management system template, and must go to rewrite A, these days because of the work of the arrangement, need to study the THINKCMF of the backstage management system, So found that the pattern is quite good, feel basic every background management system can be applied, I have its theme framework divided into 4 chunks, three level menu bar, content iframe, tab bar, the top bar, such as:
Do you think it's a good kind of? Is there a kind of bright that all the backend management systems can apply? Because the whole background is too large, but we just want its main UI framework, the other is not, so I copied it and pasted it, the implementation of the UI we need to extract out,
See the effect: http://www.live086.cn/Text/(Space 2015/09/23 will be deactivated, so you can download the source of the surface, directly on the local server (Wampserver) can run)
Get Source: Http://pan.baidu.com/s/1gdEqUYJ Password: c951
This UI is a special place in, we choose the Level three menu bar, the right side of the content IFrame will be immediately replaced, the selected menu item will also appear in the form of labels on the tab bar, you can switch, close, but also can click to refresh the current content iframe, the whole operation is comfortable and easy, The code mainly implements these functions from several aspects:
This is a core function, that is, to open the menu bar or tab corresponding to the Iframe,url is the path of the IFRAME, thinkphp with U method generation, AppID is the unique identifier of the IFRAME, must pass, When switching the tab bar and the IFrame hidden or not have a very important role, or there will be no effect of clicking on the menu bar, you can download the source code to see, appname is the label display name, Selectobj is the trigger object
$current _iframe[0].contentwindow.location.reload ();
The refresh function is to use the property of the IFrame Contentwindow, which is equivalent to the Window object that obtains the IFRAME, so it can be refreshed.
How is the level three menu implemented? Turn off implementation of tags? Other details of the function can see the source to see!
Quick setup of Background Management system template based on thinkphp