I am in the development of the company OA system. I want to find a 9CBS menu. But there is such code on the Internet. But I am not based on the database, I can't follow the right to manage. I wrote one. I have this. There is only one program file and one Database. There are few files, it is also easy to check. But the features are fully implemented!
Database structure:
Table: Menu ID Parentid, Int, 4 Menuname, Char, 20 Link, Char, 50
Table: Userlevel ID Userid, Int, 4 Menuid, Int, 4
------------------------------------- Serial source file: menulist.asp ------ ---------------------------------------------------------------------------------------------------------------------------------------
<% '------------------------------' 'source business planning company - OA system' module name: Menu for permission controls '-------------------------------'
SET CONN = Server.createObject ("AdoDb.Connection") Conn.Open ("Provider = Microsoft.jet.OleDb.4.0; Data Source =" Server.MAppath ("Tree.mdb") "; Persist Security Info = False ")%>
Body, Td {FONT: 12PX VERDANA} #treebox {background-color: #ffffa;} #} #}: 0 5 0 5;} # treebox .hasitems {font-weight: bold; height: 20px; padding: 3 6 0 6; Margin: 2px; Cursor: Hand; Color: # 555555; border: 1px solid #ffffa;} # Treebox .Items {height: 20px; padding: 3 6 0 6; Margin: 1px; cursor: hand; Color: # 555555; border: 1px solid #fffa;}