hey Medianomaly,
I did not know that is possible :-)
As said, i am not a very strong php'er. I am not quit sure how to alter fe_page.tpl
I have now entered the xml shell in it:
Code:
<div id="content-vervolg"><?php echo $this->main; ?><jobs version="1.0">
<job>
<jobId></jobId>
<jobAddedDate></jobAddedDate>
<jobTitle></jobTitle>
<jobDescription></jobDescription>
<jobLocation>
<locationPlace></locationPlace>
<locationProvince></locationProvince>
</jobLocation>
<jobCategory></jobCategory>
<jobEducation></jobEducation>
<jobUrl>http://www.vrtu.nl/index.php/vacatures.html</jobUrl>
<contractHours>
<hoursType/>
<hoursMin>40</hoursMin>
<hoursMax>40</hoursMax>
<hoursDescription/>
</contractHours>
<jobContact>
<contactName></contactName>
<contactPhone></contactPhone>
<contactEmail></contactEmail>
<contactUrl>http://www.vrtu.nl/index.php/contact.html</contactUrl>
</jobContact>
<jobBranch>
<branchName>Van Roosendaal technisch uitzendbureau</branchName>
<branchPlace>Sliedrecht</branchPlace>
</jobBranch>
</job>
</jobs></div>
Thing is, this is for a site which displays vacancies for employment agencies. They use a different shell then my catalogdatabase entries.
I have created the following, but i do honestly not know where to put it:
Code:
$xml .= '<job>' . EOL;
$xml .= ' <jobId>' . $row[ 'vacature_nummer' ] . '</jobId>' . EOL;
$xml .= ' <jobAddedDate>' . $row[ 'invoerdatum' ] . '</jobAddedDate>' . EOL;
$xml .= ' <jobTitle>' . htmlspecialchars( $row[ 'vacature' ] ) . '</jobTitle>' . EOL;
$xml .= ' <jobDescription><![CDATA[' . $row[ 'functieomschrijving' ] . ']]></jobDescription>' . EOL;
$xml .= '<jobLocation>' . EOL;
$xml .= ' <locationPlace>' . $row[ 'plaats' ] . '</locationPlace>' . EOL;
$xml .= ' <locationProvince>' . $row[ 'provincie' ] . '</locationProvince>' . EOL;
$xml .= '</jobLocation>' . EOL;
$xml .= ' <jobCategory>' . $row[ 'vakgebied' ] . '</jobCategory>' . EOL;
$xml .= ' <jobEducation>' . $row[ 'vereiste_opleiding' ] . '</jobEducation>' . EOL;
$xml .= ' <jobUrl>' . ( $row[ 'vacature' ] ) . '</jobUrl>' . EOL;
$xml .= '<contractHours>' . EOL;
$xml .= ' <hoursMin>' . $row[ 'uren_per_week' ] . '</hoursMin>' . EOL;
$xml .= ' <hoursMax>' . ( $row[ 'uren_per_week' ] ) . '</hoursMax>' . EOL;
$xml .= '</contractHours>' . EOL;
$xml .= '<jobContact>' . EOL;
$xml .= ' <contactName>' . $row[ 'contactpersoon' ] . '</contactName>' . EOL;
$xml .= ' <contactPhone>' . ( $row[ 'contactpersoon_telefoon' ] ) . '</contactPhone>' . EOL;
$xml .= ' <contactEmail>' . $row[ 'contactpersoon_email' ] . '</contactEmail>' . EOL;
$xml .= ' <contactUrl>' . ( $row[ '' ] ) . '</contactUrl>' . EOL;
$xml .= '</jobContact>' . EOL;
/* $xml .= '<jobBranch>' . EOL;
$xml .= ' <branchName>' . $row[ 'uren_per_week' ] . '</branchName>' . EOL;
$xml .= ' <branchPlace>' . ( $row[ 'uren_per_week' ] ) . '</branchPlace>' . EOL;
$xml .= '</contractHours>' . EOL;
*/
$xml .= '</job>' . EOL;
}
$xml .= '</jobs>';
Bookmarks