Here is what I did. I make no expressed or implied guarantee about the completeness of this.
Add to your language file around line 14:
jobline->language->english.php
before
| Code: |
DEFINE('_JL_JOBTYPE_FULLTIME', 'Full-time');
DEFINE('_JL_JOBTYPE_PARTTIME', 'Part-time');
|
after
| Code: |
DEFINE('_JL_JOBTYPE_FULLTIME', 'Full-time');
DEFINE('_JL_JOBTYPE_PARTTIME', 'Part-time');
DEFINE('_JL_JOBTYPE_TEMPORARY', 'Temporary');
|
Add to jobline.php around line 459:
before
| Code: |
$jobtypelist = array();
$jobtypelist[] = mosHTML::makeOption( '0', _JL_JOBTYPE_FULLTIME );
$jobtypelist[] = mosHTML::makeOption( '1', _JL_JOBTYPE_PARTTIME );
$jobtypelist[] = mosHTML::makeOption( '2', _JL_JOBTYPE_INTERNSHIP );
|
after
| Code: |
$jobtypelist = array();
$jobtypelist[] = mosHTML::makeOption( '0', _JL_JOBTYPE_FULLTIME );
$jobtypelist[] = mosHTML::makeOption( '1', _JL_JOBTYPE_PARTTIME );
$jobtypelist[] = mosHTML::makeOption( '2', _JL_JOBTYPE_INTERNSHIP );
$jobtypelist[] = mosHTML::makeOption( '3', _JL_JOBTYPE_TEMPORARY );
|
Alter the job type search in jobline.php around line 642 (note that the code treats internships differently, so I lumped temporary work in with full/part time):
before
| Code: |
// Only show one job type
$typequery = "";
if ( $type != "" ) {
switch ( $type ) {
case "internships": $typequery = "\n AND c.jobtype = 2"; break;
case "normal": $typequery = "\n AND ( c.jobtype = 0 OR c.jobtype = 1 )"; break;
default:
|
after
| Code: |
// Only show one job type
$typequery = "";
if ( $type != "" ) {
switch ( $type ) {
case "internships": $typequery = "\n AND c.jobtype = 2"; break;
//case "normal": $typequery = "\n AND ( c.jobtype = 0 OR c.jobtype = 1 )"; break;
case "normal": $typequery = "\n AND ( c.jobtype = 0 OR c.jobtype = 1 OR c.jobtype = 3 )"; break;
default:
|
Alter jobline.common.php around line 88:
before
| Code: |
function getJobTypeString( $jobtype ) {
$ret = "";
switch ( $jobtype ) {
case '0': $ret = _JL_JOBTYPE_FULLTIME; break;
case '1': $ret = _JL_JOBTYPE_PARTTIME; break;
case '2': $ret = _JL_JOBTYPE_INTERNSHIP; break;
}
return $ret;
}
|
after
| Code: |
function getJobTypeString( $jobtype ) {
$ret = "";
switch ( $jobtype ) {
case '0': $ret = _JL_JOBTYPE_FULLTIME; break;
case '1': $ret = _JL_JOBTYPE_PARTTIME; break;
case '2': $ret = _JL_JOBTYPE_INTERNSHIP; break;
case '3': $ret = _JL_JOBTYPE_FULLORPART; break;
}
return $ret;
}
|
Now for the administrative screens.
Add to admin.jobline.php around line 383:
before
| Code: |
// make the select list for the job types
$jobtypelist = array();
$jobtypelist[] = mosHTML::makeOption( '0', _JL_JOBTYPE_FULLTIME );
$jobtypelist[] = mosHTML::makeOption( '1', _JL_JOBTYPE_PARTTIME );
$jobtypelist[] = mosHTML::makeOption( '2', _JL_JOBTYPE_INTERNSHIP );
|
after
| Code: |
// make the select list for the job types
$jobtypelist = array();
$jobtypelist[] = mosHTML::makeOption( '0', _JL_JOBTYPE_FULLTIME );
$jobtypelist[] = mosHTML::makeOption( '1', _JL_JOBTYPE_PARTTIME );
$jobtypelist[] = mosHTML::makeOption( '2', _JL_JOBTYPE_INTERNSHIP );
$jobtypelist[] = mosHTML::makeOption( '3', _JL_JOBTYPE_TEMPORARY );
|
Alter admin.jobline.html.php around line 55:
before
| Code: |
var jobtypes = new Array("<?php echo _JL_JOBTYPE_FULLTIME; ?>", "<?php echo _JL_JOBTYPE_PARTTIME; ?>", "<?php echo _JL_JOBTYPE_INTERNSHIP; ?>");
|
after
| Code: |
var jobtypes = new Array("<?php echo _JL_JOBTYPE_FULLTIME; ?>", "<?php echo _JL_JOBTYPE_PARTTIME; ?>", "<?php echo _JL_JOBTYPE_INTERNSHIP; ?>", "<?php echo _JL_JOBTYPE_TEMPORARY; ?>");
|