Ejemplo n.º 1
0
        if ($job->applyExternalUrl) {
            if (strpos($job->applyExternalUrl, "http://") !== false || strpos($job->applyExternalUrl, "https://") !== false) {
                $url = $job->applyExternalUrl;
            } else {
                $url = "http://" . $job->applyExternalUrl;
            }
            $html .= '<a class="extlink" href="' . $url . '" rel="external">' . Lang::txt('COM_JOBS_ACTION_APPLY_EXTERNALLY') . '</a>' . "\n";
            $html .= $job->applyInternal ? '<span class="or">' . strtolower(Lang::txt('COM_JOBS_OR')) . '</span>' . "\n" : '' . "\n";
        }
        if ($job->applyInternal) {
            $html .= '<span class="applybtn"><a href="' . Route::url('index.php?option=' . $this->option . '&task=apply&code=' . $job->code) . '">' . Lang::txt('COM_JOBS_ACTION_APPLY_THROUGH_HUB') . ' ' . Config::get('sitename') . '</a></span>' . "\n";
        }
    }
}
$html .= '</p>';
$html .= $job->applied ? \Components\Jobs\Helpers\Html::confirmscreen(Route::url('index.php?option=' . $this->option . '&task=job&code=' . $job->code), Route::url('index.php?option=' . $this->option . '&task=withdraw&code=' . $job->code), $action = "withdrawapp") . "\n" : '';
$html .= '</div>' . "\n";
$html .= '<div>' . "\n";
$html .= '<span class="sub-heading">' . Lang::txt('COM_JOBS_TABLE_CATEGORY') . '</span>' . "\n";
$html .= '<p>' . $job->cat . '</p>' . "\n";
$html .= '<span class="sub-heading">' . Lang::txt('COM_JOBS_TABLE_TYPE') . '</span>' . "\n";
$html .= '<p>' . $job->type . '</p>' . "\n";
$html .= '<span class="sub-heading">' . Lang::txt('COM_JOBS_TABLE_START_DATE') . '</span>' . "\n";
$html .= '<p>' . $startdate . '</p>' . "\n";
$html .= '<span class="sub-heading">' . Lang::txt('COM_JOBS_TABLE_EXPIRES') . '</span>' . "\n";
$html .= '<p>' . $closedate . '</p>' . "\n";
$html .= '<div class="reg details">' . $maintext . '</div>' . "\n";
if ($job->contactName) {
    $html .= '<p class="reg details">' . Lang::txt('COM_JOBS_JOB_INFO_CONTACT') . ':</p>' . "\n";
    $html .= '<p class="reg">' . "\n";
    $html .= '<span class="contactname">' . $job->contactName . '</span>' . "\n";
Ejemplo n.º 2
0
     $unitsize = $unitsize + $this->services[$i]->unitsize;
 }
 $unitsChoice = \Components\Jobs\Helpers\Html::formSelect('units_' . $this->services[$i]->id, $units_select, '', "option units");
 $iniprice = $thissub ? 0 : $this->services[$i]->unitprice;
 $html .= '<div class="bindtogether product">' . "\n";
 $html .= '  <input class="option service" type="radio" name="serviceid" id="service_' . $this->services[$i]->id . '" value="' . $this->services[$i]->id . '" ';
 if ($thissub or $this->subscription->serviceid == 0 && $i == 0) {
     $html .= 'checked="checked"';
 }
 $html .= ' /> ';
 $html .= $this->services[$i]->title . ' - <span class="priceline">' . $this->services[$i]->currency . ' ' . $this->services[$i]->unitprice . '  ' . Lang::txt('COM_JOBS_PER') . ' ' . $this->services[$i]->unitmeasure . '</span>' . "\n";
 $html .= '<span> ' . $this->services[$i]->description . '</span>' . "\n";
 $html .= '<div class="subdetails" id="plan_' . $this->services[$i]->id . '">' . "\n";
 $html .= $thissub ? $expires : '';
 if ($thissub or $this->subscription->serviceid == 0 && $i == 0) {
     $html .= \Components\Jobs\Helpers\Html::confirmscreen(Route::url('index.php?option=' . $this->option . '&task=dashboard&uid=' . $this->uid), Route::url('index.php?option=' . $this->option . '&task=cancel&uid=' . $this->uid));
 }
 $html .= '<label> ';
 $html .= $thissub ? Lang::txt('COM_JOBS_SUBSCRIPTION_EXTEND_OR_RENEW') : Lang::txt('COM_JOBS_ACTION_SIGN_UP');
 $html .= ' ' . Lang::txt('for') . ' ' . "\n";
 $html .= $unitsChoice;
 $html .= $this->services[$i]->unitmeasure . '(s) </label>' . "\n";
 $html .= '<span class="totalprice">' . Lang::txt('COM_JOBS_SUBSCRIBE_YOUR_TOTAL') . ' ';
 $html .= $thissub ? strtolower(Lang::txt('COM_JOBS_NEW')) . ' ' : '';
 $html .= Lang::txt('COM_JOBS_SUBSCRIBE_PAYMENT_WILL_BE') . ' <span class="no">' . $this->services[$i]->currency . '</span> <span id="injecttotal_' . $this->services[$i]->id . '"> ' . $iniprice . '</span>';
 $html .= '.</span>' . "\n";
 // GOOGLE Checkout (TBD)
 $html .= '<input type="hidden" class="product-price" value="' . $this->escape($this->services[$i]->unitprice) . '" />' . "\n";
 $html .= '<input type="hidden" class="product-title" value="' . $this->escape($this->services[$i]->title) . '" />' . "\n";
 $html .= '</div>' . "\n";
 $html .= '</div>' . "\n";