Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
lydia
Starting Member
34 Posts |
Posted - 2012-03-16 : 01:07:08
|
| Good morning !Hope you all doing good :)Today i have one more question.Could you please help me?I would like to know how to set permission(authorize)for user.I have two kinds of user,user A i would add permission only menu User and Product Department.user B i would add for User and IT Departement.Please kindly see coding below (.js and .asp).Thanks in advance :)--data.inc.jsvar a = new Array;a[0] = new Array;a[0]['caption'] = "user";a[0]['isOpen'] = false;a[0]['isChecked'] = 2;a[0]['children'] = new Array;a[0]['children'][0] = new Array; a[0]['children'][0]['caption'] = "edit user";a[0]['children'][0]['children'] = new Array;a[0]['children'][0]['children'][0] = new Array;a[0]['children'][0]['children'][0]['caption'] = "Change Password";a[0]['children'][0]['children'][0]['url'] = "http://XX/fixasset/change_pwd.asp";a[0]['children'][0]['children'][0]['target'] = "content_frame";a[1] = new Array;a[1]['caption'] = "Product Departement";a[1]['children'] = new Array;a[1]['children'][0] = new Array;a[1]['children'][0]['caption'] = "Hong Kong Disneyland";a[1]['children'][0]['children'] = new Array;a[1]['children'][0]['children'][0] = new Array;a[1]['children'][0]['children'][0]['caption'] = "Customer Call to 1451 and Top up";a[1]['children'][0]['children'][0]['url'] = "http://XX/fixasset/hongkong.asp";a[1]['children'][0]['children'][0]['target'] = "content_frame";a[1]['children'][0]['children'][1] = new Array;a[1]['children'][0]['children'][1]['caption'] = "Total sub. Call to 1451 and Top up";a[1]['children'][0]['children'][1]['url'] = "http://XX/fixasset/total_sub.asp";a[1]['children'][0]['children'][1]['target'] = "content_frame";a[1]['children'][0]['children'][2] = new Array;a[1]['children'][0]['children'][2]['caption'] = "Customer Lucky E-card and Gold";a[1]['children'][0]['children'][2]['url'] = "http://XX/fixasset/lucky_draw.asp";a[1]['children'][0]['children'][2]['target'] = "content_frame";a[2] = new Array;a[2]['caption'] = "IT Departement";a[2]['children'] = new Array;a[2]['children'][0] = new Array;a[2]['children'][0]['caption'] = "Call detail";a[2]['children'][0]['children'] = new Array;a[2]['children'][0]['children'][0] = new Array;a[2]['children'][0]['children'][0]['caption'] = "Call detail prepaid";a[2]['children'][0]['children'][0]['url'] = "http://XX/fixasset/prepaid_calldetail.asp";a[2]['children'][0]['children'][0]['target'] = "content_frame";a[2]['children'][0]['children'][1] = new Array;a[2]['children'][0]['children'][1]['caption'] = "Call detail postpaid";a[2]['children'][0]['children'][1]['url'] = "http://XX/fixasset/postpaid_Calldetail.asp";a[2]['children'][0]['children'][1]['target'] = "content_frame";a[2]['children'][0]['children'][2] = new Array;a[2]['children'][0]['children'][2]['caption'] = "Check IMSI";a[2]['children'][0]['children'][2]['url'] = "http://XX/fixasset/check_imsi.asp";a[2]['children'][0]['children'][2]['target'] = "content_frame";----index.asp<html><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack --><head><title></title><script type="text/javascript" src="js/Bs_Tree.class.js"></script><script type="text/javascript" src="js/Bs_TreeElement.class.js"></script><script type="text/javascript" src="js/data1.inc.js"></script><script type="text/javascript" src="js/Bs_Array.class.js"></script><script type="text/javascript" src="js/Bs_Md5.lib.js"></script><script>function init() { t = new Bs_Tree(); t.initByArray(a); t.drawInto('treeDiv1');}</script></head><body onLoad="init()" bgcolor="C8ACC0"><Form action="index.asp" method="post" id="index" name="index"><table bgcolor="C8ACC0" align="left" cellpadding=0 cellspacing=0 border=0 width ="15%"><tr> <td><div id="treeDiv1"></div></td></tr></table> <table align="center"border=0 width=83% height=100%> <tr > <td ><iframe id="content_frame" name="content_frame" marginWidth=0 marginHeight=0 src="" frameBorder="0" width="100%" height="100%"></iframe> </td> </tr></table></Form></body></html> |
|
|
lydia
Starting Member
34 Posts |
Posted - 2012-03-21 : 07:05:54
|
| Hi ! How to create tree view control uisng javascript? Any one tell me the code plz |
 |
|
|
|
|
|