예제 #1
0
    //echo date('t',mktime(0,0,0, intval($idMonth), 1, intval($idYear)));
    $date_from = $idYear . '-' . $idMonth . '-1';
    $date_to = $idYear . '-' . $idMonth . '-' . date('t', mktime(0, 0, 0, intval($idMonth), 1, intval($idYear)));
    $iMonth = $idMonth;
    $iYear = $idYear;
}
$iMaxDays = $iMax = $bYear ? 12 : date('t', mktime(0, 0, 0, $iMonth, 1, $iYear));
//Вычисление максимального количества дней\месяцев в текущем месяце\годе
if ($bYearAll) {
    $iMaxDays = $iMax = date('Y') - $iYear + 1;
}
$iFMperPX = !$bYear ? 30 : 30 * 30;
//масштаб
if (intval($iYear) >= 2011) {
    $users = new users();
    $users_ignore = $users->GetUsers("ignore_in_stats = 't'");
    if ($users_ignore) {
        foreach ($users_ignore as $row) {
            $ignored_uids[] = $row['uid'];
        }
        if (count($ignored_uids)) {
            $ignored_uids = implode(", ", $ignored_uids);
        }
    }
}
$op_codes_pro = array(1, 2, 3, 4, 5, 6, 15, 48, 49, 50, 51, 76, 131, 132);
/*
При добавлении новых полей и измнении их порядка необходимо обновить переменную $is_number_project соотвествующими значения
*/
$graphStyle[1]['op_codes'] = array(23);
$graphStyle[2]['op_codes'] = array(72, 88, 104);
예제 #2
0
                $user_update->is_team = 'f';
                $error = $user_update->Update($users->uid, $error);
                if ($error) {
                    $error_login = $error;
                }
            } else {
                if ($users->is_team == 'f') {
                    $error_login = "******" . $_POST['login'] . " нет в команде Free-lance.ru";
                } else {
                    $error_login = "******" . $_POST['login'] . " не существует";
                }
            }
            break;
    }
}
$users_team = $users->GetUsers("is_team = 't'", "login ASC");
?>
<style>
    table.team {
        background: black;
        cellpadding:1px;
    }
    .team thead tr {
        background: gray;
    }
    .team thead tr td {
        font-weight:bold;
        color:white;
        text-align:center;
    }
    .team tbody tr.env {
예제 #3
0
                $user_update->is_team = 'f';
                $error = $user_update->Update($users->uid, $error);
                if ($error) {
                    $error_login = $error;
                }
            } else {
                if ($users->is_team == 'f') {
                    $error_login = '******' . $_POST['login'] . ' нет в команде Free-lance.ru';
                } else {
                    $error_login = '******' . $_POST['login'] . ' не существует';
                }
            }
            break;
    }
}
$users_team = $users->GetUsers("is_team = 't'", 'login ASC');
?>
<style>
    table.team {
        background: black;
        cellpadding:1px;
    }
    .team thead tr {
        background: gray;
    }
    .team thead tr td {
        font-weight:bold;
        color:white;
        text-align:center;
    }
    .team tbody tr.env {
예제 #4
0
                $users->ignore_in_stats = 'f';
                $user_update = new users();
                $user_update->ignore_in_stats = 'f';
                $error = $user_update->Update($users->uid, $error);
                
                if($error) $error_login = $error;    
            } else {
                if($users->ignore_in_stats == 'f') {
                    $error_login = "******".$_POST['login']." нет в списке";
                } else {
                    $error_login = "******".$_POST['login']." не существует";
                }
            }
            
            break;    
    }
}

$users_team = $users->GetUsers("ignore_in_stats = 't'", "login ASC");


$css_file = array('moderation.css','new-admin.css','nav.css');
$content = "../content.php";
$inner_page = "inner_index.php";

$header = $rpath."header.php";
$footer = $rpath."footer.html";

include ($rpath."template.php");

ob_end_flush();
예제 #5
0
 /**
  * Получение списка пользователей
  * 
  * @param  array $aParams массив входящих данных
  * @return array $aResult ответ
  */
 protected function x____users_list($aParams = array())
 {
     $this->_validDevice($aParams);
     $aResult = array('users' => array());
     if (is_array($aParams['ids']) && $aParams['ids']) {
         require_once ABS_PATH . '/classes/users.php';
         array_map('intvalPgSql', $aParams['ids']);
         $oUsers = new users();
         $aUsers = $oUsers->GetUsers($GLOBALS['DB']->parse('uid IN (?l)', $aParams['ids']));
         if (is_array($aUsers) && $aUsers) {
             $aUids = array();
             $aLogins = array();
             $nCnt = 0;
             foreach ($aUsers as $aOne) {
                 $aResult['users'][$nCnt] = $this->_getUserData($aOne);
                 if (!is_emp($aOne['role'])) {
                     $aUids[$aOne['uid']] =& $aResult['users'][$nCnt];
                     $aLogins[] = $aOne['login'];
                 }
                 $nCnt++;
             }
             if (is_array($aLogins) && $aLogins) {
                 require_once ABS_PATH . '/classes/freelancer.php';
                 $aFree = freelancer::getFreelancerByLogin($aLogins);
                 if (is_array($aFree) && $aFree) {
                     foreach ($aFree as $aOne) {
                         $aUids[$aOne['uid']]['spec'] = $aOne['spec'];
                     }
                 }
             }
         }
     }
     return $aResult;
 }