Exemplo n.º 1
0
		<?php 
if ($this->filters['search']) {
    ?>
			<th><?php 
    echo Lang::txt('COM_JOBS_TABLE_RELEVANCE');
    ?>
</th>
		<?php 
}
?>
		</tr>
	</thead>
	<tbody>
	<?php 
for ($i = 0, $n = count($this->jobs); $i < $n; $i++) {
    $model = new Components\Jobs\Models\Job($this->jobs[$i]);
    $closedate = $this->jobs[$i]->closedate && $this->jobs[$i]->closedate != '0000-00-00 00:00:00' ? Date::of($this->jobs[$i]->closedate)->toLocal('d&\\nb\\sp;M&\\nb\\sp;y') : 'ASAP';
    if ($this->jobs[$i]->closedate != '0000-00-00 00:00:00' && $this->jobs[$i]->closedate < Date::toSql()) {
        $closedate = 'closed';
    }
    $curtype = $jt->getType($this->jobs[$i]->type);
    $curcat = $jc->getCat($this->jobs[$i]->cid);
    // compute relevance to search keywords
    if ($this->filters['search']) {
        $relscore = $this->jobs[$i]->keywords > 0 ? floor($this->jobs[$i]->keywords * 100 / $maxscore) : 0;
    }
    // what's the job status?
    if ($this->admin && !$this->emp && !$this->mini) {
        $status = '';
        $class = '';
        switch ($this->jobs[$i]->status) {
Exemplo n.º 2
0
?>
		</ul>
	</div><!-- / #content-header-extra -->
</header><!-- / #content-header -->

<?php 
if ($this->getError()) {
    ?>
	<p class="error"><?php 
    echo $this->getError();
    ?>
</p>
	<?php 
}
$html = '';
$model = new \Components\Jobs\Models\Job($job);
$job->title = trim(stripslashes($job->title));
$job->description = $model->content('raw');
$job->companyLocation = $id ? $job->companyLocation : $employer->companyLocation;
$job->companyLocationCountry = $id ? $job->companyLocationCountry : $this->escape($hubzero_Geo->getcountry($profile->get('countryresident')));
$job->companyName = $id ? $job->companyName : $employer->companyName;
$job->companyWebsite = $id ? $job->companyWebsite : $employer->companyWebsite;
$usonly = $this->config->get('usonly', 0);
?>
<section class="main section">
	<form id="hubForm" method="post" action="<?php 
echo Route::url('index.php?option=' . $this->option);
?>
">
		<div class="explaination">
			<p><?php 
Exemplo n.º 3
0
 *
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @license   http://opensource.org/licenses/MIT MIT
 */
// No direct access
defined('_HZEXEC_') or die;
/* Job Posting */
$job = $this->job;
$job->cat = $job->cat ? $job->cat : 'unspecified';
$job->type = $job->type ? $job->type : 'unspecified';
$startdate = $job->startdate && $job->startdate != '0000-00-00 00:00:00' ? Date::of($job->startdate)->toLocal(Lang::txt('DATE_FORMAT_HZ1')) : 'N/A';
$closedate = $job->closedate && $job->closedate != '0000-00-00 00:00:00' ? Date::of($job->closedate)->toLocal(Lang::txt('DATE_FORMAT_HZ1')) : 'N/A';
$model = new \Components\Jobs\Models\Job($job);
$maintext = $model->content('parsed');
$owner = (User::get('id') == $job->employerid or $this->admin) ? 1 : 0;
$html = '';
?>
<header id="content-header">
	<h2><?php 
echo $this->title;
?>
		<?php 
if ($owner) {
    echo '<a class="edit button" href="' . Route::url('index.php?option=' . $this->option . '&task=editjob&code=' . $job->code) . '" title="' . Lang::txt('COM_JOBS_ACTION_EDIT_JOB') . '">' . Lang::txt('COM_JOBS_ACTION_EDIT_JOB') . '</a>';
}
?>
	</h2>