System menu bar [attach source code]
It seems that we need more modules. We have a sample program that can help us in the future of system development do a lot of control, we also later have the system log and system anomalies records, then browsing difficulties, we this section to complete a favorite things, the System menu bar, We reserve a location on the left side of the system where the menu is stored, where the menu can be divided into two main categories,
1. Outlook mode, can use Easyui accordion, do can be very beautiful, blog Park A lot of people write system, I have seen with this, menu can also put the menu icon, here to see an effect (this is the J-ui rich client Frame menu bar) The advantage is beautiful ah, Shortcomings are also obvious, only two-layer structure, the system is huge, the menu is too much, display is very troublesome, not enough and not good-looking, accordion with tree looks very cumbersome, I prefer simple things
Accordion:
Accordion and tree combination:
2. Tree mode, the structure of trees, the disadvantage is concise, there is no visual angle of enjoyment, the advantages are unlimited level, Ajax asynchronous acquisition, speed. There are a lot of tree jquery plug-ins, you can use Easyui trees, I do not have to Easyui, I download a more lightweight jquery tree plug-in--wdtree This is very lightweight, support asynchronous
Do it! Download Wdtree plugin, I provide download here, I previously downloaded the wdtree is not very good (do not know now there is no new version), but I reset the plugin to repair, very consistent with the menu operation,
Wdtree repair version Download: http://files.cnblogs.com/ymnets/wdtree.7z
After decompression, put the JS file into the scripts directory, put the style in the content directory