Cache::ClearArrayCache('stats'); $tpl->msg($job->lang['del_vacancy'], $job->lang['del_vacancy_ok'], $_SERVER['HTTP_REFERER']); break; default: $edit['date_exp'] = $edit['age_max'] = $edit['age_min'] = $edit['salary_min'] = $edit['salary_max'] = ''; break; } if (!empty($job->config['vacancy_need_field'])) { foreach ($job->config['vacancy_need_field'] as $field) { $validete_array[$field]['valid']['required'] = "true"; if (!empty($job->lang['vacancy_error_' . $field])) { $validete_array[$field]['messages']['required'] = $job->lang['vacancy_error_' . $field]; } } } $valid_fields = GetValidateRules($validete_array); $JS = <<<JS <script type="text/javascript"> \$.metadata.setType("attr", "validate"); \$.validator.addMethod("no_company", function(value, element) { \treturn (value != '' || \$("#company").val() != ''); }, \$.validator.messages.required); \$(document).ready(function() { \t\$("#vacancies tbody tr").hover(function() \t{ \t\t\$(this).addClass("over"); \t}, function() \t{ \t\t\$(this).removeClass("over");
if ($hidden_array['action'] == "resume_doadd" && CheckGroupAllow('resume_allow_change_exp')) { $template->SetBlock('count_day'); $set_param['{count_day}'] = $template->Selection(Resume::$count_day_array, 'count_day', $job->config['resume_default_day']); } if ($hidden_array['action'] == "resume_doadd" && CheckGroupAllow('resume_add_capcha')) { SetCapchaBlock($set_param); } if (!$job->member['id'] && $hidden_array['action'] == 'resume_doadd' && $job->config['resume_allow_reg']) { SetRegisterBlock($set_param); } if ($hidden_array['action'] == "resume_save" && CheckGroupAllow('resume_allow_extend')) { $template->SetBlock('extend'); $set_param['{count_extend}'] = $template->Selection(array('-1' => $auto->lang['no_extend']) + Resume::$count_day_array, 'count_extend', '-1'); } $template->SetStyleScript(array('engine/job/images/admin/jquery.autocomplete.css'), array('engine/job/javascript/jquery.metadata.js', 'engine/job/javascript/jquery.validate.js', 'engine/job/javascript/messages_ru.js')); $valid_fields = GetValidateRules($validete_array, $validete_options); $JS = <<<JS <script type="text/javascript"> \$.metadata.setType("attr", "validate"); \$(document).ready(function() { \t\$('#specialty').autocomplete( \t { \t source: ajax_url + '?action=specialty', \t autoFocus: true, \t //multiple: true, \t minLength: 3, \t search: function( event, ui ) { \t \$('#specialty').autocomplete("option", "source", ajax_url + '?action=specialty&sphere=' + \$('#sphere_id').val()); \t } \t });