</td> </tr> </tfoot> <tbody> <?php $k = 0; $now = Date::toSql(); $database = App::get('db'); $jt = new \Components\Jobs\Tables\JobType($database); $jc = new \Components\Jobs\Tables\JobCategory($database); for ($i = 0, $n = count($this->rows); $i < $n; $i++) { $row =& $this->rows[$i]; $admin = $row->employerid == 1 ? 1 : 0; $adminclass = $admin ? 'class="adminpost"' : ''; $curtype = $row->type > 0 ? $jt->getType($row->type) : ''; $curcat = $row->cid > 0 ? $jc->getCat($row->cid) : ''; // Build some publishing info $info = Lang::txt('COM_JOBS_FIELD_CREATED') . ': ' . Date::of($row->added)->toLocal(Lang::txt('DATE_FORMAT_HZ1')) . '<br />'; $info .= Lang::txt('COM_JOBS_FIELD_CREATOR') . ': ' . $row->addedBy; $info .= $admin ? ' ' . Lang::txt('COM_JOBS_ADMIN') : ''; $info .= '<br />'; $info .= Lang::txt('COM_JOBS_FIELD_CATEGORY') . ': ' . $curcat . '<br />'; $info .= Lang::txt('COM_JOBS_FIELD_TYPE') . ': ' . $curtype . '<br />'; // Get the published status switch ($row->status) { case 0: $alt = Lang::txt('COM_JOBS_STATUS_PENDING'); $class = 'post_pending'; break; case 1: $alt = $row->inactive && $row->inactive < $now ? Lang::txt('COM_JOBS_STATUS_EXPIRED') : Lang::txt('COM_JOBS_STATUS_ACTIVE');
</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) { case 0: $status = Lang::txt('COM_JOBS_JOB_STATUS_PENDING'); $class = 'post_pending'; break; case 1: $status = $this->jobs[$i]->inactive && $this->jobs[$i]->inactive < Date::toSql() ? Lang::txt('COM_JOBS_JOB_STATUS_INVALID') : Lang::txt('COM_JOBS_JOB_STATUS_ACTIVE');
* * HUBzero is a registered trademark of Purdue University. * * @package hubzero-cms * @author Shawn Rice <*****@*****.**> * @copyright Copyright 2005-2015 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die; $database = App::get('db'); $jt = new \Components\Jobs\Tables\JobType($database); $jc = new \Components\Jobs\Tables\JobCategory($database); $profile = \Hubzero\User\Profile::getInstance($this->seeker->uid); $jobtype = $jt->getType($this->seeker->sought_type, strtolower(Lang::txt('COM_JOBS_TYPE_ANY'))); $jobcat = $jc->getCat($this->seeker->sought_cid, strtolower(Lang::txt('COM_JOBS_CATEGORY_ANY'))); $title = Lang::txt('COM_JOBS_ACTION_DOWNLOAD') . ' ' . $this->seeker->name . ' ' . ucfirst(Lang::txt('COM_JOBS_RESUME')); // Get the configured upload path $base_path = DS . trim($this->params->get('webpath', '/site/members'), DS); $path = $base_path . DS . \Hubzero\Utility\String::pad($this->seeker->uid); if (!is_dir(PATH_APP . $path)) { if (!Filesystem::makeDirectory(PATH_APP . $path)) { $path = ''; } } $resume = is_file(PATH_APP . $path . DS . $this->seeker->filename) ? $path . DS . $this->seeker->filename : ''; ?> <div class="aboutme<?php echo $this->seeker->mine && $this->list ? ' mine' : ''; echo isset($this->seeker->shortlisted) && $this->seeker->shortlisted ? ' shortlisted' : ''; ?>
* * HUBzero is a registered trademark of Purdue University. * * @package hubzero-cms * @author Shawn Rice <*****@*****.**> * @copyright Copyright 2005-2015 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die; $database = App::get('db'); $jt = new \Components\Jobs\Tables\JobType($database); $jc = new \Components\Jobs\Tables\JobCategory($database); $profile = \Hubzero\User\Profile::getInstance($this->seeker->uid); $jobtype = $jt->getType($this->seeker->sought_type, strtolower(Lang::txt('PLG_MEMBERS_RESUME_TYPE_ANY'))); $jobcat = $jc->getCat($this->seeker->sought_cid, strtolower(Lang::txt('PLG_MEMBERS_RESUME_CATEGORY_ANY'))); $title = Lang::txt('PLG_MEMBERS_RESUME_ACTION_DOWNLOAD') . ' ' . $this->seeker->name . ' ' . ucfirst(Lang::txt('PLG_MEMBERS_RESUME_RESUME')); // Get the configured upload path $base_path = DS . trim($this->params->get('webpath', '/site/members'), DS); $path = $base_path . DS . \Hubzero\Utility\String::pad($this->seeker->uid); if (!is_dir(PATH_APP . $path)) { if (!Filesystem::makeDirectory(PATH_APP . $path)) { $path = ''; } } $resume = is_file(PATH_APP . $path . DS . $this->seeker->filename) ? $path . DS . $this->seeker->filename : ''; ?> <div class="aboutme<?php echo $this->seeker->mine && $this->list ? ' mine' : ''; echo isset($this->seeker->shortlisted) && $this->seeker->shortlisted ? ' shortlisted' : ''; ?>