Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
What we have left to do within our log in for this Scuba2U website is we need to build the administrative area. And this is an area where administrators can come in and modify database data. Now, I do have an Admin homepage set up here along with three other Admin pages. So, let's take a look at what's set up at this point. We can assume that Scuba2U, their admin folks or their website maintenance folks have created these pages for us.
So, we need to go through and make sure they're correct, just like we did previously with the Register and Login pages. So, our Administrative area, this is our homepage. And within this area, they can set up these administrative tasks. Now, there is a word in here that's not quite spelled correctly. So, I will fix the word, Administrative. And down in this area, let's see if there's anything else that needs to be fixed.
Okay. We've got two links. This link is going to our Admin User Insert, which is over here. This second one is going to our Admin User Update, which is right here. And it looks like that there is one more page within this area. Now, notice the Admin User List. So, we have four pages we can work in, two of which are linked to from this page. So, I'll save this page. Now, insert a new user.
We'll start here. So, let's go out to the Admin User Insert page. Now, the page in all Chapter files prior to Chapter 7 do have some things that needed to be modified in this Admin User Insert page. And I have kept them that way. So, if you have been moving through this course progressively and your Chapter files are not Chapter 7 files, you started prior to Chapter 7. Going through the course and using prior Chapter's course files, you will need to make some corrections on this page.
So, I purposely did that. What corrections do we need? Well, anytime you have a form that's created by somebody else to put data in or modify data for a database, you need to go through just like we did on the register page. So, first name. Character width, 30, maximum characters 40. Okay, our database will accept 40. So, go through each one of this form fields if you are using files from the prior version of the course files.
If you don't want to have to go through that, the Chapter 7 start files have an updated version of this Admin User Insert. You can copy into your HT docs, Scuba2U folder. So, this one has been corrected. Now, what we have here is the ability of admin users to directly insert someone into the admin role. So, if we have internal office people, we want to give admin rights in order to update our database data, our administrator can do that.
This is not functional at this point, we need to add that piece. If we go out to the Admin User Update, the other link, the other link for administrative users, we go out to Admin User Update. Let's see what that page looks like. This one is an update user details. It's the exact same form, or should be the same form, as our insert form. Now, this one may not be updated. I have not revised that file for you.
I do want to give you a little bit of homework along the way as we go through this course. So, the process I'm talking about of matching up the form fields and making sure that our data down here, maximum characters of 40 for our last name, that our database will allow that. So, what we are going to do is make these two pages, the Admin User Update and the Admin User Insert page is active. I just wanted to give you an overview of the administrative interface that we will be building.
You can see this home section eventually will allow administrators to add tours and change tour data, and update probably other items within our database. But for now, our task is to get the user information for the Login section able to be updated by users within the administrative area only. So, let's build our administrative interface.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98243 Viewers
61 Video lessons · 85549 Viewers
71 Video lessons · 69504 Viewers
56 Video lessons · 101842 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.