Results 1 to 5 of 5

Thread: [2005] Stupid Login Question [Resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    3

    [2005] Stupid Login Question [Resolved]

    I'm sure this question is either so obvious it doesn't deserve asking, or has already been asked before, but I couldn't find it from searching, sorry.

    I am planning to make an application with 3 user types; basic user, super user and admin.

    From the login page (the first form to be displayed) the user will be presented with 2 text boxes for username and password. Depending on the usertype attached to the username will define which type of user they are.

    Each user will be presented with a different version of the same page upon login, each having the same basic view (a tree view on the left, and a list view on the right) but with different options available depending on the user type.

    My question is, other than using something like the factory method (which I only have a basic understanding of) is there any simple way to use the same form, but have it present the different views depending on user type, or would it be best to have 3 different forms, and for the application to point to a different form depending on user type?

    Thanks for any help
    Last edited by asekga; Jun 18th, 2007 at 10:19 PM.

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Stupid Login Question

    You could have one form and simply disable buttons or hide them if you aren't administrator. It is easy to hide and show whole blocks of controls at once if you put them in a frame.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    3

    Re: [2005] Stupid Login Question

    Thanks for the idea, but its the content of the tree view I want changed.

    For the basic user there will only be one item listed in the tree view, and when selected a set of items shown in the list view.

    For the super user there will be two items in the tree view, the basic user tree, and the super user tree with two drop downs (each with different items listed on in the list view)

    and for the administrator the super user tree options and another main tree with two sub trees.

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Stupid Login Question

    simple enough to load the treeview with all three trees to start with and delete the two unneeded trees. (although this is backwards in how you should do it)
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    3

    Re: [2005] Stupid Login Question

    And its just that sort of backwards logic I was looking for :P

    Thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width