*/ // No direct access defined('_HZEXEC_') or die; /* Post New Job / Edit Job Form */ $job = $this->job; $employer = $this->employer; $profile = $this->profile; $id = $this->jobid; $startdate = $job->startdate && $job->startdate != '0000-00-00 00:00:00' ? Date::of($job->startdate)->toLocal('Y-m-d') : ''; $closedate = $job->closedate && $job->closedate != '0000-00-00 00:00:00' ? Date::of($job->closedate)->toLocal('Y-m-d') : ''; $defaultExpire = $this->config->get('expiry', 0) ? Date::of(strtotime('180 days'))->toLocal('Y-m-d') : ''; $expiredate = $job->expiredate && $job->expiredate != '0000-00-00 00:00:00' ? Date::of($job->expiredate)->toLocal('Y-m-d') : $defaultExpire; $status = $this->task != 'addjob' ? $job->status : 4; // draft mode $hubzero_Geo = new \Hubzero\Geocode\Geocode(); $countries = $hubzero_Geo->countries(); ?> <header id="content-header"> <h2><?php echo $this->title; ?> </h2> <div id="content-header-extra"> <ul id="useroptions"> <?php if ($this->emp) { ?> <li><a class="icon-dashboard myjobs btn" href="<?php echo Route::url('index.php?option=' . $this->option . '&task=dashboard'); ?>