PHP dispatcher code

The server-side dispatcher system is written in PHP and contains a number of files working together to create the application. Table 12.3 presents a brief synopsis of each source file to help you navigate the application should you choose to host a version of this application yourself.

Table 12.3 Server-side source code

Source File

Description

addjob.php closejob.php db.php

Form for entering new job information

Used by Android application to submit signature

Database connection info

Table 12.3 Server-side source code (continued)

Source File

Description

export.php

Used to export list of jobs to a csv file

footer.php

Used to create a consistent look and feel for the footer of each page

getjoblist.php

Used by Android application to request job XML stream

header.php

Used to create a consistent look and feel for the header of each page

index.php

Home page, including search form

manage.php

Used to delete jobs on the web application

savejob.php

Used to save a new job (called from addjob.php)

showjob.php

Used to display job details and load into a form for updating

showjobs.php

Displays all jobs for a particular user

updatejob.php

Used to save updates to a job

utils.php

Contains various routines for interacting with the database

Of all of these files, only two actually concern the Android application. These are discussed in the next section.

0 0

Post a comment