sjasthi / learnandhelp

Learn and Help: Learn programming and help different causes.
MIT License
0 stars 10 forks source link

Bug fixes and completed CRUD functionality for school images #23

Closed rlaprise closed 1 year ago

rlaprise commented 1 year ago

admin_delete_school.php - when deleting a school from the database also delete all of the media files and the media directory for the school

admin_edit_school.php - if the media directory for the school does not exist yet the page will not attempt to scan the directory and tile the media files it contains

admin_school_media.php - will only return user to the admin_school_edit.php page if the operation was successful. Setting a media file as the profile image and renaming media files is implemented

admin_uploads_school.php - will now create the subdirectory under the schools directory if one does not exist

main.css - ids for setting width of file name field for renaming school media, setting width of filename field for uploads, making upload error messages show up in bold red text

school_details.php - same code and logic as schools.php to determine what to use for a profile image, also checks if the schools/(school id)/ directory exists and if not does not attempt to display any media images

schools.php - will now determine if there is an existing profile_image to use and if one is not found will default to images/admin_icons/school.png