CSY2028 Assignment 2 Report
CSY2028 Assignment 2 Report
Assignment 2
Website for Claire’s cars
1) Repetitive code:
Issue: If you wanted to change the opening hours' time or day, you would have to change each
page individually rather than just one thing.
Solution: You can substitute a function for this section of code and include the times in the
function.Then only one place in the function needs to be changed in the code.Another approach
is to have multiple functions, then simply call the function you want to modify.Since not all of
the functions will be used, there will be unused code as a result.
3) Admin Access:
Issue: Since it is set up as a whole new website, entering the admin section of the website
presents a challenge. The admin index publication's URL must be entered. The switch from the
administration site towards the user site is not seamless.
Solution: You can readily fix this by including further into admin panels main website. To enter
this, configure a button that opens the admin home panel. This may then have a login section,
making the website secure and inaccessible to visitors. This might save time while changing the
layout of the website. They are able to share a layout page, so updates either need to be to be
made once rather than having to be made on both the administration and user sides.
Issue: All of the platform's papers are in the public folder. By accessing every file's name, such as
Cars.je/AdminPage, everybody may see the file, putting your website at risk of hacking.
Solution: Only pages that the user needs to access should indeed be put in the document library
to resolve issue. Therefore, the one and only available to the public files in this case should be
the photos folder, CSS, and index files. Clients won't being able to view more pages without first
utilizing the index as a consequence.
Issue: The website featured separate sites for each manufacturer, so if you intended to add a
new manufacturing to the website, you would be required to make a new webpage to show the
automobiles associated with that company.
Solution: Narrator can always just make a single page that gathers all the data, depending on the
manufacturer of the device. This may be done by include every manufacturer ID in the url and
ensuring that the right user visits. The listing will get a new manufacturer from relatively similar
database and follow procedure when you add one. After that, adding firms toward the page is
simple.
Testing
Bugs
Weaknesses
Evaluation
I will summarize and evaluate the site both before and after the changes in this section.
Before
The website's customer-facing section was well-designed, straightforward, and functional.Navigating
made it simple for me to locate what I was looking for.
Numerous flaws existed on the website, as previously mentioned.Due to the fact that I had to make
the same changes on multiple pages, making changes was difficult and time-consuming.Another
disadvantage of this website is that in order to view the administrator's index page, you must quickly
enter the URL.Customers won't be able to access her website's administration pages otherwise.
I find the viewing options and functionality of the website to be extremely limited.For instance, if I
wanted to include a new manufacturer, I could, but visitors to my website wouldn't be able to see
the cars made by that manufacturer because the manufacturer didn't have a website.
After
It is simple to add new pages and features to the website as needed due to its current structure.The
site's direct link to the admin page makes it simple for an administrator user to switch between her
two sections of the site.Instead of changing the URL, admin users can now switch quickly with a
button click, saving a lot of time when adding details, completing tasks, and reviewing
changes.increase.
The website's code is clear and well-organized, making it suitable for further modification.You can
quickly find the files you need to make the changes you want by using the site's directory
division.For instance, locating the page in the template files file and making the necessary
adjustments is all that is required to make a textual update to the content.
Adding a new feature or making changes to the website now takes four times as long as it did before
because it focuses on only needing to make the change once on the website.
There is still room for improvement in this code;For instance, requires can be used to add sub-
navigation bars.This will further reduce code that is used over and over. A fresh update may be
made to the index page, which now employs a lengthy if statement.It's possible for a website to
operate with just one point of access and to utilize $_GET variables to identify this same requested
page.After this was called, functionality would be added to the content.As a result, there is no longer
a need for a lengthy If statement, which cuts down on the number the of code in the index file.
Appendices:
This is the home page of the website where a user can run see the stories that the admin posted in
the website.
This is the car sales list website where all the car list which is on sale is listed here with all the details
that is required
This is the contact where the user can contact to the admin where user can place their name email
and number and also there message what they want to buy and send to the admin.
This is the career opportunities website page of the website where user can find all the job
opportunities in this website and can apply to the website.
This is the about us page where user can find all the details about the website owner and the
company details and can contact to them easily.
This is the Admin login page where admin login through this page using their username and
password that is already given to the admin.
This is the admin home page where all the posted stories can be seen in this page.
This is the admin account where admin can add edit or delete secondary admin.
This is the manufacturers account where different has got different account and can be add, edit, or
delete in this page.
This is the job vacancy page where admin can posted a job in this page and can get different jobs for
the company.
This is the add story page where admin can post a story in this page and can be shown to the user
page and admin home page.
This is the archieved cars page where all the cars which is archieved can be shown and can be
updated price in this pages.
This is the cars page where all the cars list is shown here which can be added edit delete or
archieved.
This is the on sale cars pages where all the car which is on sale is displayed in this page for the
websites.
This is the enquiries page where local user enquiries can be seen and can be implemented in the
website and provide services to the customer.
This is the showroom page of the website where all the car is in the showroom is displayed to the
admin.
References
www.php.net. (n.d.). PHP: $_FILES - Manual. [online] Available at:
http://php.net/manual/en/reserved.variables.files.php [Accessed 13 Nov. 2022].
Stack Overflow. (n.d.). php - How to add simple image upload to a form? [online] Available
at: https://stackoverflow.com/questions/4422210/how-to-add-simple-image-upload-to-a-form
[Accessed 13 Nov. 2022].
Anon, (n.d.). Car Selling and Showroom Management System Using PHP and MySQL |
Projectworlds. [online] Available at: https://projectworlds.in/free-projects/php-projects/car-
selling-and-showroom-management-system-using-php-and-mysql/ [Accessed 13 Nov. 2022].
demy. (n.d.). Build Car Dealership Website Using PHP. [online] Available at:
U
https://www.udemy.com/course/build-car-dealership-website-using-php/ [Accessed 13 Nov.
2022].
www.sourcecodester.com. (n.d.). Auto Dealer Management System in PHP/OOP Free
Source Code | Free Source Code Projects and Tutorials. [online] Available at:
https://www.sourcecodester.com/php/15371/auto-dealer-management-system-phpoop-free-
source-code.html [Accessed 13 Nov. 2022].
sourceforge.net. (n.d.). php mysql car dealership free download - SourceForge. [online]
Available at: https://sourceforge.net/directory/os:windows/?q=php+mysql+car+dealership
[Accessed 13 Nov. 2022].
Enoria, T. (2022). Vehicle Sales Management System PHP with Source Code. [online]
SourceCodeHero. Available at: https://sourcecodehero.com/vehicle-sales-management-
system-php-with-source-code/.