Rapid fire radiology quiz module
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
moduleImg
scripts
testquiz
COPYING.txt
Centaur.sql
LICENSE
README.md
add_user.php
checklogin.php
cover.php
create_account.php
footer.php
footer_login.php
footer_nologin.php
guestlogin.php
header.php
incompatible.php
index.php
loginform.php
logo.png
logout.php
module.php
notracklogin.php
primerLib.php
style_768.css
style_ie8.css
style_wide.css
submit.php

README.md

Centaur

Rapid fire radiology quiz module

Purpose

A set of PHP/MySQL source code to display image and provide an interface for rapid response.

Demonstration

Try it [here] (http://capricornradiology.org/centaur).

Installation

  1. Copy files to a web directory
  2. Create a new database on your MySQL server, and create the table using Centaur.sql For example: mysql -u username -p < Centaur.sql
  3. Add data for the test module into database mysql -u username -p < AddTestModule.sql
  4. Edit primerLib.php and ensure that the $db variable is properly configured to your MySQL database. For example: $db = new mysqli('localhost', 'username', 'password', 'centaur');
  5. Go to the index.php URL - if you are able to run the test quiz, you are ready to go!

How to Create a New Module?

  1. Use the testquiz module as a template. Copy and paste it into a new folder.
  2. Edit content.xml (using the comments contained within for guidance).
  3. Note that you can use regular HTML code as well as custom form fields which will be stored in the database as long as you follow the directions. Remember to escape all customized HTML code.
  4. Add an entry in the "quizzes" table in the MySQL database - the module ID, the URL, and a short description.
  5. Go to the proper URL to test it out. For example, if your module ID is 1234, then try: http://your.url.com/centaur/cover.php?moduleid=1234