Guest User

Untitled

a guest
Apr 25th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 KB | None | 0 0
  1. The ‘persons’ table has the following columns.
  2.  
  3. • PersionId, INT, Primary Key, NOT NULL, AUTO INCREMENT
  4. • FirstName, VARCHAR(50), NULL
  5. • LastName, VARCHAR(50), NULL
  6. • EmailAddress, VARCHAR(255), NULL
  7. • Password, VARCHAR(50), NULL
  8. • SocialInsuranceNumber, VARCHAR(11), NULL
  9. • TelephoneNumber, VARCHAR(20), NULL
  10.  
  11. The ‘transactions’ table has the following columns.
  12.  
  13. • TransactionId, INT, Primary Key, NOT NULL, AUTO INCREMENT
  14. • PersonId, INT, NULL
  15. • AmountTransferred, DECIMAL(9,3), NULL
  16.  
  17. NOTE: you can use the SQL command ‘DESCRIBE persons’ or ‘DESCRIBE transactions’ for more information about your table.
  18.  
  19.  
  20. CreateAccount.php
  21. Create a PHP form that will create user accounts in the Persons table of your database.
  22.  
  23. Details:
  24.  
  25. 1. Use ‘input’ tags to accept the information listed in Task 2. Your form must populate all the columns of the ‘persons’ table.
  26. 2. After the information has been submitted to the database save each of the values from the form in the Session State.
  27. 3. Once the user data is stored in the Session, automatically redirect the user to ‘Home.php’
  28.  
  29. NOTE: PersonId is listed as ‘AUTO INCREMENT’ meaning that the database will automatically populate this field.
  30.  
  31. Login.php
  32. Divide this page into two sections to be viewed Side by Side.
  33.  
  34. On the Right Side
  35. Create a form allows the user to log into your application.
  36.  
  37. Details:
  38.  
  39. 1. Create a form to accept the users EmailAddress and Password as credentials to your site. Use an SQL Query to determine if the person has an account.
  40. 2. If the user has an account, store ALL of their personal information in the Session State and then redirect the user to ‘Home.php’. Display an error if the user cannot log into the system.
  41. 3. The page must also contain a link to ‘CreateAccount.php’ so that a client can create an account if they do not have one.
  42.  
  43. On the Left Side
  44. Use the code found in XMLCodeExample.zip (Module 4, Part 3) to show the Bank News items. Remove the section that displays the Channels Title, Description and Link but leave the code that displays the Items.
  45.  
  46.  
  47. Home.php
  48. This page will display the following information:
  49.  
  50. • The amount currently in the users account
  51. o Read all of the users Transactions from the transactions table. Add up all of the values of ‘AmountTransferred’ and display the result
  52. o If there are no transactions be sure to display 0
  53. • A record of the last 3 transactions the user has completed
  54. o The table must include a Header
  55. o Each transaction row must contain
  56.  The type of transaction (if the amount is positive ‘DEPOSIT’, if the amount is negative ‘WITHDRAW’)
  57.  The amount deposited or withdrawn
  58. o If the user does not have transactions associated with their account inform the user that ‘You have not completed a transaction.”
  59.  
  60. If the user has not logged into this application, the user is to be redirected to the login screen.
  61.  
  62. Deposit.php
  63. Create a PHP form that will allow the user to deposit money into the application. A simple text box will suffice. Be sure to display error and success messages depending on the forms result.
  64.  
  65. If the user has not logged into this application, the user is to be redirected to the login screen.
  66.  
  67. NOTE: When depositing an amount into the transactions table be sure that the amount is a positive number.
  68.  
  69. Withdraw.php
  70. Create a PHP form that will allow the user to withdraw money from the application. A simple text box will suffice. Be sure to display error and success messages depending on the forms result.
  71.  
  72. If the user has not logged into this application, the user is to be redirected to the login screen.
  73.  
  74. NOTE: When withdrawing an amount from the transactions table, be sure to convert the amount into a negative number.
  75.  
  76. Report.php
  77. This page will display the following information:
  78.  
  79. • The amount currently in the users account
  80. o Read all of the users Transactions from the transactions table. Add up all of the values of ‘AmountTransferred’ and display the result
  81. o If there are no transactions be sure to display 0
  82. • A record of all of the transactions the user has completed
  83. o The table must include a Header
  84. o Each transaction row must contain
  85.  The type of transaction (if the amount is positive ‘DEPOSIT’, if the amount is negative ‘WITHDRAW’)
  86.  The amount deposited or withdrawn
  87. o If the user does not have transactions associated with their account inform the user that ‘You have not completed a transaction.”
  88.  
  89. If the user has not logged into this application, the user is to be redirected to the login screen.
  90.  
  91. CloseAccount.php
  92. Create a form that allows the user to close their account.
  93.  
  94. Details:
  95.  
  96. 1. Create a form to accept the users EmailAddress and Password as credentials to close their account. Compare the values from the form to the information stored in the session state.
  97. 2. If the user has entered the correct credentials delete all of the content related to their account in the database (all transactions and the record in the person table)
  98. 3. Once the user information has been removed from the application go ahead and redirect the user to Login.php
  99.  
  100. If the user has not logged into this application, the user is to be redirected to the login screen.
Add Comment
Please, Sign In to add comment