AJAX coding already exists for this project in old file (attached). In this file look under CONTACTS heading. Code can be taken from this file, and implemented below.
[login to view URL]
user name: contacts project
password: contacts project
1. put 3 links at bottom of page [login to view URL], under 'total contacts':
view management
view all contacts
add contact
make add contact link colour #0099CC
2. when view management is clicked, page loads:
[login to view URL]
only contacts that are not part of division, business line or department are listed here.
When view all contacts is clicked, page loads:
[login to view URL]
all contacts for the bank are listed. At the top of list are contacts who are not part of a division. Then all other contacts, alphabetically by division.
if add contact is clicked from point number 1 above, please load page:
[login to view URL]
follow same procedure as point 10 below
3. drop down box division to list all divisions of bank on display
4. when a division is selected, page displays all contacts in the selected division
drop down box business line will also list the business lines on the database for the division selected
5. when a business line is selected, page displays all contacts in the selected business line
drop down box department will also list the departments on the database for the business line selected
6. when a department is selected, page lists all contacts for the selected department
7. when ADD is clicked (to the left of select division), page loads:
[login to view URL]
if ADD is pressed again, page loads:
[login to view URL]
when save is pressed, new divisions are added to database.
please implement same proceedure for adding business lines and departments
8. if EDIT is clicked (to the left of select division), page loads:
[login to view URL]
all existing divisions are listed
if user clicks on box to the left of 'all', and presses delete, all divisions are deleted.
if user ticks the box to the right of each division name, and presses delete, the ticked division is deleted
please implement the same for editing business lines and departments.
9. if DELETE is clicked (to the left of select division), the division that is displaying in the division drop down box is deleted.
please implement that same for deleting of business lines and departments
10. if add contact is clicked, page loads (without page reloading):
[login to view URL]
if add contact is clicked again, page loads:
[login to view URL]
when save is pressed, all contacts are added to database
11. if the edit link is clicked for any contact (to the left of copy), page loads:
[login to view URL]
all relevant data is displayed for the contact
if edit is pressed again, or close is clicked, page loads:
[login to view URL]
when save is pressed, all edits for all contacts are saved
12. if Luzerner Kantonalbank, Luzern, Switzerland is clicked, page returns to [login to view URL] and displays the relevant bank
if it is clicked without save being pressed, drop down box appears:
Do you want to save information first?
If yes is clicked, data is saved, and page [login to view URL] loads
If no is clicked, [login to view URL] loads without data saved.
13. if copy is clicked for any contact, a new contact appears (without page reloading) with following data:
empty first name
empty last name
empty email
same job title
same telephone
same fax
same tick boxes for department: head, deputy head, chief representative
same tick boxes for management: head, deputy head, member
same job title 2, 3 & 4
same area of finance 1-10
same industry 1-10
same region of interest 1-5
when save is pressed, all contacts are added to database.