Professional Documents
Culture Documents
A Capstone Project
In Partial Fulfillment
by
EMMANUEL ESTORQUE
REMIE ESPIRITU
APRIL 2023
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite
Computer Studies Department
TABLE OF CONTENTS
PAGE
TITLE PAGE i
Introduction 1
Project Context 2
Statement of the Problem 4
Objectives of the study 4
Scope and Limitation of the Study 5
Significance of the Study 6
Definition of Terms 7
CHAPTER 2 : Review of Related Literature and Studies
Local Studies 8
Foreign Studies 11
Local Literature 14
Foreign Literature 17
Synthesis 20
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 1
Computer Studies Department
Chapter 1
be one of the most challenging decisions a student faces during their academic journey.
Unfortunately, many students struggle with making informed decisions about their career
and educational paths. Without proper guidance and support, students may end up making
wasted time and resources, and missed opportunities. To make matters worse, many
students face additional challenges when it comes to choosing a career path or preparing
for exams. These challenges can include a lack of access to high-quality study materials
and practice exams, as well as inadequate support from their schools or universities,
overwhelmed, confused, and uncertain about their future prospects, leading to anxiety and
stress.
To address these challenges, there is a growing need for decision support tools that
can help students make more informed choices about their careers and educational paths.
access to high-quality study materials and practice exams. By providing students with the
right resources and guidance, decision support tools can help them achieve their full
potential and pursue fulfilling careers. Moreover, developing Decision Support System for
Career, Entrance, Qualifying (CEQ) Examinations for students can also have significant
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 2
Computer Studies Department
benefits for society as a whole. By enabling students to make more informed choices about
their careers, decision support tools can help reduce the skills gap in the workforce and
ensure that individuals are better matched to the jobs that they are most suited for.
Additionally, decision support tools can help increase access to higher education for
inclusivity in the workforce. In conclusion, the development of decision support tools for
career, entrance, and qualifying examination for students is an urgent and important task.
By addressing the challenges that students face when making career and educational
choices, decision support tools can help students achieve their full potential and contribute
Project Context
In today's rapidly changing world, students are faced with the challenge of choosing
the right career path and preparing for various entrance and qualifying exams. To address
through the process of selecting a career path and preparing for exams. The system will be
abilities. It will also offer a range of resources to help students prepare for various entrance
and qualifying exams, including study materials, practice tests, and expert advice.
The system will leverage advanced analytics and machine learning techniques to
ensure that recommendations and predictions are accurate and up-to-date. The decision
informed decisions about their future and provide them with the tools they need to succeed.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 3
Computer Studies Department
Additionally, the system's collaboration with education experts and industry professionals
will ensure that it is aligned with the latest trends and requirements in the career space.
Modules included:
The First module is the Admin Dashboard, it is a vital tool for administrators to
manage the system efficiently. It enables them to manage user accounts, exams, and exam
required. Overall, the admin dashboard plays a crucial role in ensuring the system's
The Second module is Login and Registration Module that can provide the basic
functionality needed to enable students and teachers to access and use the various modules
and features of the Decision Support System for Career, Entrance, and Qualifying
Examinations, and can be customized further based on the specific requirements of the
system.
The Third module is Examinations Module that helps students select and take
exams effectively. It provides prompt and accurate exam results, including feedback on
performance, to help students assess their progress. The module is a crucial component of
any career and education support system, providing necessary resources and support to
The Fourth module is Course Recommendation. This can consider the scores that
aspirations.
1. How Do the Evaluators use the TPS for Micro and Macro Car Rentals in term of:
1.4. Flexibility
1.5. Accuracy
1.6. Security
The main objective of this study is to develop an TPS FOR MICRO AND MACRO
CAR RENTALS
Develop a web-based system that will help manage the business transactions of car
renting.
Develop a system that will compile different car rental businesses either small or big
system online.
Utilize this form of innovation to make it easier and more efficient for customer to rent
Develop to modernize the old traditional way of car renting to meet the needs of the
changing time.
revolutionize career, entrance, and qualifying (CEQ) examinations for Philippine Christian
students' interests, aptitudes, and performance to suggest personalized study plans and
career options. Moreover, it will feature a range of tools and assessments for exam
preparation, progress tracking, and performance analysis, all designed to cater to students
from diverse educational backgrounds and academic goals. Rest assured, the system will
adhere to strict data privacy and protection protocols, with access granted only to expert
computer teachers, admins, and authorized personnel. This system will cater to high
school, senior high, and college students of Philippine Christian University - Dasmariñas,
and will only be accessible within the school premises. As a web-based system, it requires
internet connection to open and load the exams. It is important to note that this system is
exclusive to Philippine Christian University Dasmariñas and will not cater to other public
or private universities. Finally, graduating students will not be included in this system.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 6
Computer Studies Department
School. The result of this study will benefit the school because the CEQ system can boost
Students. Helps students identify their strengths and weaknesses: These examinations
help students understand their areas of strength and weakness, which can help them
choose appropriate career paths and make informed decisions about their future.
Teacher. Its benefit to the teacher is that this system can provide several benefits to
Future researchers. The future researchers can use this as reference for conducting the
study.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 7
Computer Studies Department
Definition of Terms
traits, and values to determine which careers would be a good fit for them.
proficiency in the subject matter required for admission to a particular academic program.
to progress to the next level of their academic program, such as proceeding to the upper
Chapter 2
REVIEW OF RELATED LITERATURE AND STUDIES
This chapter includes foreign and local literatures and studies that were obtained from
online journal resources by researchers that were looking for this work as a reference in
order to have more precise studies. This related literature gave the researchers a deeper
Local Studies
Several local studies have investigated various aspects of career, examination, and
qualifying examination systems for senior high school and college students in the
Philippines. One study by Tarroja et al. (2018) explored the career decision-making self-
efficacy of senior high school students. The study found that career decision-making self-
efficacy was positively associated with academic performance, perceived parental support,
and perceived teacher support. Another study by Flores et al. (2018) examined the factors
that affect senior high school students' career choices. The study found that family,
personal interests, and job availability were the most common factors that influenced
performance among senior high school students in the Philippines. The study found that
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 9
Computer Studies Department
the students' high school grades, perceived parental support, and self-efficacy were
significant predictors of their college entrance exam performance. Borromeo et al. (2016)
investigated the impact of college entrance examinations on students and schools in the
Philippines. The study found that these examinations put pressure on students, teachers,
and schools to perform well, which in turn affects the quality of education. Mantilla et al.
college students in the Philippines and their entrance examination results. The study found
that students who performed well on the entrance examination were more likely to be
Another study by Garcia et al. (2016) evaluated the effect of a qualifying examination
The study found that the qualifying examination system improved student performance and
retention in the college. In addition, Bayonito et al. (2019) developed and validated a
career decision-making scale for Filipino college students. The study found that the scale
had good reliability and validity, and could be used to assess the career decision-making of
Finally, Valdez et al. (2017) assessed the effects of a career guidance program on
senior high school students' career decision-making self-efficacy. The study found that the
together, these studies provide valuable insights into the factors that influence students'
career choices and academic performance, as well as the impact of examination and
qualifying examination systems on students and schools in the Philippines. These findings
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 10
Computer Studies Department
can be used to develop effective interventions and policies to support students in their
Foreign Studies
Chen et al. (2020) conducted a study in China to investigate the impact of career
exploration on college students' career readiness. The study used a sample of 556 college
students and found that career exploration had a positive effect on career readiness. The
opportunities to students to enhance their career readiness and improve their employability
after graduation.
Schreiner and Louis (2017) examined the relationship between academic advising and
student retention and success in college in the United States. The study analyzed data from
over 7,000 students at 24 colleges and universities and found that effective academic
advising was positively associated with student retention and academic success. The
authors suggested that institutions should prioritize resources towards improving academic
advising programs to promote student success. Joo et al. (2019) studied the relationship
South Korea. The study used a sample of 347 college students and found that academic
high school students' career adaptability. The study used a sample of 250 high school
students and found that the program improved students' career adaptability. The
schools to help students develop career-related skills and improve their transition from
education to the workforce. Lu and Luecht (2019) examined the impact of a medical
licensing examination on medical students' well-being in the United States. The study used
a sample of 2,967 medical students and found that the licensing examination had a
negative impact on students' well-being, including increased levels of anxiety and stress.
The researchers recommended that changes to the examination system should be made to
Lastly, McMahon et al. (2019) explored the impact of an online career planning
program on high school students' career decision-making in the United States. The study
used a sample of 13,055 high school students and found that the program had a positive
impact on students' career decision-making. The authors recommended that online career
planning programs should be implemented in high schools to help students make informed
Local Literature
The career, entrance, and qualifying examination system for senior high school and
college students in the Philippines have been the subject of numerous local studies. These
studies have explored various aspects of the education system, including the career track
services, entrance and qualifying examination systems, admission policies and practices,
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department
and the impact of K-12 education reform on college entrance examinations. Alpon (2017)
conducted a study to understand the senior high school career track system in the
Philippines. The study aimed to provide insights into the implementation of the program
and its impact on the students' career development. The study found that the career track
system has the potential to provide students with the necessary skills and knowledge to
succeed in their chosen careers. However, there are still challenges in the implementation
of the program, such as the need for more career guidance and counseling services.
Cabatit and Galvez (2020) examined the career readiness of senior high school
graduates in the Philippines. The study aimed to determine the extent to which the senior
high school program has prepared students for their chosen careers. The study found that
while senior high school graduates possess the necessary skills and knowledge, there are
still gaps in their preparedness, such as the need for more hands-on experience and
exposure to real-world settings. De Guzman and Brigole (2020) explored the Philippine
qualifications framework and its role in bridging the gap between senior high school and
college education. The study aimed to provide insights into the qualifications framework
and its impact on the education system. The study found that the qualifications framework
can be an effective tool for promoting a seamless transition from senior high school to
college education.
Garcia (2017) focused on career guidance and counseling services in Philippine higher
education institutions. The study aimed to determine the extent to which these services are
available and accessible to students. The study found that while there are career guidance
and counseling services in higher education institutions, there are still challenges in their
implementation, such as the need for more qualified guidance counselors and better access
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department
to resources. Geronilla (2014) conducted an analysis of the college entrance examination
system in the Philippines. The study aimed to provide insights into the system and its
impact on students. The study found that while the system has its advantages, such as
promoting meritocracy, there are still challenges in its implementation, such as the need for
institutions in the Philippines. The study aimed to provide insights into the different
entrance examination systems and their impact on students. The study found that while
there are different entrance examination systems, such as the use of aptitude tests, there are
still challenges in their implementation, such as the need for more consistency and
standardization. Nepomuceno et al. (2015) studied the admission policies and practices of
Philippine higher education institutions. The study aimed to determine the extent to which
these policies and practices are fair and transparent. The study found that while there are
policies and practices in place, there are still challenges in their implementation, such as
Soliven (2015) conducted a study on the qualifying system for college admission in
the Philippines. The study aimed to provide insights into the system and its impact on
students. The study found that while the system has its advantages, such as promoting
meritocracy, there are still challenges in its implementation, such as the need for more
flexibility and inclusivity. Sanqui (2016) examined career counseling in Philippine senior
high schools. The study aimed to determine the extent to which career counseling
Foreign Literature
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 14
Computer Studies Department
The literature on career, entrance, and qualifying examination systems for senior high
school and college students paints a complex picture of the many factors that influence
success in these areas. The studies discussed in this literature demonstrate that success is
influenced not only by individual motivation and ability but also by broader structural
issues such as access to resources, funding, and support systems. One key theme that
emerges from this literature is the importance of student involvement and integration in
fostering persistence and success in college. Berger and Milem (2000) found that students
who felt more integrated into their college communities were more likely to persist in their
studies, while Chen and Liao (2014) identified several factors that can positively impact
senior high school students' career development, including access to resources and
These studies highlight the need for supportive and inclusive learning environments
that foster student engagement and motivation. At the same time, the literature also reveals
the potential for certain systems to limit or expand opportunities for students.
For example, Gándara and Hopkins (2010) have explored the potential of promise
programs to expand college access for underrepresented students, while Greene (2016) has
highlighted the ways in which testing can serve as a gatekeeper in the American education
system.
Hiss and Franks (2016) examined the impact of optional standardized testing policies
on college admissions in the US, showing that these policies can have a positive effect on
diversity and equity in higher education. International contexts have also been examined in
this research, with scholars exploring issues such as education funding and access in
countries like Pakistan (Khan & Qureshi, 2011) and the relationship between college
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department
entrance exams and intergenerational mobility in China (Liu & Fan, 2016). These studies
underscore the impact of broader social and economic factors on education outcomes and
the need for systemic change to support students' career aspirations and opportunities.
Moreover, Manski and Wise's (2014) edited book offers a comprehensive exploration
of the economics of college choices, including the critical factors of location, timing, and
financing. This research provides a powerful lens through which to view the broader social
and economic context in which career and college decisions are made, highlighting the
factors.
Synthesis
This study focuses on developing a developing a career, entrance, and qualifying
examination system for senior high and college students requires a multifaceted approach.
It should include comprehensive career counselling services that help students identify
their strengths, interests, and career aspirations. Aptitude and interest assessments should
be used to guide students towards career fields that are best suited to their abilities and
knowledge and skills in key subject areas, and should be administered in a fair and
resources that help them prepare for entrance and qualifying exams. These resources
should include practice tests, study guides, and other materials that help students identify
areas of weakness and improve their scores. Grading and evaluation should be clear and
communication with students regarding the career, entrance, and qualifying examination
conducted to ensure it is effective and meeting the needs of students. Collaboration and
are also important for the development and implementation of a comprehensive career,
entrance, and qualifying examination system. By incorporating all these components into a
comprehensive system, students will be better equipped to make informed decisions about
their career paths and successfully navigate entrance and qualifying exams.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department
Chapter 3
TECHNICAL BACKGROUND
Organizational chart is a visual representation of a company's internal structure that
shows the relationships, functions, and responsibilities of each individual within the
Organizational Chart
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 18
Computer Studies Department
The Organizational Chart in Figure 1 depicts the chain of command, which is led by
Mrs. Thea B. Alzona, the Car Rental's creator and CEO, and Mr. John Cedric C. Tequillo,
the company's Financing Manager. Mr. Alberto U. Delima, the General Manager, is the
business's ground officer and reports to the Founder. The Sales Department officer, Ms.
Maria Victoria C. Legaspi, is next in line, responsible for the operation's records. Along
with that department, Mr. Connor Daryl B. Ramos leads the Operation Department. Mr.
Mark Vincent Fer E. Magsino and Mr. Joshua Delazo, on the other hand, work as company
System Flowchart
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department
The System flowchart of ADL Car Rental Inc is shown in Figure 2. It depicts how the
then saved to the database. The consumer will next choose between micro and macro.
After the consumer selects a preferred booking date, the confirmation will be approved by
the administrator.
owner must first log in or create an account before any data is stored to the database.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 20
Computer Studies Department
Following that, the owner can add a vehicle and accept or confirm customer reservations.
The owner can also message the customers pertaining to their car rental bookings.
admin must first log in before any data is stored to the database. Following that,
System Architecture
The suggested system's web-based micro and macro car rental system architecture
is shown in Figure 5. The user interface, renter panel, and admin panel layouts designed in
Visual Studio Code utilizing CSS, JavaScript, and PHP scripting. The PHP programming
language is used to run the system, and MySQL is utilized as a database and to preserve
data. In today’s needs, Car rental has adapted to the fast-paced lifestyle, allowing
impose by all the people involved. The purpose is to avoid confusion and misperception of
how the operation must flow. It is a set of organized step-by-step instructions compiled by
the organization to assist all staffs involve carry out the proper routine that benefited
owners, staffs, customers and also the society. The ADL Car Rental is based on a typical
standard system. Without the presence of online system, the business procedure starts at
receiving all inbound customers , next is choosing which to approve or who is the preferred
renter, then the customer and business representative will converse regarding with the
details such as price, vehicle type, capacity, vehicle informations, client informations,
preferred dates of rental, etc. Next is the meeting date and place where the vehicle will be
lend for rental and the rules and regulations with the printed contract will be given at the
same time the customer will surrender to the representative two types of identification card
for security purposes. Renter is obligated to bring the vehicle on the nearest Car-wash
A. Block Diagram
and simple from viewing vehicles to choosing the vehicles and rent per day, submitting
valid IDs, paying the rental fee, and signing in the agreement. This existing system is very
Figure 7. The Context Level Diagram of the Existing System (Manual System)
Figure 7 shows the context diagram on how the manual system works. The business
only relies on the inventory where it is the most important part. Because all the processes of
this manual system go through the inventory first. The inventory of this system is the most
Figure 8. The First Level Diagram of the Existing System (Manual System)
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department
Figure 8 shows the First Level Diagram of the Existing System. This is same with
the Block Diagram. But this is the expanded version. Because it shows on the figure,
the diagram is more specific so that the process and flow of this system can be easily
understand.
The main functions in this diagram are highlighted and shows how each process works and
involved with the flow. It also summarizes the steps on how the business works.
Car rental is a form of electronic system that enables customers to directly rent
vehicles from a car rental business owner over the Internet using a web browser or a mobile.
Customers locate a vehicle of interest by visiting the website directly or by searching among
available vehicles using search filter, which displays the available and prefer vehicle
The Proposed Cycle of the Operation will be done online. Because technology has
made it feasible. The majority of people only need to stay at home to receive anything with
a single click on the internet. With the help of the Car Rental System, it helps the customer
to reserve a vehicle online. People can drive farther and more quickly by renting a private
vehicle through the use of this system. Customer can easily find available and prefer vehicle
specifications with just few clicks by using system’s search filter. Customer and Car rental
business owner can negotiate directly through the use of this system with easy and fast
transactions. The owner of a car rental business can also benefit from using this system to
A. Block Diagram
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department
Figure 10. The Block Diagram of the Proposed System (Car Rental)
Figure 10 shows the chronological order of the 4 main functions of the diagram. These
4 main processes help the system to run properly and smoothly. It has the largest
contribution in this System. This is less detailed, but it helps to clarify the overall concepts
of the system.
Figure 11. The Context Level Diagram of the Proposed System (Car Rental System)
Figure 11 shows the Context Level Diagram of the Proposed System. It represents the
how the whole system works. The customer reserves a vehicle and the Owner is the one
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department
who will receive the booking request of the customers. Then the owner will approve the
Figure 12. The First Level Diagram of the Proposed System (Car Rental)
Figure 12 Shows the main Proposed system. It highlights the main functions of the
system. It also visualizes the flow and processes from account creating, paying the rental
Figure 13. The Low-Level Diagram of the Proposed System (Car Rental)
Figure 13 shows the detailed version of the process of the System. Making it easier to
analyze and to understand. Most of the process and flow in this System are more specific.
This diagram shows how Customer can manipulate the system by rechecking/editing the
rental details.
Data Modeling
constraints that define how the data can be stored, Organized and Manipulate. Data
Modeling is design based on the rules and concepts of the proposed system.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department
Figure 14. The Entity Relationship Diagram of the Proposed System
Figure 14 shows the flow of the database tables of the ERD of the Proposed System. It
starts first with the Customer who wants to rent a vehicle. The chose vehicle will be added
to the transactions then it will proceed to the payment. After the payment method is done, it
Chapter 4
This chapter discussed the software development process used in the study. It is also
shows the project requirement specification, technical feasibility, schedule feasibility and
economic feasibility.
Project Development
PLANNING
DESIGN
DEVELOPMENT
TESTING
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department
DEPLOYMENT
MAINTENANCE
Figure 15: Waterfall Methodology.
Figure 15 shows the waterfall model, which is a successive order that depicts the flow
system development. Each phase reflects how the researchers advance on making it.
Planning - The researchers will first strategize and come up with several plans for how
to build the system and get everything ready for the research, including gathering data
on the subject and getting the essential materials ready. This procedure is crucial since
Designing - The designing stage came next; during this phase, the researchers would
choose the best design for the car-rental system. This step involves developing several
concepts on how to make the system's outside appealing to the general audience.
apply codes to previously formed designs to make them suitable for usage and
functionality.
Testing – The fourth stage is testing, where the researcher checks the system's integrity
to ensure that all the functionalities are implemented correctly and won't cause the
deployment stage; this step is crucial and required because the researchers will be
receiving consumer feedback and criticisms. The input from the consumers will
as times change because this is where the researchers will address issues, make
improvements, and add new features that the respondents requested while using the
system.
A standalone web-based system for desktop, laptop, and mobile users is required for
this project. The researcher will use an executable web-based system that users can access
Operational Feasibility
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department
the cause and effect of a certain circumstance. The environment, materials, processes,
labor, finances, and machinery are among the causes. These could lead to inadequate
Figure 17 shows the functional decomposition diagram, a type of analysis that breaks
down a complicated process into its component parts for closer examination. In this
context, a function is a task inside a bigger process that is divided into smaller, simpler
pieces through decomposition. There are five features on the system: Home, Vehicles,
About Us, Contact Us, and FAQs (Frequently Ask Questions). All of the cars that have
been listed on the system are displayed once the user selects the Home and Vehicles. The
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department
next section is About Us and Contact Us, which contains all information about system
administration. The most common queries users have for administrators and business
A. Technical Feasibility
Hardware Requirements Software Requirements
Desktop Computer or Windows 10 OS or
The system's hardware and software specifications are shown in Table 1. The
processor must be an AMD Ryzen 3 or Intel Core i3 or newer to meet the hardware
requirements. 8GB of RAM is the bare minimum, while 250GB of storage is enough. The
browser such as Google Chrome or Safari required, and an internet connection with a
A. Schedule Feasibility
The researchers' timeframe for working on the project is displayed in Table 2. The
planning, designing, creating, testing, and launching of the project was broken down into
The implementation phase's timeline is shown in Table 3. The timeline for the
implementation is shown in the chart. It started in the month of August and continued until
C. Economic Feasibility
MANPOWER EXPENSES
TOTAL: ₱225,000
Table 4 lists the manpower costs associated with developing the system. Web
Developer, UX Designer, Software Tester, and System Analyst make up the research team.
The web developer will receive a salary of ₱75,000. The UX Designer will receive a salary
of ₱65,000. The software tester will receive a salary of ₱35,000. The system analyst will
Details Amount
The project's cost and the suggested system's price are shown in Table 5. It displays
the development cost along with the markup, which represents the project's overall cost. The
project cost is ₱350,000.00; the developing cost is ₱225,000.00; the markup (40%) of the
This figure shows the Homepage of the car rental system. This page displays the main
In this page give views to vehicles posted and advertised also it has the filtration of
This interface will show the reservation details once the users made a reservation. The
information and cars that the user reserved are displayed in this figure.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 45
Computer Studies Department
This figure shows the details and cars that the user reserved.
This page shows the personal information of the user. Also in this page the user can
This interface shows where the users and car owners can contact the system admins.
This page shows the question of the users that being asked frequently to the admins.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 47
Computer Studies Department
This interface provides the information about the system and explains the inspiration
In this page shows where the admin can log in to the system.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 48
Computer Studies Department
This interface shows the total accounts being approved, pending and rejected.
This page shows the accounts approved by the admins. This page also shows if the
This figure shows the newly registered accounts. All of the newly registered accounts
will be directed to pending accounts. The admin can view the account information and
documents of each user submitted and can reject or accept the user to the system.
56
This figure shows the list of rejected accounts by the administration. The accounts
were rejected due to invalid information or documents that were submitted by the users.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 50
Computer Studies Department
Figure 19.5: Edit Page (Admin side)
This figure shows the edit content section in the admin side. The admin can freely edit
This figure shows the Owner Sign in page. This page is intended for owner accounts only
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 51
Computer Studies Department
This figure shows the Owner Dashboard. The Owner can add or edit vehicles, manage
This figure shows the list of registered vehicles by owner. The owner can freely add,
This shows the completed bookings page. Completed bookings by the customers will
appear here
This shows the pending bookings page. New bookings by the customers will appear
here. The owner can approve or reject the booking of the customer while it is in pending
status.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 53
Computer Studies Department
This shows the owner profile page. The owner can modify the personal information,
and replace the document that has been upload. The owner can also change password in
this section.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 54
Computer Studies Department
This shows the administrator profile page. The admin can modify the personal
This figure shows the add vehicles page. This is where the owner adds the
specifications of the vehicle and this will be posted to the vehicles section in the main
page.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 56
Computer Studies Department
the information of the existing vehicle. Owner can also add or replace the image or delete
the vehicle.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 57
Computer Studies Department
car reservation details of the customer. The owner can either chat or approve the
the car reservation details. The customer can either chat or cancel the reservation before
information and the documents submitted. Once the user is legitimate, the admin can now
This shows the chat support from customer to owner. The customer can message the
This shows the chat support from owner to customer. The owner can reply to the
assessment and testing. System testing carried out to gather data on the effectiveness of the
system's functionality, expose the system to the public, and assess the implementation risk.
Techniques for testing include, but are not limited to, the process of carrying out a plan
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 62
Computer Studies Department
with the objective of locating software faults and errors that need to be fixed and updated
in order to achieve the goal and make it efficient and effective for its function.
Project Testing
Project testing is essential because any system is bound to contain bugs and
faults; doing so will help users avoid running into those issues when using the application.
System testing will be carried out to find various difficulties and problems that need to be
Project Implementation
The researchers have completed the work outlined in the work plan to implement
during the implementation phase. The system can be accessible via a website using a
computer, laptop, or mobile phone, and all updates and availability for cars will be place
there by the owners in an effort to make profit and advertise their services. Users can log in
and access the services offered inside the system by just inputting the name of the website
or the link.
Project Evaluation
the users concur that the system satisfied the criteria listed on the form used to collect data
from the relevant respondents. In order to reach its goal of 50 consumers, the project
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 63
Computer Studies Department
needed respondents who were at least 18 years old, had a driver's license, owned a car, or
were employed as teachers because the initiative's main focus is online automobile rentals.
Aside from that, the project also needs 10 IT professionals to analyze and give their input
to the application. The researchers need to collect data from 60 respondents in all, and
This part shows the statistical tool used to evaluate the project. It will start with the
frequency, weighted arithmetic mean, to identify the percentage of working rate, standard
deviation to determine the homogeneity and heterogeneity of the results, percentage and
the coding scheme used by the researchers to assessing its adjectival meaning for the
Frequency
Percentage
the total number of respondents. By calculating the final total, that is the percentage from a
given problem.
% = No. of Respondents
Total No. of Respondent
Where:
x = Frequency
w = Weight
Standard Deviation
mean. Low standard deviation. Low standard deviation means data are clustered around the
mean, and high standard deviation indicates data are more spread out.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 65
Computer Studies Department
Coding Scheme
Table 6 presents the coding scheme used in rating the project’s effectiveness
through the use of a rating scale. This includes the class size, interval and it’s adjectival
meaning.
Chapter 5
Data Presentation
Percentage of Respondents
22%
IT Student
3% IT Expert
Teacher
53% Car Rental Business Owner
5%
Car Owner
17%
Figure 22 shows the percentage of the respondents that partake on the data
gathering of the researchers. 53.3% have answered are IT Students. 21.7% of the people
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 67
Computer Studies Department
are Car owners. 16.7% are IT Experts. 5% are Teachers. 3.3% are Car Rental Business
Owners.
Table 7 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Strongly Agree on “Able to perform all
required task that maybe desired in the future” with a weighted mean of 4.66. The
weighted mean for “Adequate capacity to perform the required task” is 4.38. With a
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 68
Computer Studies Department
weighted mean of 4.33, the evaluators Agree on “Able to perform all required task” and
lastly, with a weighted mean of 4.28, the evaluators Agree on “Well Designed
Table 8 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Strongly Agree on “Fast Response” with
weighted mean of 4.51. The weighted mean for “Efficient Output” is 4.41 and lastly, with
a weighted mean of 4.40, the evaluators Agree on “Efficient Input”. The researchers
determined that the average weighted mean is 4.44 with average standard deviation of
2.87.
Table 9 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Agree on “Focus on Basic Objectives” with a
weighted mean of 4.48. The weighted mean for “Build an Interface that is easy to learn
and use” is 4.45 same also for “Use familiar terms and image” with a weighted
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 70
Computer Studies Department
mean of 4.45. For “Create an attractive layout and design” the evaluators Agree with a
weighted mean of 4.40. The evaluators also agree on “Provide features that promote
efficiency" with a weighted mean of 4.38 and for "Make it easy for user to obtain help or
correct errors" with a weighted mean of 4.36. The researchers determined that the
Table 10 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Agree on “Output can be displayed and
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 71
Computer Studies Department
viewed on screen” with a weighted mean of 4.43. The weighted mean for “Attain the
Purpose of the Output” is 4.41 same also for “Usability with our environment” with a
weighted mean of 4.41. The evaluators agree on “Indicated the needed information" with
a weighted mean of 4.33 and for "Operates function as intended" with a weighted mean
of 4.30. The researchers determined that the average weighted mean is 4.37 with average
Table 11 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Agree on “Provide accurate dialog box and
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 72
Computer Studies Department
response accordingly to the system” with a weighted mean of 4.41. The weighted mean
for “Able to perform the required tasks without error or mistake” is 4.36 and lastly the
4.35 The researchers determined that the average weighted mean is 4.37 with average
Table 12 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Agree on “Requires a username and password”
with a weighted mean of 4.48 same also for “Provides a level user interface which
includes roles and policies” with a weighted average of 4.48 and lastly the weighted
mean for
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 73
Computer Studies Department
“Authentication before user can login” is 4.38. The researchers determined that the
Table 13 Shows the performance effectiveness of the system that the researchers
develop. Based on the data, the evaluators Agree on “Able to give information of
frequently asked question” with a weighted mean of 4.41. The weighted mean for
“Provide help options for accessing the system” is 4.40 same also for “Able to give
appropriate” with a weighted mean of 4.40. The researchers determined that the average
Summary of Evaluation
Security 4.44 1
Table 14 shows the ranking result from the computation above. Security comes in at
number one on the ranking with a weighted average score of 4.44, followed by User
Interface Design with a weighted average score of 4.42, rank 3 is the Performance
Effectiveness with a 4.41 average weighted mean. Help options and performance
efficiency share the same position of rank 4.5 with a weighted average of 4.40. The
lowest ranking position is also shared by Flexibility and Accuracy, with a weighted
average of 4.37.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 75
Computer Studies Department
Chapter 6
Summary of Findings, Conclusions and Recommendation
This Chapter covers the project’s summary of findings, conclusions, and
Summary of Findings
established that the system would only require a small amount of tweaking to be
trustworthy and error-free. IT students, instructors, car rental business owners, and car
owners were among the groups polled by the researchers in various communities.
According to the poll, the system achieved its proficiency goal and received positive
In order to assess the system's performance in terms of its efficacy, efficiency, user
interface design, flexibility, accuracy, security, and help options, the researchers performed
a poll. According to the findings, the Performance Efficiency of the system scored a 4.44
overall average, which indicates that the majority of respondents Agreed that the system is
capable of carrying out all necessary tasks. Additionally, the system's User Interface
Design had a 4.42 overall average and adjectival meaning of Agree, indicating that the
design is acceptable for the users and that it provides instructions that are clear and
concise. The Flexibility of the system is also measured and generated a result of Agree
with 4.37 total average and a 4.37 overall average was produced by Accuracy also Agree.
The respondents to the researchers' survey also placed a high value on security, which
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 76
Computer Studies Department
produced a Agree with 4.44 overall average. Last but not least, the Help Option received a
general average, demonstrating that the project offered the relevant data and system
instructions.
Conclusions
The Development of TPS for Micro and Macro Car Rentals aims to provide an
efficient and effective services for customers, clients, car rental business owners in one
society to give everyone an equal chance of gaining profit, effective way of running a
The researchers' poll clearly showed the strengths and weaknesses of the suggested
system. Security is the system component that has been given the highest rating, ranking
first overall with a total average of 4.44. It was clear that the system has sufficient
measures for user security. User Interface Design came in second with a score of 4.42,
according to the poll. Proves that the user is provided with a respectable design and
Performance Efficiency, tied with the Help Option coming in at 4.40 overall. Flexibility
and accuracy tied with the overall average of 4.37 for fifth place. This indicates that the
respondents have a positive overall experience using the system. The researchers conclude
that the system is successful and efficient in performing its purpose as a result.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 77
Computer Studies Department
Recommendations
The researchers carefully consider every scenario that could possibly arise
throughout the course of the study, taking into account each step that must be taken in
order to ensure the feasibility and success of the study's implementation. Even if the results
of the poll may have been satisfactory, there are still some components of the system that
The first component that has the lowest grade with the Performance Effectiveness
average of 4.28. Not a horrible average at all, however it received the lowest score in this
implementation on enhancing the system's display and design. The Performance Efficiency
weakness is at 2.1 Efficient Input weighted of 4.40 average. With regard to this issue,
researchers have come to the conclusion that there isn't much content being input into the
system yet because it is still in the testing stage. However, the researchers have made sure
that when the system is put into use and clients are already using it, this issue will be one
of the system's strengths. The third is User Interface Design vulnerability is at 3.4 Make it
Easy for User to Obtain Help or Correct Errors, with a weighted average of 4.36.
Researchers have already taken action on this issue by integrating chat support and a Help
option into the system. Moreover, researchers have also gathered more data in order to
perform other types of alteration processes in the future. Fourth is the Flexibility weakness
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 78
Computer Studies Department
at 4.1 Operates Functions as Intended weighted score of 4.30. With regard to this little
issue, researchers conduct studies on the evolution of each system component's operations
in accordance with
their intended purposes by having a bigger conversation about all the issues that need to be
resolved. The part of Accuracy with the lowest grade, 5.1 Capable to Conduct
Computation when Needed, had an overall average of 4.35. The researchers have an open
future plan for this issue because the system has not yet implemented this type of remedy.
However, the system has already performed a small calculation, though it is not yet for the
user. The 6.2 Authentication Before the User Can Log-in with a score of 4.38 is the
weakest portion of the Security component, which is the most crucial when creating a
system. The researcher has discussed adding more security features for logging in, but
these features have not yet been implemented, because of some legal considerations.
However, the researcher has backup plans in case this system needs more security in the
future. The final section is the Help Option weakness is at 7.1 Provide Help Option for
Accessing the System tied with 7.2 Able to Give Appropriate Information with the average
score of 4.40. This weakness was also brought on by the system's lack of data intake. Since
the system is only in the testing phase and does not yet have the anticipated clients, it has
not yet been completed. When the system was established and finished, the researchers
the majority of respondents express satisfaction with the system and express gratitude for
References
A. Books
Taylor, K. B. (1991, October 1). TravTek - Information and services center. IEEE
Xplore.
https://ieeexplore.ieee.org/document/1623685
Barth, M., & Shaheen, S. A. (2002). Shared-Use Vehicle Systems: Framework for
Classifying Carsharing, Station Cars, and Combined Approaches. Transportation
Research Record: Journal of the Transportation Research Board, 1791(1), 105–112.
https://journals.sagepub.com/doi/abs/10.3141/1791-16
Local Literature - College Essays - Sheicarpio. (n.d.). Www.papercamp.com.
Retrieved January 23, 2023, from
https://www.papercamp.com/essay/96530/Local-Literature
B. Periodicals
Philippines Car Rental Market Research Report, Electric Vehicle Industry. (2019,
April 22). Ken Research.
https://www.kenresearch.com/blog/2019/04/philippines-car-rental-car-leasing-
cab-aggregator-and-yellow-taxi-market-outlook-to-2023-ken-research/
Madapusi, A., & D’Souza, D. (2012). The influence of ERP system implementation
on the operational performance of an organization. International Journal of
Information Management,32(1),24–34.
https://www.sciencedirect.com/science/article/abs/pii/S0268401211000715
Philippines Rent a car | Philippines Car rental. (n.d.). Silent Gardens - Philippines
Islands Vacation & Travel Advice. Retrieved January 23, 2023, from
https://www.silent-gardens.com/rentacar.php
C. Alter Source
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 80
Computer Studies Department
Chapter-2-REVIEW-OF-RELATED-LITERATURE.-(n.d.).
https://fayeahsoriano.files.wordpress.com/2014/04/chapter2-ok-2.pdf
Albino, M. (2021, March 1). Development of Car Rental Management System with
Scheduling Algorithm. Papers.ssrn.com.
https://ssrn.com/abstract=3849830
Cruz, J. (n.d.). Computerized Enrollment System for Mary Lourdes Academy.
Www.academia.edu. Retrieved January 23, 2023, from
http://www.academia.edu/12481820/Computerized_Enrollment_System_for_Mary_Lourd
es_Academy
Mercy Daracan. (2013, November 9). Chapter 2-Realated literature and Studies.
https://www.slideshare.net/EzhrihmCradan/chapter-2-28073663
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 81
Computer Studies Department
APPENDICES
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 82
Computer Studies Department
APPENDIX A.
LETTER OF REQUEST TO
THE TECHNICAL ADVISER,
STATISCIAN AND
GRAMMARIAN
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 83
Computer Studies Department
NICK L. HERNANDEZ
Group Leader
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 84
Computer Studies Department
Noted by:
NICK L. HERNANDEZ
Group Leader
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 85
Computer Studies Department
Noted by:
NICK L. HERNANDEZ
Group Leader
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 86
Computer Studies Department
Noted by:
APPENDIX B.
PROOFS AND ACCEPTANCE
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 87
Computer Studies Department
PROOF OF ACCEPTANCE
do hereby accept to assist in the technical aspect prepared by Group from the BS
thesis entitled “The Development of Transaction Processing System for Micro and Macro
Car Rentals”.
Date
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 88
Computer Studies Department
Approved by:
PROOF OF ACCEPTANCE
Date
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 89
Computer Studies Department
Approved by:
APPENDIX C.
CERTIFICATES OF
TECHNICAL ADVISERSHIP,
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 90
Computer Studies Department
STATISCIAN AND
GRAMMARIAN
This is to certify that the data for the thesis entitled “The Development of Transaction
Processing System for Micro and Macro Car Rentals”. from the BS Information
Technology program has been examined, analyzed and given the appropriate statistical
Date
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 91
Computer Studies Department
CERTIFICATE OF PROOFREADING
This is to certify that the data for the thesis entitled “The Development of Transaction
Processing System for Micro and Macro Car Rentals”. from the BS Information Technology
Date
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 92
Computer Studies Department
This is to certify that the data for the thesis entitled “The Development of Transaction
Processing System for Micro and Macro Car Rentals”. from the BS Information
Technology program has been examined and given appropriate technical recommendations
Date
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 93
Computer Studies Department
APPENDIX D.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 94
Computer Studies Department
EVALUATION SHEET
EVALUATION SHEET
THE DEVELOPMENT OF TPS FOR MICRO AND MACRO CAR RENTALS
(Evaluation Questionnaire)
Dear Respondents,
We are in the process of collecting data for our study using online survey (Google
Form). In this regard, we would like to request your permission to participate in our study.
Rest assured that all information given will be treated with confidentiality and used for
academic purposes.
* Please be honest in your views and base your answers on your personal observations of
the modules. You may or may not indicate your name in the respondent's profile for
confidentiality of your identity.
Respectfully yours,
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 95
Computer Studies Department
HERNANDEZ, NICK L.
Yes No
2. Name (Optional)
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 96
Computer Studies Department
3. Gender *
Mark only one oval.
Male Female
4. Title *
Mark only one oval.
Yes No
ASSESSMENT
In accordance of RA 10173 or the Data Privacy Act of 2012, all personal and/or sensitive
information solicited and disclosed from this questionnaire shall be only used for the study.
Rest assured that your responses in this instrument will be kept confidential.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 97
Computer Studies Department
DIRECTION
Using the criteria below, please rate the proponent's performance by selecting the
corresponding column.
5- Strongly Agree
4 - Agree
3 - Undecided
2 - Disagree
1 - Strongly Disagree
7.Performance
Effectiveness of
the Application
5 4 3 2 1
Able to perform
all required task.
Able to perform
all task that
maybe desired
in the future
Well designed
appropriateness
of display
screens
Adequate
capacity to
perform the
required task.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 98
Computer Studies Department
8.Performance
Efficiency
5 4 3 2 1
Fast Response
Efficient Input
Efficient
Output
9.User
Interface
Design
5 4 3 2 1
Focus on Basic
Objectives
Build an
Interface that is
easy to learn
and use
Make it easy
for user to
obtain help and
correct errors
Create an
attractive
layout and
design
User familiar
terms and
image
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 99
Computer Studies Department
10.Flexibility
5 4 3 2 1
Operates
function as
intended
Attain the
purpose of the
output
Indicate the
needed
information
Output can be
displayed and
viewed on
screen
Usability with
our
environment
11.Accuracy
5 4 3 2 1
Capable to do
computation
when needed
Able to
perform the
required tasks
without error
or mistake
Provide
accurate dialog
box and
response
accordingly to
the system
12.Security
Options
5 4 3 2 1
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 10
Computer Studies Department 0
Requires
username and
password
Authentication
before user can
login
Provides level
user interface
which includes
roles and
policies
13.Help
Options
5 4 3 2 1
Provide help
options for
accessing the
system
Able to give
appropriate
information
Able to give
information
frequently
asked question
APPENDIX E.
PROGRAM CODES
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 10
Computer Studies Department 2
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>ABC - Home</title>
<!--[if IE]>
<![endif]-->
</head>
<div id="conteiner">
<div id="branding">
<div id="slider-img">
<ul class="slides">
<div id="slider-pattern"></div>
</ul>
</div>
<div id="slider-content">
<div id="slider-post">
<div class="post">
<div class="entry-header">
<h3
class="entry-format">Affordable Car Rental Cavite</h3>
</div>
<div class="entry-
content">Rates so low, you won’t think twice.</div>
</div>
<div id="slider-front-img">
</div>
</div>
<div class="main_form_navigation">
</div>
<select name="manufacturers"
<option value="All">All</option>
<option value="Audi">Audi</option>
<option value="BMW">BMW</option>
<option value="Chery">Chery</option>
<option value="Ford">Ford</option>
<option value="Foton">Foton</option>
<option value="Geely">Geely</option>
<option value="Honda">Honda</option>
<option
value="Hyundai">Hyundai</option>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 10
Computer Studies Department 4
<option value="Isuzu">Isuzu</option>
<option value="Kia">Kia</option>
<option value="MG">MG</option
<option value="Mazda">Mazda</option>
<option
value="Mitsubishi">Mitsubishi</option>
<option value="Nissan">Nissan</option>
<option value="Subaru">Subaru</option>
<option value="Suzuki">Suzuki</option>
<option value="Toyota">Toyota</option>
</select>
</div>
<select name="price_filter"
class="customize" id="" required>
<option
value="ASC">Lowest to Highest</option>
<option
value="DESC">Highest to Lowest</option>
</select>
</div>
<select name="price_range"
class="customize" id="" required>
<option value="0">All</option> <option
value="1000-4999">₱<?=number_format(1000,2)?> - ₱<?=number_format(4999,2)?></option>
<option value="5000-7999">₱<?=number_format(5000,2)?> - ₱<?=number_format(7999,2)?></option>
<option value="8000-9999">₱<?
=number_format(8000,2)?> -₱<?=number_format(9999,2)?></option>
<option value="10000">₱<?=number_format(10000,2)?> and above</option>
</select>
</div>
<select name="fuel_type"
class="customize" id="" required>
<option value="All">All</option>
<option value="Diesel">Diesel</option>
<option value="Gas">Gas</option>
</select>
</div>
<select name="user_type"
class="customize" id="" required>
<option value="All">All</option>
<option value="Micro">Micro</option>
<option value="Macro">Macro</option>
</select>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</form>
<div class="clear"></div>
</div>
<div id="main">
<div id="primary">
<div id="content">
<div class="post">
<div class="entry-header">
</div>
<div class="entry-content">
</div>
</div>
</div>
<div class="feature-single">
<div></div>
</div>
<div class="feature-single">
<div></div>
</div>
<div class="feature-single">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 10
Computer Studies Department 6
<img class="feature-title-img" src="images/3-icon.png" alt="" /><div
class="feature-title">Manage your booking online</div>
<div></div>
</div>
<div class="clear"></div>
</aside>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div><!--end:conteiner-->
<script>
$('#home').addClass('current_page_item')
</script>
</body>
</html>
about-us.php
<!DOCTYPE html>
<html lang="en-US">
<head>
<!--[if IE]>
<![endif]-->
</head>
<div id="conteiner">
<div id="branding">
<div id="main">
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
<!--end:conteiner-->
<script>
$('#about-us').addClass('current_page_item')
</script>
</body>
</html>
<?php
include 'config/functions.php';
if(isset($_POST['changePass'])){
$newPass = $_POST['newpass'];
$connewPass = $_POST['conpass'];
if($newPass != $connewPass){
window.reload();
</script>"
}else{
$encryptPass = password_hash($newPass,PASSWORD_DEFAULT);
changeAccPassword($_GET['id'],$encryptPass);
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Change Password</title>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<style>
.content-form{
width: 90%;
</style>
<div class="main_form_navigation">
</div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</form>
<?php
if(isset($_GET['status']) == "success"){
echo "<script>
Swal.fire({
title: 'Success',
icon: 'success',
}).then((result) => {
if (result.isConfirmed) {
window.location.href='http://abcrentalcars.online/index.php#sign_in';
})
</script>";
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 10
Computer Studies Department 9
}
?>
</body>
</html>
<!-- SELECT SUM(`total`) FROM transactions WHERE `owners_id`='43' AND `status`='Approved' AND DATE_FORMAT(`date`, '%Y-%m-%d') = CURDATE(); -
today
SELECT SUM(`total`) FROM transactions WHERE `owners_id`='43' AND `status`='Approved' AND YEARWEEK(`date`, 1) = YEARWEEK(CURDATE(), 1); - 1
week
SELECT SUM(`total`)
FROM transactions
<!DOCTYPE html>
<html lang="en-US">
<head>
<!--[if IE]>
<![endif]-->
</head>
<div id="conteiner">
<div id="branding">
<div id="main">
<?php } ?>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 0
</div>
</div>
</div>
<div class="clear"></div>
</div>
<!--end:conteiner-->
<script>
$('#contact-us').addClass('current_page_item')
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>ABC - FAQs</title>
<!--[if IE]>
<![endif]-->
</head>
<div id="conteiner">
<div id="branding">
<div id="main">
<?php } ?>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 1
</div>
</div>
</div>
<div class="clear"></div>
</div>
<!--end:conteiner-->
<script>
$('#rules').addClass('current_page_item')
</script>
</body>
</html>
<?php
if(isset($_POST['register_button'])) {
global $db;
$register_license = post('register_license');
$register_surname = post('register_surname');
$register_middlename = post('register_middlename');
$register_firstname = post('register_firstname');
$register_email = post('register_email');
$register_contact = post('register_contact');
$register_username = post('register_username');
$register_password = password_hash(post('register_password'),PASSWORD_DEFAULT);
$user_type = post('user_type');
register($register_license,$register_surname,$register_firstname,$register_middlename,$register_email,$register_contact,$register_username,$register_password,
$user_type);
if(isset($_POST['login_button'])) {
$login_username = post('login_username');
$login_password = post('login_password');
secureLogin($login_username,$login_password);
if(isset($_POST['forgotPass'])){
$email = $_POST['forgot_pass_email'];
forgotPassword($email);
?>
<div id="overlay_block"></div>
title="">Sign In</a></span></div>
</div>
<div>
</div>
<div>
</div>
<div class="admin_form_link">
</div>
</div>
</form>
<div>
</div>
<div>
<p>License/Permit No.</p>
</div>
<div>
<p>Surname</p>
</div>
<div>
<p>First Name</p>
</div>
<div>
<p>Middle Name</p>
</div>
<div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 3
<p>Email</p>
</div>
<div>
<p>Contact Number</p>
</div>
<div>
<option value="Customer">Customer</option>
<option value="Macro">Macro</option>
<option value="Micro">Micro</option>
</select>
</div>
<div>
<p>Username</p>
</div>
<div>
<p>Password</p>
</div>
<!-- <input class="admin-form-submit submit orange_button" name="register_button" type="submit" value="Continue" /> -->
<div class="termsandconditions">
<span class="close">x</span>
<div>
<div>
</div>
<div class="customertermsandconditions">
<?php } ?>
</div>
<div class="macrotermsandconditions">
<?php } ?>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 4
</div>
<div class="microtermsandconditions">
<?php } ?>
</div>
</div>
</div>
</div>
<div class="admin_form_link">
registered?</a></span>
</div>
</div>
<div class="clear"></div>
</form>
</div>
</div>
<div class="admin-form-block">
<div class="main_form_navigation">
</div>
<div class="admin_form_link">
</div>
</div>
<div class="clear"></div>
</form>
</div>
</div>
<script>
$("#tab_sign_in").click(function(){
$("#tab_sign_in_content").show();
$("#tab_register_content").hide();
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 5
})
$("#signInbtn").click(function(){
$("#tab_sign_in_content").show();
$("#tab_register_content").hide();
})
$("#tab_register").click(function(){
$("#tab_sign_in_content").hide();
$("#tab_register_content").show();
})
$("#signUpbtn").click(function(){
$("#tab_sign_in_content").hide();
$("#tab_register_content").show();
})
$('.continue').click(function(){
$('.termsandconditions').addClass('termsandconditions_show')
if ($('#customize').val() == '') {
$('.customertermsandconditions').css('display','none')
$('.macrotermsandconditions').css('display','none')
$('.microtermsandconditions').css('display','none')
})
$('.close').click(function(){
$('.termsandconditions').removeClass('termsandconditions_show')
})
$('#customize').change(function(){
if ($(this).val() == 'Customer') {
$('.customertermsandconditions').css('display','unset')
$('.macrotermsandconditions').css('display','none')
$('.microtermsandconditions').css('display','none')
$('.customertermsandconditions').css('display','none')
$('.macrotermsandconditions').css('display','unset')
$('.microtermsandconditions').css('display','none')
$('.customertermsandconditions').css('display','none')
$('.macrotermsandconditions').css('display','none')
$('.microtermsandconditions').css('display','unset')
})
$('.showcontent').click(function(){
$('.content').toggleClass('content_show')
})
</script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 6
<style>
.content{
height: 0;
overflow: hidden;
.content_show{
height: 100%;
.termsandconditions{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
z-index: 1000;
max-width: 100%;
height: 250px;
text-align: center;
display: grid;
place-items: center;
background-color: #fff;
.close{
position: absolute;
top: 10px;
right: 18px;
font-size: 15px;
font-weight: bold;
cursor: pointer;
.termsandconditions .orange_button{
.termsandconditions_show{
</style>
<?php
if(isset($_GET['logout'])=='true') {
unset($_SESSION['customer_id']);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 7
header('location:index.php');
?>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<div id="branding-content">
<div class="menus">
<?php
$user = get_account_details($_SESSION['customer_id']);
?>
<?php } ?>
</div>
<div class="title-content">
</div>
<div class="access-content">
<ul>
<li class="menu-close">
<span>✖</span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 8
</li>
</ul>
<div class="member">
<?php
$user = get_account_details($_SESSION['customer_id']);
?>
<?php } ?>
</div>
<div class="clear"></div>
<!--[if IE]>
<![endif]-->
<script>
$('.mybtn').click(e => {
$('.mybtn').attr('disabled',true);
$('#myForm').submit();
})
</script>
<?php
if($_GET['step'] == 1) {
$one = '';
$two = '';
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 11
Computer Studies Department 9
$three = '';
$four = '';
} elseif($_GET['step'] == 2) {
$one = 'done';
$two = '';
$three = '';
$four = '';
} elseif($_GET['step'] == 3) {
$one = 'done';
$two = 'done';
$three = '';
$four = '';
} elseif($_GET['step'] == 4) {
$one = 'done';
$two = 'done';
$three = 'done';
$four = '';
?>
<div class="step_number">1</div>
<div class="clear"></div>
</div>
<div class="step_number">2</div>
<div class="clear"></div>
</div>
<div class="step_number">3</div>
<div class="clear"></div>
</div>
<div class="step_number">4</div>
<div class="clear"></div>
</div>
<?php
error_reporting(0);
if (isset($_POST['btnTransaction2'])) {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 0
$_SESSION['rate'] = $_POST['rate'];
$_SESSION['total'] = $_POST['total'];
$_SESSION['days'] = $_POST['days'];
if(isset($_POST['search'])) {
global $db;
$manufacturers = post('manufacturers');
$price_filter = post('price_filter');
$price_range = post('price_range');
$fuel_type = post('fuel_type');
$user_type = post('user_type');
$car_location = post('car_location');
$data = get_vehicles($manufacturers,$price_filter,$price_range,$fuel_type,$user_type,$car_location);
} else {
$manufacturers = null;
$price_filter = null;
$price_range = null;
$fuel_type = null;
$user_type = null;
$seating_capacity = null;
$data = get_vehicles();
header('location:vehicles.php?step=1');
header('location:vehicles.php?step=1');
header('location:vehicles.php?step=1');
if($_SESSION['customer_id'] != 0) {
$rows = get_account_details($_SESSION['customer_id']);
if(empty($rows['requirement'])) {
if($_GET['step'] == 4) {
$customer_id = $_SESSION['customer_id'];
$cars_id = post('cars_id');
$rate_per_day = post('rate_per_day');
$total = post('total');
$destination = post('destination');
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 1
$purpose = post('purpose');
$from = post('from');
$to = post('to');
$days_rented = post('days_rented');
$reference = 'ABC'.rand(111111,999999);
$status = 'Pending';
$dayName = date('l');
transactions($customer_id,$cars_id,$destination,$purpose,$from,$to,$rate_per_day,$days_rented,$total,$reference,$status,$dayName);
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
@import url(//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css);
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);
.division {
padding: 0 20px;
min-width: 300px;
background-color: #fffffe;
color: #1a1a1a;
text-align: center;
word-wrap: break-word;
-webkit-font-smoothing: antialiased
.site-header {
margin: 0 auto;
padding: 80px 0 0;
max-width: 820px;
.site-header__title {
margin: 0;
font-weight: 700;
line-height: 1.1;
text-transform: uppercase;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
.main-content {
margin: 0 auto;
max-width: 820px;
.main-content__checkmark {
font-size: 4.0625rem;
line-height: 1;
color: #24b663;
.main-content__body {
font-size: 1rem;
line-height: 1.4;
.site-header {
padding-top: 10px;
.site-header__title {
font-size: 6.25rem;
.main-content__checkmark {
font-size: 9.75rem;
.main-content__body {
font-size: 1.25rem;
.site-footer {
.site-footer__fineprint {
font-size: 1.125rem;
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 3
</style>
<!--[if IE]>
<![endif]-->
</head>
<div id="conteiner">
<div id="branding">
</div>
<div class="clear"></div>
</div>
<div id="main">
<h3 class="widget-title">
</h3>
<h4>Manufacturers</h4>
<div style="padding:20px">
<select name="manufacturers"
class="customize">
<option
value="All">All</option>
<option value="Audi"
<?=
$manufacturers !== null ? $manufacturers == 'Audi' ? 'selected' : '' : ''?>>
Audi</option>
<option value="BMW"
<?=
$manufacturers !== null ? $manufacturers == 'BMW' ? 'selected' : '' : ''?>>
BMW</option> <option
value="Chery" <?=
$manufacturers !== null ? $manufacturers == 'Chery' ? 'selected' : '' : ''?>>
Chery</option>
Chery</option>
<option value="Ford"
<?= $manufacturers !== null ? $manufacturers == 'Ford' ? 'selected' : '' : ''?>>
Ford</option>
<option value="Foton"
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 4
<?= $manufacturers !== null ?
$manufacturers == 'Foton' ? 'selected' : '' : ''?>>
Foton</option>
<option
value="Geely"
<?=
$manufacturers !== null ? $manufacturers == 'Geely' ? 'selected' : '' : ''?>>
Geely</option>
<option value="Honda"
<?= $manufacturers !== null ? $manufacturers == 'Honda' ? 'selected' : '' : ''?>>
Honda</option>
<option value="Hyundai"
<?= $manufacturers !== null ? $manufacturers == 'Hyundai' ?
'selected' : '' : ''?>> Hyundai</option>
<option value="Isuzu"
<?= $manufacturers !== null ? $manufacturers == 'Isuzu' ? 'selected' : '' : ''?>>
Isuzu</option>
<option value="Kia"
<?= $manufacturers !== null ? $manufacturers == 'Kia' ? 'selected' : '' :
''?>> Kia</option>
<option value="MG"
<?= $manufacturers !==
null ? $manufacturers == 'MG' ? 'selected' : '' : ''?>>
MG</option>
<option value="Mazda"
<?= $manufacturers !== null ? $manufacturers == 'Mazda' ? 'selected' : '' : ''?>>
Mazda</option>
<option value="Mitsubishi"
<?= $manufacturers !== null ? $manufacturers ==
'Mitsubishi' ? 'selected' : '' : ''?>>
Mitsubishi</option>
Nissan</option>
<option value="Subaru"
<?= $manufacturers !== null ? $manufacturers == 'Subaru' ? 'selected' : '' : ''?>>
Subaru</option>
<option value="Suzuki"
<?= $manufacturers !== null ? $manufacturers == 'Suzuki' ? 'selected' : '' : ''?>>
Suzuki</option>
<option value="Toyota"
<?= $manufacturers !== null ?
$manufacturers == 'Toyota' ? 'selected' : '' : ''?>>
Toyota</option>
</select>
</div>
<h4>Price Filter</h4>
<div style="padding:20px">
<select name="price_filter"
class="customize" required>
<option value="ASC"
<?=
$price_filter !== null ? $price_filter == 'ASC' ? 'selected' : '' : ''?>>
Lowest to
Highest</option>
<option value="DESC"
<?=
$price_filter !== null ? $price_filter == 'DESC' ? 'selected'
</select>
</div>
<h4>Price Range</h4>
<div style="padding:20px">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 5
<select name="price_range" class="customize" id="" required>
<option value="0"
<?=
$price_range !== null ? $price_range == '0' ? 'selected' : '' : ''?>>All
</option>
<option value="1000-
4999" <?=
$price_range !== null ? $price_range == '1000-4999' ? 'selected' : '' : ''?>>
₱<?=number_format(1000,2)?> - ₱<?=number_format(4999,2)?></option>
<option value="5000-
7999" <?=
$price_range !== null ? $price_range == '5000-7999' ? 'selected' : '' : ''?>>
₱<?=number_format(5000,2)?> - ₱<?=number_format(7999,2)?></option>
<option value="8000-
9999" <?=
$price_range !== null ? $price_range == '8000-9999' ? 'selected' : '' : ''?>>
₱<?=number_format(8000,2)?> - ₱<?=number_format(9999,2)?></option>
<option value="10000"
<?=
$price_range !== null ? $price_range == '10000' ? 'selected' : '' : ''?>>
₱<?
=number_format(10000,2)?> and above</option>
</select>
</div>
<h4>Fuel Type</h4>
<div style="padding:20px">
<select name="fuel_type" class="customize" id="" required>
<option value="All"
<?= $fuel_type !== null ?
$fuel_type == 'All' ? 'selected' : '' : ''?>>All
</option>
<option value="Diesel"
<?=
$fuel_type !== null ? $fuel_type == 'Diesel' ? 'selected' : '' : ''?>>Diesel
</option>
<option value="Gas"
<?=
$fuel_type !== null ? $fuel_type == 'Gas' ? 'selected' : '' : ''?>>Gas
</option>
</select>
</div>
<h4>Owner Type</h4>
<div style="padding:20px">
<select name="user_type"
class="customize" id="" required>
<option value="All"
<?=
$user_type !== null ? $user_type == 'All' ? 'selected' : '' : ''?>>All
</option>
<option value="Micro"
<?=
$user_type !== null ? $user_type == 'Micro' ? 'selected' : '' : ''?>>Micro
</option>
<option value="Macro"
<?=
$user_type !== null ? $user_type == 'Macro' ? 'selected' : '' : ''?>>Macro
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 6
</option>
</select>
</div>
<h4>Location</h4>
<div style="padding:20px">
<select name="car_location"
class="customize">
<option
value="All">All</option>
<option value="Bacoor"
<?=
$car_location !== null ? $car_location == 'Cavite City' ? 'selected' : '' : ''?>>
Cavite
City</option> <option
value="Dasmariñas"
<?= $car_location !== null ? $car_location == 'Dasmariñas' ? 'selected' : '' : ''?>>
Dasmariñas</option>
<option value="General Trias
<?= $car_location !== null ?
$car_location == 'General Trias' ? 'selected' : '' : ''?>>
General Trias</option>
<option value="Imus"
<?= $car_location !== null ? $car_location == 'Imus' ? 'selected' : '' : ''?>>
Imus</option>
<option value="Tagaytay"
<?= $car_location !== null ?
$car_location == 'Tagaytay' ? 'selected' : '' : ''?>>
Tagaytay</option>
<option value="Trece Martires"
<?= $car_location !== null ? $car_location == 'Trece Martires' ? 'selected' : '' : ''?>>
Trece
Martires</option>
<option value="Alfonso"
<?= $car_location !== null ? $car_location == 'Alfonso' ? 'selected' : '' : ''?>>
Alfonso</optio
<option value="Amadeo"
<?= $car_location !== null ? $car_location == 'General Emilio Aguinaldo' ? 'selected' : '' : ''?>>
General
Emilio Aguinaldo</option> <option
value="General Mariano Alvarez"
<?= $car_location !== null ? $car_location == 'General Mariano Alvarez' ? 'selected' : '' : ''?>>
General Mariano Alvarez</option>
<option value="Indang"
<?= $car_location !== null ? $car_location == 'Indang' ?
'selected' : '' : ''?>>
Indang</option>
<option value="Kawit"
<?= $car_location !== null ? $car_location == 'Kawit' ? 'selected' : '' : ''?>>
Kawit</option>
<option value="Magallanes"
<?= $car_location !== null ? $car_location == 'Magallanes' ? 'selected' : '' : ''?>>
Magallanes</option>
<option value="Maragondon"
<?= $car_location !== null ? $car_location == 'Maragondon' ? 'selected' : '' : ''?>>
Maragondon</option>
<option
value="Mendez"
<?= $car_location !== null ? $car_location == 'Mendez' ? 'selected' : '' : ''?>>
Mendez</option>
<option value="Naic"
<?= $car_location !== null ? $car_location == 'Naic' ? 'selected' : '' : ''?
>>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 7
Naic</option>
<option value="Noveleta"
<?=
$car_location !== null ? $car_location == 'Noveleta' ? 'selected' : '' : ''?>>
Noveleta</option>
<option value="Rosario"
<?= $car_location !== null ? $car_location == 'Rosario' ? 'selected' : '' : ''?>>
Rosario</option>
<option value="Silang"
<?= $car_location !== null ? $car_location == 'Silang' ?
</select>
</div>
<div style="padding:20px;margin-top:-20px">
<input class="orange_button"
style="width:100%" type="submit" name="search"
value="Search" />
</div>
</div>
</aside>
</form>
<?php
$cars_id = post('cars_id');
$_SESSION['cars_id'] = $cars_id;
$vehicleData = get_vehicles_details($cars_id);
?>
<?php
?>
<div class="widget">
1225x619?wid=276&hei=156&fmt=png-alpha' : 'images/vehicles/'.$ShowImages[2]?>"
<h3 class="widget-title">
<label style="margin-left:-5px">Car
Detaiasdasdls</label>
</h3>
<div class="product-img">
</div>
<div class="product-info">
<div class="entry-format">
<div><?=$vehicleData['model']?></div>
</div>
<div class="features">
<p>Location: <?
=$vehicleData['location']?></p>
<p>Manufacturer: <?=$vehicleData['manufacturer']?></p>
<p>Year: <?
=$vehicleData['year']?></p>
<p>Model: <?=$vehicleData['model']?></p>
</div>
<div class="details">
<div class="view-
details">[+] view owner details</div>
<div class="close-
details">[-] close owner details</div>
<ul class="details-more">
<li>Name:
<?=$user['firstname']?> <?=$user['middlename']?> <?=$user['surname']?></li>
<li>Contact: <?
=$user['contact']?></li> <li>Email:
<?=$user['email']?></li> <li>Type: <?
=$user['user_type']?></li>
</ul>
</div>
</div>
</div>
</div>
<div class="widget">
<h3 class="widget-title">
</h3>
<div class="product-info">
<div class="entry-format">
<div><?=$vehicleData['rulesandregulations']?></div>
</div>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 12
Computer Studies Department 9
</aside>
<?php
$cars_id = post('cars_id');
$vehicleData = get_vehicles_details($cars_id);
?>
<?php
?>
<div class="widget">
<h3 class="widget-title">
</h3>
<div class="product-img">
</div>
<div class="product-info">
<div class="entry-format">
<div><?=$vehicleData['model']?></div>
</div>
<p>Year: <?
=$vehicleData['year']?></p>
<p>Model: <?=$vehicleData['model']?></p>
</div>
<div class="details">
<div class="view-
details">[+] view owner details</div>
<div class="close-
details">[-] close owner details</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department 0
<ul class="details-more">
<li><?
=$user['firstname']?> <?=$user['middlename']?> <?=$user['surname']?></li>
<li><?
=$user['contact']?></li>
<li><?
=$user['email']?></li>
<li><?
=$user['user_type']?></li>
</ul>
</div>
</div>
</div>
</div>
</aside>
<?php } ?>
<div class="post">
<div style="padding:15px">
No record found.
</div>
</div>
<?php
?>
<div class="post">
<div class="main-block_container">
<div class="main-block">
<div class="product-img">
<img
src="<?=$vehicles['images'] == '' ? 'https://s7d1.scene7.com/is/image/hyundai/compare-vehicle-1225x619?wid=276&hei=156&fmt=png-alpha' :
'images/vehicles/'.$ShowImages[0]?>"
style="width:250px" alt="" />
</div>
<div class="product-info">
<h3 class="entry-format"><?=$vehicles['model']?></h3>
<div class="features">
<p><strong>Brand:</strong> <?
=$vehicles['manufacturer']?></p>
<p><strong>Fuel:</strong> <?=$vehicles['fuel_type']?></p>
</div>
<div class="details">
<div class="view-details">[+] More
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department 1
details</div>
<div class="close-details">[-] Close details</div>
</div>
<div class="details-more">
<p><strong>Type:</strong> <?=$user['user_type']?></p>
<p><strong>Fuel Tank
Capacity:</strong> <?=$vehicles['fuel_tank_capacity']?>
</p>
</p>
</div>
</div>
</div>
<div class="additional-block">
<div>
<p>₱<?=number_format($vehicles['rate'],2)?></p>
<?php } ?>
</div>
<div style="margin-
top:10px">
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="post-delimiter"></div>
<?php } ?>
<?php } ?>
</div>
</div>
<div class="widget">
<h3 class="widget-title">
</h3>
<div class="post">
<div style="padding:20px">
<p>Date Range</p>
<input type="text"
class="shortcode_input" style="width:100%" name="dates"
autocomplete=off required>
<p>Destination</p>
<input type="text"
class="shortcode_input" style="width:100%" name="destination"
required>
<p>Purpose of renting</p>
<input type="text"
class="shortcode_input" style="width:100%" name="purpose"
required>
<p>Days</p>
<input type="text"
readonly class="shortcode_input" style="width:100%" value=1
id="days" name="days">
</div>
</div>
id="rate"><?= number_format($vehicleData['rate'],2)?></strong></span>
</div>
</div>
</div>
</div>
</form>
<div class="widget">
<h3 class="widget-title">
</h3>
<div class="post">
<div style="padding:20px">
<p>Destination</p>
<input type="text"
class="shortcode_input" readonly style="width:100%"
<p>Purpose of renting</p>
<input type="text"
class="shortcode_input" readonly style="width:100%"
<p>From</p>
<input type="text"
class="shortcode_input" readonly style="width:100%" name="from"
value="<?=$explode[0]?>" required>
<p>To</p>
<input type="text"
class="shortcode_input" readonly style="width:100%" name="to"
value="<?=$explode[1]?>" required>
<p>Days rented</p>
<input type="text"
class="shortcode_input" readonly style="width:100%" name="days_rented"
value="<?=$_SESSION['days']?>" required>
value="₱<?
=number_format($_SESSION['rate'],2)?>">
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="widget">
<div class="post">
<div class="division">
<h1
class="site-header__title" data-lead-id="site-header-title">THANK YOU!</h1>
</header>
<div class="main-
content">
<i class="fa
fa-check main-content__checkmark" id="checkmark"></i>
<p
class="main-content__body" data-lead-id="main-content-body">Thanks a bunch
for filling that out. It means a lot to us, just like you do! We really
appreciate you giving us a moment of
your time today. Thanks for being you.
</p>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
<!--end:conteiner-->
</form>
<script src="https://2-22-4-dot-lead-pages.appspot.com/static/lp918/min/html5shiv.js"></script>
<?php
<?php
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department 5
$from[] = date('Y-m-d', strtotime($owner['from']));
?>
</div>
<br>
<?php
new DateTime($owner['from']),
new DateInterval('P1D'),
);
$date[] = $value->format('Y-m-d');
?>
<?php } ?>
<?php
$date = json_encode($date);
// $from = json_encode($from);
$to = json_encode($to);
// print_r($alldate);
?>
<script>
$('#vehicles').addClass('current_page_item')
function selectThis(id) {
$('#cars_id').val(id);
$('#formStep').submit();
date.setDate(date.getDate() + 1)
$('input[name="dates"]').daterangepicker({
format: 'YYYY-MM-DD',
isInvalidDate: function(date) {
i = 0;
if (date.format('YYYY-MM-DD') == check[i]) {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department 6
return true;
debugger
$('#days').val(days)
$('#rate').html(numberWithCommas(rate.toFixed(2)))
$firstDate = $firstDateVal;
$secondDate = $secondDateVal;
hiderate = $('.hiderate').val()
$('.totalrate').val(hiderate*$days)
$('#days').val($days+1)
maximumFractionDigits: 2
}).format(hiderate*$days)+'.00')
$('.totalrate').text(new Intl.NumberFormat('en-IN', {
maximumFractionDigits: 2
}).format(hiderate*($days+1))+'.00')
});
});
$(this).val('');
});
function numberWithCommas(x) {
x = x.toString();
x = x.replace(pattern, "$1,$2");
return x;
<?php } ?>
setTimeout(function() {
},1000)
<?php } ?>
$('img.zoomable').click('click', function () {
'max-width': '100%',
'max-height': '100%',
'display': 'inline'
});
bigImg.attr({
src: img.attr('src'),
alt: img.attr('alt'),
title: img.attr('title')
});
'height': '100%',
'width': '100%',
'background': 'rgba(0,0,0,.82)',
'position': 'fixed',
'top': 0,
'left': 0,
'opacity': 0.0,
'cursor': 'pointer',
'z-index': 9999,
'text-align': 'center'
}).append(bigImg).bind('click', function () {
$(this).fadeOut(300, function () {
$(this).remove();
});
}).insertAfter(this).animate({
'opacity': 1
}, 300);
});
$("#backToStep1").click(function(){
window.location.href="vehicles.php?step=1";
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department 8
})
$("#backToStep2").click(function(){
window.location.href="vehicles.php?step=2";
})
</script>
</body>
</html>
<?php
session_start();
ob_end_clean();
ob_start();
date_default_timezone_set('Asia/Manila');
if(!isset($_SESSION['customer_id'])) {
$_SESSION['customer_id'] = 0;
if(!isset($_SESSION['owners_id'])) {
$_SESSION['owners_id'] = 0;
if(!isset($_SESSION['admin_id'])) {
$_SESSION['admin_id'] = 0;
<?php
include 'config.php';
function post($data) {
global $db;
return $db->real_escape_string($_POST[$data]);
//Account registration
function register($register_license,$register_surname,$register_firstname,$register_middlename,$register_email,$register_contact,$register_username,
$register_password,$user_type) {
global $db;
$Upgrade = "";
if($user_type == "Macro"){
$Upgrade = 2;
}else{
$Upgrade = 0;
if($checker->num_rows > 0) {
echo "<script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 13
Computer Studies Department 9
alert('Email already exists');
</script>";
} else {
$requirement = $_FILES['requirement']['name'];
echo"
<style>
.swal-button {
border-radius: 2px;
background-color: #FF8C00;
font-size: 12px;
.swal-button:hover {
background-color: #FFD580;
</style>
";
require './vendors/PHPMailerAutoload.php';
$mail->Body = 'Thank you for registering to ABC Rental Cars. Your information is now being reviewed by the administrator. Please wait for another
email for account approval notice. Thak you.';
if(!$mail->send()) {
echo "<script>swal ( 'Success' , 'Account has been successfuly registered. Please wait for approval by the administrator. Thank you.' ,
'success' )</script>";
function forgotPassword($register_email){
global $db;
if($checker->num_rows > 0) {
$data = mysqli_fetch_assoc($checker);
require './vendors/PHPMailerAutoload.php';
$mail->Body = "To change your new password, please click this link: <a href='http://abcrentalcars.online/changepassword.php?id=".
$data['id']."'>http://abcrentalcars.online/changepassword.php</a> ";
if(!$mail->send()) {
} else {
echo "<script>swal ( 'Success' , 'Request has been sent. Please check your email' , 'success' )</script>";
}else{
echo"
<style>
.swal-button {
border-radius: 2px;
background-color: #FF8C00;
font-size: 12px;
.swal-button:hover {
background-color: #FFD580;
</style>
";
function changeAccPassword($id,$pass){
global $db;
if($checker){
</script>";
}else{
return false;
function get_account_details($id) {
global $db;
function getProofCredits($id) {
global $db;
return $result['proof'];
function get_chat_reference($id) {
global $db;
$result = mysqli_fetch_assoc($query1);
return $result['reference'];
function create_chat_to_admin($ref,$id) {
global $db;
$result = mysqli_fetch_assoc($query);
//customer profile
function update_profile($license,$surname,$firstname,$middlename,$email,$contact) {
global $db;
$query = $db->query("UPDATE accounts SET license = '$license', surname = '$surname', firstname = '$firstname', middlename = '$middlename', email =
'$email', contact = '$contact' WHERE id = ".$_SESSION['customer_id']);
if($query) {
//customer password
function update_profile_password($old_password,$new_password,$confirm_new_password) {
global $db;
$data = get_account_details($_SESSION['customer_id']);
if(password_verify($old_password,$data['password'])) {
if($new_password == $confirm_new_password) {
$password = password_hash($new_password,PASSWORD_DEFAULT);
if($query) {
} else {
} else {
//admin
function update_admin_profile($surname,$firstname,$middlename,$email,$contact) {
global $db;
$query = $db->query("UPDATE accounts SET surname = '$surname', firstname = '$firstname', middlename = '$middlename', email = '$email', contact =
'$contact' WHERE id = ".$_SESSION['admin_id']);
if($query) {
//admin
function update_admin_password($old_password,$new_password,$confirm_new_password) {
global $db;
$data = get_account_details($_SESSION['admin_id']);
if(password_verify($old_password,$data['password'])) {
if($new_password == $confirm_new_password) {
$password = password_hash($new_password,PASSWORD_DEFAULT);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 14
Computer Studies Department 3
$query = $db->query("UPDATE accounts SET password = '$password' WHERE id = ".$_SESSION['admin_id']);
if($query) {
} else {
} else {
function update_owner_password($old_password,$new_password,$confirm_new_password) {
global $db;
$data = get_account_details($_SESSION['owners_id']);
if(password_verify($old_password,$data['password'])) {
if($new_password == $confirm_new_password) {
$password = password_hash($new_password,PASSWORD_DEFAULT);
if($query) {
} else {
} else {
global $db;
$query = $db->query("UPDATE accounts SET license = '$license', surname = '$surname', firstname = '$firstname', middlename =
if($query) {
function update_to_macro($UpgradeNo) {
global $db;
if($query) {
return true;
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 14
Computer Studies Department 4
function admin_update_to_macro($userid, $UpgradeNo, $userType) {
global $db;
if($query) {
return true;
function buy_credits($referenceNumber,$userid,$fname,$cp,$cred,$utype,$dayName,$proof) {
global $db;
if($query) {
return true;
global $db;
if($status == "Reject"){
if($query) {
return true;
if($query) {
return true;
function buy_credits_status($userid) {
global $db;
if($query) {
$result = mysqli_fetch_assoc($query);
return $result['c_status'];
function get_vehicles_details($id) {
global $db;
function getUserTypeByID($id) {
global $db;
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 14
Computer Studies Department 5
$res = $db->query("SELECT * FROM credits WHERE customer_id = $id AND c_status='Success' AND AccountType='Micro'");
} return mysqli_num_rows($res);
function update_transactions($id,$reason) {
global $db;
$query = $db->query("UPDATE transactions SET reason = '$reason', status = 'Cancelled' WHERE id = $id");
if($query) {
$query2 = $db->query("SELECT a.email FROM accounts as a INNER JOIN transactions as t ON a.id = t.owners_id WHERE t.id = $id");
$result = mysqli_fetch_assoc($query2);
$bodyMessage = "Your customer <b style='color: red;'>cancelled</b> the car reservation. <b style='color: blue;'>Reason:</b>: ".$reason;
require '../vendors/PHPMailerAutoload.php';
$mail->Subject = $bodyTitle;
$mail->Body = $bodyMessage;
if(!$mail->send()) {
} else {
function update_transaction_status($id,$customer,$status) {
global $db;
if($query) {
$result = mysqli_fetch_assoc($query1);
if($query1){
$bodyTitle = "";
$bodyMessage = "";
if($status == "Approved"){
$bodyMessage = "We're very sorry, your car request was <b style='color: red;'>disapprove</b> by the owner.";
}else{
$bodyMessage = "Thank you so much for car reservation. You were marked up as PAID.";
require '../../vendors/PHPMailerAutoload.php';
$mail->Subject = $bodyTitle;
$mail->Body = $bodyMessage;
if(!$mail->send()) {
} else {
if($status == "Approved"){
return true;
return true;
}else{
return true;
function get_my_cars($owners_id) {
global $db;
function get_my_cars_count($owners_id) {
global $db;
return mysqli_num_rows($res);
function countMessages() {
global $db;
return mysqli_num_rows($res);
function showExistingCreditsAccount($id) {
global $db;
return mysqli_num_rows($res);
function updateTheCustomerIDCredits($id) {
global $db;
return $db->query("UPDATE credits SET customer_id = 99999, subId=$id WHERE customer_id = $id");
function readMessages($id) {
global $db;
function get_my_accountCreditsExpiration($owners_id) {
global $db;
$result = mysqli_fetch_assoc($query1);
return "expired";
function checkMessageStatus($id) {
global $db;
$result = mysqli_fetch_assoc($query1);
return $result['ChatStatus'];
function get_my_accountType($owners_id) {
global $db;
return $result['user_type'];
function get_my_C_StatusCredits($owners_id) {
global $db;
$result = mysqli_fetch_assoc($query1);
if($result == ""){
return "";
}else{
return $result['c_status'];
function get_car_details($id) {
global $db;
function get_car_if_exists($id) {
global $db;
function get_chats($reference) {
global $db;
function get_chats_if_exists($reference) {
global $db;
function all_manufacturers() {
global $db;
function get_manufacturers_details($id) {
global $db;
function get_manufacturer_if_exists($id) {
global $db;
global $db;
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 14
Computer Studies Department 9
if($manufacturers == 'All') {
$pre_condition1 = "";
} else {
if($fuel_type == 'All') {
$pre_condition2 = "";
} else {
if($manufacturers == 'All') {
} else {
if($ownerType == 'All') {
$pre_condition2 = "";
} else {
if($manufacturers == 'All') {
} else {
if($car_location == 'All') {
$pre_condition2 = "";
} else {
if($manufacturers == 'All') {
} else {
if($price_range == 0) {
$pre_condition3 = "";
} elseif($price_range == 10000) {
} else {
else {
$price = explode('-',$price_range);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 0
$from = $price[0];
$to = $price[1];
$pre_condition3 = " WHERE rate >= $from AND rate <= $to ";
} else {
$pre_condition3 = " AND rate >= $from AND rate <= $to ";
$checker = $db->query("SELECT * FROM cars INNER JOIN accounts ON cars.accounts_id = accounts.id $conditions");
if($checker->num_rows > 0) {
return $db->query("SELECT *,cars.id as cars_id FROM cars INNER JOIN accounts ON cars.accounts_id = accounts.id $conditions ORDER BY rate
$price_filter");
} else {
return $db->query("SELECT *,cars.id as cars_id FROM cars INNER JOIN accounts ON cars.accounts_id = accounts.id $conditions ORDER BY rate
$price_filter");
} else {
return $db->query("SELECT *,cars.id as cars_id FROM cars INNER JOIN accounts ON cars.accounts_id = accounts.id");
function secureLogin($username,$password) {
global $db;
$check = $db->query("SELECT * FROM accounts WHERE username = '$username' AND user_type = 'Customer' AND status = 1"); // validate if username
already exist
if($check->num_rows > 0) {
$row = $check->fetch_assoc();
if(password_verify($password,$row['password'])) {
$_SESSION['customer_id'] = $row['id'];
header('location: index.php');
} else {
echo"
<style>
.swal-button {
border-radius: 2px;
background-color: #FF8C00;
font-size: 12px;
.swal-button:hover {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 1
background-color: #FFD580;
</style>
";
} else {
echo"
<style>
.swal-button {
border-radius: 2px;
background-color: #FF8C00;
font-size: 12px;
.swal-button:hover {
background-color: #FFD580;
</style>
";
echo "<script>swal ( 'Oops' , 'Account does not exist or Pending for approval' , 'error' )</script>";
function ownerLogin($username,$password) {
global $db;
$check = $db->query("SELECT * FROM accounts WHERE username = '$username' AND status = 1"); // validate if username already exist
if($check->num_rows > 0) {
$row = $check->fetch_assoc();
if(password_verify($password,$row['password'])) {
$_SESSION['owners_id'] = $row['id'];
header('location: dashboard.php');
} else {
return 1;
} else {
return 2;
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 2
}
function adminLogin($username,$password) {
global $db;
$check = $db->query("SELECT * FROM accounts WHERE username = '$username' AND user_type = 'Administrator' AND status = 1"); // validate if
username already exist
if($check->num_rows > 0) {
$row = $check->fetch_assoc();
if(password_verify($password,$row['password'])) {
$_SESSION['admin_id'] = $row['id'];
header('location: dashboard.php');
} else {
return 1;
} else {
return 2;
function get_all_owners() {
global $db;
function get_all_accounts_approved_list_all() {
global $db;
return $db->query("SELECT * FROM accounts WHERE status = 1 AND user_type = 'Customer' OR status = 1 AND user_type = 'Micro' OR status = 1
AND user_type = 'Macro'");
function get_all_accounts_approved_list_customers() {
global $db;
function get_all_accounts_approved_list_owners() {
global $db;
return $db->query("SELECT * FROM accounts WHERE status = 1 AND user_type = 'Micro' OR status = 1 AND user_type = 'Macro'");
function get_all_accounts_approved() {
global $db;
return $db->query("SELECT *,COUNT(id) AS totalapproved FROM accounts WHERE status = 1 AND user_type = 'Customer' OR status = 1 AND
user_type = 'Micro' OR status = 1 AND user_type = 'Macro'");
function get_all_accounts_not_approved_list_all() {
global $db;
return $db->query("SELECT * FROM accounts WHERE status = 0 AND user_type = 'Customer' OR status = 0 AND user_type = 'Micro' OR status = 0
AND user_type = 'Macro'");
function get_all_accounts_req_to_macro() {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 3
global $db;
function get_all_req_message() {
global $db;
return $db->query("SELECT * FROM chat WHERE CustomerID != '' ORDER BY date DESC");
function get_all_accounts_req_to_buy_credits_pendingStatus() {
global $db;
return $db->query("SELECT a.*, c.* FROM accounts as a INNER JOIN credits as c ON a.id = c.customer_id WHERE c.c_status = 'Pending'");
function get_all_request_macro() {
global $db;
return $db->query("SELECT COUNT(id) AS totalreqmacro FROM accounts WHERE user_type = 'Micro' AND Upgrade=1");
function get_all_accounts_not_approved_list_customers() {
global $db;
function get_all_accounts_not_approved_list_owners() {
global $db;
return $db->query("SELECT * FROM accounts WHERE status = 0 AND user_type = 'Micro' OR status = 0 AND user_type = 'Macro'");
function get_all_accounts_not_approved() {
global $db;
return $db->query("SELECT *,COUNT(id) AS totalnotapproved FROM accounts WHERE status = 0 AND user_type = 'Customer' OR status = 0 AND
user_type = 'Micro' OR status = 0 AND user_type = 'Macro'");
function get_all_accounts_rejected() {
global $db;
return $db->query("SELECT *,COUNT(id) AS totalrejected FROM accounts WHERE status = 2 AND user_type = 'Customer' OR status = 2 AND
user_type = 'Micro' OR status = 2 AND user_type = 'Macro'");
function get_all_accounts_requestCredits() {
global $db;
function get_all_accounts_rejected_list_owners() {
global $db;
return $db->query("SELECT * FROM accounts WHERE status = 2 AND user_type = 'Micro' OR status = 2 AND user_type = 'Macro'");
function get_all_accounts_rejected_list_customers() {
global $db;
function get_all_accounts_rejected_list_all() {
global $db;
return $db->query("SELECT * FROM accounts WHERE status = 2 AND user_type = 'Customer' OR status = 2 AND user_type = 'Micro' OR status = 2
AND user_type = 'Macro'");
function get_all_total_profit() {
global $db;
return $db->query("SELECT *,SUM(total) AS totalprofit FROM transactions WHERE owners_id = '".$_SESSION['owners_id']."' AND status = 'Paid'");
function get_all_total_profit_buycredits() {
global $db;
function get_all_total_vehicle() {
global $db;
function get_all_total_vehicle2() {
global $db;
function get_all_total_bookings() {
global $db;
return $db->query("SELECT *,COUNT(id) AS totalbookings FROM transactions WHERE owners_id = '".$_SESSION['owners_id']."' AND status =
'Approved'");
function get_all_total_pendingbookings() {
global $db;
return $db->query("SELECT *,COUNT(id) AS pendingbookings FROM transactions WHERE owners_id = '".$_SESSION['owners_id']."' AND status =
'Pending'");
function get_all_total_paidbookings() {
global $db;
return $db->query("SELECT COUNT(id) AS paidbookings FROM transactions WHERE owners_id = '".$_SESSION['owners_id']."' AND status = 'Paid'");
function get_all_customers() {
global $db;
function get_all_accounts_approved2() {
global $db;
function get_all_accounts_notapproved2() {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 5
global $db;
function get_all_transactions() {
global $db;
function get_all_transactions2($carsID) {
global $db;
return $db->query("SELECT * FROM transactions WHERE cars_id = '$carsID' AND (status = 'Pending' OR status = 'Approved')");
function get_all_editpage_aboutus() {
global $db;
function get_all_editpage_contactus() {
global $db;
function get_all_editpage_rules() {
global $db;
function get_all_editpage_termsandconditionscustomer() {
global $db;
function get_all_editpage_termsandconditionsmacro() {
global $db;
function get_all_editpage_termsandconditionsmicro() {
global $db;
function update_status($id,$status) {
global $db;
if($query) {
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 6
function update_owner_status($id,$status) {
global $db;
if($query) {
$stmt = mysqli_fetch_assoc($query2);
$email = $stmt['email'];
require '../../vendors/PHPMailerAutoload.php';
if($status == 1){
$mail->Body = "Good day, your account has been <b style='color: green;'>approved</b> by the administrator. You can now login using the username
and password that you have submitted. Thank you. Please click this link to login. <a
href='https://www.abcrentalcars.online'>https://www.abcrentalcars.online</a>";
$mail->Body = "Good day, your account has been <b style='color: red;'>rejected</b> due to invalid information that you have submitted. Please try
to submit again. Thank you.";
if(!$mail->send()) {
} else {
return true;
function update_content_status($aboutus) {
global $db;
if($query) {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 7
$message = "Page Content has been updated!";
function update_content_termsandconditionscustomer($termsandconditions) {
global $db;
if($query) {
function update_content_termsandconditionsmacro($termsandconditions) {
global $db;
if($query) {
function update_content_termsandconditionsmicro($termsandconditions) {
global $db;
if($query) {
function update_content_contactus($contactus) {
global $db;
if($query) {
function update_content_rules($rules) {
global $db;
if($query) {
function transactions($customer_id,$cars_id,$destination,$purpose,$from,$to,$rate_per_day,$days_rented,$total,$reference,$status,$dayName) {
global $db;
$check = $db->query("SELECT * FROM transactions WHERE customer_id = '$customer_id' AND `from` = '$from' AND `to` = '$to'"); // validate if
username already exist
if($check->num_rows > 0) {
} else {
$data = get_vehicles_details($cars_id);
$rowSender = get_account_details($data['accounts_id']);
$rowReceiver = get_account_details($customer_id);
$owners_id = $data['accounts_id'];
if($query) {
$sqlShowEmail = $db->query("SELECT a.email FROM accounts as a INNER JOIN cars as c ON a.id = c.accounts_id WHERE c.id = $data[id]");
$res = mysqli_fetch_assoc($sqlShowEmail);
$bodyMessage = $receiverName." wants to rent your car. Check your car reservation menu.";
require 'vendors/PHPMailerAutoload.php';
$mail->Subject = $bodyTitle;
$mail->Body = $bodyMessage;
if(!$mail->send()) {
$message = 'Thank you for your reservation. Your reference code is '.$reference;
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 15
Computer Studies Department 9
}
function get_my_transactions($owners_id) {
global $db;
return $db->query("SELECT * FROM transactions WHERE owners_id = '$owners_id' ORDER BY date DESC"); // validate if username already exist
function save_chat($message,$reference,$transaction_id,$customer_id) {
global $db;
$rowTransaction = get_transaction_details($transaction_id);
$rowData = get_vehicles_details($rowTransaction['cars_id']);
$rowReceiver = get_account_details($rowData['accounts_id']);
$rowSender = get_account_details($customer_id);
$msg = $message;
if($query) {
return true;
}else{
return false;
function save_chat_to_admin($message,$reference,$customer_id) {
global $db;
$result = mysqli_fetch_assoc($query);
$msg = $message;
if($query) {
return true;
}else{
return false;
function save_cars($location,$manufacturer,$no_of_doors,$fuel_tank_capacity,$seating_capacity,$transmission_type,$gear_box,$model,$color,$year,$rate,
$fuel_type,$rulesandregulations) {
global $db;
$accounts_id = $_SESSION['owners_id'];
$imageName = "";
if($query) {
$imageName = $_FILES['images']['name'][$key];
$imageTmpName = $_FILES['images']['tmp_name'][$key];
move_uploaded_file($imageTmpName,'../../images/vehicles/'.$imageName);
return true;
}else{
return false;
function update_cars($id,$manufacturer,$no_of_doors,$fuel_tank_capacity,$seating_capacity,$transmission_type,$gear_box,$model,$color,$year,$rate,
$fuel_type,$rulesandregulations) {
global $db;
$accounts_id = $_SESSION['owners_id'];
$query = $db->query("UPDATE cars SET manufacturer = '$manufacturer', no_of_doors = '$no_of_doors', fuel_tank_capacity = '$fuel_tank_capacity',
seating_capacity = '$seating_capacity', transmission_type = '$transmission_type', gear_box = '$gear_box', model = '$model', color = '$color',`year` = '$year',
rate = '$rate', fuel_type = '$fuel_type', rulesandregulations = '$rulesandregulations' WHERE id = $id");
if($query) {
echo"
<style>
.swal-button {
border-radius: 2px;
background-color: #FF8C00;
font-size: 12px;
.swal-button:hover {
background-color: #FFD580;
</style>
";
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 16
Computer Studies Department 1
}
function update_car_image($id) {
global $db;
$accounts_id = $_SESSION['owners_id'];
$images = $_FILES['images']['name'];
if($query) {
move_uploaded_file($_FILES['images']['tmp_name'],'../../images/vehicles/'.$_FILES['images']['name']);
function delete_cars($id) {
global $db;
if($query) {
function save_owner_chat($message,$reference,$transaction_id,$owners_id) {
global $db;
$rowTransaction = get_transaction_details($transaction_id);
$rowData = get_vehicles_details($rowTransaction['cars_id']);
$rowReceiver = get_account_details($rowData['accounts_id']);
$rowSender = get_account_details($owners_id);
$msg = $message;
if($query) {
function save_chat_to_admin_customer($message,$reference,$customer_id) {
global $db;
$result = mysqli_fetch_assoc($query);
$msg = $message;
if($query) {
return true;
}else{
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 16
Computer Studies Department 2
return false;
function get_transaction_details($id) {
global $db;
function upload_drivers_license() {
global $db;
$requirement = $_FILES['requirement']['name'];
if($query) { move_uploaded_file($_FILES['requirement']['tmp_name'],'../images/license/'.$_FILES['requirement']['name']);
function upload_business_permit() {
global $db;
$requirement = $_FILES['requirement']['name'];
if($query) { move_uploaded_file($_FILES['requirement']['tmp_name'],'../../images/permit/'.$_FILES['requirement']['name']);
function get_transaction_if_exists($id) {
global $db;
function get_transactions() {
global $db;
function get_transactions2() {
global $db;
function get_customer_transactions($owners_id) {
global $db;
return $db->query("SELECT * FROM transactions WHERE status = 'Approved' AND owners_id = '$owners_id'"); // validate if username already exist
function get_customer_Paidtransactions($owners_id) {
global $db;
return $db->query("SELECT * FROM transactions WHERE status = 'Paid' AND owners_id = '$owners_id'"); // validate if username already exist
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 16
Computer Studies Department 3
function get_customer_pendingtransactions($owners_id) {
global $db;
return $db->query("SELECT * FROM transactions WHERE status = 'Pending' AND owners_id = '$owners_id'"); // validate if username already exist
}function encryption($data) {
$plaintext = $data;
$key = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
$ivlen = openssl_cipher_iv_length($cipher="AES-128-CBC");
$iv = openssl_random_pseudo_bytes($ivlen);
return $ciphertext;
function decryption($data) {
$c = base64_decode($data);
$key = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
$ivlen = openssl_cipher_iv_length($cipher="AES-128-CBC");
return $original_plaintext;
function getDayProfit($id,$dayName){
global $db;
$sqlQ = $db->query("SELECT SUM(`total`) as totalDayProfit FROM transactions WHERE `owners_id`= '$id' AND `status`='Paid' AND
`dayName`='$dayName'");
$stmt = mysqli_fetch_assoc($sqlQ);
if($stmt['totalDayProfit'] != ""){
echo $stmt['totalDayProfit'];
}else{
echo "0";
function getDayProfit_admin($dayName){
global $db;
$sqlQ = $db->query("SELECT SUM(`amount`) as totalDayProfit FROM credits WHERE (`c_status`='Success' OR `c_status`='Expired') AND
`c_dayName`='$dayName'");
$stmt = mysqli_fetch_assoc($sqlQ);
if($stmt['totalDayProfit'] != ""){
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 16
Computer Studies Department 4
echo $stmt['totalDayProfit'];
}else{
echo "0";
function dayName($id){
global $db;
$sqlQ = $db->query("SELECT `date` as dayName FROM transactions WHERE `owners_id`= '$id' AND `status`='Approved'");
while($stmt = mysqli_fetch_assoc($sqlQ)){
$converted = substr($stmt['dayName'],0,10);
echo '"'.$newDateName.'"'.",";
function getDailyProfit($id){
global $db;
$sqlQ = $db->query("SELECT SUM(`total`) as dailyProfit FROM transactions WHERE `owners_id`='$id' AND `status`='Paid' AND
DATE_FORMAT(`date`, '%Y-%m-%d') = CURDATE();");
$stmt = mysqli_fetch_assoc($sqlQ);
echo $stmt['dailyProfit'];
function getDailyProfit_admin(){
global $db;
$sqlQ = $db->query("SELECT SUM(`amount`) as dailyProfit FROM credits WHERE (`c_status`='Success' OR `c_status`='Expired') AND
DATE_FORMAT(`DateCreated`, '%Y-%m-%d') = CURDATE();");
$stmt = mysqli_fetch_assoc($sqlQ);
echo $stmt['dailyProfit'];
function getWeeklyProfit($id){
global $db;
$sqlQ = $db->query("SELECT SUM(`total`) as weeklyProfit FROM transactions WHERE `owners_id`='$id' AND `status`='Paid' AND
YEARWEEK(`date`, 1) = YEARWEEK(CURDATE(), 1)");
$stmt = mysqli_fetch_assoc($sqlQ);
echo $stmt['weeklyProfit'];
function getWeeklyProfit_admin(){
global $db;
$sqlQ = $db->query("SELECT SUM(`amount`) as weeklyProfit FROM credits WHERE (`c_status`='Success' OR `c_status`='Expired') AND
YEARWEEK(`DateCreated`, 1) = YEARWEEK(CURDATE(), 1)");
$stmt = mysqli_fetch_assoc($sqlQ);
echo $stmt['weeklyProfit'];
function getMonthlyProfit($id){
global $db;
$stmt = mysqli_fetch_assoc($sqlQ);
echo $stmt['monyhlyProfit'];
function getMonthlyProfit_admin(){
global $db;
$stmt = mysqli_fetch_assoc($sqlQ);
echo $stmt['monyhlyProfit'];
// PDFS
function PDF_Admin_totalProfit(){
global $db;
while($stmt = mysqli_fetch_assoc($sqlQ)){
echo "<tr>
<td style='text-align:center'>$stmt[referenceNumber]</td>
<td style='text-align:center'>$stmt[amount]</td>
<td style='text-align:center'>$stmt[amount]</td>
<td style='text-align:center'>$stmt[DateCreated]</td>
<td style='text-align:center'>";
echo "</td>
<td style='text-align:center'>$stmt[AccountType]</td>
</tr>";
function PDF_Admin_totalProfitData(){
global $db;
$sqlQ = $db->query("SELECT SUM(amount) as Profit FROM credits WHERE c_status = 'Success' OR c_status='Expired'");
$stmt = mysqli_fetch_assoc($sqlQ);
if($stmt['Profit'] == ""){
}else{
function PDF_Owner_totalProfit(){
global $db;
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 16
Computer Studies Department 6
$sqlQ = $db->query("SELECT * FROM transactions WHERE owners_id = ".$_SESSION['customer_id']." AND status='Paid'");
while($stmt = mysqli_fetch_assoc($sqlQ)){
echo "<tr>
<td style='text-align:center'>$stmt[cars_id]</td>
<td style='text-align:center'>$stmt[destination]</td>
<td style='text-align:center'>$stmt[from]</td>
<td style='text-align:center'>$stmt[to]</td>
<td style='text-align:center'>$stmt[rate_per_day]</td>
<td style='text-align:center'>$stmt[days_rented]</td>
<td style='text-align:center'>$stmt[total]</td>
<td style='text-align:center'>$stmt[reference]</td>
</tr>";
<?php
if(isset($_POST['sendChat'])) {
global $db;
$message = post('message');
$reference = post('reference');
$filename = $_FILES['sendImage']['name'];
if($filename == ""){
save_chat_to_admin($message,$reference,$_SESSION['customer_id']);
}else{
$filename = $_FILES['sendImage']['name'];
$imageTmpName = $_FILES['sendImage']['tmp_name'];
$finalname = "cImg-".$filename;if(save_chat_to_admin($finalname,$reference,$_SESSION['customer_id'])){
move_uploaded_file($imageTmpName,'../images/chats/'.$finalname);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['customer_id']);
header('location:../');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Chat - Admin</title>
<!--[if lt IE 9]>
<script src="assets/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="assets/vendor/media-match/media.match.min.js"></script>
<script src="assets/vendor/respond/respond.min.js"></script>
<![endif]-->
<script src="assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 16
Computer Studies Department 9
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-main">
<div class="app-message-chats">
<div class="chats">
<div class="chat-avatar">
</a>
</div>
<div class="chat-body">
</div>
</div>
<br>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 0
</div>
<?php } ?>
</div>
</div>
<div style="display: flex; justify-content: right; flex-direction: row; height: 40px; position: relative; width: 100%; float: right;">
</div>
</div>
</form>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="assets/vendor/jquery/jquery.js"></script>
<script src="assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="assets/vendor/bootstrap/bootstrap.js"></script>
<script src="assets/vendor/animsition/animsition.js"></script>
<script src="assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="assets/vendor/switchery/switchery.js"></script>
<script src="assets/vendor/intro-js/intro.js"></script>
<script src="assets/vendor/screenfull/screenfull.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/vendor/autosize/autosize.js"></script>
<script src="assets/js/Component.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 1
<script src="assets/js/Plugin.js"></script>
<script src="assets/js/Base.js"></script>
<script src="assets/js/Config.js"></script>
<script src="assets/js/Section/Menubar.js"></script>
<script src="assets/js/Section/Sidebar.js"></script>
<script src="assets/js/Section/PageAside.js"></script>
<script src="assets/js/Plugin/menu.js"></script>
<script src="assets/js/config/colors.js"></script>
<script src="assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/Plugin/asscrollable.js"></script>
<script src="assets/js/Plugin/slidepanel.js"></script>
<script src="assets/js/Plugin/switchery.js"></script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/App/Message.js"></script>
<script src="assets/examples/js/apps/message.js"></script>
</body>
</html>
<?php
if(isset($_POST['sendChat'])) {
global $db;
$message = post('message');
$reference = post('reference');
$id = post('id');
$filename = $_FILES['sendImage']['name'];
if($filename == ""){
save_chat($message,$reference,$id,$_SESSION['customer_id']);
}else{
$filename = $_FILES['sendImage']['name'];
$imageTmpName = $_FILES['sendImage']['tmp_name'];
$finalname = "cImg-".$filename;
if(save_chat($finalname,$reference,$id,$_SESSION['customer_id'])){
move_uploaded_file($imageTmpName,'../images/chats/'.$finalname);
if(isset($_GET['logout']) == 'true') {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 2
unset($_SESSION['customer_id']);
header('location:../');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Chat - Owner</title>
<!--[if lt IE 9]>
<script src="assets/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="assets/vendor/media-match/media.match.min.js"></script>
<script src="assets/vendor/respond/respond.min.js"></script>
<![endif]-->
<script src="assets/vendor/breakpoints/breakpoints.js"></script>
<script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 3
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a>
to improve your experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-main">
<div class="app-message-chats">
<div class="chats">
<div class="chat-avatar">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 5
<a class="avatar" data-toggle="tooltip" href="#" data-placement="left" title="">
</a>
</div>
<div class="chat-body">
</div>
</div>
<br>
</div>
<?php } ?>
</div>
</div>
<div style="display: flex; justify-content: right; flex-direction: row; height: 40px; position: relative; width: 100%; float: right;">
</div>
</div>
</form>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="assets/vendor/jquery/jquery.js"></script>
<script src="assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="assets/vendor/bootstrap/bootstrap.js"></script>
<script src="assets/vendor/animsition/animsition.js"></script>
<script src="assets/vendor/mousewheel/jquery.mousewheel.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 6
<script src="assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="assets/vendor/switchery/switchery.js"></script>
<script src="assets/vendor/intro-js/intro.js"></script>
<script src="assets/vendor/screenfull/screenfull.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/vendor/autosize/autosize.js"></script>
<script src="assets/js/Component.js"></script>
<script src="assets/js/Plugin.js"></script>
<script src="assets/js/Base.js"></script>
<script src="assets/js/Config.js"></script>
<script src="assets/js/Section/Menubar.js"></script>
<script src="assets/js/Section/Sidebar.js"></script>
<script src="assets/js/Section/PageAside.js"></script>
<script src="assets/js/Plugin/menu.js"></script>
<script src="assets/js/config/colors.js"></script>
<script src="assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/Plugin/asscrollable.js"></script>
<script src="assets/js/Plugin/slidepanel.js"></script>
<script src="assets/js/Plugin/switchery.js"></script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/App/Message.js"></script>
<script src="assets/examples/js/apps/message.js"></script>
</body>
</html>
<?php
include '../config/functions.php';
$referenceNumber = "";
if(isset($_POST['generateRefChat'])){
$getChat = get_chat_reference($_SESSION['customer_id']);
if($getChat == ""){
$reference = 'ABC'.rand(111111,999999);
create_chat_to_admin($reference,$_SESSION['customer_id']);
$referenceNumber = $reference;
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 7
}else{
$referenceNumber = $getChat;
header("Location: chat-admin.php?reference=".$referenceNumber."&id=".$_SESSION['customer_id']);
?>
<?php
if($_SESSION['customer_id'] == 0) {
header('location: ../');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['customer_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>My Reservations</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve
your experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 17
Computer Studies Department 9
<div class="navbar-container container-fluid">
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
</a>
</li>
</form>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="table-responsive">
<thead>
<tr>
<td style="width:1px"></td>
<th>Destination</th>
<th>From</th>
<th>To</th>
<th>Days</th>
<th>Total</th>
<th>Reference</th>
<th>Date</th></th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 18
Computer Studies Department 1
<tbody>
<tr>
<td style="width:1px"><?=$i++?></td>
<td><?=$data['destination']?></td>
<td><?=$data['from']?></td>
<td><?=$data['to']?></td>
<td>₱<?=number_format($data['rate_per_day'],2)?></td>
<td><?=$data['days_rented']?></td>
<td>₱<?=number_format($data['total'],2)?></td>
<td><?=$data['reference']?></td>
<td><?=$data['date']?></td>
<td><?=$data['status']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="assets/vendor/jquery/jquery.js"></script>
<script src="assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="assets/vendor/bootstrap/bootstrap.js"></script>
<script src="assets/vendor/animsition/animsition.js"></script>
<script src="assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="assets/vendor/switchery/switchery.js"></script>
<script src="assets/vendor/intro-js/intro.js"></script>
<script src="assets/vendor/screenfull/screenfull.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/js/Plugin.js"></script>
<script src="assets/js/Base.js"></script>
<script src="assets/js/Config.js"></script>
<script src="assets/js/Section/Menubar.js"></script>
<script src="assets/js/Section/Sidebar.js"></script>
<script src="assets/js/Section/PageAside.js"></script>
<script src="assets/js/Plugin/menu.js"></script>
<script src="assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="assets/js/config/colors.js"></script>
<script src="assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/Plugin/asscrollable.js"></script>
<script src="assets/js/Plugin/slidepanel.js"></script>
<script src="assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<?php
$rows = get_account_details($_SESSION['customer_id']);
if(isset($_POST['upload'])) {
upload_drivers_license();
if(isset($_POST['saveChanges'])) {
$license = post('license');
$surname = post('surname');
$firstname = post('firstname');
$middlename = post('middlename');
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 18
Computer Studies Department 3
$email = post('email');
$contact = post('contact');
update_profile($license,$surname,$firstname,$middlename,$email,$contact);
if(isset($_POST['btnChangePassword'])) {
$old_password = post('old_password');
$new_password = post('new_password');
$confirm_new_password = post('confirm_new_password');
update_profile_password($old_password,$new_password,$confirm_new_password);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['customer_id']);
header('location:../');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>My Profile</title>
<script src="assets/vendor/breakpoints/breakpoints.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 18
Computer Studies Department 4
<!-- Sweet JS Alerts -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve
your experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 18
Computer Studies Department 6
<li class="dropdown site-menu-item active">
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="col-12">
</div>
<?php } ?>
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="example">
aria-multiselectable="true" role="tablist">
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousOne"
aria-controls="exampleCollapseContinuousOne" aria-expanded="true">
General Information
</a>
</div>
aria-labelledby="exampleHeadingContinuousOne" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
value="<?=$rows['license']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Surname</label>
value="<?=$rows['surname']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['firstname']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($rows['email'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Contact</label>
value="<?=$rows['contact']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Username</label>
value="<?=$rows['username']?>">
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousTwo"
aria-controls="exampleCollapseContinuousTwo" aria-expanded="false">
Change Password
</a>
</div>
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="assets/vendor/jquery/jquery.js"></script>
<script src="assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="assets/vendor/bootstrap/bootstrap.js"></script>
<script src="assets/vendor/animsition/animsition.js"></script>
<script src="assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="assets/vendor/switchery/switchery.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 1
<script src="assets/vendor/intro-js/intro.js"></script>
<script src="assets/vendor/screenfull/screenfull.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/js/Component.js"></script>
<script src="assets/js/Plugin.js"></script>
<script src="assets/js/Base.js"></script>
<script src="assets/js/Config.js"></script>
<script src="assets/js/Section/Menubar.js"></script>
<script src="assets/js/Section/Sidebar.js"></script>
<script src="assets/js/Section/PageAside.js"></script>
<script src="assets/js/Plugin/menu.js"></script>
<script src="assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="assets/js/config/colors.js"></script>
<script src="assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/Plugin/asscrollable.js"></script>
<script src="assets/js/Plugin/slidepanel.js"></script>
<script src="assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<?php
error_reporting(0);
if(get_transaction_if_exists($_GET['id']) > 0) {
$data = get_transaction_details($_GET['id']);
$vehicle = get_vehicles_details($data['cars_id']);
} else {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 2
header('location: my-reservation.php');
if(isset($_GET['action']) == 'cancel') {
global $db;
$reason = post('reason');
update_transactions($_GET['id'],$reason);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['customer_id']);
header('location:../');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal</title>
<script src="assets/vendor/breakpoints/breakpoints.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 3
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="panel">
<div class="panel-body">
<div class="row">
<?php
?>
<div class="col-12">
</div>
<div class="col-12">
</div>
<div class="col-12">
</div>
<div class="col-12">
</div>
<div class="col-12">
</div>
<div class="col-12">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 6
Transmission: <?=$vehicle['transmission_type']?>
</div>
<div class="col-12">
</div>
<div class="col-12">
<hr>
</div>
<div class="col-12">
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Purpose</label>
value="<?=$data['purpose']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Destination</label>
value="<?=$data['destination']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$data['from'].' - '.$data['to']?>">
</div>
</div>
<div class="col-12">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 7
<div class="form-group">
value="₱<?=number_format($data['rate_per_day'],2)?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($data['days_rented'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Total</label>
value="₱<?=number_format($data['total'],2)?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Reference</label>
value="<?=($data['reference'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Status</label>
</div>
</div>
<?php if($data['status'] == 'Approved' || $data['status'] == 'Cancelled' || $data['status'] == 'Disapproved' || $data['status'] == 'Paid' ) { ?>
<?php } ?>
</div>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 8
</div>
</div>
</div>
</div>
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="assets/vendor/jquery/jquery.js"></script>
<script src="assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="assets/vendor/bootstrap/bootstrap.js"></script>
<script src="assets/vendor/animsition/animsition.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 19
Computer Studies Department 9
<script src="assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="assets/vendor/switchery/switchery.js"></script>
<script src="assets/vendor/intro-js/intro.js"></script>
<script src="assets/vendor/screenfull/screenfull.js"></script>
<script src="assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="assets/js/Component.js"></script>
<script src="assets/js/Plugin.js"></script>
<script src="assets/js/Base.js"></script>
<script src="assets/js/Config.js"></script>
<script src="assets/js/Section/Menubar.js"></script>
<script src="assets/js/Section/Sidebar.js"></script>
<script src="assets/js/Section/PageAside.js"></script>
<script src="assets/js/Plugin/menu.js"></script>
<script src="assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="assets/js/config/colors.js"></script>
<script src="assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="assets/js/Site.js"></script>
<script src="assets/js/Plugin/asscrollable.js"></script>
<script src="assets/js/Plugin/slidepanel.js"></script>
<script src="assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('img.zoomable').click('click', function () {
'max-width': '100%',
'max-height': '100%',
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 20
Computer Studies Department 0
'display': 'inline'
});
bigImg.attr({
src: img.attr('src'),
alt: img.attr('alt'),
title: img.attr('title')
});
'height': '100%',
'width': '100%',
'background': 'rgba(0,0,0,.82)',
'position': 'fixed',
'top': 0,
'left': 0,
'opacity': 0.0,
'cursor': 'pointer',
'z-index': 9999,
'text-align': 'center'
}).append(bigImg).bind('click', function () {
$(this).fadeOut(300, function () {
$(this).remove();
});
}).insertAfter(this).animate({
'opacity': 1
}, 300);
});
</script>
</body>
</html>
<?php
require_once '../config/functions.php';
]);
$date = date('d/m/Y');
$sql2 = mysqli_query($db, "SELECT SUM(total) as TotalProfit FROM transactions WHERE owners_id = ". $_GET['ownerId']." AND status='Paid'");
$totalProfit = mysqli_fetch_assoc($sql2);
$fname = mysqli_fetch_assoc($sql);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 20
Computer Studies Department 1
$completeName = $fname['CompleteName'];
$html = "";
$html .= "
<table align='center'>
<tr>
</td>
<td >
Email: contact@abcrentalcars.online
</td>
</tr>
</table>
<br>
<hr>
<tr>
<td width='200px'>
<b>Owner</b><br><br>
$completeName
</td>
<td width='50px'>
<b>Date</b>
<br><br>
$date
</td>
<td align='right'>
</td>
</tr>
</table>
<br><br>
<tr>
<td style='width:150px;'>Vehicle</td>
<td>Destination</td>
<td>From</td>
<td>To</td>
<td>Total</td>
<td>Reference</td>
</tr>
<tbody>";
while($stmt = mysqli_fetch_assoc($sql)){
$html .= "<tr>
<td style='text-align:center'>$stmt[destination]</td>
<td style='text-align:center'>$stmt[from]</td>
<td style='text-align:center'>$stmt[to]</td>
<td style='text-align:center'>$stmt[rate_per_day]</td>
<td style='text-align:center'>$stmt[days_rented]</td>
<td style='text-align:center'>$stmt[total]</td>
<td style='text-align:center'>$stmt[reference]</td>
</tr>";
$html .= "
</tbody>
</table>
";
// $mpdf->WriteHTML($html);
// $a = file_get_contents("http://localhost/abcrentalcars/portal/totalOwnerProfitsPdf.php");
$mpdf->WriteHTML($html);
$mpdf->Output();
?>
<?php
]);
// $mpdf->WriteHTML($a);
$a = file_get_contents("http://localhost/abcrentalcars/portal/totalProfitsPdf.php");
$mpdf->WriteHTML($a);
$mpdf->Output();
?>
totalProfitsPdf.php
<?php
require_once '../config/functions.php';
?>
<style>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 20
Computer Studies Department 3
*{
font-family: 'sans-serif';
text-align: center;
</style>
<tr>
</td>
<td >
Email: contact@abcrentalcars.online
</td>
</tr>
</table>
<br>
<hr>
<tr>
<td width='150px'><b>Date</b>
<br><br>
</td>
<td align='right'>
</td>
</tr>
</table>
<br><br>
<tr>
<td>Credits</td>
<td>Amount</td>
<td>Date</td>
<td>ID No.</td>
<td>Type</td>
</tr>
<tbody>
</table>
<?php
include '../../config/functions.php';
$usertype = "";
if(isset($_POST['upgradeThisAccount'])){
if($_POST['upgradeThisAccount'] == 2){
}else{
else if(isset($_POST['subscriptionValue'])){
echo "Success";
?>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<style>
.customers,.owners{
display: none;
</style>
<!--[if lt IE 8]>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 20
Computer Studies Department 6
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve
your experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<option value="customers">Customers</option>
<option value="owners">Owners</option>
</select>
</h3>
</header>
<br><br><br>
<div class="panel-body">
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
<td>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 20
Computer Studies Department 9
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 0
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 1
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('.selection').change(function(){
if ($(this).val() == 'all') {
$('.all').css('display','block')
$('.customers').css('display','none')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','block')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','none')
$('.owners').css('display','block')
}) </script></body></html>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 2
<?php include '../../config/functions.php'?>
<?php
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(isset($_POST['sendChat'])) {
global $db;
$message = post('message');
$reference = post('reference');
$filename = $_FILES['sendImage']['name'];
if($filename == ""){
save_chat_to_admin_customer($message,$reference,$_SESSION['owners_id']);
}else{
$filename = $_FILES['sendImage']['name'];
$imageTmpName = $_FILES['sendImage']['tmp_name'];
$finalname = "cImg-".$filename;
move_uploaded_file($imageTmpName,'../../images/chats/'.$finalname);
if(save_chat_to_admin_customer($finalname,$reference,$_SESSION['owners_id'])){
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - Chat</title>
<!--[if lt IE 9]>
<script src="../assets/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="../assets/vendor/media-match/media.match.min.js"></script>
<script src="../assets/vendor/respond/respond.min.js"></script>
<![endif]-->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 4
<button type="button" class="navbar-toggler collapsed" data-target="#site-navbar-collapse"
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 5
<!-- End Navbar Collapse -->
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Messages</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-main">
<div class="app-message-chats">
<div class="chats">
<div class="chat-avatar">
</a>
</div>
<div class="chat-body">
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 6
<br>
</div>
<?php } ?>
</div>
</div>
<div style="display: flex; justify-content: right; flex-direction: row; height: 40px; position: relative; width: 100%; float: right;">
</div>
<button class=" btn btn-primary" name="sendChat" type="submit" style="margin-left: 30px;background-color: #FF8C00;border: #FF8C00;color:
white">SEND</button>
</div>
</form>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/autosize/autosize.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script src="../assets/examples/js/apps/message.js"></script>
</body></html>
<?php
$rows = get_account_details($_GET['id']);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Customer - Info</title>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 21
Computer Studies Department 9
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="col-12">
<?=urldecode($_GET['message'])?></div>
</div>
<?php } ?>
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
</div>
</div>
</div>
</div>
</div>
<div class="examle-wrap">
<div class="example">
aria-multiselectable="true" role="tablist">
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousOne"
aria-controls="exampleCollapseContinuousOne" aria-expanded="true">
General Information
</a>
</div>
aria-labelledby="exampleHeadingContinuousOne" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Surname</label>
value="<?=$rows['surname']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['firstname']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['middlename']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($rows['email'])?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Contact</label>
value="<?=$rows['contact']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Status</label>
</select>
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 22
Computer Studies Department 3
</div>
</div>
aria-hidden="true">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
rows="5"></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 22
Computer Studies Department 4
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<?php
if(isset($_POST['saveChanges'])) {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 22
Computer Studies Department 5
$id = $_GET['id'];
$status = post('status');
if(update_owner_status($id,$status)){
echo "<script>
swal({
title: 'Success',
icon: 'success',
button: true,
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - Admin</title>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 22
Computer Studies Department 7
<!-- End Navbar Toolbar -->
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Owners</span>
</a>
</li>
<span class="site-menu-title">Customers</span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 22
Computer Studies Department 8
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="table-responsive">
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 22
Computer Studies Department 9
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 23
Computer Studies Department 2
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
</a>
</li>
<span class="site-menu-title">Owners</span>
</a>
</li>
<span class="site-menu-title">Customers</span>
</a>
</li> -->
</a>
</li>
<div style="position: absolute; border-radius: 50%; background-color: red; color: #fff; width: 20px; height: 20px; text-align: center; right: 0;"><?
=countMessages(); ?></div>
<span class="site-menu-title">Messages</span>
</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 23
Computer Studies Department 4
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<h3 class="panel-title">Accounts</h3>
</header>
<div class="panel-body">
<div class="row">
<a href="../totalProfits.php" target="blank" style="color: #fff; position: absolute; right: 5%; top: 10%;"><i class="fa-solid fa-print" style="font-size:
1.3rem;"></i></a>
</div>
</div>
</div>
<div class="card-body">
</div>
</div>
</div>
<div class="card-body">
</div>
</div>
</div> -->
<div class="card-body">
</div>
</div>
</a>
</div>
<div class="card-body">
</div>
</div>
</a>
</div>
<div class="card-body">
</div>
</div>
</a>
</div>
<div class="card-body">
</div>
</div>
</a>
</div>
<div class="card-body">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 23
Computer Studies Department 6
<h2 class="text-white"><?php $i=1; foreach(get_all_accounts_requestCredits() as $totalreqcredits) { echo $totalreqcredits['totalrequestcredits']; }
?></h2>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="myChart"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script>
var options = {
series: [
echo ",";
getDayProfit_admin("Tuesday");
echo ",";
getDayProfit_admin("Wednesday");
echo ",";
getDayProfit_admin("Thursday");
echo ",";
getDayProfit_admin("Friday");
echo ",";
getDayProfit_admin("Saturday");
echo ",";
getDayProfit_admin("Sunday");
?> ]
},
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 23
Computer Studies Department 7
],
chart: {
height: 350,
type: 'line',
dropShadow: {
enabled: true,
color: '#000',
top: 18,
left: 7,
blur: 10,
opacity: 0.2
},
toolbar: {
show: false
},
dataLabels: {
enabled: true,
},
stroke: {
curve: 'smooth'
},
title: {
align: 'left'
},
grid: {
borderColor: '#e7e7e7',
row: {
opacity: 0.5
},
},
markers: {
size: 1
},
xaxis: {
categories: ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
title: {
},
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 23
Computer Studies Department 8
yaxis: {
title: {
},
legend: {
position: 'top',
horizontalAlign: 'right',
floating: true,
offsetY: -25,
offsetX: -5
};
chart.render();
</script>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 23
Computer Studies Department 9
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<table class="table">
<tr>
<th>Lastname</th>
<th>Firstname</th>
<th>Middlename</th>
<th>Email</th>
<th>Contact</th>
</tr>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 0
<?php foreach(get_all_accounts_approved2() as $row) { ?>
<tr>
</tr>
<?php } ?>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<table class="table">
<tr>
<th>Lastname</th>
<th>Firstname</th>
<th>Middlename</th>
<th>Email</th>
<th>Contact</th>
</tr>
<tr>
</tr>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 1
<?php } ?>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_POST['submitaboutus'])) {
$aboutus = post('aboutus');
update_content_status($aboutus);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 3
<span class="sr-only">Toggle navigation</span>
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 4
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="row">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 5
<div class="col-lg-12" >
<div class="card">
<form method="POST">
<div class="adjoined-bottom">
<div class="grid-container">
<div class="grid-width-100">
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_POST['submitcontactus'])) {
$contactus = post('contactus');
update_content_contactus($contactus);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 7
}
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 24
Computer Studies Department 8
title: "Are you sure?",
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 0
<li class="dropdown site-menu-item active">
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="row">
<div class="card">
<form method="POST">
<div class="adjoined-bottom">
<div class="grid-container">
<div class="grid-width-100">
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 1
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_POST['submitrules'])) {
$rules = post('rules');
update_content_rules($rules);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 4
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 5
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<div class="panel-body">
<div class="row">
<div class="card">
<form method="POST">
<div class="adjoined-bottom">
<div class="grid-container">
<div class="grid-width-100">
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 7
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
</body>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 8
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_POST['submittermsandconditions'])) {
$termsandconditions = post('termsandconditions');
update_content_termsandconditionscustomer($termsandconditions);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 25
Computer Studies Department 9
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="row">
<div class="card">
<form method="POST">
<div class="adjoined-bottom">
<div class="grid-container">
<div class="grid-width-100">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 2
<?php $i=1; foreach(get_all_editpage_termsandconditionscustomer() as $row) { ?>
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 3
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_POST['submittermsandconditions'])) {
$termsandconditions = post('termsandconditions');
update_content_termsandconditionscustomer($termsandconditions);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 4
<html class="no-js css-menubar" lang="en">
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 5
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 6
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 7
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="row">
<div class="card">
<form method="POST">
<div class="adjoined-bottom">
<div class="grid-container">
<div class="grid-width-100">
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 26
Computer Studies Department 9
var Site = window.Site;
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_POST['submittermsandconditions'])) {
$termsandconditions = post('termsandconditions');
update_content_termsandconditionsmicro($termsandconditions);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 27
Computer Studies Department 1
<button type="button" class="navbar-toggler hamburger hamburger-close navbar-toggler-left hided"
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 27
Computer Studies Department 2
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="row">
<div class="card">
<form method="POST">
<div class="adjoined-bottom">
<div class="grid-container">
<div class="grid-width-100">
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 27
Computer Studies Department 4
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
</body>
</html>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!--[if lt IE 9]>
<script src="../assets/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="../assets/vendor/media-match/media.match.min.js"></script>
<script src="../assets/vendor/respond/respond.min.js"></script>
<![endif]-->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<style>
body {
background: transparent;
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 27
Computer Studies Department 6
}
</style>
<div class="page-content">
<div class="page-login-main">
</div>
<form method="post">
<div class="form-group">
</div>
<div class="form-group">
placeholder="Password" required>
</div>
</form>
</div>
</div>
</div>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 27
Computer Studies Department 7
<!-- Scripts -->
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>Config.set('assets', '../assets');</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script src="../assets/js/Plugin/jquery-placeholder.js"></script>
<script>
'use strict';
$(document).ready(function(){
Site.run();
});
</script>
</body>
</html>
<?php
if(isset($_POST['btnSignIn'])) {
global $db;
$username = post('username');
$password = post('password');
if(adminLogin($username,$password) == 1){
echo "<script>
Swal.fire(
'Failed!',
'error'
</script>";
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 27
Computer Studies Department 8
}else{
echo "<script>
Swal.fire(
'Failed!',
'error'
</script>";
} }?>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
if(isset($_POST['chatID'])){
readMessages($_POST['chatID']);
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<style>
.customers,.owners{
display: none;
</style>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 1
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<br><br><br>
<div class="panel-body">
<thead>
<tr>
<td style="width:1px"></td>
<th>Complete Name</th>
<th>Reference Number</th>
<th>Message</th>
<th>Date</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['sender']?></td>
<td><?=$owner['reference']?></td>
<td><?=$owner['message']?></td>
<td><?=$owner['date']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 2
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 3
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('.selection').change(function(){
if ($(this).val() == 'all') {
$('.all').css('display','block')
$('.customers').css('display','none')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','block')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','none')
$('.owners').css('display','block')
})
$(".btnMessage").on("click",function(){
$.ajax({
type: "POST",
url: "messages.php",
success: function(response){
})
})
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 4
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<style>
.customers,.owners{
display: none;
</style>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 6
<div class="dropdown-menu" role="menu">
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<option value="customers">customers</option>
<option value="owners">Owners</option>
</select>
</h3>
</header>
<br><br><br>
<div class="panel-body">
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
<td>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 8
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 28
Computer Studies Department 9
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 0
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('.selection').change(function(){
if ($(this).val() == 'all') {
$('.all').css('display','block')
$('.customers').css('display','none')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','block')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','none')
$('.owners').css('display','block')
})
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 1
</script>
</body>
</html>
<?php
error_reporting(0);
$rows = get_account_details($_GET['id']);
$rows1 = getProofCredits($_GET['id']);
if(isset($_POST['saveChanges'])) {
$id = $_GET['id'];
$status = post('status');
update_owner_status($id,$status);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
if(isset($_POST['upgradeThisAccount'])){
echo "hehe";
// admin_update_to_macro($_GET['id'], $_POST['upgradeThisAccount']);
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Owner - Info</title>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 3
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page-content">
<div class="row">
<div class="col-12">
<?=urldecode($_GET['message'])?></div>
</div>
<?php } ?>
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<?php
if(isset($_GET['Upgrade'])){
style='width:100%' />";
else if(isset($_GET['subscription'])){
if($rows1 == ""){
}else{
}else{
style='width:100%' />";
} ?>
</div>
<!--- <a href="../../images/creditsproof/<?=$rows1?>" class="btn btn-primary btn-block btn-sm" download style="background-color: #FF8C00;border:
#FF8C00;color: white">Download</a>--->
</div>
</div>
</div>
</div>
</div>
<div class="examle-wrap">
<div class="example">
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousOne"
aria-controls="exampleCollapseContinuousOne" aria-expanded="true">
General Information
</a>
</div>
aria-labelledby="exampleHeadingContinuousOne" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Surname</label>
value="<?=$rows['surname']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['firstname']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['middlename']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($rows['email'])?>" readonly>
</div>
</div>
<div class="col-12">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 6
<div class="form-group">
<label for="">Contact</label>
value="<?=$rows['contact']?>" readonly>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Status</label>
value="<?=$rows['id']?>" readonly>
</select>
value="<?=$rows['id']?>" readonly>
</select>
<?php }else{?>
</select>
<?php }?>
</div>
</div>
<?php }else{?>
Changes</button>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 7
<?php }?>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
aria-hidden="true">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
rows="5"></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 8
</div>
</form>
<footer class="site-footer">
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 29
Computer Studies Department 9
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$("#upgradeStatus").on("change", function(){
$("#UpgradeToMacroThisAccount").removeClass("disabled");
})
$("#subscriptionUser").on("change", function(){
$("#accountSubscription").removeClass("disabled");
})
$("#UpgradeToMacroThisAccount").on("click", function(){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
$.ajax({
type: "POST",
url: "adminUpgradeMacro.php",
success: function(response){
swal({
title: "Success",
icon: "success",
button: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="dashboard.php";
});
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 0
}
})
});
})
$("#accountSubscription").on("click", function(){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
$.ajax({
type: "POST",
url: "adminUpgradeMacro.php",
success: function(response){
if(response == "Success")
swal({
title: "Success",
icon: "success",
button: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="reqcredits.php";
});
})
});
})
</script>
</body>
</html>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 1
<?php include '../../config/functions.php'?>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 3
<div class="dropdown-menu" role="menu">
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Owners</span>
</a>
</li>
<span class="site-menu-title">Customers</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 4
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="table-responsive">
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 5
</div>
<footer class="site-footer">
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 6
(function (document, window, $) {
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<?php
$rows = get_account_details($_SESSION['admin_id']);
if(isset($_POST['saveChanges'])) {
$surname = post('surname');
$firstname = post('firstname');
$middlename = post('middlename');
$email = post('email');
$contact = post('contact');
update_admin_profile($surname,$firstname,$middlename,$email,$contact);
if(isset($_POST['btnChangePassword'])) {
$old_password = post('old_password');
$new_password = post('new_password');
$confirm_new_password = post('confirm_new_password');
update_admin_password($old_password,$new_password,$confirm_new_password);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['admin_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Admin - Profile</title>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 30
Computer Studies Department 8
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="col-12">
<?=urldecode($_GET['message'])?></div>
</div>
<?php } ?>
<div class="panel-body">
<div class="row">
</div>
</div>
</div>
</div>
<div class="examle-wrap">
<div class="example">
aria-multiselectable="true" role="tablist">
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousOne"
aria-controls="exampleCollapseContinuousOne" aria-expanded="true">
General Information
</a>
</div>
aria-labelledby="exampleHeadingContinuousOne" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Surname</label>
value="<?=$rows['surname']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['firstname']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['middlename']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($rows['email'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Contact</label>
value="<?=$rows['contact']?>">
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousTwo"
aria-controls="exampleCollapseContinuousTwo" aria-expanded="false">
Change Password
</a>
</div>
aria-labelledby="exampleHeadingContinuousTwo" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 31
Computer Studies Department 2
<label for="">Old Password</label>
class="form-control" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
aria-hidden="true">
<div class="modal-content">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 31
Computer Studies Department 3
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
rows="5"></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 31
Computer Studies Department 5
<html class="no-js css-menubar" lang="en">
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<style>
.customers,.owners{
display: none;
</style>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 31
Computer Studies Department 7
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<option value="all">All</option>
<option value="customers">customers</option>
<option value="owners">Owners</option>
</select>
</h3>
</header>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 31
Computer Studies Department 8
<br><br><br>
<div class="panel-body">
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
<td>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 31
Computer Studies Department 9
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 0
<td><?=$owner['firstname'].' '.$owner['middlename'].' '.$owner['surname']?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 1
<!-- Page -->
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('.selection').change(function(){
if ($(this).val() == 'all') {
$('.all').css('display','block')
$('.customers').css('display','none')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','block')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','none')
$('.owners').css('display','block')
})
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<style>
.customers,.owners{
display: none;
</style>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 3
<span class="sr-only">Toggle navigation</span>
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 4
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<option value="all">All</option>
<option value="customers">customers</option>
<option value="owners">Owners</option>
</select>
</h3>
</header>
<br><br><br>
<div class="panel-body">
<thead>
<tr>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 5
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
<td><?=$owner['c_status']?></td>
<td>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 6
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 8
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('.selection').change(function(){
if ($(this).val() == 'all') {
$('.all').css('display','block')
$('.customers').css('display','none')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','block')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','none')
$('.owners').css('display','block')
})
</script>
</body>
</html>
<?php
if($_SESSION['admin_id'] == 0) {
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 32
Computer Studies Department 9
}
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<style>
.customers,.owners{
display: none;
</style>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 0
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 1
<a class="dropdown-item" href="?logout=true" onclick="return confirm('Are you sure you want to logout?')" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<option value="all">All</option>
<option value="customers">customers</option>
<option value="owners">Owners</option>
</select>
</h3>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 2
</header>
<br><br><br>
<div class="panel-body">
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
<td>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 3
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<thead>
<tr>
<td style="width:1px"></td>
<th>Name</th>
<th>Username</th>
<th>Email</th>
<th>Contact</th>
<th>Role</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 4
<td><?=$i++?></td>
<td><?=$owner['username']?></td>
<td><?=$owner['email']?></td>
<td><?=$owner['contact']?></td>
<td><?=$owner['user_type']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 5
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$('.selection').change(function(){
if ($(this).val() == 'all') {
$('.all').css('display','block')
$('.customers').css('display','none')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','block')
$('.owners').css('display','none')
$('.all').css('display','none')
$('.customers').css('display','none')
$('.owners').css('display','block')
})
</script>
</body>
</html>
<?php
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 6
include '../../config/functions.php';
$usertype = "";
if(isset($_POST['customerIdinput'])){
$dateToday = date("l");
$cID = $_POST['customerIdinput'];
$fname = $_POST['cfname'];
$cnum = $_POST['cnumber'];
$amountCred = $_POST['amountCredits'];
$userType = $_POST['userType'];
$ref1 = rand(100,999);
$ref2 = rand(100,999);
$ref3 = rand(100000,999999);
$filename = $_FILES['uploadReceipt']['name'];
$imageTmpName = $_FILES['uploadReceipt']['tmp_name'];
if(showExistingCreditsAccount($cID) == 1){
updateTheCustomerIDCredits($cID);
if(buy_credits($referenceNumber,$cID,$fname,$cnum, $amountCred,$userType,$dateToday,$filename)){
move_uploaded_file($imageTmpName,'../../images/creditsproof/'.$filename);
echo "Success";
}else{
if(buy_credits($referenceNumber,$cID,$fname,$cnum, $amountCred,$userType,$dateToday,$filename)){
move_uploaded_file($imageTmpName,'../../images/creditsproof/'.$filename);
echo "Success";
else if(isset($_POST['checkUtype'])){
$data = getUserTypeByID($_POST['checkUtype']);
echo $data;
?>
<?php
if(isset($_POST['sendChat'])) {
global $db;
$message = post('message');
$reference = post('reference');
$filename = $_FILES['sendImage']['name'];
if($filename == ""){
save_chat_to_admin($message,$reference,$_SESSION['owners_id']);
}else{
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 7
$filename = $_FILES['sendImage']['name'];
$imageTmpName = $_FILES['sendImage']['tmp_name'];
$finalname = "cImg-".$filename;
if(save_chat_to_admin($finalname,$reference,$_SESSION['owners_id'])){
move_uploaded_file($imageTmpName,'../../images/chats/'.$finalname);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:../');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Chat - Admin</title>
<!--[if lt IE 9]>
<script src="../assets/vendor/html5shiv/html5shiv.min.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 8
<![endif]-->
<!--[if lt IE 10]>
<script src="../assets/vendor/media-match/media.match.min.js"></script>
<script src="../assets/vendor/respond/respond.min.js"></script>
<![endif]-->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 33
Computer Studies Department 9
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 0
<!-- Message Sidebar -->
<div class="page-main">
<div class="app-message-chats">
<div class="chats">
<div class="chat-avatar">
</a>
</div>
<div class="chat-body">
</div>
</div>
<br>
</div>
<?php } ?>
</div>
</div>
<div style="display: flex; justify-content: right; flex-direction: row; height: 40px; position: relative; width: 100%; float: right;">
</div>
<button class=" btn btn-primary" name="sendChat" type="submit" style="margin-left: 30px;background-color: #FF8C00;border: #FF8C00">SEND</button>
</div>
</form>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 1
<!-- Core -->
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/autosize/autosize.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/App/Message.js"></script>
<script src="../assets/examples/js/apps/message.js"></script>
</body>
</html>
<?php
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 2
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(isset($_POST['sendChat'])) {
global $db;
$message = post('message');
$reference = post('reference');
$id = post('id');
$filename = $_FILES['sendImage']['name'];
if($filename == ""){
save_owner_chat($message,$reference,$id,$_SESSION['owners_id']);
}else{
$filename = $_FILES['sendImage']['name'];
$imageTmpName = $_FILES['sendImage']['tmp_name'];
$finalname = "cImg-".$filename;
move_uploaded_file($imageTmpName,'../../images/chats/'.$finalname);
if(save_owner_chat($finalname,$reference,$id,$_SESSION['owners_id'])){
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - Chat</title>
<!--[if lt IE 9]>
<script src="../assets/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="../assets/vendor/media-match/media.match.min.js"></script>
<script src="../assets/vendor/respond/respond.min.js"></script>
<![endif]-->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Reservations</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-main">
<div class="app-message-chats">
<div class="chats">
<div class="chat-avatar">
</a>
</div>
<div class="chat-body">
</div>
</div>
<br>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 6
</div>
<?php } ?>
</div>
</div>
<div style="display: flex; justify-content: right; flex-direction: row; height: 40px; position: relative; width: 100%; float: right;">
</div>
</div>
</form>
</div>
</div>
<footer class="site-footer">
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/autosize/autosize.js"></script>
<script src="../assets/js/Component.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 7
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/App/Message.js"></script>
<script src="../assets/examples/js/apps/message.js"></script>
</body>
</html>
<?php
error_reporting(0);
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 8
<html class="no-js css-menubar" lang="en">
<head>
<meta charset="utf-8">
<title>Portal - Owner</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 34
Computer Studies Department 9
<!-- Fonts -->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
</a>
</li>
<span class="site-menu-title">Reservations</span>
</a>
</li>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<h3 class="panel-title">Dashboard</h3>
</header>
<div class="panel-body">
<div class="row">
<a href="../totalOwnerProfits.php?ownerId=<?= $_SESSION['owners_id'] ?>" target="blank" style="color: #fff; position: absolute; right: 5%; top:
10%;"><i class="fa-solid fa-print" style="font-size: 1.3rem;"></i></a>
</div>
</div>
</div>
<div class="card-body">
</div>
</div>
</a>
</div>
<div class="card-body">
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 2
</div>
<div class="card-body">
</div>
</div>
</div>
<div class="card-body">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="myChart"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script>
var options = {
series: [
{
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 3
name: "High - 2013",
echo ",";
getDayProfit($_SESSION['owners_id'],"Tuesday");
echo ",";
getDayProfit($_SESSION['owners_id'],"Wednesday");
echo ",";
getDayProfit($_SESSION['owners_id'],"Thursday");
echo ",";
getDayProfit($_SESSION['owners_id'],"Friday");
echo ",";
getDayProfit($_SESSION['owners_id'],"Saturday");
echo ",";
getDayProfit($_SESSION['owners_id'],"Sunday");
?> ]
},
],
chart: {
height: 350,
type: 'line',
dropShadow: {
enabled: true,
color: '#000',
top: 18,
left: 7,
blur: 10,
opacity: 0.2
},
toolbar: {
show: false
},
dataLabels: {
enabled: true,
},
stroke: {
curve: 'smooth'
},
title: {
align: 'left'
},
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 4
grid: {
borderColor: '#e7e7e7',
row: {
opacity: 0.5
},
},
markers: {
size: 1
},
xaxis: {
categories: ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
title: {
},
yaxis: {
title: {
},
legend: {
position: 'top',
horizontalAlign: 'right',
floating: true,
offsetY: -25,
offsetX: -5
};
chart.render();
</script>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 5
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 6
<div class="modal-body table-responsive">
<table class="table">
<tr>
<th>Customer</th>
<th>Destination</th>
<th>From</th>
<th>To</th>
<th>Days</th>
<th>Total</th>
<th>Reference</th>
<th>Status</th>
</tr>
<tr>
</tr>
<?php } ?>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 7
</button>
</div>
<table class="table">
<tr>
<th>Manufacturer</th>
<th>Model</th>
<th>Year</th>
<th>Fuel Type</th>
</tr>
<tr>
</tr>
<?php } ?>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<table class="table">
<tr>
<th>Customer</th>
<th>Destination</th>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 8
<th>From</th>
<th>To</th>
<th>Days</th>
<th>Total</th>
<th>Reference</th>
<th>Status</th>
</tr>
<tr>
</tr>
<?php } ?>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<table class="table">
<tr>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 35
Computer Studies Department 9
<th>Customer</th>
<th>Destination</th>
<th>From</th>
<th>To</th>
<th>Days</th>
<th>Total</th>
<th>Reference</th>
<th>Status</th>
</tr>
<tr>
</tr>
<?php } ?>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</body>
</html>
<?php
include '../../config/functions.php';
$referenceNumber = "";
if(isset($_POST['generateRefChat'])){
$getChat = get_chat_reference($_SESSION['owners_id']);
if($getChat == ""){
$reference = 'ABC'.rand(111111,999999);
create_chat_to_admin($reference,$_SESSION['owners_id']);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 0
$referenceNumber = $reference;
}else{
$referenceNumber = $getChat;
header("Location: chat-admin.php?reference=".$referenceNumber."&id=".$_SESSION['owners_id']);
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!--[if lt IE 9]>
<script src="../assets/vendor/html5shiv/html5shiv.min.js"></script>
<![endif]-->
<!--[if lt IE 10]>
<script src="../assets/vendor/media-match/media.match.min.js"></script>
<script src="../assets/vendor/respond/respond.min.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 1
<![endif]-->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<style>
body {
background: transparent;
</style>
<div class="page-content">
<div class="page-login-main">
</div>
<form method="post">
<div class="form-group">
</div>
<div class="form-group">
placeholder="Password" required>
</div>
</form>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 2
<!-- End Page -->
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>Config.set('assets', '../assets');</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script src="../assets/js/Plugin/jquery-placeholder.js"></script>
<script>
'use strict';
$(document).ready(function(){
Site.run();
});
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 3
})(document, window, jQuery);
</script>
</body>
</html>
<?php
if(isset($_POST['btnSignIn'])) {
global $db;
$username = post('username');
$password = post('password');
if(ownerLogin($username,$password) == 1){
echo "<script>
Swal.fire(
'Failed!',
'error'
</script>";
}else{
echo "<script>
Swal.fire(
'Failed!',
'error'
</script>";
?>
<?php
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 4
header('location:index.php');
if(isset($_POST['btnCreate']) ){
$location = $_POST['location'];
$manufacturer = $_POST['manufacturer'];
$no_of_doors = $_POST['no_of_doors'];
$fuel_tank_capacity = $_POST['fuel_tank_capacity'];
$seating_capacity = $_POST['seating_capacity'];
$transmission_type = $_POST['transmission_type'];
$gear_box = $_POST['gear_box'];
$model = $_POST['model'];
$color = $_POST['color'];
$year = $_POST['year'];
$rate = $_POST['rate'];
$rulesandregulations= $_POST['rulesandregulations'];
$fuel_type = $_POST['fuel_type'];
if(save_cars($location,$manufacturer,$no_of_doors,$fuel_tank_capacity,$seating_capacity,$transmission_type,$gear_box,$model,$color,$year,$rate,$fuel_type,
$rulesandregulations)){
header("Location: my-vehicles.php?action=add&status=success");
}else{
header("Location: my-vehicles.php?action=add&status=error");
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - Owner</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<!-- <script>
function submitForm(form){
swal({
title: "Success",
icon: "success",
})
.then((isOkay) => {
if (isOkay){
window.location = "my-vehicles.php";
});
return false;
</script> -->
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 7
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Reservations</span>
</a>
</li>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 8
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Image</label>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Location</label>
<option value="Bacoor">Bacoor</option>
<option value="Dasmariñas">Dasmariñas</option>
<option value="Imus">Imus</option>
<option value="Tagaytay">Tagaytay</option>
<option value="Alfonso">Alfonso</option>
<option value="Amadeo">Amadeo</option>
<option value="Carmona">Carmona</option>
<option value="Indang">Indang</option>
<option value="Kawit">Kawit</option>
<option value="Magallanes">Magallanes</option>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 36
Computer Studies Department 9
<option value="Maragondon">Maragondon</option>
<option value="Mendez">Mendez</option>
<option value=""></option>
<option value="Naic">Naic</option>
<option value="Noveleta">Noveleta</option>
<option value="Rosario">Rosario</option>
<option value="Silang">Silang</option>
<option value="Tanza">Tanza</option>
<option value="Ternate">Ternate</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Manufacturer</label>
<option value="<?=$m['manufacturer']?>"><?=$m['manufacturer']?></option>
<?php } ?>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Model</label>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Color</label>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Year</label>
</div>
</div>
<div class="col-12">
<div class="form-group">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 0
<label for="">Fuel Type</label>
<option value="Gas">Gas</option>
<option value="Diesel">Diesel</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<option value="Manual">Manual</option>
<option value="Automatic">Automatic</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 1
<label for="">Rate per Day</label>
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<div class="row">
<div class="col-12">
<div class="form-group">
</div>
</div>
</div>
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
</header>
<div class="panel-body">
<div class="table-responsive">
<thead>
<tr>
<td style="width:1px"></td>
<th>Manufacturer</th>
<th>Model</th>
<th>Year</th>
<th>Fuel Type</th>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 2
<th>Rate Per Day</th>
<th style="width:1%"></th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="width:1px"><?=$i++?></td>
<td><?=$data['manufacturer']?></td>
<td><?=$data['model']?></td>
<td><?=$data['year']?></td>
<td><?=$data['fuel_type']?></td>
<td>₱<?=number_format($data['rate'],2)?></td>
<td><a href="vehicle-details.php?id=<?=($data['id'])?>"><i
></i></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 3
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
$(document).ready(function(){
<?php
if(isset($_GET['status']) == "success"){
echo 'swal({
title: "Success",
icon: "success",
button: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="my-vehicles.php?action=add";
}
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 4
});';
echo 'swal({
title: "Failed",
icon: "error",
button: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="my-vehicles.php?action=add";
});';
?>
})
</script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
</script>
<script>
<?php
?>
$("#vehicleText").removeClass("d-none");
$("#addVehicles").addClass('disabled');
<?php }
?>
$("#vehicleText").removeClass("d-none");
$("#addVehicles").addClass('disabled');
<?php }
?>
$("#vehicleText").removeClass("d-none");
$("#addVehicles").addClass('disabled');
<?php }
else{
?>
<?php }}
if(get_my_accountCreditsExpiration($_SESSION['owners_id']) == "expired"){
?>
$("#vehicleText").removeClass("d-none");
$("#addVehicles").addClass('disabled');
}}
?>
</script>
</body>
</html>
<?php
error_reporting(0);
$rows = get_account_details($_SESSION['owners_id']);
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(isset($_POST['upload'])) {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 6
upload_business_permit();
if(isset($_POST['saveChanges'])) {
$license = post('license');
$surname = post('surname');
$firstname = post('firstname');
$middlename = post('middlename');
$email = post('email');
$contact = post('contact');
update_owner_profile($license,$surname,$firstname,$middlename,$email,$contact);
if(isset($_POST['btnChangePassword'])) {
$old_password = post('old_password');
$new_password = post('new_password');
$confirm_new_password = post('confirm_new_password');
update_owner_password($old_password,$new_password,$confirm_new_password);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
if(isset($_POST['upgradeAccount'])){
update_to_macro(1);
if(isset($_GET['buycredits']) == 'status') {
echo "gasgasgasg";
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Owner - Profile</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 37
Computer Studies Department 8
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Reservations</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="col-12">
<?=urldecode($_GET['message'])?></div>
</div>
<?php } ?>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 0
<div class="col-md-4 col-12">
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</form>
<?php if($rows['Upgrade'] == 2) { echo "<div class='alert alert-success'><strong>Congratulations!</strong> You are now a <b>Macro</b>
user</div>"; }else{ ?>
class="btn btn-warning <?php if($rows['Upgrade'] == 1) { echo "disabled"; } ?> text-white btn-block btn-sm mt-3" ><?php if($rows['Upgrade'] ==
1) { echo "Waiting for the approval"; }else { echo "Upgrade to Macro";} ?></a>
</form>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body">
<p><b>GCASH:</b> 09471559441 | ABC Rental Cars<br>Remittance: ABC Rental Cars | 09471559441 | Dasmariñas, Cavite</p>
<div style="width: 100%;"><a id="buyCredits" class="btn bg-warning" style="width: 100%; color: #000; font-weight: 600; ">Buy <?= $rows['Upgrade'] ==
2 ? "1000" : "500" ?> Credits</a></div>
</div>
</div>
<div class='alert alert-warning'><strong>Thank you for purchasing credits!</strong> Please wait, your transaction is under review. </div>
<?php }else{?>
<h5 class="alert alert-success">Thank you for supporting ADL Car Rental INC</h5>
<?php }?>
</div>
<div class="examle-wrap">
<div class="example">
aria-multiselectable="true" role="tablist">
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousOne"
aria-controls="exampleCollapseContinuousOne" aria-expanded="true">
General Information
</a>
</div>
aria-labelledby="exampleHeadingContinuousOne" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
value="<?=$rows['license']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Surname</label>
value="<?=$rows['surname']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 2
<label for="">First Name</label>
value="<?=$rows['firstname']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$rows['middlename']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($rows['email'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Contact</label>
value="<?=$rows['contact']?>">
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="panel">
data-toggle="collapse" href="#exampleCollapseContinuousTwo"
aria-controls="exampleCollapseContinuousTwo" aria-expanded="false">
Change Password
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 3
</a>
</div>
aria-labelledby="exampleHeadingContinuousTwo" role="tabpanel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
class="form-control" required>
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 4
</div>
</div>
</div>
aria-hidden="true">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
rows="5"></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
aria-hidden="true">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 5
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
</div>
</div>
<label for="">Amount</label>
<input type="text" name="amountCredits" class="form-control" value="<?= $rows['Upgrade'] == 2 ? "1000" : "500" ?>" readonly>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div></form>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 6
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
$("#UpgradeMacro").on("click", function(){
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 7
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
$.ajax({
type: "POST",
url: "profile.php",
success: function(response){
window.location.reload();
})
});
})
$("#buyCredits").on("click", function(){
$("#subsciptoionModal").modal("show");
$("#customerIdinput").val(userID);
})
$("#buySubscription").submit(function(e){
e.preventDefault();
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
$.ajax({
type: "POST",
url: "buycredits.php",
data: formData,
success: function(data){
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 38
Computer Studies Department 8
if(data == "Success"){
swal({
title: "Success",
icon: "success",
button: true,
dangerMode: true,
})
.then((isOkay) => {
window.location.reload();
});
},
cache: false,
contentType: false,
processData: false
})
});
})
$(document).ready(function(){
$.ajax({
type: "POST",
url: "buycredits.php",
success: function(response){
if(response == 1){
$("#UpgradeMacro").hide();
})
})
</script>
</body>
</html>
<?php
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
unset($_SESSION['owners_id']);
header('location: index.php');
if(get_transaction_if_exists($_GET['id']) > 0) {
$data = get_transaction_details($_GET['id']);
$vehicle = get_vehicles_details($data['cars_id']);
} else {
header('location: my-reservation.php');
if(@$_GET['action'] == 'cancel') {
global $db;
$reason = post('reason');
update_transactions($_GET['id'],$reason);
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - Reservations</title>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 1
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 2
<!-- End Navbar Toolbar Right -->
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="panel">
<div class="panel-body">
<div class="row">
<?php
?>
<div class="col-12">
</div>
<div class="col-12"><br>
</div>
<div class="col-12">
</div>
<div class="col-12">
</div>
<div class="col-12">
</div>
<div class="col-12">
Transmission: <?=$vehicle['transmission_type']?>
</div>
<div class="col-12">
</div>
<div class="col-12">
<hr>
</div>
<div class="col-12">
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 4
<div class="form-group">
<label for="">Purpose</label>
value="<?=$data['purpose']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Destination</label>
value="<?=$data['destination']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=$data['from'].' - '.$data['to']?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="₱<?=number_format($data['rate_per_day'],2)?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
value="<?=($data['days_rented'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Total</label>
value="₱<?=number_format($data['total'],2)?>">
</div>
</div>
<div class="col-12">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 5
<div class="form-group">
<label for="">Reference</label>
value="<?=($data['reference'])?>">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Status</label>
</div>
</div>
<?php }
?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 6
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 7
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
$(document).ready(function(){
$("#approveBtn").on("click",function(){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="reservation-details.php?id=<?=$_GET['id']?>&customer=<?=$_GET['customer']?>&action=approve";
});
})
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 8
$("#disapproveBtn").on("click",function(){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="reservation-details.php?id=<?=$_GET['id']?>&customer=<?=$_GET['customer']?>&action=disapprove";
});
})
$("#paidBtn").on("click",function(){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href="reservation-details.php?id=<?=$_GET['id']?>&customer=<?=$_GET['customer']?>&action=paid";
});
})
})
</script>
</body>
</html>
<?php
if(@$_GET['action'] == 'approve') {
if(update_transaction_status($_GET['id'],$_GET['customer'],'Approved')){
echo "<script>
swal({
title: 'Success',
icon: 'success',
button: true,
dangerMode: true,
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 39
Computer Studies Department 9
})
.then((isOkay) => {
if (isOkay){
window.location.href='reservations.php';
});
</script>";
if(@$_GET['action'] == 'disapprove') {
if(update_transaction_status($_GET['id'],$_GET['customer'],'Disapproved')){
echo "<script>
swal({
title: 'Success',
icon: 'success',
button: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href='reservations.php';
});
</script>";
if(@$_GET['action'] == 'paid') {
if(update_transaction_status($_GET['id'],$_GET['customer'],'Paid')){
echo "<script>
swal({
title: 'Success',
icon: 'success',
button: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location.href='reservations.php';
});
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 0
</script>";
?>
<?php
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - Owner</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?logout=true";
});
return false;
</script>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 2
<button type="button" class="navbar-toggler collapsed" data-target="#site-navbar-collapse"
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="panel">
<header class="panel-heading">
<div class="panel-actions"></div>
<h3 class="panel-title">Reservation</h3>
</header>
<div class="panel-body">
<div class="table-responsive">
<thead>
<tr>
<td style="width:1px"></td>
<th>Customer</th>
<th>Destination</th>
<th>From</th>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 4
<th>To</th>
<th>Days</th>
<th>Total</th>
<th>Reference</th>
<th>Date</th>
<th>Status</th>
<th style="width:1%"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="width:1px"><?=$i++?></td>
<td><?=$data['destination']?></td>
<td><?=$data['from']?></td>
<td><?=$data['to']?></td>
<td>₱<?=number_format($data['rate_per_day'],2)?></td>
<td><?=$data['days_rented']?></td>
<td>₱<?=number_format($data['total'],2)?></td>
<td><?=$data['reference']?></td>
<td><?=$data['date']?></td>
<td><?=$data['status']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('assets', 'assets');
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 6
})(document, window, jQuery);
</script>
</body>
</html>
<?php
if($_SESSION['owners_id'] == 0) {
header('location: index.php');
} else {
$data = get_account_details($_SESSION['owners_id']);
} else {
unset($_SESSION['owners_id']);
header('location: index.php');
if(get_car_if_exists($_GET['id']) > 0) {
$vehicle = get_vehicles_details($_GET['id']);
} else {
header('location: my-vehicles.php');
if(isset($_GET['logout']) == 'true') {
unset($_SESSION['owners_id']);
header('location:index.php');
if(isset($_POST['upload'])) {
update_car_image($_GET['id']);
if(isset($_GET['delete']) == 'true') {
delete_cars($_GET['id']);
if(isset($_POST['btnSaveChanges'])) {
$manufacturer = post('manufacturer');
$no_of_doors = post('no_of_doors');
$fuel_tank_capacity = post('fuel_tank_capacity');
$seating_capacity = post('seating_capacity');
$transmission_type = post('transmission_type');
$gear_box = post('gear_box');
$model = post('model');
$color = post('color');
$year = post('year');
$rate = post('rate');
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 7
$fuel_type = post('fuel_type');
$rulesandregulations = post('rulesandregulations');
update_cars($_GET['id'],$manufacturer,$no_of_doors,$fuel_tank_capacity,$seating_capacity,$transmission_type,$gear_box,$model,$color,$year,$rate,$fuel_type,
$rulesandregulations);
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Portal - My Vehicle</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 8
window.location = "?logout=true";
});
return false;
</script>
<script>
function submitForm(form){
swal({
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((isOkay) => {
if (isOkay){
window.location = "?delete=true&id=<?=$_GET['id']?>";
});
return false;
</script>
<script src="../assets/vendor/breakpoints/breakpoints.js"></script>
<script src="../../ckeditor/ckeditor.js"></script>
<script src="../../ckeditor/samples/js/sample.js"></script>
<script>
Breakpoints();
</script>
</head>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your
experience.</p>
<![endif]-->
<nav class="site-navbar navbar navbar-default navbar-fixed-top navbar-mega navbar-inverse" role="navigation" style="background-color: #FF8C00">
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 40
Computer Studies Department 9
<div class="navbar-header">
data-toggle="menubar">
<span class="hamburger-bar"></span>
</button>
data-toggle="collapse">
</button>
</a>
</div>
<span class="hamburger-bar"></span>
</i>
</a>
</li>
</ul>
data-animation="scale-up" role="button">
<i></i>
</span>
</a>
aria-hidden="true"></i> Profile</a>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 0
<a class="dropdown-item" href="?logout=true" onclick="return submitForm(this);" role="menuitem"><i class="icon wb-power"
aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="site-menubar-body">
<div>
<div>
<li class="site-menu-category">General</li>
<span class="site-menu-title">Dashboard</span>
</a>
</li>
<span class="site-menu-title">Reservations</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="page">
<div class="page-content">
<div class="row">
<div class="panel">
<div class="panel-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<?php
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 1
$ShowImages = explode("&", $vehicle['images']);
?>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body">
<form method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Manufacturer</label>
<option value="<?=$m['manufacturer']?>"
<?=$m['manufacturer']?></option>
<?php } ?>
</select>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 2
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Model</label>
name="model" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Color</label>
name="color" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="">Year</label>
name="year" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
<option value="Gas"
</option>
<option value="Diesel"
</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<option value="Manual"
<option value="Automatic"
Automatic</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
name="gear_box" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
</div>
</div>
<div class="col-12">
<div class="form-group">
name="no_of_doors" required>
</div>
</div>
<div class="col-12">
<div class="form-group">
name="rate" required>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 4
<div class="col-12">
<div class="form-group">
</div>
</div>
Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
aria-hidden="true">
<div class="modal-content">
<div class="modal-header">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="form-group">
<label for="">Reason</label>
rows="5"></textarea>
</div>
</div>
</div>
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 5
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</form>
<footer class="site-footer">
<div class="site-footer-legal">© <?=date('Y')?> <a href="javascript:void(0)" style="color: #FF8C00">ABC Rental Cars Inc.</a></div>
</footer>
<script src="../assets/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="../assets/vendor/jquery/jquery.js"></script>
<script src="../assets/vendor/popper-js/umd/popper.min.js"></script>
<script src="../assets/vendor/bootstrap/bootstrap.js"></script>
<script src="../assets/vendor/animsition/animsition.js"></script>
<script src="../assets/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="../assets/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="../assets/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="../assets/vendor/switchery/switchery.js"></script>
<script src="../assets/vendor/intro-js/intro.js"></script>
<script src="../assets/vendor/screenfull/screenfull.js"></script>
<script src="../assets/vendor/slidepanel/jquery-slidePanel.js"></script>
<script src="../assets/js/Component.js"></script>
<script src="../assets/js/Plugin.js"></script>
<script src="../assets/js/Base.js"></script>
<script src="../assets/js/Config.js"></script>
<script src="../assets/js/Section/Menubar.js"></script>
<script src="../assets/js/Section/Sidebar.js"></script>
<script src="../assets/js/Section/PageAside.js"></script>
<script src="../assets/js/Plugin/menu.js"></script>
<script src="../assets/vendor/datatables.net/jquery.dataTables.js"></script>
<script src="../assets/vendor/datatables.net-bs4/dataTables.bootstrap4.js"></script>
<script src="../assets/js/config/colors.js"></script>
<script src="../assets/js/config/tour.js"></script>
<script>
Config.set('../assets', '../assets');
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 6
</script>
<script src="../assets/js/Site.js"></script>
<script src="../assets/js/Plugin/asscrollable.js"></script>
<script src="../assets/js/Plugin/slidepanel.js"></script>
<script src="../assets/js/Plugin/switchery.js"></script>
<script>
'use strict';
$(document).ready(function () {
Site.run();
});
</script>
<script>
initSample();
$('img.zoomable').click('click', function () {
'max-width': '100%',
'max-height': '100%',
'display': 'inline'
});
bigImg.attr({
src: img.attr('src'),
alt: img.attr('alt'),
title: img.attr('title')
});
'height': '100%',
'width': '100%',
'background': 'rgba(0,0,0,.82)',
'position': 'fixed',
'top': 0,
'left': 0,
'opacity': 0.0,
'cursor': 'pointer',
'z-index': 9999,
'text-align': 'center'
}).append(bigImg).bind('click', function () {
$(this).fadeOut(300, function () {
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 7
$(this).remove();
});
}).insertAfter(this).animate({
'opacity': 1
}, 300);
});</script></body></html>
APPENDIX F.
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 41
Computer Studies Department 8
CURRICULUM VITAE
ajreroma@gmail.com
EDUCATION
College (Bachelor of Science in Information Technology) 2019-Present
National College of Science and Technology
140 Emilio Aguinaldo Hwy, Dasmariñas, Cavite
Senior High School (TVL Track - ICT)
University of Perpetual Help System Dalta Molino Campus 2017-2019
Molino Rd, Molino III, Bacoor, Cavite
Elementary 2007-2013
Legacy of Wisdom Academy of Dasmariñas
Golden City Subd. Brgy. Salawag, Dasmariñas, Cavite
PERSONAL INFORMATION
Address: Block 13 Lot 43, Viva Homes Subd. Brgy. Salawag Dasmariñas, Cavite
Age: 22 Gender: Male
Date of Birth: January 20, 2001 Place of Birth: Quezon City
Religion: Baptist Civil Status: Single
I hereby certify that the given information are true and correct.
giannigellorenzo@gmail.com
EDUCATION
College (Bachelor of Science in Information Technology) 2019-Present
National College of Science and Technology
140 Emilio Aguinaldo Hwy, Dasmariñas, Cavite
Senior High School (GAS Strand) 2017-2019
University of Perpetual Help System Dalta – Molino Campus
Molino IV Bacoor, Cavite
Junior High School 2013-2017
Infant Jesus Colleges Cavite (IJCC)
Brgy. Salawag, Dasmariñas, Cavite
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 42
Computer Studies Department 0
Elementary 2007-2013
Rabbi Crhistian Institute (RCI)
Brgy. Salawag, Dasmariñas, Cavite
PERSONAL INFORMATION
Address: Viva Homes Subdivision Brgy. Salawag Dasmariñas, Cavite
Age: 21 Gender: Male
Date of Birth: July 30, 2001 Place of Birth: Cavite
Religion: Catholic Civil Status: Single
NICK L. HERNANDEZ
+639391698562
nickhernandez102219@gmail.com
EDUCATION
College (Bachelor of Science in Information Technology) 2019-Present
National College of Science and Technology
140 Emilio Aguinaldo Hwy, Dasmariñas, Cavite
College (Diploma in Hotel and Restaurant Management) 2009-2012
Cavite State University
Silang, Cavite
Elementary 1999-2005
New Era Elementary School
Sampaloc V Dasmarinas, Cavite
PERSONAL INFORMATION
Address: Brgy New Era Sampaloc V Dasmarinas City, Cavite
Age: 30 Gender: Male
Date of Birth: October 13, 1992 Place of Birth: Dasmarinas City
Religion: Iglesia ni Cristo Civil Status: Single
I hereby certify that the given information are true and correct.
NICK L. HERNANDEZ
Researcher
jelojimenez9@gmail.com
EDUCATION
College (Bachelor of Science in Information Technology) 2019-Present
National College of Science and Technology
140 Emilio Aguinaldo Hwy, Dasmariñas, Cavite
Senior High School (STEM Strand) 2017-2019
St. Jude College Dasmariñas Cavite
Carlos Trinidad Avenue, Salitran IV City of Dasmariñas Cavite
Junior High School 2013-2017
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 42
Computer Studies Department 2
Integrated National Highschool
Brgy. Paliparan II, Dasmariñas, Cavite
Elementary 2007-2013
Paliparan II Elementary School
Brgy. Paliparan II, Dasmariñas, Cavite
PERSONAL INFORMATION
Address: 416 Sitio Burol Brgy. Paliparan II, Dasmariñas, Cavite
Age: 21 Gender: Male
Date of Birth: June 14, 2001 Place of Birth: Cavite
Religion: Roman Catholic Civil Status: Single
I hereby certify that the given information are true and correct.
dinglasanivanmorrisjosayan@gmail.com
EDUCATION
College (Bachelor of Science in Information Technology) 2019-Present
National College of Science and Technology
140 Emilio Aguinaldo Hwy, Dasmariñas, Cavite
Senior High School (HUMSS Strand) 2016-2018
National College of Science and Technology – Senior High School
140 Emilio Aguinaldo Hwy, Dasmariñas, Cavite
Junior High School 2013-2016
Amadeo National Highschool
Crisanto M. De Los Reyes Ave., Amadeo, Cavite
NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg. Aguinaldo Highway, Dasmarinas, Cavite 42
Computer Studies Department 3
Elementary 2006-2013
Sto. Niño De Praga Academy
Perez, Trece Martires, Cavite
PERSONAL INFORMATION
Address: 235 Brgy. Alingaro, General Trias City, Cavite
Age: 22 Gender: Male
Date of Birth: June 11, 2000 Place of Birth: Tanza, Cavite
Religion: Roman Catholic Civil Status: Single
I hereby certify that the given information are true and correct.