<?php

if (!$_in_setup) {
    header("HTTP/1.0 403 Forbidden");
    exit;
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$prfs = new professions();
$profs = $prfs->GetAllProfessionsSpec($user->uid);
$main_spec = null;
foreach ($profs as $p) {
    if ($p['checked']) {
        $main_spec = $p['id'];
    }
}
$specs_add = array();
if (is_pro()) {
    $specs_add = $prfs->GetProfsAddSpec($uid);
}
$mirr_specs = array();
$all_checked = $specs_add;
if (count($all_checked)) {
    $mirr_specs = $prfs->GetMirroredProfs(implode(",", $all_checked));
    if (count($mirr_specs)) {
        $mirr_specs = array_diff($mirr_specs, $all_checked);
    }
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.common.php";
$xajax->printJavascript('/xajax/');
?>
<div class="b-layout b-layout_padtop_20">
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$prfs = new professions();
$profs = $prfs->GetAllProfessionsSpec(0);
?>


<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td align="left"><strong>Статистика</strong></td>
	<td align="right"><a href="/siteadmin/stats/index.php">Таблица</a></td>
</tr>
</table>


<br><br>

<script>
function getspec(RXGroup) {
     var radioRXGroup = document.getElementsByName(RXGroup);
     for (var RowR = 0; RowR < radioRXGroup.length; RowR++)
     {
        if(radioRXGroup[RowR].checked)
        {
           return radioRXGroup[RowR].value;
           break;
        }
     }
}
</script>