Example #1
0
     $tpl->echo = FALSE;
     $PHP_SELF = $config['http_home_url'] . "admin.php?mod=job&action=cities&subaction=";
     $result = $tpl->OTable(array(), 'style="margin-left:30px;width:95%" id="city_' . $id . '"');
     foreach ($job->GetCities($id) as $id => $name) {
         $result .= $tpl->row(array('width="30px" align="center"' => "", $id, $name, "[<a href=\"{$PHP_SELF}edit&type=city&id={$id}\">{$job->lang['action_edit']}</a>][<a OnClick=\"if (confirm('{$job->lang['del_confirm_city']}'))return true; else return false;\" href=\"{$PHP_SELF}del&type=city&id={$id}\">{$job->lang['action_del']}</a>]"), false, false, "id=\"{$id}\"");
     }
     $result .= $tpl->CTable();
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $result;
     break;
 case "GetSpecialtiesEdit":
     require ENGINE_DIR . "/Core_modules/TemplateAdmin.php";
     $tpl = new TemplateAdmin();
     $tpl->echo = FALSE;
     $PHP_SELF = $config['http_home_url'] . "admin.php?mod=job&action=specialties&subaction=";
     $result = $tpl->OTable(array(), 'style="margin-left:30px;width:95%" id="specialty_' . $id . '"');
     foreach ($job->GetSpecialties($id) as $id => $name) {
         $result .= $tpl->row(array('width="30px" align="center"' => "", $id, $name, "[<a href=\"{$PHP_SELF}edit&type=specialty&id={$id}\">{$job->lang['action_edit']}</a>][<a OnClick=\"if (confirm('{$job->lang['del_confirm_specialty']}'))return true; else return false;\" href=\"{$PHP_SELF}del&type=specialty&id={$id}\">{$job->lang['action_del']}</a>]"), false, false, "id=\"{$id}\"");
     }
     $result .= $tpl->CTable();
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $result;
     break;
 case "DelImage":
     $job_id = empty($_REQUEST['auto_id']) ? 0 : $_REQUEST['auto_id'];
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $job->DelPhoto($job_id, $id);
     break;
 case "CheckLogin":
     require ENGINE_DIR . "/job/ajax_registration.php";
     break;
Example #2
0
            					$jobs[] = $row['id'];
            				}
            				foreach ($jobs as $id)
            				{
            					$count = $dbase->SelectOne('auto_images', array("count" => "COUNT(*)"), array('auto_id' => $id));
            					$dbase->Update('auto_autos', array('photo_count' => $count['count']), array('id' => $id));
            				}
            				$tpl->msg($job->lang['rebuildcounter'], $job->lang['rebuildcounter_ok'], true);
            				break;*/
            default:
                $stats = $job->Stats();
                $tpl->header($job->lang['stats'], true);
                $tpl->OpenTable();
                $tpl->OpenSubtable($job->lang['stats']);
                $tpl->stats(array($job->lang['vacancy_all'] => $stats['vacancy_all'], $job->lang['vacancy_today'] => $stats['vacancy_today'], $job->lang['vacancy_on_site'] => $stats['vacancy_on_site'], $job->lang['vacancy_no_noder'] => $stats['vacancy_no_noder'], $job->lang['vacancy_no_noder'] => $stats['vacancy_no_noder'], $job->lang['vacancy_max'] => $stats['vacancy_max'], $job->lang['resume_all'] => $stats['resume_all'], $job->lang['resume_today'] => $stats['resume_today'], $job->lang['resume_on_site'] => $stats['resume_on_site'], $job->lang['resume_no_moder'] => $stats['resume_no_moder'], $job->lang['resume_max'] => $stats['resume_max'], $job->lang['company_all'] => $stats['company_all'], $job->lang['company_today'] => $stats['company_today'], $tpl->line => $tpl->line, "Версия используемого модуля" => VERSION, "Модуль зарегистрирован на" => "<b><a href=\"http://www." . LIC_DOMAIN . "\" >" . LIC_DOMAIN . "<a/></b>", "Страничка поддержки модуля" => "<a href=\"http://www.kaliostro.net/\" ><b><font color=\"green\" >www.kaliostro.net</font><b></a>"));
                $tpl->OTable();
                $tpl->OpenForm('', $hidden_array + array('action' => 'clearcache'));
                $tpl->echo = FALSE;
                echo $tpl->row(array($tpl->InputSubmit($job->lang['clearcache']) . $tpl->CloseForm(), $tpl->OpenForm('', $hidden_array + array('action' => 'cron')) . $tpl->InputSubmit($job->lang['action_cron_btn']) . $tpl->CloseForm()), false);
                $tpl->echo = TRUE;
                $tpl->CTable();
                $tpl->CloseSubtable();
                $tpl->CloseTable();
        }
    } catch (Exception $e) {
        $tpl->msg($job->lang['error'], $e->getMessage(), $MAIN_URL);
    }
    $tpl->footer(true, 2007);
} catch (Exception $e) {
    echoheader();
    msg('error', 'Error', $e->getMessage());