This topic is locked
[SOLVED]

 Menu system

10/4/2010 11:28:51 PM
PHPRunner General questions
K
karmacomposer author

Next question.
My client has a need to have three separate groups enter data simply to register them before they even gain access to the database. Even though I am using dynamic password protection with encryption, the need for certain people to see records and others to see only their own is so all over the place, it is tying my brain in a knot.
The only way, so far, that I can figure this out is to have a menu system.
If you are a Recruiter, click here - and that goes to a specific recruiter registration page, that also serves to store their username and password (as well as many other fields).
If you are a Employer, click here - that goes to another specific reg page that also is used to choose their username and password (but the other data is totally different from the recruiter reg form).
Finally, if you are a Candidate, click here - that goes to the candidate reg page, including username and password, with its own fields that are unique to the other two.
Once people are validated, they then have to fill in even more data depending on who they are (recruiter/employer/candidate). The client will be approving the recruiters only. Everyone else is more automatic.
First, can you create a menu system like that in PHPRunner? Can you send people to different forms, 3 of them, that all are used to validate depending on what they choose - all within the same database? Finally, if you can, how the heck would I do it?
Mike

Sergey Kornilov admin 10/5/2010

I believe you need to check User Group permissions under Security screen. Using User Group permissions you can restrict access to certain pages and tables so menu displays menu items available to current user automatically.

K
karmacomposer author 10/5/2010



I believe you need to check User Group permissions under Security screen. Using User Group permissions you can restrict access to certain pages and tables so menu displays menu items available to current user automatically.


Do I use themes to set how the buttons/links to the menu options will look?
I really wanted more of a website-type navigation, with buttons and images. Can I link to various parts of the database without screwing things up?
Mike

woodey2002 10/5/2010

PhpRunner is great at things like buttons, menus and many many more great things <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53270&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53270&image=2&table=forumreplies' class='bbc_emoticon' alt=':lol:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53270&image=3&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />
PhPrunner makes it easy to add custom buttons on the list page for example...
To add images for the buttons on the list page (print page, delete record, add record, etc.) you need to edit HTML code on the Visual Editor tab. Here is just a sample:

--------------------------

<a href=# {$deleteselectedlink_attrs}><IMG src="images/delete.jpg" border=0 />Delete selected</a>
That's it now you have custom buttons...
To change default ADD/SAVE buttons
Go to
generated include/style.css file. Find and edit this code:

--------------------------

INPUT.button,

INPUT.buttonM

{

background: #FF6600;

border: 1px solid #FFE4A2;

color: white;

font-family: Tahoma, Verdana, Arial, SunSans-Regular, Sans-Serif;

font-size: 11px;

cursor: pointer;

WIDTH: auto;

FONT-WEIGHT: bold;

}.
-------------------------
That's it job done...
Regarding custom menus etc, creating some table views for each group you need to grant access might work. Better to keep user details in single table I think, to avoid trouble down the line.
Hope this helps,
James
PhpRunner's No1 Fan <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53270&image=4&table=forumreplies' class='bbc_emoticon' alt=':ph34r:' />

K
karmacomposer author 10/5/2010

Thank you.
I am not going to change the buttons phprunner creates, but create a custom menu to go to different areas of the database, much like a website (I am a website designer).
Mike