Exemple #1
0
            $_POST['categories'][] = $p[0];
            $_POST['subcategories'][] = $p[1];
        }
    }
    $action = 'next';
} elseif ($draft_id && !$drafts->getDraft($draft_id, $uid, 1)) {
    // если дан id черновика, но такой черновик не существует
    header("Location: /403.php");
    exit;
}
$account = new account();
$account->GetInfo($uid);
$_SESSION['ac_sum'] = $account->sum;
$_SESSION['ac_sum_rub'] = $account->sum_rub;
$_SESSION['bn_sum'] = $account->bonus_sum;
$konk_price = new_projects::getPriceByCode(is_pro() ? new_projects::OPCODE_KON : new_projects::OPCODE_KON_NOPRO);
//Определяем доступные коды для покупки
$promoCodes = new PromoCodes();
$allowedPromoCodes = array(PromoCodes::SERVICE_PROJECT);
if ($kind == projects::KIND_VACANCY) {
    $allowedPromoCodes[] = PromoCodes::SERVICE_VACANCY;
} elseif ($kind == 7) {
    $allowedPromoCodes[] = PromoCodes::SERVICE_CONTEST;
}
$promoCodesForm = $promoCodes->render($allowedPromoCodes);
switch ($step) {
    case 2:
        unset($_SESSION['isExistProjects']);
    case 1:
        if (!$PDA) {
            $js_file = array();
Exemple #2
0
<?php

$up_price = array('prj' => new_projects::getPriceByCode(is_pro() ? new_projects::OPCODE_UP : new_projects::OPCODE_UP_NOPRO), 'prjtop' => new_projects::getPriceByCode(is_pro() ? new_projects::OPCODE_TOP : new_projects::OPCODE_TOP_NOPRO));
?>


 
 
                        
<table class="b-layout__table b-layout__table_width_full b-layout__table_bordbot_df b-layout__table_2bordtop_df b-layout__table_margbot_20">
   <tr class="b-layout__tr">
      <td class="b-layout__td b-layout__td_width_60 b-layout__td_padtb_10 b-layout__td_ipad">
          <?php 
if ($show_info) {
    ?>
              <?php 
    echo view_avatar($project['login'], $project['photo']);
    ?>
          <?php 
} else {
    //if
    ?>
              <img src="/images/user-default-small.png" alt="" width="50" height="50" class="lpl-avatar">
          <?php 
}
//else
?>
      </td>
      <td class="b-layout__td b-layout__td_padtb_10 b-layout__td_ipad">
          <div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_bold b-layout__txt_padbot_5">
                  <?php 
Exemple #3
0
<?php

$g_page_id = '0|36';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php';
$rpath = '../../';
include $rpath . '404.php';
exit;
$stretch_page = true;
$showMainDiv = true;
$page_title = 'Поднятие проекта - фриланс, удаленная работа на FL.ru';
$header = "{$rpath}/header.php";
$content = 'content.php';
$footer = "{$rpath}/footer.html";
$template = 'template2.php';
$uid = get_uid();
$user = null;
if (is_emp()) {
    $user = new users();
    $user->GetUserByUID($uid);
}
$up_price = array('kon' => new_projects::getPriceByCode(is_emp() && is_pro() ? new_projects::OPCODE_KON_UP : new_projects::OPCODE_KON_UP_NOPRO), 'prj' => new_projects::getPriceByCode(is_emp() && is_pro() ? new_projects::OPCODE_UP : new_projects::OPCODE_UP_NOPRO));
include $rpath . $template;