This is a computer diagnosis expert system website written in CodeIgniter 3. The system allows users to enter their name and then proceed to the diagnosis page. The diagnosis page contains a JavaScript script that performs the diagnosis based on selected symptoms.
To run the website, make sure you have PHP and CodeIgniter 3 installed. Then, follow these steps:
- Clone the repository:
git clone https://github.com/Dityaren/Computer-Diagnosis-Expert-System
- Change into the project directory:
cd Computer-Diagnosis-Expert-System
- Start a local development server:
php -S localhost:8000
- Open your web browser and visit
http://localhost:8000
to access the website.
-
On the homepage, enter your name and click "Start" to proceed to the diagnosis page.
-
On the diagnosis page, a set of checkboxes representing different symptoms will be displayed.
-
Select the symptoms that apply to your computer issue.
-
Click the "Diagnose" button to initiate the diagnosis process.
-
The system will analyze the selected symptoms and display a list of possible computer issues.
-
Each issue will be accompanied by a brief description.
-
If no matching diagnosis is found, a message indicating no suitable diagnosis will be displayed.
-
You can repeat the process by clicking the "Restart Diagnosis" button.
The diagnosis page contains a JavaScript script that handles the symptom selection and diagnosis process. Here is a brief explanation of the script:
-
The script uses jQuery and executes when the document is ready.
-
It fades in the bot container and symptom form container after a certain delay.
-
The
diagnosisTable
variable stores a mapping between symptom groups and corresponding diagnoses. -
The
getSymptomDescription
function returns a description for a given symptom code. -
The script attaches a submit event handler to the symptoms form.
-
When the form is submitted, it disables the submit button, retrieves the selected symptoms, and performs the diagnosis.
-
The diagnosis results are dynamically generated based on the selected symptoms and displayed on the page.
-
The
getDiagnosisDetails
function returns details for a given diagnosis code.
If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.