$_SESSION['search_elms'][$key] = $elm->isActive() ? $elm->total : $_SESSION['search_elms'][$key]; $_SESSION['search_limit'][$key] = $elm->isActive() ? $elm->getProperty('limit') : $_SESSION['search_limit'][$key]; } $element = $elements[$type]; if (isset($_SESSION['search_elms'][$type]) && isset($_POST['search_string']) && !isset($_GET['only_tab'])) { if ($_SESSION['search_elms'][$type] == 0) { foreach ($_SESSION['search_elms'] as $name => $count) { if ($count > 0) { header("Location: /search/?type={$name}&{$query_string_menu}&only_tab=1"); exit; } } } } if ($search_string) { $search_input_hint = kwords::getRandomSearchHint($type); } else { $search_input_hint = kwords::getRandomSearchHint($type); } $page_title = "Поиск - фриланс, удаленная работа на FL.ru"; $is_use_new_mootools = true; $content = "content.php"; $css_file = array('search.css', 'nav.css', '/css/block/b-menu/_tabs/b-menu_tabs.css', '/css/block/b-search/b-search.css', '/css/block/b-input-hint/b-input-hint.css'); $js_file[] = 'search.js'; if ($type && $type != 'users') { $js_file[] = '/kword_search_js.php?type=' . $type; } $content_bgcolor = '#ffffff'; $header = "../header.php"; $footer = "../footer.html"; include "../template2.php";
?> <input type="hidden" name="encode" value="utf8" /> <?php } ?> <div class="b-search"> <table class="b-search__table" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr class="b-search__tr"> <td class="b-search__input"> <div id="body_search_across" class="b-input b-input_height_23 b-input_border_none"> <input id="search_across" class="b-input__text" type="text" name="search_string" placeholder="Поиск<?php echo is_emp() ? " исполнителя" : (get_uid(false) ? " проекта" : " исполнителя"); ?> . Например, <?php echo kwords::getRandomSearchHint(get_uid(false) ? 'users' : (is_emp(get_uid(false)) ? 'projects' : 'users')); ?> " autocomplete="off" /> </div> </td> <td class="b-search__button"> <a class="b-button b-button_rectangle_color_transparent" href="/search/" onclick="<?php if (is_emp()) { ?> _gaq.push(['_trackEvent', 'User', 'Employer', 'button_search']); ga('send', 'event', 'Employer', 'button_search');<?php } else { ?> _gaq.push(['_trackEvent', 'User', 'Freelance', 'button_search']); ga('send', 'event', 'Freelance', 'button_search');<?php } ?> $('form-search').submit(); return false;">