InterfaceRestructure

2009-02-10 4:37 PM

Interface Redesign (SecMenu)

The new interface will look something like:


Menu System

The layout for this menu should be stored in the web config file. It should look something like:

<mainmenu>     <item name=&#34;study&#34; url=&#34;study.aspx&#34; permissions=&#34;1,2,3,4,5,6&#34;/>     <item name=&#34;Define&#34; permissions=&#34;1,3,5,6&#34;>         <tags url=&#34;#.aspx&#34;/>         <modules url=&#34;#.aspx&#34;/>     </item>     <item name=&#34;Assign To&#34; permissions=&#34;1,3,5,6&#34;>         <item name=&#34;users&#34; url=&#34;users.aspx&#34;/>         <item name=&#34;groups&#34; url=&#34;groups.aspx&#34;/>     </item>     <item name=&#34;trac&#34; permissions=&#34;1,2,3,5,6&#34;>         <modules url=&#34;track#.aspx&#34;/>     </item>     <item name=&#34;Reports&#34; permissions=&#34;1,2,3,5,6&#34;>         <item name=&#34;Current Training&#34; url=&#34;current.aspx&#34;/>         <item name=&#34;Past Training&#34; url=&#34;history.aspx&#34;/>         <item name=&#34;Crystal Reports&#34; url=&#34;cr.aspx&#34;/>     </item> </mainmenu> 

This xml will likely have to go in the <appSettings> section of the web.config file. We will research later on the feasibility of this.

Programming Notes

For this control to work the following code must be on the page (usually just after the global bar) <os5:SecMenu id=&#34;SecMenu&#34; runat=&#34;server&#34;></os5:SecMenu> Also the content of the page needs to be enclosed in a div such as this: <div class=&#34;login&#34; id=&#34;content&#34;> ... page content ... </div> The important part is that it has the id=&#34;content&#34; part! Here is an example of a page's body section:

<form id=&#34;Form1&#34; method=&#34;post&#34; runat=&#34;server&#34;> <uc1:globalbar id=&#34;globalBar&#34; runat=&#34;server&#34; pagename=&#34;frmUsers.aspx&#34;></uc1:globalbar> <os5:SecMenu id=&#34;SecMenu&#34; runat=&#34;server&#34;></os5:SecMenu> <div class=&#34;login&#34; id=&#34;content&#34;> This is where the page content would be </div> </form> 
Tags:
Home: WikiStart
What's new: Recently changed articles
You can subscribe to this wiki article using an RSS feed reader.