Admin Functionality

Whilst inputting films into the DB so I had something in there to work with on the php and front end stuff I built a little basic admin section. You know the basics like add and update films, add and update genres to films, add and update films onto lists and add lists. This was all done to make it a bit easier on me to add test data into the db but this quickly because my main way of addint proper data into the DB as I started adding all the films I was currently watching, that way when the site goes live it will have a load of info in there.

Now a few things annoyed me with this very simple admin area, the main one being that I didnt handle any image uploads and for each film I need to add a banner image and a thumbnail. This meant I had to do these image uploads manually which was time consuming to say the least especially when I left them till later to do and then spend half a day making and uploading the ones I hadn't done for the entries already in the DB.

So today I updated the admin section a little and put in a bit more functionality. I had already added in the classic button last time so this time around on the edit page for a film entry I added in the ability to upload images for the banner and thumbnail. I also made it so this is all done via 1 php scrip no mater which image your uploading.

After sorting this I went back to the edit form and added in a bit of functionality to say if an image has already been uploaded for the banner or thumb so you can see. Then on the main index page of the admin area I added a little function that checks if both images exist for each entry as it puts them on the page for you to see. If both images exist then you can make that entry live on the site, if not then you cant. That way it stops me making a film live before the images have been added.

I am still working on the layout for the site, which is getting there, its just the design I now need to actually do and I can start putting together the final build of it all.


>>back<<