<?php


// 2011-07-21: VOIP_CENNIK
$_SESSION['VOIP_CENNIK_COLUMN']['DESC_TO_LANG']['USLUGA']="Kierunek";
$_SESSION['VOIP_CENNIK_COLUMN']['DESC_TO_LANG']['DESCRIPTION']="Opis";
$_SESSION['VOIP_CENNIK_COLUMN']['DESC_TO_LANG']['PRICE_NETTO1']="Cena netto jednego impulsu w taryfie I";
$_SESSION['VOIP_CENNIK_COLUMN']['DESC_TO_LANG']['PRICE_BRUTTO1']="Cena brutto jednego impulsu w taryfie I";
$_SESSION['VOIP_CENNIK_COLUMN']['DESC_TO_LANG']['COUNTING_STEP1']="Naliczanie (ilosc sekund na impuls w taryfie I)";
$_SESSION['VOIP_CENNIK_COLUMN']['DESC_TO_LANG']['OPSTALA1']="Stala kwota, doliczana w taryfie I. Doliczana tylko gdy liczba impulsow rozliczanych w tej taryfie jest wieksza od zera";

// 2011-07-21: VOIP_MAP
$_SESSION['VOIP_MAP_COLUMN']['DESC_TO_LANG']['ID_USLUGI']="ID sprzedazy z VOIP_CENNIK";
$_SESSION['VOIP_MAP_COLUMN']['DESC_TO_LANG']['ID_ZAKUP']="ID zakupu z VOIP_CENNIK";
$_SESSION['VOIP_MAP_COLUMN']['DESC_TO_LANG']['KEY_OUT']="kierunek sprzedazy z VOIP_CENNIK";
$_SESSION['VOIP_MAP_COLUMN']['DESC_TO_LANG']['ID_PROVIDER']="ID dostawcy";
$_SESSION['VOIP_MAP_COLUMN']['DESC_TO_LANG']['PROJECT_ID_IN']="ID projektu powiazanego z dostawca";
$_SESSION['VOIP_MAP_COLUMN']['DESC_TO_LANG']['KEY_IN']="Nazwa polaczenia w systemie dostawcy";

// 2011-08-01: VOIP_PROMO
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['VOIP_CENNIK_ID']="ID kierunku z cennika voip";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['OFFERS_ID']="ID oferty gdzie P_SERVICE=TEL";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['P_PROMOTION_INFO']="opis";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['DNI']="Dni w jakich dana promocja jest aktywna";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['USE_PRICE']="Uzyj podanych cen - pola PRICE, STALA";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['PRICE_NETTO']="Cena netto jednego impulsu";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['PRICE_BRUTTO']="Cena brutto jednego impulsu";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['STALA_NETTO']="Stala kwota netto - oplata za rozpoczecie polaczenia";
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['STALA_BRUTTO']="Stala kwota brutto - oplata za rozpoczecie polaczenia";
for ($i = 0; $i < 24; $i++) {
	$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['H'.$i] = "Aktywny w godzinach od ".$i." do ".($i+1);
}
$_SESSION['VOIP_PROMO_COLUMN']['DESC_TO_LANG']['VOIP_FREE_TIME_ID'] = "Darmowe minuty - ID z tabeli VOIP_FREE_TIME";

$_SESSION['VOIP_FREE_TIME_COLUMN']['DESC_TO_LANG']['OFFERS_ID'] = "ID z OFFERS";
$_SESSION['VOIP_FREE_TIME_COLUMN']['DESC_TO_LANG']['DARMOWE_MINUTY'] = "Darmowe minuty (sek)";
$_SESSION['VOIP_FREE_TIME_COLUMN']['DESC_TO_LANG']['P_PROMOTION_INFO'] = "Opis";


if($_SESSION['ADM_ADMIN_LEVEL']<=5) {

// 2011-07-21: VOIP_CENNIK
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";

$_SESSION['VOIP_CENNIK_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_CENNIK_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";

// 2011-07-21: VOIP_MAP
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";

$_SESSION['VOIP_MAP_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_MAP_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";

// 2011-08-01: VOIP_PROMO
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";

$_SESSION['VOIP_PROMO_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_PROMO_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";

// 2011-08-03: VOIP_FREE_TIME
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";

$_SESSION['VOIP_FREE_TIME_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_FREE_TIME_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";

}


if(($_SESSION['ADM_ADMIN_LEVEL']==0) || ($_SESSION['ADM_ADMIN_LEVEL']==1)) {

// 2011-07-21: VOIP_CENNIK
$_SESSION['VOIP_CENNIK_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_CENNIK_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['VOIP_CENNIK_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
// 2011-07-21: VOIP_MAP
$_SESSION['VOIP_MAP_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_MAP_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['VOIP_MAP_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
// 2011-08-01: VOIP_PROMO
$_SESSION['VOIP_PROMO_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_PROMO_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['VOIP_PROMO_COLUMN']['PERMEDIT']['A_STATUS']="RWX";

// 2011-08-01: VOIP_FREE_TIME
$_SESSION['VOIP_FREE_TIME_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['VOIP_FREE_TIME_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['VOIP_FREE_TIME_COLUMN']['PERMEDIT']['A_STATUS']="RWX";

}
