Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have to set user rights in my application
In my application there are 3 user Admin,user1,User2.
For menu i have CSS file.

For User 1 i have to show 3 forms acc_master,StateMaster and sales form
For User 2 i have to show 2 forms dispatch form,and enquiry form.
for admin all forms to be shown

I have to set all this with single CSS file.

my css file is as follow

HTML
<ul id="css3menu3" class="topmenu" style="width: 968px">
<li class="topmenu" style="width: 160px"><a href="#" title="Master Maintenance">
	<span> Master Maintenance</span></a>
	<ul>
		<li class="subfirst"><a href="#" title="Account Master"><span>Account Master</span></a>
		<ul>
			<li class="sublast"><a href="../FormDetails/AccountLedger.aspx" title="Account Ledger">Account Ledger</a></li>
		</ul>
		</li>
		<li class="sublast"><a href="#" title="Product Master"><span>Product Master</span></a>
		<ul>
			<li class="subfirst"><a href="GroupMaster.aspx" title="Group Master">Group Master</a></li>
			<li><a href="StateMaster.aspx" title="UOM/State Master">UOM/State Master</a></li>
			<li><a href="ProductMaster.aspx" title="Product Details">Product Details</a></li>
</ul></li>
		</ul>
		</li>
		<li class="sublast"><a href="#" title="Sales/Expense Tax Master"><span>Sales/Expense Tax Master</span></a>
		<ul>
			<li class="subfirst"><a href="TaxMaster.aspx" title="Product Group">Tax Master</a></li>	
		</ul>
		    <li class="sublast"><a href="CompanyMaster.aspx" title="Company Master"><span>Company Master</span></a>
		</li>
	</li></ul>
	
	<li class="topmenu" style="width: 160px"><a href="#" title="Daily Entry">   
           Daily Entry<span></span></a>
	<ul>
		<li class="sublast"><a href="SalesOrder.aspx" title="Sales Order">Sales Order</a></li>
	<li class="sublast"><a href="DispatchOrder.aspx" title="Dispatch Order">Dispatch Order</a></li>
	
	</ul>
	</li>
	    
	
	<li class="topmenu" style="width: 160px"><a href="#" title="Exit" önclick="closeMe();">Exit</a></li>
Posted
Updated 19-Sep-11 21:59pm
v2
Comments
jim lahey 20-Sep-11 3:59am    
Added pre tags
rkthiyagarajan 20-Sep-11 21:57pm    
Whats your question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900