System Documentation


Description

The current system has 3 main scripts.

  1. Script launched as a Cron job (cron_packingslips.php)
    When a Cron process launches this script, manufacturers which have a mailing time within the last hour will be processed. Pending Orders for a manufacturer which were made within the last 24 hours of the mailing time will be included in a packing slip that is mailed to the manufacturer.
  2. Script for Administration panel (admin/admin_panel.php)
    This script allows an administrator to Add/Delete/Update manufacturers in the system, and modify some of their settings. The admin login parameters can be set in admin/authenticate.php
  3. Script for Manufacturer's panel (manufacturer_panel.php)
    This script allows a manufacturer to manage their Pending Orders. Based on the manufacturer's choices, the system can email messages and/or packing slips to customers and manufacturers. To access this panel, the manufacturer must use a link that is emailed along with his daily packing-slip.

Features


Configuration files

The system has several configuration files where settings can be made:

List of included files:

    Administration panel
  1. admin/admin_panel.php
  2. admin/admin_panel.inc.php
  3. admin/authenticate.php (user access validation)
  4. Manufacturer panel
  5. manufacturer_panel.php
  6. manufacturer_panel.inc.php
  7. Script for cron job
  8. cron_packingslips.php
  9. Configuration files
  10. config.php
  11. db_config.php
  12. pdf_config.php
  13. email_config.php
  14. Other files
  15. daily_email_template.html (email html template)
  16. functions.php (various functions)
  17. sql_queries.php (all sql queries used)
  18. pdfBg.jpg (packing-slip background-image)
  19. email_message.php (email-sending application)
  20. fpdf153/fpdf.php (PDF-making application)