Jobs Overview
Jobs have two display types: list and detail. Additionally, a job post form can be used to enter jobs.
Also see the jobs API article.
Post Job Form
Here is an example monklet to create a jop post form for a page.
{
tag="forms"
display="box"
find="job-post"
title="Job Post"
width="450"
height="650"
style="example.com/css/job.css"
success="example.com/job-added/"
}
Job List
Example
<?php
getContent(
"job",
"display:list",
"howmany_category:5",
"howmanydays:120",
"groupby:category",
"group_show:<h4>__title__</h4>",
"group_show:<p class='more'><a href='/job-category/__prevslug__/'>View All</a> | <a href='/post-a-job/'>Post a Job</a></p>",
"show:<table>",
"show:<tr><th>Title:</th><td><a href='__link__'>__title__</a></td></tr>",
"show:<tr><th>Category:</th><td>__category__</td></tr>",
"show:<tr><th>Location:</th><td>__location__</td></tr>",
"show:<tr><th>Web site:</th><td><a href='http://__website__'>__website__</a></td></tr>",
"show:<tr><th>Contact:</th><td>__contactname__</td></tr>",
"show:<tr><th>Phone:</th><td>__contact__</td></tr>",
"show:<tr><td colspan='2'>__description__</td></tr>",
"show:</table>"
);
?>
Job Detail
Example
<?php
getContent(
"job",
"display:detail",
"find:".$_GET[job],
"find_org:".$_GET['org'],
"find_year:".$_GET['year'],
"find_month:".$_GET['month'],
"find_day:".$_GET['day'],
"show:<h4>__title__</h4>",
"show:<table>",
"show:<tr><th>Title:</th><td><a href='__link__'>__title__</a></td></tr>",
"show:<tr><th>Category:</th><td>__category__</td></tr>",
"show:<tr><th>Location:</th><td>__location__</td></tr>",
"show:<tr><th>Web site:</th><td><a href='http://__website__'>__website__</a></td></tr>",
"show:<tr><th>Contact:</th><td>__contactname__</td></tr>",
"show:<tr><th>Phone:</th><td>__contact__</td></tr>",
"show:<tr><td colspan='2'>__description__</td></tr>",
"show:</table>",
"show:<p class='more'><a href='/job-list-page/'>Return to Job List</a> | <a href='/post-a-job/'>Post a Job</a></p>"
);
?>