<?php


function USERS_FIELDS_PROFILE_INIT() {


global $result,$A_STATUS_L2_SQL,$A_STATUS_L2_SQL_L1;
		

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


//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ID']="R";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_STATUS']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_ACCOUNT']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_PASSWD']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_ADMIN_LEVEL']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_ADMIN_DESC']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_NAME']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_TECH_WORKER']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_COMPANY']="RWX";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['INICJALY_HANDLOWCA']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_PHONE']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_PESEL']="RWXC";
//$_SESSION['ADMIN2_COLUMN']['PERMEDIT']['ADM_OTHER_INFO']="RWXC";

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

}


//$_SESSION['ADMIN2_COLUMN']['DESC_TO_LANG']['ADM_OTHER_INFO']="Adres email pracownika";


$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['DESC_TO_LANG']['P_OFFER_COSTS']="Wyliczony koszt oferty jednorazowy oraz miesieczny oraz laczny miesieczny dla zalozenia na podany OKRES_UMOWY";



$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['ID']="Numer rekordu w bazie";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['P_ID']="Numer projektu powiazanego/nadrzednego - pod wzgledem przynaleznosci hierarchicznej/dzialu/fizycznej. Pierwsze P_ID = sciezka kosztu, po spacji = kto odpowiada. Jezeli jedno PID, to oba znaczenia ma jedno P_ID. ";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['ID_PROJECT']="Numer projektu (inwestycji), ktory ma zostac obciazony kosztami TODO - do wywalenia - 2011-10-01";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_DATE']="Data biezacego/nastepnego spotkania YYYY-MM-DD-gg-mm";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_USER']="Umowiony pracownik lub kierownik dzialu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_PERIOD']="Dlugosc biezacego/nastepnego spotkania w minutach";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_INFO']="Informacje o spotkaniu - jak umowiono, jak odwolano itp";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_TYPE']="Typ spotkania - ARRANGED=UMOWIONE";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['A_PROBLEM']="Typ problemu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['A_STATUS']="Status rekordu NORMAL=dziala, WAITING=oczekuje, OFF_SOFT=wstrzumany, OFF_HARD=zakonczony , DELETED=skasowany";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['A_STATUS_INFO']="Opis statusu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['A_ADM_COMPANY']="Prefix dzialu i osoba odpowiedzialna np BOK.jw lub TA, MK, AD ";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_DATE']="Data planowanej dystrybucji/Druku/Projektu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_ORDER_DATE']="Data zlecenia projektu/dystrybucji/druku";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_DEALNUM']="Numer umowy na dystrybucje/druk/projekt lub IdKlienta-IdUslugi";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_TERM_OF_CLAIM']="Termin finalnego dostarczenia dokumentow/materialow do dystrybucji/zakonczenia projektu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_CLAIM_DATE']="Data przekazania finalnych materialow do dystrybucji/druku/projektu (brak oznacza koniecznosc dostarczenia)";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_TYPE']="Typ projektu/dystrybucji informacji";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_REVITALIZE_PROCESS_NUMBER']="Numer procesu rewitalizacji/kontroli/zalatwiania sprawy wg opisu z systemu procesy3.php ";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_DESC']="Opis typu dystrybucji informacji/parametry";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_DESC_HTML']="Opis HTML";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DISTRIBUTOR']="Firma/Dystrybutor/Narzedzie jakie bedzie wykorzystane do dystrybucji/gdzie sie zleca dystrybucje";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_FORMAT']="Format dystrybucji w przypadku druku np. w czasopismie (np A4, 1/3A4 itp)";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_ORIENT']="Orientacja dystrybucji w przypadku druku";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_SIZES']="Rozmiar reklamy , w przypadku druku";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_INDEXES']="Jakie budynki sa przedmiotem projektu (wymien po przecinku skrotami)";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_GROUPS']="Dodatkowy parametr co jest przedmiotem projektu (jakie uslugi, np. Internet, VOIP,TV, - dla marketing)";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_COST_NEGOTIATED']="Wysokosc uzgodnionego kosztu danej dystrybucji/projektu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_INVENTOR']="Kto spowodowal dana dystrybucje/kto wymyslil ta forme dzialania/to konkretnie dzialanie";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_ACCEPTED']="Data zaakceptowania tej dystrybucji/projektu";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_INVOICE_NUM']="Data faktury,Numer faktury(Nr), Pozycja na fakturze(x), za dystrybucje YYYY-MM-DD/Nr/x";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_INVOICE_IN_KSIEG']="Data przekazania opisanej ostatniej faktury do dzialu Ksiegowosci";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_GOODS_AS_DEAL']="Potwierdzenie zgodnosci uslugi dystrybucji zgodnej ze zleceniem oraz kosztami tej konkretnej pozycji";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['M_DIST_DOCUMENTED_COST']="M_DIST_DOCUMENTED_COST koszt projektu wg dokumentow faktur";

$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_NAZWA_NARZEDZIA']="MZ_NAZWA_NARZEDZIA Nazwa zwyczajowa narzedzia - plakat, stojak itp - typ narzedzia opisowy";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_LOKALIZACJA']="MZ_LOKALIZACJA Miejsce lokalizacji w zapisie REWIR + lokalizacja dokladna";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_OPIS_DESC']="MZ_OPIS_DESC Opis zawartosci oraz jakie czynnosci nalezy wykonac celem skutecznej rewitalizacji narzedzia";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_DATA_AKTUALIZACJI']="MZ_DATA_AKTUALIZACJI - Data ostatniej rewitalizacji - stwierdzenia aktualnosci zasobu oraz faktu, ze zasob funkjonuje w 100% - nie jest brudny, zepsuty, przepalony, zniszczony itp";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_TERMIN_WAZNOSCI']="MZ_TERMIN_WAZNOSCI - Data nastepnej koniecznosci stwierdzenia aktualnosci zasobu - nie pozniej niz 3 miesiace od MZ_DATA_AKTUALIZACJI";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_ZAWARTOS']="MZ_ZAWARTOS - typ zawartosci - jakie ogolne zasob przedstawia informacje";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['MZ_ZAWARTOS_DES']="MZ_ZAWARTOS_DES - - Zawartosc zasobu - link, opis co sie znajduje na zasobie, z czego go odtworzyc itp";

$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['TV_LANGUAGE']="TV_LANGUAGE język w jakim nadawany jest program telewizyjny";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['TV_PROGRAM_PROFILE']="TV_PROGRAM_PROFILE jaka jest tematyka danego kanału";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['TV_SIGAL_DELIVERY']="TV_SIGAL_DELIVERY w jaki sposób jest dany kanał telewizyjny dostarczany na sieci";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['TV_ANALOG_FREQUENCY']="TV_ANALOG_FREQUENCY na jakiej częstotliwości jest dostarczany do sieci abonenckiej ten kanał";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['DESC_TO_LANG']['TV_DVBC_EPG_CHANNEL_NUMBER']="TV_DVBC_EPG_CHANNEL_NUMBER w przypadku telewizji cyfrowej, na jakim kanale EPG występuje ten kanał ";




$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['P_ZADLUZENIE_KWOTA']="P_ZADLUZENIE_KWOTA Tu wpisz kwote jaka klient jest dluzny na dzien wpisany w polu P_ZADLUZENIE_DATA";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['P_ZADLUZENIE_STATUS']="P_ZADLUZENIE_STATUS Biezacy status windykacji kwoty ktorej dotyczy dany wpis";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['P_ZADLUZENIE_STATUS_OPIS']="P_ZADLUZENIE_STATUS_OPIS Opis pola P_ZADLUZENIE_STATUS (nie konieczny)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['ID_BILLING_USERS']="ID_BILLING_USERS Numer Billingowy platnika / Numer klienta (KONIECZNY DO WPISANIA)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['P_ZADLUZENIE_DATA']="P_ZADLUZENIE_DATA Tutaj wpisz date, ktora oznacza ze wielkosc zadluzenia P_ZADLUZENIE_KWOTA jest wazna na ten dzien ktory tutaj nalezy wpisac";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE Data uzgodnionego kontaktu z klientem badz wplaty przez klienta lub inna data, po ktorej trzeba powrocic do zajmowania sie rekordem";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_USER']="L_APPOITMENT_USER Osoba ktora jest odpowiedzialna za windykacje - kto prowadzi dany rekord, wpisz kierownika, jezeli chcesz przekazac sprawe wyzej";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD Okreslenie dlugosci czasu spotkania (z reguly wpisuj 30 - co oznacza 30 minut)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_INFO']="L_APPOITMENT_INFO Informacje opisujace jakie dzialanie zostalo uzgodnionem, ktore powinno byc podjete po lub do czasu L_APPOITMENT_DATE";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_TYPE']="L_APPOITMENT_TYPE Typ uzgodnienia : ARRANGED = Uzgodniono termin, TO_ARRANGE = Do uzgodnienia termin, RELATE = Zalezne";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['A_PROBLEM']="A_PROBLEM Problem na rekordzie - Typ problemu";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['A_PROBLEM_DESC']="A_PROBLEM_DESC Opis problemu - koniecznosci wykonania zadania na rekordzie";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['A_PROBLEM_DATE']="A_PROBLEM_DATE Data problemu";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['P_NAME_R']="Imie i nazwisko abonenta wg bazy Bilingowej";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['P_ADDRESS_R']="Adres abonenta wg bazy Bilingowej";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['DESC_TO_LANG']['ID_DZIENNIK_KORESP']="ID_DZIENNIK_KORESP Numer Dziennika Korespondencji Tabela KORESP/SE dotyczacy sprawy danego Abonenta";


$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['INICJALY_HANDLOWCA']="INICJALY_HANDLOWCA Inicjaly handlowca i Jak klient do nas trafil (U-ulotka,R-plakat),L-List_intencyjny,Z-rywka-plakat)np DM/U";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['RODZAJ_DZIALANIA_HANDLOWEGO']="RODZAJ_DZIALANIA_HANDLOWEGO Rodzaj dzialania w wyniku ktorego doszlo do podpisania niniejszej umowy/aneksu";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_SERVICE']="P_SERVICE Wybierz jakiego rodzaju uslugi dotyczy wpisywany rekord";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS']="Ilosc jednostek platnych na rekordzie";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_VALUE']="Wartosc wykonanych prac";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_TYPE']="Tym wykonanych prac";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_USER']="Wykonawca prac";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_DATE']="Data wykonanych prac";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['ID_BILLING_USERS_OLD']="ID_BILLING_USERS_OLD Poprzedni numer klienta wg bazy L1/L2 (numer billingowy)";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['ID_BILLING_USERS_NEW']="ID_BILLING_USERS_NEW Nowy numer klienta wg bazy L1/L2 (numer billingowy)";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['DATA_DOK']="DATA_DOK Data Oryginalu Dokumentu/Umowy - Data Pisma";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['ID_SERVICES_OLD']="ID_SERVICES_OLD Poprzedni numer uslugi wg bazy l1/l2 (numer ID_SERVICES)";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['ID_SERVICES_NEW']="ID_SERVICES_NEW Nowy numer uslugi wg bazy l1/l2 (numer ID_SERVICES)";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_SERVICE_COMPANY']="P_SERVICE_COMPANY Firma swiadczaca usluge";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_SERVICE_NAME']="P_SERVICE_NAME Nazwa zwyczajna uslugi ktorej dotyczy rekord";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_OFFER_ID_OLD']="P_OFFER_ID_OLD Numer oferty/uslugi poprzedniej uslugi";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_OFFER_ID_NEW']="P_OFFER_ID_NEW Numer oferty/uslugi aktualnie podpisywanej uslugi";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_DEAL_DATE_NEW']="P_DEAL_DATE_NEW Aktualna data umowy / nowej umowy/ aneksu";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_DEAL_DATE_OLD']="P_DEAL_DATE_OLD Data ostatniego dokumentu/aneksu wg ktorego jest dokonywany wpis";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_DEALNUMBER_OLD']="P_DEALNUMBER_OLD Numer umowy ostatnio obowiazujacej";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_DEALNUMBER_NEW']="P_DEALNUMBER_NEW Numer umowy aktualnie obowiazujacej";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_DEALTERM_OLD']="P_DEALTERM_OLD Termin w RRRR-MM-DD do ktorego byla wazna ostatnia umowa";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['P_DEALTERM_NEW']="P_DEALTERM_NEW Nowy termin w formacie RRRR-MM-DD do ktorego jest wazny aktualny rekord";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['MONTH_COST_OLD']="MONTH_COST_OLD Poprzednia wartosc miesieczna kompletu uslug ktore opisywala umowa/aneks";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['MONTH_COST_NEW']="MONTH_COST_NEW Aktualna wartosc miesieczna kompletu uslug, ktore opisuje dana umowa/aneks";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['S_ADDRESS_STREET']="S_ADDRESS_STREET Ulica na ktorej swiadczona jest usluga";
$_SESSION['USERS2_DEALS_COLUMN']['DESC_TO_LANG']['S_OTHER_INFO']="S_OTHER_INFO Dodatkowe informacje do rejestru rozmow";


$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['DESC_TO_LANG']['K_DATA_OTRZYM_KORESP']="Data odbioru/wysylki korespondencji (KURIER/POCZTA)";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['DESC_TO_LANG']['K_DATA_OTRZYMANEJ_KORESP']="Data dokumentu w przesylce ";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['DESC_TO_LANG']['K_POKWITOWANIE_ODBIORU']="Osoba odbierajaca zawartosc loguje sie na SE swoim loginem i wpisuje tutaj slowo WZIALEM... po co i dla czego... ";


$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['S_ALIAS']="Skrotowa nazwa oferty/promocji, rekordy z tym samym S_ALIAS nalezy traktowac jako sprzedawane w pakiecie.";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['S_OTHER_INFO']="Notatki i uwagi do rejestrowania w systemie";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_SERVICE']="Jakiego rodzaju uslugi dotyczy rekord Internet, Telewizja , Telefon ...";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_SERVICE_COMPANY']="Firma jaka swiadczy usluge";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_SERVICE_NAME']="Nazwa uslugi wg oferty operatora";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_PROMOTION_NAME']="Nazwa promocji";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_S_PARAM1']="Pierwszy parametr oferty - Download";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_S_PARAM2']="Drugi parametr oferty - Upload (lub opisowo)";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_S_LIMIT']="Limit transferu dla uslugi Internet w Gigabajtach";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_S_LAN']="Opcja sieci LAN dla uslugi internet.";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_DEALTERM_MONTHS']="Ilosc miesiecy na jaka jest umowa na dana usluge";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_SERVICE_PARENT']="Pod jakim typem uslugi dana usluga moze byc swiadczona, jezeli pusto, to moze wystepowac samodzielnie";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_DEAL_PROMO_MONTHS']="Ilosc promocyjnych miesiecy (darmowych lub super-tanich)";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_INSTALL_QUOTE']="Oplata instalacyjna";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_CONTRACT_PRICE']="Calkowity koszt  abonamentow podzielona przez okres trwania umowy.";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_PROMO_MONTH_PRICE']="Oplata jaka uiszcza sie w czasie promocyjnych miesiecy";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_NORMAL_PRICE']="Oplata normalna, po okresie promocyjnych miesiecy/okresie umowy";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_S_MAILBOX_SIZE']="Wielkosc konta pocztowego w Megabajtach (0=brak konta)";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_S_WWW_SIZE']="Wielkosc konta na wlasna strone WWW w Megabajtach (0=brak konta)";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['P_OFFER_TERM']="Termin obowiazywania oferty w YYYY-MM-DD";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['BAD_DATE']="Data ostatniego badania/weryfikacji aktualnosci danego rekordu";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['BAD_ZAINT']="Zainteresowanie / popularnosc danej oferty - szacowana";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['M_REWIR']="Rewir na jakim jest stosowana oferta wg podzialu terytorialnego : Uwaga tam gdzie jest badane zaint na tv w rewirze nalezy dodac .?TV W przypadku kiedy TV nalezy sprzedawac ze szczegolna uwaga nalezy dodac .TV! , jezeli internet jest dostepny z predkoscia do 2 Mbit max - to nalezy dodac .SPDX  jezeli 4 Mbit .SPDXX , jezeli 8 Mbit to .SPDXXX (liczba X to potega liczby 2) . Nie nalezy w rewirach uzywac tych ciagow znakow (.TV oraz SPDX w nazwach rewirow ). Przyklad rewiru to GD.CH.F.B39.?TV.SPDXXX  ";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['S_DEKODER_SD_OPTION']="Zaznaczamy TAK lub NIE - dla dzierzawy tego urzadzenia";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['S_MODUL_PCMCIA_OPTION']="Zaznaczamy TAK lub NIE - dla dzierzawy tego urzadzenia";
$_SESSION['USERS2_OFFERS_COLUMN']['DESC_TO_LANG']['S_DEKODER_HD_OPTION']="Zaznaczamy TAK lub NIE - dla dzierzawy tego urzadzenia";

// 2011-07-06: USERS2_OFFERS_GROUPS_COLUMN
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['S_ALIAS']="Skrotowa nazwa oferty/promocji, rekordy z tym samym S_ALIAS nalezy traktowac jako sprzedawane w pakiecie.";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['P_SERVICE_COMPANY']="Firma jaka swiadczy usluge";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['P_PROMOTION_NAME']="Nazwa promocji";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['P_DEALTERM_MONTHS']="Ilosc miesiecy na jaka jest umowa na dana usluge";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['M_REWIR']="Rewir na jakim jest stosowana oferta wg podzialu terytorialnego : Uwaga tam gdzie jest badane zaint na tv w rewirze nalezy dodac .?TV W przypadku kiedy TV nalezy sprzedawac ze szczegolna uwaga nalezy dodac .TV! , jezeli internet jest dostepny z predkoscia do 2 Mbit max - to nalezy dodac .SPDX  jezeli 4 Mbit .SPDXX , jezeli 8 Mbit to .SPDXXX (liczba X to potega liczby 2) . Nie nalezy w rewirach uzywac tych ciagow znakow (.TV oraz SPDX w nazwach rewirow ). Przyklad rewiru to GD.CH.F.B39.?TV.SPDXXX  ";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['ID_NET']="ID oferty z OFFERS gdzie P_SERVICE=NET, lub 0";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['ID_TEL']="ID oferty z OFFERS gdzie P_SERVICE=TEL, lub 0 (cennik voip VOIP_PROMO.OFFERS_ID)";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['ID_TV']="ID oferty z OFFERS gdzie P_SERVICE=TV, lub 0";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['ID_TVC']="ID oferty z OFFERS gdzie P_SERVICE=TVC, lub 0";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['DESC_TO_LANG']['ID_TVCP']="ID oferty z OFFERS gdzie P_SERVICE=TVCP, lub 0";

$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['DATA_DOK']="Data oryginalu dokumentu lub data przewidywalnego wplywu dla Symulacji";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['NUMER_DOK']="Numer dokumentu  lub nazwa kosztorysu, numer arkusza oraz numer pozycji kosztorysu lub tytulu. Mozesz wpisac tutaj takze uwagi. np Numer umowy na wykonastwo, date umowy i jej termin";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['SPRZEDAWCA']="Nazwa sprzedawcy lub dostawcy, jezeli nie wystepuje w istniejacym katalogu sprzedawcow/dostawcow";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['ID_SPRZEDAWCA']="Wybierz sprzedawce/ dostawce/odbiorce z sugerowanej listy";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['KONTO_KSIEG']="Wpisz numer konta ksiegowego na ktore ma zostac zaksiegowana faktura";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['ID_KONTO_KSIEG']="Wybierz numer konta z listy kont";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['NR_POZ']="Wpisz numer pozycji na fakturze, ktorej dotyczy wpis";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['NR_POZ_OPIS']="Opisz czego dotyczy ta na pozycja fakturze, ktorej dotyczy wpis (np dlugopisy reklamowe, albo zakres projektu itp)";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['ILOSC']="Wpisz ilosc wystepowania danej pozycji dla danego konta";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['CENA_JEDN_NETTO']="Cena jednostkowa netto, bez vat!";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['STAWKA_VAT']="Wybierz stawke VAT";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['CZY_URZADZENIE']="Czy wybrana pozycja jest urzadzeniem i ma zostac wprowadzona do systemu jako DEVICE?";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['TYP_DOKUMENTU']="Czy dokument jest fizycznie wystawiony, czy jest to proforma lub kosztorys lub symulacja ?";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['ID_PROJECT']="Wybierz projekt ktorego dotyczy faktura";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['BUDZET']="Podaj oznaczcenie budzetu, z ktorego jest dana pozycja pokrywana ";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['NAZWA_PLIKU_SKAN']="NAZWA_PLIKU_SKAN Nazwa pliku na serwerze sieciowym";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['DATA_KSIEGOWANIA']="Data zaksiegowania dokumentu";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['NUKER_DOK_ZAKSIEG']="Numer zaksiegowanego dokumentu";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['DESC_TO_LANG']['POWTARZALNOSC']="Co ile miecy dokument sie powtarza w ten sam sposob? np. 0 - koszt jednorazowy, 1 - koszt co miesieczny, 12 - oplata roczna";


$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['ID']="Numer rekordu w bazie";

$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['TAB_UPDATE_STAT']="Wymuszenie aktualizacji rekordu z poziomu 2";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_RECORD_UPDATE_DATE']="Data aktualizacji rekordu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_RECORD_UPDATE_AUTHOR']="Autor aktualizacji rekordu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_RECORD_CREATE_DATE']="Data utworzenia rekordu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_RECORD_CREATE_AUTHOR']="Autor utworzenia rekordu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_PROBLEM']="Klasyfikacja typu problemu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_PROBLEM_DESC']="Opis biezacego/ostatniego problemu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_PROBLEM_DATE']="Data biezacego/ostatniego problemu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_STATUS']="Zadany Status administracyjny (od 2012-10 lokalny=techniczny) ";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_STATUS_CURRENT']="Obecny status wg poziomu L2 ( od 2012-10) ";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_STATUS_LASTCHANGE_DATE']="Data ostatniego zmianu statusu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_STATUS_INFO']="Opis stanu administracyjnego";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_IP']="Numer IP uzytkownika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_HW']="Numer adresu karty sieciowej";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_HWSTAT']="Tryb pracy karty sieciowej";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_DOMAIN']="Domena komputera";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_VIP_LEVEL']="Poziom VIP";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['N_AVG_TRAFFIC']="Raporty aktywnosci uzytkownika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_NETWORK_SERVER']="Serwer sieciowy";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_TOPOLOGY_PLACE']="Lokalizacja topologiczna";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_TELBOX_ADDRESS']="Adres szafki TELBOX";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_TELBOX_PORT']="Port szafki/urzadzenia/inne";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS']="Ilosc prac wykonanych na uzytkowniku";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_PENALTIES']="Ilosc przewinien uzytkownika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WHO_CONNECTED']="Kto podlaczyl";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WHEN_CONNECTED']="Kiedy podlaczony";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_CABLE_LENGTH']="Dlugosc kabla";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['O_DEAL_DATE']="Kaspersky - data przekazania kodu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['O_CARD_NR']="Kaspersky - nr seryjny (lub inny) kodu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_SERVICE_QUOTA_PROFILE']="Profile przydzialu pasma";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_VALUE']="Wartosc wykonanych prac";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_USER']="Wykonawca prac";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_PENALTIES_VALUE']="Wartosc przewinien";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_DATE']="Data biezacego/ostatniego spotkania";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_USER']="Biezacy/ostatni umowiony pracownik";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_PERIOD']="Dlugosc biezacego/ostatniego spotkania";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_INFO']="Informacje o biezacym/ostatnim spotkaniu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_TYPE']="Typ biezacego spotkania";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_NAME']="Nazwisko oraz Imie abonenta/nazwa firmy";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_SERVICE']="Rodzaj uslugi";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_SERVICE_QUOTA']="Podstawowa predkosc lacza Internet";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_HOST']="Nazwa komputera (HOSTNAME)";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_ACCOUNT']="Nazwa uzytkownika dla konta poczty (ACCOUNT)";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_ALIAS']="Adres przychodzacy dla poczty internetowej (ALIAS)";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_ADDRESS_STREET']="Skrot adresu (dla techniki) format: UL/DOM";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_PHONE']="Numer telefonu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_FAX']="Numer faxu";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_CONTACT_PERSON']="Osoba kontaktowa / skrot techniczny uzytkownika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_OTHER_INFO']="Inne informacje o platniku";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_ADM_COMPANY']="Prefix firmy obslugujacej umowe n.p. NSM, NSM-PRT, NSM-TOPMIX, NSM-ABI";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_NIP']="Numer NIP";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_PESEL']="Numer PESEL";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_OTHER_DOC']="Inny dokument tozsamosci Typ i Numer";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ADDRESS_CITY']="Miasto platnika n.p. GDANSK";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ADDRESS_POST_CODE']="Kod pocztowy platnika n.p. 80-809";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ADDRESS_POST_OFFICE']="Poczta platnika n.p. GDANSK";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ADDRESS_STREET']="Ulica platnika n.p. Cebertowicza";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ADDRESS_HOUSE']="Numer ulicy/domu/klatki/mieszkania n.p. 24a/14";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_DEAL_DATE']="Data umowy";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_DEALNUMBER']="Numer umowy/prefiks handlowca/rok n.p. 1450/03/PL";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_DEALEXPIRE']="Termin wygasniecia umowy w formacie RRRR-MM-DD";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_SERVICE_QUOTA']="Podstawowa predkosc lacza dla uslugi Internet w kbit n.p. 150";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_INSTALL_QUOTE']="Oplata instalacyjna";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_PERIOD_QUOTE']="Oplata okresowa/abonamentowa";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_PERIOD_MONTHS']="Abonament platny co ... miesiecy";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ACCOUNT']="Saldo poczatkowe uzytkownika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_ACCOUNT_LIMIT']="Maksymalna wysokosc debetu n.p. -100 lub 100";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_PASSWD']="Haslo uzytkownika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['S_OTHER_INFO']="Inne informacje o uzytkowniku/rejestr rozmow";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['A_ID_USERS2']="Identyfikator nadrzednej uslugi (n.p. dla zewn. IP):";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_BILLING_NO']="Numer bilingowy platnika";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['F_BILLED_TILL']="Usluga oplacona do dnia";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['F_BILLED_INVOICE_ID']="Identyfikator biezacej faktury";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_HANGUP_FROM']="Zawieszenie uslugi od:";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_HANGUP_TILL']="Zawieszenie uslugi do:";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['P_NAME_R']="Nazwisko abonenta wg bazy Bilingowej";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_TYPE']="Typ wykonywanych prac";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_DATE']="Data wykonywanych prac";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['LAN_DOWNLOAD']="Pelna przepustowosc dla wszystkich podsieci LAN";
$_SESSION['SES_USERS2_A_COLUMN']['DESC_TO_LANG']['CONN_DIV']="Podzial lacza";




$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TAB_UPDATE_STAT']="Wymuszenie aktualizacji rekordu z poziomu 2";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_RECORD_UPDATE_DATE']="Data aktualizacji rekordu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_RECORD_UPDATE_AUTHOR']="Autor aktualizacji rekordu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_RECORD_CREATE_DATE']="Data utworzenia rekordu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_RECORD_CREATE_AUTHOR']="Autor utworzenia rekordu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_PROBLEM']="Klasyfikacja typu problemu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_PROBLEM_DESC']="Opis biezacego/ostatniego problemu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_PROBLEM_DATE']="Data biezacego/ostatniego problemu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_STATUS']="Zadany Status administracyjny  ";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_STATUS_CURRENT']="Obecny status administracyjny wg poziomu 2";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_STATUS_LASTCHANGE_DATE']="Data ostatniego zmianu statusu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_STATUS_INFO']="Opis stanu administracyjnego";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_IP']="Numer IP uzytkownika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_HW']="Numer adresu karty sieciowej";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_HWSTAT']="Tryb pracy karty sieciowej";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_DOMAIN']="Domena komputera";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_VIP_LEVEL']="Poziom VIP";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['N_AVG_TRAFFIC']="Raporty aktywnosci uzytkownika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_NETWORK_SERVER']="Serwer sieciowy";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_TOPOLOGY_PLACE']="Lokalizacja topologiczna";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_TELBOX_ADDRESS']="Adres szafki TELBOX";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_TELBOX_PORT']="Port szafki/urzadzenia/inne";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS']="Ilosc prac wykonanych na uzytkowniku";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_PENALTIES']="Ilosc przewinien uzytkownika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WHO_CONNECTED']="Kto podlaczyl";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WHEN_CONNECTED']="Kiedy podlaczony";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_SERVICE_QUOTA_PROFILE']="Profile przydzialu pasma";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_VALUE']="Wartosc wykonanych prac";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_USER']="Wykonawca prac";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_PENALTIES_VALUE']="Wartosc przewinien";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_DATE']="Data biezacego/ostatniego spotkania";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_USER']="Biezacy/ostatni umowiony pracownik";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_PERIOD']="Dlugosc biezacego/ostatniego spotkania";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_INFO']="Informacje o biezacym/ostatnim spotkaniu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['L_APPOITMENT_TYPE']="Typ biezacego spotkania";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_NAME']="Nazwisko oraz Imie abonenta/nazwa firmy";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_SERVICE']="Rodzaj uslugi";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_SERVICE_QUOTA']="Podstawowa predkosc lacza Internet";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_HOST']="Nazwa komputera (HOSTNAME)";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_ACCOUNT']="Nazwa uzytkownika dla konta poczty (ACCOUNT)";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_ALIAS']="Adres przychodzacy dla poczty internetowej (ALIAS)";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_ADDRESS_STREET']="Skrot adresu (dla techniki) format: UL/DOM";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_PHONE']="Numer telefonu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_FAX']="Numer faxu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_CONTACT_PERSON']="Osoba kontaktowa / skrot techniczny uzytkownika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_OTHER_INFO']="Inne informacje o platniku";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_ADM_COMPANY']="Prefix firmy obslugujacej umowe n.p. NSM, NSM-PRT, NSM-TOPMIX, NSM-ABI";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_NIP']="Numer NIP";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_PESEL']="Numer PESEL";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_OTHER_DOC']="Inny dokument tozsamosci Typ i Numer";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ADDRESS_CITY']="Miasto platnika n.p. GDANSK";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ADDRESS_POST_CODE']="Kod pocztowy platnika n.p. 80-809";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ADDRESS_POST_OFFICE']="Poczta platnika n.p. GDANSK";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ADDRESS_STREET']="Ulica platnika n.p. Cebertowicza";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ADDRESS_HOUSE']="Numer ulicy/domu/klatki/mieszkania n.p. 24a/14";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_DEAL_DATE']="Data umowy";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_DEALNUMBER']="Numer umowy/prefiks handlowca/rok n.p. 1450/03/PL";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_DEALEXPIRE']="Termin wygasniecia umowy w formacie RRRR-MM-DD";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_SERVICE_QUOTA']="Podstawowa predkosc lacza dla uslugi Internet w kbit n.p. 150";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_INSTALL_QUOTE']="Oplata instalacyjna";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_PERIOD_QUOTE']="Oplata okresowa/abonamentowa";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_PERIOD_MONTHS']="Abonament platny co ... miesiecy";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ACCOUNT']="Saldo poczatkowe uzytkownika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_ACCOUNT_LIMIT']="Maksymalna wysokosc debetu n.p. -100 lub 100";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_PASSWD']="Haslo uzytkownika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['S_OTHER_INFO']="Inne informacje o uzytkowniku/rejestr rozmow";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['A_ID_USERS2']="Identyfikator nadrzednej uslugi (n.p. dla zewn. IP):";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_BILLING_NO']="Numer bilingowy platnika";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['F_BILLED_TILL']="Usluga oplacona do dnia";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['F_BILLED_INVOICE_ID']="Identyfikator biezacej faktury";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_HANGUP_FROM']="Zawieszenie uslugi od:";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_HANGUP_TILL']="Zawieszenie uslugi do:";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['P_NAME_R']="Nazwisko abonenta wg bazy Bilingowej";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_TYPE']="Typ wykonywanych prac";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_DATE']="YYYY-MM-DD-HH-MM Data i godzina wykonywanych prac. !! KONIECZNIE NALEŻY UZUPEŁNIĆ GODZINĘ !!";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['INTERNET_STATUS']="Status biezacy uslugi USERS2";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['VOIP_STATUS']="Status biezacy uslugi VOIP";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TV_STATUS']="Status biezacy uslugi TV";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['I_BAD_DATE']="Data Badania pod katem Internet";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['I_OPER']="Biezacy Operator Internetu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['I_OPER_ZAD']="Zadowolenie z Biezacego Operatora Internetu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['I_OPER_FIN']="Data YYYY-MM-DD zakonczenia umowy z Biezacym Operatorem Internetu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['I_OPER_ZAINT']="Poziom Zainteresowania Innym niz Biezacy Operator Internetu";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_BAD_DATE']="Data Badania pod katem Telefonia";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_OPER']="Biezacy Operator Telefoniczny";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_OPER_ZAD']="Zadowolenie z Biezacego Operatora Telefonicznego";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_OPER_FIN']="Data YYYY-MM-DD zakonczenia umowy z Biezacym Operatorem Telefonicznym";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['T_OPER_ZAINT']="Poziom Zainteresowania Innym niz Biezacy Operator Telefoniczny";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TV_BAD_DATE']="Data Badania pod katem TeleWizji";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TV_OPER']="Biezacy Operator TeleWizyjny";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TV_OPER_ZAD']="Zadowolenie z Biezacego Operatora TeleWizyjnego";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TV_OPER_FIN']="Data YYYY-MM-DD zakonczenia umowy z Biezacym Operatorem TeleWizyjnym";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['TV_OPER_ZAINT']="Poziom Zainteresowania Innym niz Biezacy Operator TeleWizyjnym";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['M_REWIR']="Rewir na jakim jest stosowana oferta wg podzialu terytorialnego : Uwaga tam gdzie jest badane zaint na tv w rewirze nalezy dodac .?TV W przypadku kiedy TV nalezy sprzedawac ze szczegolna uwaga nalezy dodac .TV! , jezeli internet jest dostepny z predkoscia do 2 Mbit max - to nalezy dodac .SPDX  jezeli 4 Mbit .SPDXX , jezeli 8 Mbit to .SPDXXX (liczba X to potega liczby 2) . Nie nalezy w rewirach uzywac tych ciagow znakow (.TV oraz SPDX w nazwach rewirow ). Przyklad rewiru to GD.CH.F.B39.?TV.SPDXXX  ";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['BOK_ZAD']="Poziom zadowolenia z obslugi klienta BOK";
$_SESSION['USERS2_MARKETING_COLUMN']['DESC_TO_LANG']['BOK_BAD_DATE']="Data badania pod katem zadowolenie z BOK";


$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['A_ADM_COMPANY']="A_ADM_COMPANY Prefix firmy zarzadzajacej np. NSM-PRT";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['A_STATUS']="A_STATUS Stan administracyjny: MONITOR=Dzial_handlowy, WAITING=Dzial_inwestycji, NORMAL=Eksploatacja.";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['A_STATUS_INFO']="A_STATUS_INFO Opis obecnego stanu";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['S_ADMIN_NAME']="S_ADMIN_NAME Skrot/kod administratora zasobu";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADMIN_NAME']="P_ADMIN_NAME Skrot/kod wlasciciela zasobu";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADDRESS_CITY']="P_ADDRESS_CITY Miasto w³a¶ciciela zasobu";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADDRESS_POST_CODE']="P_ADDRESS_POST_CODE Kod poczty w³a¶ciciela";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADDRESS_POST_OFFICE']="P_ADDRESS_POST_OFFICE Poczta w³a¶ciciela";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADDRESS_STREET']="P_ADDRESS_STREET Ulica w³a¶ciciela";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADDRESS_HOUSE']="P_ADDRESS_HOUSE Nrdom w³a¶ciciela";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_DEAL_DATE']="P_DEAL_DATE Data umowy na wyk zasobow";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_DEALNUMBER']="P_DEALNUMBER Numer umowy na wyk zasobow";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_DEALEXPIRE']="P_DEALEXPIRE Umowa na wyk zasobow wygasa dnia";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_DEAL_DETAIL']="P_DEAL_DETAIL Podsumowanie umowy (warunki tech)";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_DEAL_LOCATION']="P_DEAL_LOCATION Fizyczna lokalizacja umowy w dokum.";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_OTHER_INFO']="P_OTHER_INFO Informacje o wlascicielu nieruchomosci";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['S_OTHER_INFO']="S_OTHER_INFO Informacje techniczne adm / rejestr rozmow";

$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['S_ADDRESS_STREET']="S_ADDRESS_STREET Skrot adresu nieruchomisci (unikalny) np. CI50";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_BUILDING_TYPE']="T_BUILDING_TYPE Typ budynku l.klatek/l.pieter/l.mieszk piwnica t/n";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_BUILDING_SAVE']="T_BUILDING_SAVE Zabezpieczenie budynku/ochrona/stroz/gospodarz kontakty/inf.";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_BUILDING_POWER']="T_BUILDING_POWER Zgoda/warunki korzystania z energii elektrycznej";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_INSTALACJA_W_CIAGU_DNI']="T_INSTALACJA_W_CIAGU_DNI Maksymalna ilosc dni, po ktorych instalacja bedzie wykonana od momentu wpisania zlecenia do bazy (USTALA TECHNIKA)";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_TYPE']="T_WORKPOINTS_TYPE Typ wykonywanych prac";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_DATE']="T_WORKPOINTS_DATE Data wykonywanych prac";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['T_WORKPOINTS_USER']="T_WORKPOINTS_USER Wykonawca prac";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['ID_PROJECT']="ID_PROJECT Numer Projektu dla przeksiêgowywania kosztów urz±dzeñ";


$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['B_XYZ']="Wspolrzedne dla systemu wizualizacji X;Y;Z;/DL_GEOGR.;SZER_GEOGR.";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['B_LINK']="Link do dokumentacji zasobow np Saturn/TA_DOKUMENTACJE/GD_CH/CI50 (bez backslashes)";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['B_URL']="Link do dokumentacji www np http://www.saturn.nsm.pl/wievid?ID...";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['B_INVENTORY_DATE']="B_INVENTORY_DATE Data ostatniej inwentaryzacji zasobu";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_ZRYWKA_DATE']="M_ZRYWKA_DATE Data YYYY-MM-DD rozniesienia zrywek lub innych dzialan na budynku";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_ZRYWKA_NUMBER']="M_ZRYWKA_NUMBER Raport rozniesienia do rozliczen, format danych: RodzajDzialania,OsobaWykonujaca,ProwizjaWzlotowkach";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_REWIR']="Rewir na jakim jest stosowana oferta wg podzialu terytorialnego : Uwaga tam gdzie jest badane zaint na tv w rewirze nalezy dodac .?TV W przypadku kiedy TV nalezy sprzedawac ze szczegolna uwaga nalezy dodac .TV! , jezeli internet jest dostepny z predkoscia do 2 Mbit max - to nalezy dodac .SPDX  jezeli 4 Mbit .SPDXX , jezeli 8 Mbit to .SPDXXX (liczba X to potega liczby 2) . Nie nalezy w rewirach uzywac tych ciagow znakow (.TV oraz SPDX w nazwach rewirow ). Przyklad rewiru to GD.CH.F.B39.?TV.SPDXXX  ";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_PARAMETRY']="M_PARAMETRY Dowolne informacje n/t rewiru, budynku (USTALA MARKETING) - np ULOTKI:ZAKAZ, PLAKATY:ZAKAZ, BEZPOSREDNI:ZAKAZ, itp...";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_DIST_OPTIONS']="M_DIST_OPTIONS Dostepne na budynku formy dystrybucji informacji (USTALA MARKETING)";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_DIRECT_MARKETING_DATE']="M_DIRECT_MARKETING_DATE Data kompletnej ostatniej akcji Marketing Bezposredni (USTALA MARKETING)";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['M_DATA_ZASIEDLENIA']="M_DATA_ZASIEDLENIA Data planowanego zasiedleania budynku - uzyskiwana od dzia³u technicznego wzglêdnie Marketing winien regularnie 1 raz w tygodniu próbowaæ uzyskiwaæ t± datê od Developpera";

$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_NR_DZIALKI']="P_NR_DZIALKI Numer dzialki";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_NR_KW']="P_NR_KW Numer ksiegi wieczystej";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_OTHER_DOC']="P_OTHER_DOC Numer dowodu";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_PESEL']="P_PESEL Numer pesel";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_KRS']="P_KRS Numer KRS";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_ADDRESS']="P_ADDRESS Adres";
$_SESSION['BUILDINGS_COLUMN']['DESC_TO_LANG']['P_NAME']="P_NAME Imie i nazwisko wlasciciela/nazwa firmy";



$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['ID']="R";


$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['P_NAME_R']="R";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['P_ADDRESS_R']="R";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['ID_DZIENNIK_KORESP']="RWXC";


$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['ID']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_UPDATE_DATE']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['S_ALIAS']="RX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS']="RXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="RWC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="RXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="RXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="RXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_PENALTIES']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_PENALTIES_TYPE ']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="";

$_SESSION['USERS2_DEALS_COLUMN']['TYPESPECIAL']['M_DIST_FILES']="M_DIST_FILES";
$_SESSION['USERS2_DEALS_COLUMN']['FUNCPERMEDIT']['M_DIST_FILES']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['M_DIST_FILES']="RWX";

$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['T_WHEN_CONNECTED']="T_WHEN_CONNECTED";



$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM";


//$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";


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



$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="RWX";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_IP']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_HW']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_HWSTAT']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_HOST']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_DOMAIN']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_ACCOUNT']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['N_AVG_TRAFFIC']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_VIP_LEVEL']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TOPOLOGY_PLACE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_NAME']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_NEIGHBOUR_IN']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_WORKPOINTS']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_PENALTIES']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_DEAL_DATE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_DEALNUMBER']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_SERVICE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_NAME']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_PHONE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_FAX']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_CONTACT_PERSON']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_OTHER_INFO']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA_PROFILE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="R";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="R";


$_SESSION['DEVICES_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_PROBLEM']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RW";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_TOPOLOGY_PLACE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_TELBOX_NEIGHBOUR_IN']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_WORKPOINTS']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PENALTIES']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_SERIAL']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_TYPE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_INFO']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_PORTS_OK']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_POWER']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PRODUCER']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PRODUCTION_DATE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_BUY_DATE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_SELLER']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_OWNER']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_GUARRANTY_EXPIRE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PAPERBOX_LOCATION']="R";
$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";

//USERS2_OFFERS

$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_PROBLEM']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_HOST']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['P_SERVICE_PARENT']="RWCX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_TELBOX_BUILDING_IN']="";


$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_ID_USERS2']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_UPDATE_DATE']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_VIP_LEVEL']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['S_VIP_DESC']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_TELBOX_ADDRESS']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_WORKPOINTS']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_PENALTIES']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_PENALTIES_TYPE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['P_NAME']="RWX";

$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['P_CONTRACT_PRICE_NETTO']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['P_PROMO_MONTH_PRICE_NETTO']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['P_NORMAL_PRICE_NETTO']="R";


// 2011-07-06: USERS2_OFFERS_GROUPS_COLUMN
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_STATUS']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";

$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['TYPESPECIAL']['P_OFFER_TARGET']="P_OFFER_TARGET";


$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS_INFO']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_PROBLEM']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_IP']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_HW']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_HWSTAT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_HOST']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_DOMAIN']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_ACCOUNT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_ALIAS']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['N_AVG_TRAFFIC']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_VIP_LEVEL']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_TOPOLOGY_PLACE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_TELBOX_ADDRESS']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_TELBOX_PORT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_WORKPOINTS']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_PENALTIES']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_CABLE_LENGTH']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['O_DEAL_DATE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['O_CARD_NR']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_DEAL_DATE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_DEALEXPIRE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_DEALNUMBER']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_NAME']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_NAME_R']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_PHONE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_FAX']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_CONTACT_PERSON']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_OTHER_INFO']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA_PROFILE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['M_REWIR']="R";

$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";

$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_STATUS']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADMIN_NAME']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADMIN_NAME']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RXC"; //TODO SHOULDBE RXC
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADMIN_NAME']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_CITY']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_POST_CODE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_POST_OFFICE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_STREET']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_HOUSE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_OTHER_INFO']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEAL_DATE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEALNUMBER']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEALEXPIRE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEAL_DETAIL']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEAL_LOCATION']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_NR_DZIALKI']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_NR_KW']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_OTHER_DOC']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_PESEL']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_KRS']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_NAME']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_TOPOLOGY_PLACE']="RX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_BUILDING_TYPE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_BUILDING_SAVE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_BUILDING_POWER']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_ASCII']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_XYZ']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_LINK']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_INVENTORY_DATE']="RXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_ZRYWKA_DATE']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_ZRYWKA_NUMBER']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_REWIR']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_PARAMETRY']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_DIST_OPTIONS']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_DIRECT_MARKETING_DATE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_DATA_ZASIEDLENIA']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['ID_PROJECT']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";





$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_ID_USERS2']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_VIP_LEVEL']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_VIP_DESC']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_CITY']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_POST_CODE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_POST_OFFICE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_STREET']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_HOUSE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_BILLING_NO']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_PENALTIES']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_PENALTIES_TYPE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['ID_BILLING_USERS']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['ID_SERVICES']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="RX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_UPDATE_DATE']="RX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_NIP']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_TELBOX_ADDRESS']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_TELBOX_PORT']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_PESEL']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_OTHER_DOC']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['INTERNET_STATUS']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['VOIP_STATUS']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['M_REWIR']="R";

$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWXC";
//$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RWXC";


$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['P_NEW_DEAL']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";


// 2011-07-06: USERS2_OFFERS_GROUPS_COLUMN
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";


$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RW";

$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RW";


$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_UPDATE_DATE']="RX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_WORKPOINTS']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_PENALTIES']="R";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_PENALTIES_TYPE']="";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['PERMEDIT']['P_OTHER_INFO']="RWXC";



$_SESSION['USERS2_WINDYKACJA_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWXC";


} //EOF mniejsze od 5



if($_SESSION['ADM_ADMIN_LEVEL']==4) {







$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_NAZWA_NARZEDZIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_LOKALIZACJA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_OPIS_DESC']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_DATA_AKTUALIZACJI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_TERMIN_WAZNOSCI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_ZAWARTOS']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_ZAWARTOS_DES']="RWXCH";




$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="RW";

$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RW";


$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RW";

$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RW";


$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_PORTS_OK']="RW";
}


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

$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="X";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="W";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="X";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="W";
$_SESSION['USERS2_OFFERS_COSTS_SALES_PLAN_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="X";
$_SESSION['USERS2_OFFERS_COSTS_SALES_PLAN_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="W";


$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['TYPESPECIAL']['ID_COSTS_GROUPS']="ID_COSTS_GROUPS";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['FUNCPERMEDIT']['ID_COSTS_GROUPS']="RWX";

$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['ID_COSTS_GROUPS']="RWXC";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['PERMEDIT']['P_OFFER_COSTS']="R";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['TYPESPECIAL']['ID_MAIN_COSTS_GROUP']="ID_MAIN_COSTS_GROUP";
$_SESSION['USERS2_OFFERS_COSTS_SALES_PLAN_COLUMN']['TYPESPECIAL']['ID_MAIN_COSTS_GROUP']="ID_MAIN_COSTS_GROUP";
$_SESSION['USERS2_OFFERS_COSTS_SALES_PLAN_COLUMN']['TYPESPECIAL']['T_WORKPOINTS_USER']="T_WORKPOINTS_USER_SELECT";
$_SESSION['USERS2_OFFERS_COSTS_SALES_PLAN_COLUMN']['TYPESPECIAL']['T_WORKPOINTS_MONTH']="T_WORKPOINTS_MONTH";



$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['P_ID']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ID_PROJECT']="";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['T_WORKPOINTS']="W";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="W";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="W";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="W";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['A_STATUS']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_DATE']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_ORDER_DATE']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_DEALNUM']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_TERM_OF_CLAIM']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_CLAIM_DATE']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_TYPE']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_DESC']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_DESC_HTML']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_REVITALIZE_PROCESS_NUMBER']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DISTRIBUTOR']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_FORMAT']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_ORIENT']="WX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_SIZES']="WX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_INDEXES']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_GROUPS']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_COST_NEGOTIATED']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_INVENTOR']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_ACCEPTED']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_DOCUMENTED_COST']="R";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_INVOICE_NUM']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_INVOICE_IN_KSIEG']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_GOODS_AS_DEAL']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_FILES']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_COST_PROJECT']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['M_DIST_COST_PRINT']="WXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_STATUS_INWESTYCJI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_POZWOLENIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_NUMER_POZWOLENIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_KIEROWNIK_BUDOWY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_ZGLOSZENIA_ROZPOCZECIA_BUDOWY_DO_NADZORU']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_POWIADOMIENIA_WSZYSTKICH_BRANZ']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_OSTATNIEGO_WPISU_W_DZIENNIKU_O_ROBOTACH']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_ZLOZENIA_INWENT_POWYK']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_ODBIORU_INWENT_POWY_BEZ_UWAG']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_ZGL_DO_NADZORU_BUD_ZAK_BUDOWY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['IN_DATA_SPRZECIWU_NADZORU_BUD_O_ZAK_BUDOWY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_NAZWA_PROGRAMU']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_LANGUAGE']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_PROGRAM_PROFILE']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_SIGAL_DELIVERY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_ANALOG_FREQUENCY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_DVBC_EPG_CHANNEL_NUMBER']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_SATELITY_I_CZESTOTLIWOSCI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_KARTA_DEVICE_SERIAL']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_KARTA_EXPIRE_DATE']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_KARTA_FIRMA_TELEFON_OSOBA_KONATOWA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_DEKODER_DEVICE_ID']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_OPLATA_PER_USER']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_OPLATA_PER_USER_VALUTA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_OPLATA_USTALONA_DO_DNIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_TYP']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_EMAIL']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_FAX']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_SPOSOB']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_DATA_OST_RAPORTU']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_ABONENTOW_POCZATKOWO']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_ABONENTOW_NA_KONCU']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_PRZYSZLO']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_RAPORTOWANIE_ODESZLO']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_CERTYFIKAT_REZYDENCJI_EXPIRE_DATE']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_CERTYFIKAT_REZYDENCJI_PODATEK']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_ZGODA_NA_DYSTRYBUCJE_CYFROWA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_ZGODA_NA_DYSTRYBUCJE_IPTV']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['TV_MODULATOR_DEVICE_DESC']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ROI_DATA_WYSLANIA_ZAPYTANIA_ROI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ROI_FORMUALRZ_1K_DATA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ROI_FORMULARZ_1K_NUKER_SPRAWY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ROI_DATA_WYSLANIA_PROJEKTU_I_UMOWY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_NAZWA_NARZEDZIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_LOKALIZACJA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_OPIS_DESC']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_DATA_AKTUALIZACJI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_TERMIN_WAZNOSCI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_ZAWARTOS']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['MZ_ZAWARTOS_DES']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__MARKA_AUTA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__NR_NADWOZIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__NR_REJESTRACYJNY']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__INFORAMACJE_O_ZAKUPIE_AUTA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__RODZAJ_AKTUALNYCH_OPON']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__DATA_SPRAWDZENIA_APTECZKI_TROJKATA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__DATA_SPRAWDZENIA_OLEJU_OK']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__DATA_WYSPRZATANIA_AUTA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__DATA_WGRANIA_SKANU_KILOMETROWKI']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__TERMIN_BADAN_TECHNICZNYCH']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['ADM2p2__TERMIN_UBEZPIECZENIA']="RWXCH";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['PERMEDIT']['CRM_LISTA_ZASOBOW_ID']="RWXC";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['CRM_LISTA_ZASOBOW_ID']="CRM_LISTA_ZASOBOW_ID_SELECT";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['CRM_LISTA_ZASOBOW_ID']="RWX";

//H==AutoHide

$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['M_DIST_TERM_OF_CLAIM']="M_DIST_TERM_OF_CLAIM";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['M_DIST_FILES']="M_DIST_FILES";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['TYPESPECIAL']['M_DIST_DESC_HTML']="M_DIST_DESC_HTML";

$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="X";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="W";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['L_APPOITMENT_USER']="WX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['L_APPOITMENT_DATE']="WX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['L_APPOITMENT_PERIOD']="WX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RW";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['M_DIST_TERM_OF_CLAIM']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['M_DIST_FILES']="RWX";
$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['FUNCPERMEDIT']['M_DIST_DESC_HTML']="RWX";





$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['DATA_DOK']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['INICJALY_HANDLOWCA']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['RODZAJ_DZIALANIA_HANDLOWEGO']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_SERVICE']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="";
//$_SESSION['USERS2_DEALS_COLUMN']['TYPESPECIAL']['T_WORKPOINTS_USER']="T_WORKPOINTS_USER_SELECT";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['ID_BILLING_USERS_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['ID_BILLING_USERS_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['ID_SERVICES_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['ID_SERVICES_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_SERVICE_COMPANY']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_SERVICE_NAME']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_OFFER_ID_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_OFFER_ID_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_DEAL_DATE_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_DEAL_DATE_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_DEALNUMBER_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_DEALNUMBER_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_DEALTERM_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['P_DEALTERM_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['MONTH_COST_OLD']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['MONTH_COST_NEW']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RWXC";
$_SESSION['USERS2_DEALS_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RWXC";





$_SESSION['USERS2_DEALS_COLUMN']['FUNCPERMEDIT']['P_NEW_DEAL']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_DEALS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";



$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_PORTS_OK']="RW";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['CRM_LISTA_ZASOBOW_ID']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['ID_PROJECT']="RWXC";
$_SESSION['DEVICES_COLUMN']['TYPESPECIAL']['CRM_LISTA_ZASOBOW_ID']="CRM_LISTA_ZASOBOW_ID_SELECT";
$_SESSION['DEVICES_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";
$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['CRM_LISTA_ZASOBOW_ID']="RWX";
$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['ID_PROJECT']="RWX";




$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_NAME']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_SAVE']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_POWER']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_TYPE']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_STATUS']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_NEIGHBOUR_IN']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['T_TELBOX_BUILDING_IN']="RWC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RW";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['CRM_LISTA_ZASOBOW_ID']="RWXC";
$_SESSION['TELBOXES_COLUMN']['PERMEDIT']['ID_PROJECT']="RWXC";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['CRM_LISTA_ZASOBOW_ID']="CRM_LISTA_ZASOBOW_ID_SELECT";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['CRM_LISTA_ZASOBOW_ID']="RWX";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RW";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['ID_PROJECT']="RWX";


$_SESSION['USERS2_OFFERS_COLUMN']['TYPESPECIAL']['ID_COSTS_GROUPS']="ID_COSTS_GROUPS";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['ID_COSTS_GROUPS']="RWXC";
$_SESSION['USERS2_OFFERS_COLUMN']['TYPESPECIAL']['ID_PRODUKT']="ID_PRODUKT";

$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['P_NEW_DEAL']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS']="RWXC";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWXC";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="R";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="";
$_SESSION['USERS2_OFFERS_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="R";



// 2011-07-06: USERS2_OFFERS_GROUPS_COLUMN
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['USERS2_OFFERS_GROUPS_COLUMN']['PERMEDIT']['A_STATUS']="RWX";


$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['ID_SERVICES']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_HW']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_HWSTAT']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_ALIAS']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['S_PASSWD']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_ACCOUNT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_SERVICE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_CABLE_LENGTH']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['O_DEAL_DATE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['O_CARD_NR']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_ADDRESS_STREET']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_ADDRESS_HOUSE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_ADDRESS_CITY']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_ADDRESS_POST_CODE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_ADDRESS_POST_OFFICE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_CONTACT_PERSON']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_PHONE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['T_TELBOX_ADDRESS']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['LAN_DOWNLOAD']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['CONN_DIV']="R";


$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['T_TELBOX_ADDRESS']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_DEAL_DATE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_DEALNUMBER']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_DEALEXPIRE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_DEALEXPIRE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_PERIOD_QUOTE']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['S_HWSTAT']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_NEW_DEAL']="RW";
$_SESSION['SES_USERS2_A_COLUMN']['FUNCPERMEDIT']['P_SERVICE_QUOTA']="RX";

$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['ID_BILLING_USERS']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="R";


$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_STATUS']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADMIN_NAME']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADMIN_NAME']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_INSTALACJA_W_CIAGU_DNI']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RWXC"; //TODO SHOULDBE RXC
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADMIN_NAME']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_CITY']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_POST_CODE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_POST_OFFICE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_STREET']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS_HOUSE']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_OTHER_INFO']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEAL_DATE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEALNUMBER']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEALEXPIRE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEAL_DETAIL']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_DEAL_LOCATION']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_NR_DZIALKI']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_NR_KW']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_OTHER_DOC']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_PESEL']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_KRS']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_ADDRESS']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_NAME']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_TOPOLOGY_PLACE']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_BUILDING_TYPE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_BUILDING_SAVE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_BUILDING_POWER']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="R";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_ASCII']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_XYZ']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_LINK']="";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['B_INVENTORY_DATE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_ZRYWKA_DATE']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_ZRYWKA_NUMBER']="RWX";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_REWIR']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['M_PARAMETRY']="RWXC";


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


$_SESSION['DEVICES_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_STATUS']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_PROBLEM']="RX";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="RX";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RWX";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_TOPOLOGY_PLACE']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_TELBOX_NEIGHBOUR_IN']="RXWC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_WORKPOINTS']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PENALTIES']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="R";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_SERIAL']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_TYPE']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_INFO']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_PORTS_OK']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_DEVICE_POWER']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PRODUCER']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PRODUCTION_DATE']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_BUY_DATE']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_SELLER']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_OWNER']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_GUARRANTY_EXPIRE']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['T_PAPERBOX_LOCATION']="RWXC";

$_SESSION['DEVICES_COLUMN']['PERMEDIT']['F_BILL_DATE']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['F_BILL_NUMBER']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['F_BILL_POSITION']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['F_BILL_COST']="RWXC";
$_SESSION['DEVICES_COLUMN']['PERMEDIT']['S_HW']="RWXC";

$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";

$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";

$_SESSION['DEVICES_COLUMN']['TYPESPECIAL']['T_NETWORK_SERVER']="T_NETWORK_SERVER";
$_SESSION['DEVICES_COLUMN']['TYPESPECIAL']['S_HW']="S_HW";
$_SESSION['DEVICES_COLUMN']['TYPESPECIAL']['T_TELBOX_NEIGHBOUR_IN']="T_TELBOX_NEIGHBOUR_IN_SELECT";
$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['T_TELBOX_NEIGHBOUR_IN']="RWXC";
$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RX";
$_SESSION['DEVICES_COLUMN']['FUNCPERMEDIT']['S_HW']="RX";


$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['ID']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['TABELA']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['OPIS']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['ADRES']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['A_STATUS']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['INFO']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DATE']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['APP_U']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['L_APPOITMENT_DATE']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['APP_P']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['APP_I']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['L_APPOITMENT_TYPE']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['A_ADM_COMPANY']="RX";
$_SESSION['L_APPOITMENT_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RX";


$_SESSION['BILLING_COLUMN']['FUNCPERMEDIT']['P_NEW_DEAL']="RX";




$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['A_A_ID_USERS2']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['A_STATUS']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['E_SERVICE']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['E_S_V']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['E_S_V2']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['E_S_V3']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_BILLING_NO']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_INSTALL_QUOTE']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_PERIOD_QUOTE']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_PERIOD_VAT']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_PERIOD_MONTHS']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_HANGUP_FROM']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['P_HANGUP_TILL']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['S_OTHER_INFO']="RWXC";
$_SESSION['EXTRA_SERVICES_COLUMN']['PERMEDIT']['ID_SERVICES']="RWXC";



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


$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_DATA_OTRZYM_KORESP']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_NR_OTRZYM_KORESP']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_DATA_OTRZYMANEJ_KORESP']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_OD_KOGO']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_ZAWARTOS']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_ZNAK_REFERENTA']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_LOKALIZACJA']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_LOKALIZACJA_OPIS']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['M_DIST_FILES']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_TYP_KORESP']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_TYP_RODZAJ']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['OD_KOGO_ADRES']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_POKWITOWANIE_ODBIORU']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_LOKALIZACJA_NEW']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_LOKALIZACJA_OPIS_NEW']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['ID_PROJECT']="RWXC";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['PERMEDIT']['K_KOST_WYSYLKI']="RWXC";

$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['K_OD_KOGO']="K_OD_KOGO";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['FUNCPERMEDIT']['K_OD_KOGO']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['M_DIST_FILES']="M_DIST_FILES";


$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";

$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['FUNCPERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['FUNCPERMEDIT']['ID_PROJECT']="RWX";




$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['ID']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_ID_USERS2']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_CREATE_DATE']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_CREATE_AUTHOR']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_DATE']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_RECORD_UPDATE_AUTHOR']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_PROBLEM']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['TAB_UPDATE_DATE']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['TAB_UPDATE_INFO']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_VIP_LEVEL']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_VIP_DESC']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_CITY']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_POST_CODE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_POST_OFFICE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_CITY']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_POST_CODE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_POST_OFFICE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_STREET']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_ADDRESS_HOUSE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_VALUE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_TYPE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_DATE']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_WORKPOINTS_USER']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_BILLING_NO']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_PENALTIES']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_PENALTIES_TYPE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_PENALTIES_VALUE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['ID_BILLING_USERS']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['ID_SERVICES']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_STATUS_LASTCHANGE_DATE']="RX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['A_UPDATE_DATE']="RX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_NIP']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_TELBOX_ADDRESS']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_TELBOX_PORT']="";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_PESEL']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['P_OTHER_DOC']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['INTERNET_STATUS']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['VOIP_STATUS']="R";
$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT']['M_REWIR']="R";


//$_SESSION['USERS2_MARKETING_COLUMN']['PERMEDIT'][TV_STATUS]="R";

$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWXC";
//$_SESSION['USERS2_MARKETING_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RWXC";











$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['ID_SERVICES']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['A_STATUS']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['A_PROBLEM']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['A_PROBLEM_DESC']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['A_PROBLEM_DATE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['S_HW']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['S_HWSTAT']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_SERVICE_QUOTA']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['S_ADDRESS_STREET']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['S_ADDRESS_HOUSE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['S_ALIAS']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['S_PASSWD']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_ACCOUNT']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_SERVICE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['T_WHEN_CONNECTED']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['T_WHO_CONNECTED']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_ADDRESS_STREET']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_ADDRESS_HOUSE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_ADDRESS_CITY']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_ADDRESS_POST_CODE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_ADDRESS_POST_OFFICE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_CONTACT_PERSON']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_PHONE']="R";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_DATE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_USER']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_PERIOD']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_INFO']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['L_APPOITMENT_TYPE']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['T_TELBOX_ADDRESS']="RW";
$_SESSION['SES_TV_A_COLUMN']['PERMEDIT']['P_DEVICE']="R";

$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['T_TELBOX_ADDRESS']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['T_NETWORK_SERVER']="RWXC";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['A_PROBLEM_DESC']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['P_DEAL_DATE']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['P_DEALNUMBER']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['P_DEALEXPIRE']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['P_DEALEXPIRE']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['P_PERIOD_QUOTE']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['S_HWSTAT']="RW";
$_SESSION['SES_TV_A_COLUMN']['FUNCPERMEDIT']['P_NEW_DEAL']="RW";


$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['DATA_DOK']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['NUMER_DOK']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['SPRZEDAWCA']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['ID_SPRZEDAWCA']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['KONTO_KSIEG']="RWX";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['ID_KONTO_KSIEG']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['NR_POZ']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['NR_POZ_OPIS']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['ILOSC']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['CENA_JEDN_NETTO']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['STAWKA_VAT']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['CZY_URZADZENIE']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['TYP_DOKUMENTU']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['ID_PROJECT']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['BUDZET']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['ID_BUDZET']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['NAZWA_PLIKU_SKAN']="RW";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['DATA_KSIEGOWANIA']="RWX";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['NUKER_DOK_ZAKSIEG']="RWX";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['A_ADM_COMPANY']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['POWTARZALNOSC']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['A_STATUS']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['A_STATUS_INFO']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['ILOSC']="ILOSC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['DATA_DOK']="DATA_DOK";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['NR_POZ']="NR_POZ";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['ID_KONTO_KSIEG']="ID_KONTO_KSIEG";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['ID_SPRZEDAWCA']="ID_SPRZEDAWCA";

$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['ID_PROJECT']="ID_PROJECT";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['FUNCPERMEDIT']['ID_SPRZEDAWCA']="RWXC";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['TYPESPECIAL']['M_DIST_FILES']="M_DIST_FILES";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['PERMEDIT']['M_DIST_FILES']="RWX";
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['FUNCPERMEDIT']['M_DIST_FILES']="RWX";

}










//$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM_SPECIAL";
$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";

$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['T_NETWORK_SERVER']="T_NETWORK_SERVER";
$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['T_WORKPOINTS_USER']="T_WORKPOINTS_USER_SELECT";
$_SESSION['USERS2_MARKETING_COLUMN']['TYPESPECIAL']['T_TELBOX_BUILDING_IN']="T_TELBOX_BUILDING_IN";
//echo "MARKETING_INIT_TEST_TODO";












$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM_SPECIAL";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";
//$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['S_ADMIN_NAME']="S_ADMIN_NAME";
//$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['P_ADMIN_NAME']="P_ADMIN_NAME";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['B_ASCII']="B_ASCII";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['B_INVENTORY_DATE']="B_INVENTORY_DATE";
$_SESSION['BUILDINGS_COLUMN']['PERMEDIT']['P_OSIEDLE']="RWXC";
$_SESSION['BUILDINGS_COLUMN']['TYPESPECIAL']['P_OSIEDLE']="P_OSIEDLE";



$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['T_TELBOX_NAME']="T_TELBOX_NAME";
$_SESSION['TELBOXES_COLUMN']['TYPESPECIAL']['T_TELBOX_NEIGHBOUR_IN']="T_TELBOX_NEIGHBOUR_IN_SELECT";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['NEW_RECORD']="RWX";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['TABLE_INSERTDB']="RWX";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['T_TELBOX_NEIGHBOUR_IN']="RWXC";
$_SESSION['TELBOXES_COLUMN']['FUNCPERMEDIT']['T_TELBOX_NEIGHBOUR_IN_SELECT']="RWXC";


$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['A_STATUS']="A_STATUS";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['A_STATUS_CURRENT']="A_STATUS_CURRENT";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['P_SERVICE_QUOTA_PROFILE']="P_SERVICE_QUOTA_PROFILE";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['P_SERVICE_QUOTA']="P_SERVICE_QUOTA";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['T_NETWORK_SERVER']="T_NETWORK_SERVER";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['T_TELBOX_ADDRESS']="T_TELBOX_ADDRESS";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['P_SERVICE']="P_SERVICE";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['N_AVG_TRAFFIC']="N_AVG_TRAFFIC";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['T_WHO_CONNECTED']="T_WHO_CONNECTED";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['P_DEALNUMBER']="P_DEALNUMBER";
$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['S_HW']="S_HW";


$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['P_SERVICE_ORDERED_INSTALL_DATE_1297']="P_SERVICE_ORDERED_INSTALL_DATE_1297";
//$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']['P_NAME']="P_NAME";



$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['A_STATUS']="A_STATUS";
//$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['A_STATUS_CURRENT']="A_STATUS_CURRENT";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";

$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['P_SERVICE_QUOTA']="P_SERVICE_QUOTA";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['T_NETWORK_SERVER']="T_NETWORK_SERVER";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['T_TELBOX_ADDRESS']="T_TELBOX_ADDRESS";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['P_SERVICE']="P_SERVICE";

$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['A_PROBLEM']="A_PROBLEM";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['T_WHO_CONNECTED']="T_WHO_CONNECTED";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['L_APPOITMENT_USER']="L_APPOITMENT_USER";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['L_APPOITMENT_DATE']="L_APPOITMENT_DATE";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['L_APPOITMENT_PERIOD']="L_APPOITMENT_PERIOD";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['P_DEALNUMBER']="P_DEALNUMBER";
$_SESSION['SES_TV_A_COLUMN']['TYPESPECIAL']['S_HW']="S_HW";



$_SESSION['EXTRA_SERVICES_COLUMN']['TYPESPECIAL']['A_A_ID_USERS2']="A_A_ID_USERS2";
$_SESSION['EXTRA_SERVICES_COLUMN']['TYPESPECIAL']['P_BILLING_NO']="P_BILLING_NO";

$_SESSION['EXTRA_SERVICES_COLUMN']['TYPESPECIAL']['A_ADM_COMPANY']="A_ADM_COMPANY";

//$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME_R']="BILLING_LIST";
//$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME_R']="BILLING_LIST.P_NAME";
//$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME_R']="BILLING_LIST.P_NAME";
//$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['JOINQUERY']['BILLING_LIST']="LEFT JOIN BILLING_LIST on USERS2.P_BILLING_NO=BILLING_LIST.ID";

//BEGIN @2012-10-05 definicja SES_USERS2_A_COLUMN RELATIVEDB - look for EOF
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['M_REWIR']="USERS2_MARKETING";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['M_REWIR']="USERS2_MARKETING.M_REWIR";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['M_REWIR']="USERS2_MARKETING.M_REWIR";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['JOINQUERY']['USERS2_MARKETING']="LEFT JOIN USERS2_MARKETING on SES_USERS2_A.S_ADDRESS_STREET=USERS2_MARKETING.S_ADDRESS_STREET";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['A_STATUS_CURRENT']="SV";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['A_STATUS_CURRENT']=$A_STATUS_L2_SQL_L1." ";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['A_STATUS_CURRENT']=$A_STATUS_L2_SQL_L1." ";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_SERVICE_ORDERED_INSTALL_DATE_1297']="SV";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_SERVICE_ORDERED_INSTALL_DATE_1297']='SV.P_SERVICE_ORDERED_INSTALL_DATE_1297';
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_SERVICE_ORDERED_INSTALL_DATE_1297']='SV.P_SERVICE_ORDERED_INSTALL_DATE_1297';
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['JOINQUERY']['SV']="LEFT JOIN SERVICES as SV on SES_USERS2_A.ID_SERVICES=SV.ID left join BILLING_USERS as BU on BU.ID=SV.ID_BILLING_USERS left join LIST_status as LIST_status on LIST_status.id=BU.STATUS ";

$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['ABONAMENT_VALUE']="SV";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['ABONAMENT_VALUE']='SV.ABONAMENT_VALUE';
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['ABONAMENT_VALUE']='SV.ABONAMENT_VALUE';



$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME']="BUA";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME']="concat_ws(' ',BUA.P_NAME,BUA.P_NAME_SECOND)";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME']="concat_ws(' ',BUA.P_NAME,BUA.P_NAME_SECOND)";
$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']['JOINQUERY']['BUA']=" left join SERVICES as SVV on SVV.ID=SES_USERS2_A.ID_SERVICES 
															   LEFT JOIN BILLING_USERS_ADD as BUA on BUA.id_users=SVV.ID_BILLING_USERS";
//EOF @2012-10-05 definicja SES_VOIP_A_COLUMNT RELATIVEDB 




//BEGIN @2012-10-05 definicja SES_TV_A_COLUMN RELATIVEDB - look for EOF


$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['S_OTHER_INFO']="x";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['S_OTHER_INFO']="concat(`SES_TV_A`.`S_OTHER_INFO`, ' (ID_OFFERS:', o.`ID`, ' ' , o.`P_SERVICE_NAME`, ', ID_COSTS_GROUPS:', o.`ID_COSTS_GROUPS`, ')' ) ";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['S_OTHER_INFO']=$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['S_OTHER_INFO'];
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['JOINQUERY']['x']="
	LEFT JOIN `SERVICES` as serv on (serv.`ID`=`SES_TV_A`.`ID_SERVICES`)
	LEFT JOIN `USERS2_OFFERS` as o on (o.`ID`=serv.`ID_OFFERS`)
--	LEFT JOIN `USERS2_OFFERS_COSTS_GROUPS` as g on (g.`ID`=o.`ID_COSTS_GROUPS`)
";

$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['M_REWIR']="USERS2_MARKETING";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['M_REWIR']="USERS2_MARKETING.M_REWIR";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['M_REWIR']="USERS2_MARKETING.M_REWIR";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['JOINQUERY']['USERS2_MARKETING']="LEFT JOIN USERS2_MARKETING on SES_TV_A.S_ADDRESS_STREET=USERS2_MARKETING.S_ADDRESS_STREET";

$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['A_STATUS_CURRENT']="SV";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['A_STATUS_CURRENT']=$A_STATUS_L2_SQL_L1." ";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['A_STATUS_CURRENT']=$A_STATUS_L2_SQL_L1." ";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_SERVICE_ORDERED_INSTALL_DATE_1297']="SV";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_SERVICE_ORDERED_INSTALL_DATE_1297']='SV.P_SERVICE_ORDERED_INSTALL_DATE_1297';
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_SERVICE_ORDERED_INSTALL_DATE_1297']='SV.P_SERVICE_ORDERED_INSTALL_DATE_1297';

$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['ABONAMENT_VALUE']="SV";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['ABONAMENT_VALUE']='SV.ABONAMENT_VALUE';
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['ABONAMENT_VALUE']='SV.ABONAMENT_VALUE';



$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['JOINQUERY']['SV']="LEFT JOIN SERVICES as SV on SES_TV_A.ID_SERVICES=SV.ID left join BILLING_USERS as BU on BU.ID=SV.ID_BILLING_USERS left join LIST_status as LIST_status on LIST_status.id=BU.STATUS ";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME']="BUA";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME']="concat_ws(' ',BUA.P_NAME,BUA.P_NAME_SECOND)";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME']="concat_ws(' ',BUA.P_NAME,BUA.P_NAME_SECOND)";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['JOINQUERY']['BUA']=" left join SERVICES as SVV on SVV.ID=SES_TV_A.ID_SERVICES 
															   LEFT JOIN BILLING_USERS_ADD as BUA on BUA.id_users=SVV.ID_BILLING_USERS";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_PHONE']="BUA";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_PHONE']="BUA.P_PHONE";
$_SESSION['SES_TV_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_PHONE']="BUA.P_PHONE";
															   
															   
															  //ID_OFFERS_DESC,ABONAMENT_VALUE
//EOF @2012-10-05 definicja SES_TV_A_COLUMNT RELATIVEDB 









//BEGIN @2012-10-05 definicja SES_VOIP_A_COLUMNT RELATIVEDB - look for EOF
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['M_REWIR']="USERS2_MARKETING";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['M_REWIR']="USERS2_MARKETING.M_REWIR";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['M_REWIR']="USERS2_MARKETING.M_REWIR";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['JOINQUERY']['USERS2_MARKETING']="LEFT JOIN USERS2_MARKETING on SES_VOIP_A.S_ADDRESS_STREET=USERS2_MARKETING.S_ADDRESS_STREET";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['A_STATUS_CURRENT']="SV";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['A_STATUS_CURRENT']=$A_STATUS_L2_SQL_L1." ";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['A_STATUS_CURRENT']=$A_STATUS_L2_SQL_L1." ";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_SERVICE_ORDERED_INSTALL_DATE_1297']="SV";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_SERVICE_ORDERED_INSTALL_DATE_1297']='SV.P_SERVICE_ORDERED_INSTALL_DATE_1297';
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_SERVICE_ORDERED_INSTALL_DATE_1297']='SV.P_SERVICE_ORDERED_INSTALL_DATE_1297';
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['JOINQUERY']['SV']="LEFT JOIN SERVICES as SV on SES_VOIP_A.ID_SERVICES=SV.ID left join BILLING_USERS as BU on BU.ID=SV.ID_BILLING_USERS left join LIST_status as LIST_status on LIST_status.id=BU.STATUS";

$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['ABONAMENT_VALUE']="SV";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['ABONAMENT_VALUE']='SV.ABONAMENT_VALUE';
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['ABONAMENT_VALUE']='SV.ABONAMENT_VALUE';


$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME']="BUA";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME']="concat_ws(' ',BUA.P_NAME,BUA.P_NAME_SECOND)";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME']="concat_ws(' ',BUA.P_NAME,BUA.P_NAME_SECOND)";
$_SESSION['SES_VOIP_A_COLUMN']['RELATIVEDB']['JOINQUERY']['BUA']=" left join SERVICES as SVV on SVV.ID=SES_VOIP_A.ID_SERVICES 
															   LEFT JOIN BILLING_USERS_ADD as BUA on BUA.id_users=SVV.ID_BILLING_USERS";
//EOF @2012-10-05 definicja SES_USERS2_A_COLUMNT RELATIVEDB 


//BEGIN @2012-10-05 definicja SERVICES_COLUMN RELATIVEDB - look for EOF
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['A_STATUS_LOCAL']="SV";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['A_STATUS_LOCAL']=$A_STATUS_L2_SQL." ";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['A_STATUS_LOCAL']=$A_STATUS_L2_SQL." ";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['JOINQUERY']['SV']="LEFT JOIN SERVICES as SV on SERVICES.ID=SV.ID";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME']="BUA";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME']="BUA.P_NAME";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME']="BUA.P_NAME";

$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME_SECOND']="BUA";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME_SECOND']="BUA.P_NAME_SECOND";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME_SECOND']="BUA.P_NAME_SECOND";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['JOINQUERY']['BUA']="LEFT JOIN BILLING_USERS_ADD as BUA on BUA.id_users=SERVICES.ID_BILLING_USERS";


$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['A_STATUS_CURRENT']="BU_STATUS";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['A_STATUS_CURRENT']="BU_STATUS.ses_users2";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['A_STATUS_CURRENT']="BU_STATUS.ses_users2";

$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['JOINQUERY']['BU_STATUS']="left join BILLING_USERS as BU on BU.ID=SERVICES.ID_BILLING_USERS 
																	  left join LIST_status as BU_STATUS on BU_STATUS.id=BU.STATUS ";


$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['L3_SERVICE_STATUS']="L3_SERVICE_INFO_TABLES";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_STATUS']="concat_ws('',L3_SERVICE_INFO_TABLES_USERS2.A_STATUS,L3_SERVICE_INFO_TABLES_VOIP_A.A_STATUS,L3_SERVICE_INFO_TABLES_TV_A.A_STATUS)";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['L3_SERVICE_STATUS']=$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_STATUS'];

$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['L3_SERVICE_INFO']="L3_SERVICE_INFO_TABLES";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_INFO']="concat_ws('',concat('ULICA:',L3_SERVICE_INFO_TABLES_USERS2.S_ADDRESS_STREET),
																			     concat(' TELEFON:',L3_SERVICE_INFO_TABLES_VOIP_A.S_PHONE_NUMBER),
																			     concat(' ULICA:',L3_SERVICE_INFO_TABLES_TV_A.S_ADDRESS_STREET,' TV_CLASS:',L3_SERVICE_INFO_TABLES_TV_A.P_SERVICE_CLASS))";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['L3_SERVICE_INFO']=$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_INFO'];

//@2012-10-05 by sqix : definicja sposobu odniesienia kursora do edycji danych : podajemy NAZWE_FUNKCJI oraz ID rekordu
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['SRC_COLUMN']['SHOW_RECORD_L3']="L3_SERVICE_INFO_TABLES";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['SHOW_RECORD_L3']="concat('<a href=?FUNCTION_INIT=FILTER_SEARCH&ID=',concat_ws('',L3_SERVICE_INFO_TABLES_USERS2.ID,L3_SERVICE_INFO_TABLES_VOIP_A.ID,L3_SERVICE_INFO_TABLES_TV_A.ID),'&NAME_LIST_SERVICES=SES_',SERVICES.NAME_LIST_SERVICES,'_A_EDIT>EDYCJA ',SERVICES.NAME_LIST_SERVICES,'</a>')";
$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['SHOW_RECORD_L3']=$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['TRG_COLUMN']['SHOW_RECORD_L3'];

$_SESSION['SERVICES_COLUMN']['RELATIVEDB']['JOINQUERY']['L3_SERVICE_INFO_TABLES']="left join SES_USERS2_A as L3_SERVICE_INFO_TABLES_USERS2 on L3_SERVICE_INFO_TABLES_USERS2.ID_SERVICES=SERVICES.ID 
																	       		   left join SES_VOIP_A   as L3_SERVICE_INFO_TABLES_VOIP_A on L3_SERVICE_INFO_TABLES_VOIP_A.ID_SERVICES=SERVICES.ID 
																	       		   left join SES_TV_A     as L3_SERVICE_INFO_TABLES_TV_A   on L3_SERVICE_INFO_TABLES_TV_A.ID_SERVICES=SERVICES.ID 
																	        ";


//EOF @2012-10-05 definicja SERVICES RELATIVEDB 





//BEGIN BILLING_USERS_ADD

$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['SRC_COLUMN']['L2_SERVICE_STATUS']="L3_SERVICE_INFO_TABLES";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L2_SERVICE_STATUS']=$A_STATUS_L2_SQL;
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['L2_SERVICE_STATUS']=$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L2_SERVICE_STATUS'];




$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['SRC_COLUMN']['L3_SERVICE_STATUS']="L3_SERVICE_INFO_TABLES";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_STATUS']="concat_ws('',L3_SERVICE_INFO_TABLES_USERS2.A_STATUS,L3_SERVICE_INFO_TABLES_VOIP_A.A_STATUS,L3_SERVICE_INFO_TABLES_TV_A.A_STATUS)";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['L3_SERVICE_STATUS']=$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_STATUS'];

$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['SRC_COLUMN']['L3_SERVICE_INFO']="L3_SERVICE_INFO_TABLES";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_INFO']="concat_ws('',SV.NAME_LIST_SERVICES,' ',concat('ULICA:',L3_SERVICE_INFO_TABLES_USERS2.S_ADDRESS_STREET),
																			     concat(' TELEFON:',L3_SERVICE_INFO_TABLES_VOIP_A.S_PHONE_NUMBER),
																			     concat(' ULICA:',L3_SERVICE_INFO_TABLES_TV_A.S_ADDRESS_STREET,' TV_CLASS:',L3_SERVICE_INFO_TABLES_TV_A.P_SERVICE_CLASS))";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['L3_SERVICE_INFO']=$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['L3_SERVICE_INFO'];

$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['SRC_COLUMN']['SHOW_RECORD_L3']="L3_SERVICE_INFO_TABLES";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['SHOW_RECORD_L3']="concat('<a href=?FUNCTION_INIT=FILTER_SEARCH&ID=',concat_ws('',L3_SERVICE_INFO_TABLES_USERS2.ID,L3_SERVICE_INFO_TABLES_VOIP_A.ID,L3_SERVICE_INFO_TABLES_TV_A.ID),'&NAME_LIST_SERVICES=SES_',SV.NAME_LIST_SERVICES,'_A_EDIT>EDYCJA L3 ',SV.NAME_LIST_SERVICES,'</a>')";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['SHOW_RECORD_L3']=$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['SHOW_RECORD_L3'];


$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['SRC_COLUMN']['SHOW_RECORD_L2']="L3_SERVICE_INFO_TABLES";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['SHOW_RECORD_L2']="concat('<a href=?FUNCTION_INIT=FILTER_SEARCH&ID=',SV.ID,'&NAME_LIST_SERVICES=SERVICES_EDIT>EDYCJA L2 ',SV.NAME_LIST_SERVICES,'</a>')";
$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['SHOW_RECORD_L3']=$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['TRG_COLUMN']['SHOW_RECORD_L3'];




$_SESSION['BILLING_USERS_ADD_COLUMN']['RELATIVEDB']['JOINQUERY']['L3_SERVICE_INFO_TABLES']="
																				   left join SERVICES as SV on SV.ID_BILLING_USERS=BILLING_USERS_ADD.id_users
																				   left join SES_USERS2_A as L3_SERVICE_INFO_TABLES_USERS2 on L3_SERVICE_INFO_TABLES_USERS2.ID_SERVICES=SV.ID 
																	       		   left join SES_VOIP_A   as L3_SERVICE_INFO_TABLES_VOIP_A on L3_SERVICE_INFO_TABLES_VOIP_A.ID_SERVICES=SV.ID 
																	       		   left join SES_TV_A     as L3_SERVICE_INFO_TABLES_TV_A   on L3_SERVICE_INFO_TABLES_TV_A.ID_SERVICES=SV.ID 
																	        ";




//END BILLING_USERS_ADD




//TODO!!!
//$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB']=$_SESSION['SES_USERS2_A_COLUMN']['RELATIVEDB'];
//$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL']=$_SESSION['SES_USERS2_A_COLUMN']['TYPESPECIAL'];





$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_NAME_R']="bu";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_NAME_R']="concat(bu.P_NAME , ' ', bu.P_NAME_SECOND)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_NAME_R']="concat(bu.P_NAME , ' ', bu.P_NAME_SECOND)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['SRC_COLUMN']['P_ADDRESS_R']="bu";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['TRG_COLUMN']['P_ADDRESS_R']="concat(bu.P_ADDRESS_POST_CODE , ' ', bu.P_ADDRESS_CITY , ', ul. ' , bu.P_ADDRESS_STREET , ' ' , bu.P_ADDRESS_HOUSE , ' / ' , bu.P_ADDRESS_HOME)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['P_ADDRESS_R']="concat(bu.P_ADDRESS_POST_CODE , ' ', bu.P_ADDRESS_CITY , ', ul. ' , bu.P_ADDRESS_STREET , ' ' , bu.P_ADDRESS_HOUSE , ' / ' , bu.P_ADDRESS_HOME)";
$_SESSION['USERS2_WINDYKACJA_COLUMN']['RELATIVEDB']['JOINQUERY']['bu']="LEFT JOIN `BILLING_USERS_ADD` as bu on (USERS2_WINDYKACJA.`ID_BILLING_USERS`=bu.`id_users`)";



$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['RELATIVEDB']['SRC_COLUMN']['ID_PROJECT']="IN7_MK_BAZA_DYSTRYBUCJI";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['RELATIVEDB']['TRG_COLUMN']['ID_PROJECT']="concat('<font color=red>Znak Pisma( xx-',IN7_MK_BAZA_DYSTRYBUCJI.P_ID,'-',IN7_MK_BAZA_DYSTRYBUCJI.ID,'-',IN7_DZIENNIK_KORESP.ID,')</font> (',IN7_MK_BAZA_DYSTRYBUCJI.M_DIST_DESC,')<b>',IN7_MK_BAZA_DYSTRYBUCJI.M_DISTRIBUTOR,' <i>',IN7_MK_BAZA_DYSTRYBUCJI.L_APPOITMENT_USER,'</i></b><u>',IN7_MK_BAZA_DYSTRYBUCJI.A_STATUS,'</u>') ";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['ID_PROJECT']="concat(IN7_MK_BAZA_DYSTRYBUCJI.M_DIST_DESC,IN7_MK_BAZA_DYSTRYBUCJI.ID)";
$_SESSION['IN7_DZIENNIK_KORESP_COLUMN']['RELATIVEDB']['JOINQUERY']['IN7_MK_BAZA_DYSTRYBUCJI']="LEFT JOIN IN7_MK_BAZA_DYSTRYBUCJI on IN7_DZIENNIK_KORESP.ID_PROJECT=IN7_MK_BAZA_DYSTRYBUCJI.ID";

//offer costs
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['SRC_COLUMN']['ID_PROJECT']="IN7_MK_BAZA_DYSTRYBUCJI";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['TRG_COLUMN']['ID_PROJECT']="concat(IN7_MK_BAZA_DYSTRYBUCJI.P_ID,'-',IN7_MK_BAZA_DYSTRYBUCJI.ID,'-',IN7_MK_BAZA_DYSTRYBUCJI.M_DIST_DESC,')<b>',IN7_MK_BAZA_DYSTRYBUCJI.M_DISTRIBUTOR,'-<i>',IN7_MK_BAZA_DYSTRYBUCJI.L_APPOITMENT_USER,'</i></b>-<u>',IN7_MK_BAZA_DYSTRYBUCJI.A_STATUS,'</u>-',IN7_MK_BAZA_DYSTRYBUCJI.TV_SIGAL_DELIVERY) ";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['ID_PROJECT']="concat(IN7_MK_BAZA_DYSTRYBUCJI.P_ID,'-',IN7_MK_BAZA_DYSTRYBUCJI.ID,'-',IN7_MK_BAZA_DYSTRYBUCJI.M_DIST_DESC,'-',IN7_MK_BAZA_DYSTRYBUCJI.A_STATUS,'-',IN7_MK_BAZA_DYSTRYBUCJI.TV_SIGAL_DELIVERY)";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['JOINQUERY']['IN7_MK_BAZA_DYSTRYBUCJI']="LEFT JOIN IN7_MK_BAZA_DYSTRYBUCJI on USERS2_OFFERS_COSTS.ID_PROJECT=IN7_MK_BAZA_DYSTRYBUCJI.ID";
// virtual column
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['PERMEDIT']['TV_NAZWA_PROGRAMU'] = 'R';
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['SRC_COLUMN']['TV_NAZWA_PROGRAMU']="IN7_MK_BAZA_DYSTRYBUCJI";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['TRG_COLUMN']['TV_NAZWA_PROGRAMU']="IN7_MK_BAZA_DYSTRYBUCJI.TV_NAZWA_PROGRAMU";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['TV_NAZWA_PROGRAMU']="IN7_MK_BAZA_DYSTRYBUCJI.TV_NAZWA_PROGRAMU";

$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['SRC_COLUMN']['ID_COSTS_GROUPS']="USERS2_OFFERS_COSTS_GROUPS";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['TRG_COLUMN']['ID_COSTS_GROUPS']="concat(USERS2_OFFERS_COSTS_GROUPS.ID,'-',USERS2_OFFERS_COSTS_GROUPS.S_OTHER_INFO,'-',USERS2_OFFERS_COSTS_GROUPS.A_STATUS,'(<b>',USERS2_OFFERS_COSTS_GROUPS.P_OFFER_COSTS,'</b>)') ";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['ID_COSTS_GROUPS']="concat(USERS2_OFFERS_COSTS_GROUPS.ID,'-',USERS2_OFFERS_COSTS_GROUPS.S_OTHER_INFO,'-',USERS2_OFFERS_COSTS_GROUPS.A_STATUS)";
$_SESSION['USERS2_OFFERS_COSTS_COLUMN']['RELATIVEDB']['JOINQUERY']['USERS2_OFFERS_COSTS_GROUPS']="LEFT JOIN USERS2_OFFERS_COSTS_GROUPS on USERS2_OFFERS_COSTS.ID_COSTS_GROUPS=USERS2_OFFERS_COSTS_GROUPS.ID";




$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SRC_COLUMN']['INTERNET_STATUS']="temp_USERS2_INTERNET_STATUS";
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['TRG_COLUMN']['INTERNET_STATUS']="temp_USERS2_INTERNET_STATUS.USERS2_INTERNET_STATUS";
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['INTERNET_STATUS']="temp_USERS2_INTERNET_STATUS.USERS2_INTERNET_STATUS";
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['JOINQUERY']['temp_USERS2_INTERNET_STATUS']="LEFT JOIN temp_USERS2_INTERNET_STATUS as temp_USERS2_INTERNET_STATUS on temp_USERS2_INTERNET_STATUS.S_ADDRESS_STREET=USERS2_MARKETING.S_ADDRESS_STREET ";




//USERS2_OFFERS_COSTS_GROUPS
/* ???
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['RELATIVEDB']['SRC_COLUMN']['S_OTHER_INFO']="USERS2_OFFERS_COSTS";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['RELATIVEDB']['TRG_COLUMN']['S_OTHER_INFO']="USERS2_OFFERS_COSTS_GROUPS.S_OTHER_INFO";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['RELATIVEDB']['TRG_COLUMN_NAME']['S_OTHER_INFO']="USERS2_OFFERS_COSTS_GROUPS.S_OTHER_INFO";
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['RELATIVEDB']['JOINQUERY']['USERS2_OFFERS_COSTS']="LEFT JOIN USERS2_OFFERS_COSTS as USERS2_OFFERS_COSTS on USERS2_OFFERS_COSTS.ID_COSTS_GROUPS=USERS2_OFFERS_COSTS_GROUPS.ID ";
*/
$_SESSION['USERS2_OFFERS_COSTS_GROUPS_COLUMN']['RELATIVEDB']['SQL_QUERY'][1]="

--	update `USERS2_OFFERS_COSTS_GROUPS` ug set
--		`P_OFFER_COSTS`=(select sum(if(us.`COST_ACCOUNTED_ON`='MONTHLY',us.`COST_POWER`,us.`COST_POWER`/12))
--			from `USERS2_OFFERS_COSTS` as us
--			where us.`ID_COSTS_GROUPS`=ug.`ID` and us.`A_STATUS` in('WAITING','NORMAL')
--		) ;

	update `USERS2_OFFERS_COSTS_GROUPS` ug
		set
			`P_OFFER_COSTS`=(select sum(us.`COST_POWER`)
				from `USERS2_OFFERS_COSTS` as us
				where
					us.`ID_COSTS_GROUPS`=ug.`ID`
					and us.`A_STATUS` in('WAITING','NORMAL')
					and us.`COST_ACCOUNTED_ON`='MONTHLY'
			)
			, `P_OFFER_COSTS_START`=(select sum(us.`COST_POWER`)
				from `USERS2_OFFERS_COSTS` as us
				where
					us.`ID_COSTS_GROUPS`=ug.`ID`
					and us.`A_STATUS` in('WAITING','NORMAL')
					and us.`COST_ACCOUNTED_ON`='START'
			)

";



//TODO madrzejsza inicjalizacja zapytania
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" drop table if exists temp_USERS2_INTERNET_STATUS; ";

//@2012-09-24_inicjalizacja danych dla handlowcow by SQIX
//$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][2]=" create table temp_USERS2_INTERNET_STATUS select ID,S_ADDRESS_STREET,concat(A_STATUS,'.',A_STATUS_CURRENT,'.',P_SERVICE,' SPEED:',P_SERVICE_QUOTA,' DEALD:',P_DEALNUMBER,' VIP:',S_VIP_LEVEL) as USERS2_INTERNET_STATUS , P_DEALEXPIRE  from USERS2 ; ";
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" create table temp_USERS2_INTERNET_STATUS 

select SV.ID,
US2.S_ADDRESS_STREET, 
 

concat_ws('',".$A_STATUS_L2_SQL."
   
    ,'.', coalesce(US2.A_STATUS_CURRENT), ' USLUGA:INTERNET(USERS2)' , ' GNIAZDO/USL:',US2.P_SERVICE,' CENA:',coalesce(SV.ABONAMENT_VALUE),' SPEED:',coalesce(US2.P_SERVICE_QUOTA),' DEALD:(',coalesce(DT.ID),coalesce(DT.P_DEALPREFIX), '):', coalesce(DT.P_DEALDATE),'--',coalesce(DT.P_DEALDATE_TERM),
    ' KONTAKT_L2:',coalesce(BUA.P_PHONE),',', coalesce(BUA.user_mail_contact),',' , coalesce(BUA.P_FAX)) as USERS2_INTERNET_STATUS
 , DT.P_DEALDATE_TERM as P_DEALEXPIRE , SV.NAME_LIST_SERVICES
 , ".$A_STATUS_L2_SQL."
 as A_STATUS, SV.HANGUP_STATUS
 
 from SERVICES as SV
inner JOIN  SES_USERS2_A as US2  on SV.ID=US2.ID_SERVICES
		inner JOIN BILLING_USERS_ADD  as BUA on BUA.id_users=SV.ID_BILLING_USERS

left join DEALS_TABLE as DT on DT.ID=SV.ID_DEALS_TABLE


where SV.NAME_LIST_SERVICES='USERS2' and ( SV.P_ID_SERVICES is NULL   or SV.P_ID_SERVICES=0) 

		
;




"; //eof 

$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" insert ignore into temp_USERS2_INTERNET_STATUS 


	
		select SV.ID,
		US2.S_ADDRESS_STREET, 
		 
		
		
		concat_ws('',
		
		  ".$A_STATUS_L2_SQL." ,'.', coalesce(US2.A_STATUS_CURRENT), ' USLUGA:',SV.NAME_LIST_SERVICES , ' GNIAZDO/USL:',US2.P_SERVICE,' CENA:',coalesce(SV.ABONAMENT_VALUE),' DEALD:(',coalesce(DT.ID),coalesce(DT.P_DEALPREFIX), '):', coalesce(DT.P_DEALDATE),'--',coalesce(DT.P_DEALDATE_TERM),
		    ' KONTAKT_L2:',coalesce(BUA.P_PHONE),',' ,coalesce(BUA.user_mail_contact),',' , coalesce(BUA.P_FAX)) as USERS2_INTERNET_STATUS
		 , DT.P_DEALDATE_TERM as P_DEALEXPIRE , SV.NAME_LIST_SERVICES
		 , ".$A_STATUS_L2_SQL.", SV.HANGUP_STATUS
		 
		 from SERVICES as SV
		inner JOIN  SES_TV_A as US2  on SV.ID=US2.ID_SERVICES
				inner JOIN BILLING_USERS_ADD  as BUA on BUA.id_users=SV.ID_BILLING_USERS
		left join DEALS_TABLE as DT on DT.ID=SV.ID_DEALS_TABLE
		
		
		where SV.NAME_LIST_SERVICES='TV' and ( SV.P_ID_SERVICES is NULL   or SV.P_ID_SERVICES=0) 
		


";


$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" insert ignore into temp_USERS2_INTERNET_STATUS 


	
		select SV.ID,
		US22.S_ADDRESS_STREET, 
		 
		
		
		concat_ws('',".$A_STATUS_L2_SQL."
		    ,'.', coalesce(US2.A_STATUS_CURRENT), ' USLUGA:',SV.NAME_LIST_SERVICES , ' GNIAZDO/USL:',US2.S_PHONE_NUMBER,' CENA:',coalesce(SV.ABONAMENT_VALUE),' DEALD:(',coalesce(DT.ID),coalesce(DT.P_DEALPREFIX), '):', coalesce(DT.P_DEALDATE),'--',coalesce(DT.P_DEALDATE_TERM) ,
		     ' KONTAKT_L2:',coalesce(BUA.P_PHONE),',' ,coalesce(BUA.user_mail_contact),',' , coalesce(BUA.P_FAX)) as USERS2_INTERNET_STATUS
		 , DT.P_DEALDATE_TERM as P_DEALEXPIRE , SV.NAME_LIST_SERVICES
		 ,  ".$A_STATUS_L2_SQL."
 as A_STATUS, SV.HANGUP_STATUS
		 
		 from SERVICES as SV
		inner JOIN  SES_VOIP_A as US2  on SV.ID=US2.ID_SERVICES
		inner JOIN BILLING_USERS_ADD  as BUA on BUA.id_users=SV.ID_BILLING_USERS
		   inner JOIN SERVICES as SV2 on SV2.P_ID_SERVICES=SV.ID
  		   inner JOIN SES_USERS2_A as US22 on US22.ID_SERVICES=SV2.ID
  		   
		left join DEALS_TABLE as DT on DT.ID=SV.ID_DEALS_TABLE
		
		
		where SV.NAME_LIST_SERVICES='VOIP' and ( SV.P_ID_SERVICES is NULL   or SV.P_ID_SERVICES=0) 
		


";
unset($_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY']);

$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" ALTER TABLE  temp_USERS2_INTERNET_STATUS CHANGE  USERS2_INTERNET_STATUS  USERS2_INTERNET_STATUS VARCHAR( 255 ) NOT NULL;";

$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" insert ignore into USERS2_MARKETING (A_RECORD_CREATE_DATE,A_RECORD_CREATE_AUTHOR,S_ADDRESS_STREET,T_NETWORK_SERVER,P_PHONE,P_OTHER_INFO,A_STATUS,A_STATUS_INFO,S_ALIAS) SELECT A_RECORD_CREATE_DATE,A_RECORD_CREATE_AUTHOR,S_ADDRESS_STREET,T_NETWORK_SERVER,P_PHONE,P_OTHER_INFO,A_STATUS,A_STATUS_INFO,S_ALIAS FROM USERS2 ORDER BY A_RECORD_UPDATE_DATE DESC ; ";
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" UPDATE USERS2_MARKETING AS USERS2_MARKETING , USERS2 AS USERS2 SET USERS2_MARKETING.S_ALIAS=USERS2.S_ALIAS , USERS2_MARKETING.P_PHONE=USERS2.P_PHONE WHERE USERS2_MARKETING.S_ADDRESS_STREET=USERS2.S_ADDRESS_STREET AND USERS2.A_RECORD_UPDATE_DATE>USERS2_MARKETING.A_RECORD_UPDATE_DATE and 1=0 ;";
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" alter table temp_USERS2_INTERNET_STATUS add index(S_ADDRESS_STREET) , add  index(USERS2_INTERNET_STATUS) ; ";
//@2012-04-24 aktualizacja ADM_COMPANY z BUILDINGS
$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SQL_QUERY'][]=" UPDATE USERS2_MARKETING AS USERS2_MARKETING , BUILDINGS AS BUILDINGS SET USERS2_MARKETING.A_ADM_COMPANY=BUILDINGS.A_ADM_COMPANY WHERE USERS2_MARKETING.T_TELBOX_BUILDING_IN=BUILDINGS.S_ADDRESS_STREET;";


//TODO czy to dziala ?
$_SESSION['KSIEG_DOKUMENTY_COLUMN']['RELATIVEDB']['SQL_QUERY'][1]=" update KSIEG_DOKUMENTY set wartosc=ILOSC*CENA_JEDN_NETTO; ";

$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['RELATIVEDB']['SQL_QUERY'][1]="
update IN7_MK_BAZA_DYSTRYBUCJI set T_WORKPOINTS_TYPE=if(M_DIST_INVOICE_IN_KSIEG!='0000-00-00','7) OK',
if(M_DIST_CLAIM_DATE!='0000-00-00','6) BRAK FAKTURY',

if(unix_timestamp(now())>(unix_timestamp(M_DIST_TERM_OF_CLAIM)-404800) and M_DIST_TERM_OF_CLAIM!='0000-00-00','1) PILNIE ODDAJ MATERIALY termin mniej niz 4 dni !!!',
if(unix_timestamp(now())>(unix_timestamp(M_DIST_TERM_OF_CLAIM)-604800) and M_DIST_TERM_OF_CLAIM!='0000-00-00','5) ODDAJ MATERIALY termin mniej niz 7 dni',
if(unix_timestamp(now())<=(unix_timestamp(M_DIST_TERM_OF_CLAIM)-604800) and M_DIST_TERM_OF_CLAIM!='0000-00-00' and M_DIST_DATE!='0000-00-00' ,'4) ODDAJ MATERIALY termin ponad 7 dni ',
if(unix_timestamp(now())>(unix_timestamp(M_DIST_DATE)-1204800) and M_DIST_ORDER_DATE='0000-00-00','2) PILNIE WYPISZ ZAMOWIENIE !!!',

if(M_DIST_ORDER_DATE='0000-00-00','3) WYPISZ ZAMOWIENIE','ERROR IF')
)
)
)
)
)
); ";

//$_SESSION['IN7_MK_BAZA_DYSTRYBUCJI_COLUMN']['RELATIVEDB'][SQL_QUERY][2]="update IN7_MK_BAZA_DYSTRYBUCJI as t1, KSIEG_DOKUMENTY as t2 set t1.M_DIST_DOCUMENTED_COST=sum(t2.wartosc) where t1.ID=t2.ID_PROJECT group by t1.ID";


//$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['SRC_COLUMN'][VOIP_STATUS]="USERS2_VOIP_STATUS";
//$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['TRG_COLUMN'][VOIP_STATUS]="A_STATUS";
//$_SESSION['USERS2_MARKETING_COLUMN']['RELATIVEDB']['JOINQUERY'][USERS2_VOIP_STATUS]="LEFT JOIN USERS2 as USERS2_VOIP_STATUS on ( USERS2_VOIP_STATUS.S_ADDRESS_STREET=USERS2_MARKETING.S_ADDRESS_STREET and USERS2_VOIP_STATUS.P_SERVICE not like '%VOIP%' ) ";




//print_r($_SESSION);
if(strstr($_SESSION['ADM_ADMIN_DESC'],"Podwykonawca")) {


echo "<hr> TRyb serwisu <hr>";
 $_SESSION['PERMMENU']['IN7_SERWIS']="X";
//  $_SESSION['SES_USERS2_A_COLUMN'][SPECIALFILTER]=" and ( USERS2.L_APPOITMENT_USER like '".$_SESSION[ADM_ACCOUNT]."' or ( USERS2.A_STATUS like 'WAITING' and USERS2.A_PROBLEM!='' )  ) ";
  $_SESSION['SES_USERS2_A_COLUMN']['SPECIALFILTER']=" and ( SES_USERS2_A.L_APPOITMENT_USER like '".$_SESSION['ADM_ACCOUNT']."' ) ";
  $_SESSION['SES_TV_A_COLUMN']['SPECIALFILTER']=" and ( SES_TV_A.L_APPOITMENT_USER like '".$_SESSION['ADM_ACCOUNT']."' ) ";
  $_SESSION['SES_VOIP_A_COLUMN']['SPECIALFILTER']=" and ( SES_VOIP_A.L_APPOITMENT_USER like '".$_SESSION['ADM_ACCOUNT']."' ) ";


  $RESET_COLUMN=array('EXTRA_SERVICES_COLUMN','TELBOX_COLUMN','DEVICES_COLUMN','BUILDINGS_COLUMN','USERS2_MARKETING_COLUMN','USERS2_MARKETING_OVERWIEV_COLUMN','IN7_DZIENNIK_KORESP_COLUMN','USERS2_DEALS_COLUMN','USERS2_WINDYKACJA_COLUMN','KSIEG_DOKUMENTY_COLUMN','IN7_MK_BAZA_DYSTRYBUCJI_COLUMN');
// global $MENUS ;
// print_r($MENUS);

 foreach($RESET_COLUMN as $RCOLUMN) {
  foreach($_SESSION[$RCOLUMN]['PERMEDIT'] as $V=>$I) {
//    echo " z $RCOLUMN V to $V i to $I <br>";
        $_SESSION[$RCOLUMN]['PERMEDIT'][$V]="";
  }
 }


$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS']='RWX';
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['A_STATUS_CURRENT']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['P_DEALNUMBER']="R";
$_SESSION['SES_USERS2_A_COLUMN']['PERMEDIT']['TAB_UPDATE_STAT']="R";
   //SERWIS
} //SERIS ?


// 2011-08-01: VOIP_CENNIK, VOIP_MAP, VOIP_PROMO, VOIP_FREE_TIME
include dirname(__FILE__) . '/' . 'superedit-USERS_FIELDS_PROFILE_INIT-VOIP.php';


if (true) {// celowe wyzwolenie zawsze autopermow $_SESSION['ADM_ADMIN_LEVEL'] == 5
	global $result;

	echo "<h3>Ustawiam profil uprawnien na bazie przydzielonych procesow dla uzytkownika </h3>";

	// resetuje wszystkie PERMY
	$dbg_czysc_permy = true;
	//@2012-10-21 - testuje aby zawsze wyzwalac autopermy, dla admin level ==1,0 po prostu nie czyscimy permow
	if($_SESSION['ADM_ADMIN_LEVEL']<=1) $dbg_czysc_permy = false;
	
	if ($dbg_czysc_permy) { echo 'usuwam uprawnienia dla tabel: '; }
	foreach ($_SESSION as $ses_col_name => $col_vars) {
		if (!is_array($col_vars) || empty($col_vars)) continue;
		if ('_COLUMN' != substr($ses_col_name, -1 * strlen('_COLUMN'))) {
			continue;
		}
		if (empty($col_vars['PERMEDIT'])) continue;
		if ($dbg_czysc_permy) { echo '<b style="color:green">' . $ses_col_name . '</b> '; 
			foreach ($col_vars['PERMEDIT'] as $col_perm_ind => $col_perm_value) {
				if ($col_perm_ind != 'ID') $_SESSION[$ses_col_name]['PERMEDIT'][$col_perm_ind] = "";
			}
		}
	}
	if ($dbg_czysc_permy) { echo '<br />'; }
	unset($dbg_czysc_permy);

	echo "\n<br>aktualne ustawienia";
	$userAcl = User::getAcl();
	//		$_SESSION['ID_ZASOBOW_USERA'][$r->ID_ZASOB]=$r->ID_ZASOB;
	$ID_ZASOBOW_USERA = $userAcl->fetchGroups();
	$ID_ZASOBOW_USERA = array_keys($ID_ZASOBOW_USERA);

	//szukam procesow, w ktorych moze grzebac
	DEBUG_S(3,"ID ZASOBOW USERA: ",$ID_ZASOBOW_USERA,__FILE__, __FUNCTION__, __LINE__);

	if (empty($ID_ZASOBOW_USERA)) {
		echo '<p style="color:red">' . "Brak przypisanego stanowiska!" . " Zaktualizuj je <a href='procesy5.php?task=USER_EDIT&_user_id=".$_SESSION['ADM_ID']."&_p=0'>tutaj w menu</a> </p>";
	}
	else if (true) {//1 == V::get('test', '', $_GET)) {
		$userAcl->fetchAllPerms();
	}
	else {// old way

		$db = DB::getDB();

		$ID_PROCESOW_USERA = $userAcl->getProcesIds();
		DEBUG_S(3,"ID_PROCESOW_USERA: ",$ID_PROCESOW_USERA,__FILE__, __FUNCTION__, __LINE__);

		// ! zapisuje cala tabele procesow do arraya (i procesy powiazane GOTO z IF_TRUE_GOTO_FLAG=1)
		$CRM_PROCESS_TREE = $userAcl->getProcesTree();// TODO: raczej nie potrzebne - tylko wewnatrz userAcl
		DEBUG_S(3,"CRM_PROCESS_TREE: ",$CRM_PROCESS_TREE,__FILE__, __FUNCTION__, __LINE__);

		$CRM_PROCES_USERA_UZYTY = $userAcl->getUsedProcesIds();
		$CRM_PROCES_USERA_UZYTY_MAP = $userAcl->getUsedProcesMap();
		DEBUG_S(4,"CRM_PROCES_USERA_UZYTY: ",$CRM_PROCES_USERA_UZYTY,__FILE__, __FUNCTION__, __LINE__);

		unset($CRM_PROCESS_TREE);// ??? TODO - to rm

		if(!empty($CRM_PROCES_USERA_UZYTY)) {

			//$TREE_CRM_WSKAZNIK = array();
			$CRM_TREE_WSKAZNIK_NARZEDZIE = array();
			//$TREE_CRM_WSKAZNIK_DESC = array();
			$TREE_CRM_WSKAZNIK_CONF = array();
			$TREE_CRM_WSKAZNIK_SORT_PRIO = array();

			// ! dla sciezek procesow wyszukuje powiazanych zasobow aby dac im permy
			$zap_sql = "select t1.`ID_PROCES`
					, t1.`ID_ZASOB`
					, replace(t2.`FORM_TREAT`, ',', '') as FORM_TREAT 
					, t3.`DESC` as ZASOB_DESC
					, t3.`TYPE`
					, t4.`DESC` as PARENT_ZASOB_DESC
					, t4.`TYPE` as PARENT_TYPE
					, t3.`SORT_PRIO` as z__SORT_PRIO
					, t3.`OPIS` as ZASOB_OPIS , t1.`ID` as ID_WSKAZNIK
					, t5.`ID` as ID_BAZY_KONFIG
				from `CRM_WSKAZNIK` as t1
					left join `CRM_PRZYPADEK` as t2 on (t1.ID_PRZYPADEK=t2.ID)
					left join `CRM_LISTA_ZASOBOW` as t3 on (t3.ID=t1.ID_ZASOB)
					left join `CRM_LISTA_ZASOBOW` as t4 on (t4.ID=t3.PARENT_ID)
					left join `CRM_LISTA_ZASOBOW` as t5 on (t5.ID=t4.PARENT_ID)
				where
					(
						( t3.`TYPE`='KOMORKA' and t4.`TYPE`='TABELA' )
						or (t3.`TYPE`='NARZEDZIE')
						or (t3.`TYPE`='URL')
					)
					and t1.`A_STATUS` in('NORMAL', 'WAITING')
					and t1.`ID_PROCES` in(" . implode(",", $CRM_PROCES_USERA_UZYTY) . ")
			";
			DEBUG_S(3,"ZAP_SQL do wyszukania powiazanych tabeli itp: ",array($zap_sql,sizeof($CRM_PROCES_USERA_UZYTY)),__FILE__, __FUNCTION__, __LINE__);
			$result = $db->query($zap_sql);
			while ($r = $db->fetch($result)) {
				if ($r->TYPE == 'NARZEDZIE') {//@2012-10-15 walka z warningami sqix
					if (isset($CRM_TREE_WSKAZNIK_NARZEDZIE[$r->ID_ZASOB])) {
						$CRM_TREE_WSKAZNIK_NARZEDZIE[$r->ID_ZASOB] .= $r->FORM_TREAT;
					}
					else {
						$CRM_TREE_WSKAZNIK_NARZEDZIE[$r->ID_ZASOB] = $r->FORM_TREAT;
					}
					$CRM_WSKAZNIK_PROCES_WSKAZNIK_TREE[$r->ID_PROCES][]=$r->ID_WSKAZNIK;//ustawiam wskaznik od procesu, jak user wybierze proces do roboty, to ja poznam co moze mu sie pojawic
				}
				else if ($r->TYPE == 'URL') {
					$CRM_WSKAZNIK_PROCES_WSKAZNIK_TREE[$r->ID_PROCES] []= $r->ID_WSKAZNIK;//ustawiam wskaznik od procesu, jak user wybierze proces do roboty, to ja poznam co moze mu sie pojawic
					$_SESSION['MENU_SELECT_PROCES_DATA']['MENU_COLUMN'][$r->ID_ZASOB]['TYPE'] = $r->TYPE;
					$_SESSION['MENU_SELECT_PROCES_DATA']['MENU_COLUMN'][$r->ID_ZASOB]['DESC'] = $r->ZASOB_DESC;
					$_SESSION['MENU_SELECT_PROCES_DATA']['MENU_COLUMN'][$r->ID_ZASOB]['OPIS'] = $r->ZASOB_OPIS;
				}
				else {
					//$TREE_CRM_WSKAZNIK[$r->ID_ZASOB] .= $r->FORM_TREAT;
					//$TREE_CRM_WSKAZNIK_DESC[$r->ID_ZASOB] = $r->ZASOB_DESC;

					if ($r->PARENT_TYPE == 'TABELA') {
						$CRM_WSKAZNIK_PROCES_WSKAZNIK_TABELA_KONFIG[$r->PARENT_ZASOB_DESC] = $r->ID_BAZY_KONFIG;
						$CRM_WSKAZNIK_PROCES_WSKAZNIK_TREE[$r->ID_PROCES] []= $r->ID_WSKAZNIK;//ustawiam wskaznik od procesu, jak user wybierze proces do roboty, to ja poznam co moze mu sie pojawic
						if (isset($r->FORM_TREAT)) { //@2012-10-15 walka z warningami sqix
							if (isset($TREE_CRM_WSKAZNIK_CONF[$r->PARENT_ZASOB_DESC][$r->ZASOB_DESC])) {
								$TREE_CRM_WSKAZNIK_CONF[$r->PARENT_ZASOB_DESC][$r->ZASOB_DESC] .= $r->FORM_TREAT;
							}
							else {
								$TREE_CRM_WSKAZNIK_CONF[$r->PARENT_ZASOB_DESC][$r->ZASOB_DESC] = $r->FORM_TREAT;
								// echo "<br. . . Dodaje dla:".$r->PARENT_ZASOB_DESC." ".$r->ZASOB_DESC." = ".$r->FORM_TREAT;
							}
						}
						$TREE_CRM_WSKAZNIK_SORT_PRIO[$r->PARENT_ZASOB_DESC][$r->ZASOB_DESC] = $r->z__SORT_PRIO;

						//@2012-10-10 by SQIX : dodajemy opus kolumny z opisu zasobow
						if ($r->ZASOB_OPIS) {
							$_SESSION["{$r->PARENT_ZASOB_DESC}_COLUMN"]['DESC_TO_LANG'][$r->ZASOB_DESC] = $r->ZASOB_OPIS;
						}
						else if (isset($_SESSION["{$r->PARENT_ZASOB_DESC}_COLUMN"]['DESC_TO_LANG'][$r->ZASOB_DESC]) && (strlen($_SESSION["{$r->PARENT_ZASOB_DESC}_COLUMN"]['DESC_TO_LANG'][$r->ZASOB_DESC]) > 1)) {
							echo "<BR> DODAJ opis dla zasobu {$r->ID_ZASOB} w postaci <pre>".$_SESSION["{$r->PARENT_ZASOB_DESC}_COLUMN"]['DESC_TO_LANG'][$r->ZASOB_DESC]."</pre>";
						}
					}
				}
			}

		//echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;">$TREE_CRM_WSKAZNIK_CONF: ';print_r($TREE_CRM_WSKAZNIK_CONF);echo'</pre>';
		DEBUG_S(3,'Oznaczenia baz danych dla tabel',$CRM_WSKAZNIK_PROCES_WSKAZNIK_TABELA_KONFIG,__FILE__,__FUNCTION__,__LINE__);
		$_SESSION['CRM_WSKAZNIK_PROCES_WSKAZNIK_TABELA_KONFIG'] = $CRM_WSKAZNIK_PROCES_WSKAZNIK_TABELA_KONFIG;

		$dbg_set_permy = true;
		// !  inicjalizuje uprawnienia
		foreach ($TREE_CRM_WSKAZNIK_CONF as $ses_column_name => $field_perms_arr) {
			foreach ($field_perms_arr as $k_name => $v_perm) {
				$v_perm = str_split($v_perm);
				$v_perm = array_unique($v_perm);
				$v_perm = implode("", $v_perm);
	
				DEBUG_S(6, "['{$ses_column_name}_COLUMN']['PERMEDIT']['{$k_name}']={$v_perm}",'',__FILE__,__FUNCTION__,__LINE__);
				//if(isset($_SESSION[$ses_column_name."_COLUMN"]['PERMEDIT'][$k_name]))
				 $_SESSION["{$ses_column_name}_COLUMN"]['PERMEDIT'][$k_name] = $v_perm;
				 //else $_SESSION[$ses_column_name."_COLUMN"]['PERMEDIT'][$k_name] = $v_perm."RWX"; //dokladamy permy do istniejacych!!! @2012-10-21- najlepsze na okres przejsciowy do generowania procesow!
				$debug_perms[]="_SESSION['{$ses_column_name}_COLUMN']['PERMEDIT'][{$k_name}]']={$v_perm}";

				//jezeli jest w kolumnie ID==W , to znaczy, ze mozna dodawac nowy rekord
				if ($k_name == 'ID' && strstr($v_perm, 'W')) {
					$_SESSION[$ses_column_name."_COLUMN"]['FUNCPERMEDIT']['NEW_RECORD'] = "RWXC";
					$_SESSION[$ses_column_name."_COLUMN"]['FUNCPERMEDIT']['TABLE_INSERTDB'] = "RWXC";
				}

				//jezeli jest funkcja powiazana to uprawnienia dostajemy takie same jak z komorki do tej funkcji!
				if (isset($_SESSION[$ses_column_name."_COLUMN"]['TYPESPECIAL'][$k_name])) {
					$debug_perms []= "_SESSION['{$ses_column_name}_COLUMN']['FUNCPERMEDIT']['".$_SESSION["{$ses_column_name}_COLUMN"]['TYPESPECIAL'][$k_name]."']={$v_perm}";
					$_SESSION["{$ses_column_name}_COLUMN"]['FUNCPERMEDIT'][$_SESSION["{$ses_column_name}_COLUMN"]['TYPESPECIAL'][$k_name]] = $v_perm;
				}
			}

			{// sort DESC by ZASOB.SORT_PRIO
				$desc_to_sort = array();
				if(!isset($_SESSION["{$ses_column_name}_COLUMN"]['DESC'])) {} //echo "<br><font color=red>L2375 Brak definicji w systemie opisanej procesami tabeli <b>".$ses_column_name."</b></font>"; //@2012-10-15 sqix walka z warningami
				else 
				foreach ($_SESSION["{$ses_column_name}_COLUMN"]['DESC'] as $k_ind => $v_val) {
					$desc_to_sort[$v_val] = $k_ind;
				}

				$TREE_CRM_WSKAZNIK_SORT_PRIO[$ses_column_name];
				asort($TREE_CRM_WSKAZNIK_SORT_PRIO[$ses_column_name]);

				$new_desc = array();
				foreach ($TREE_CRM_WSKAZNIK_SORT_PRIO[$ses_column_name] as $k_name => $v_sort_prio) {
					if (!isset($desc_to_sort[$k_name])) {
						//echo "<br><font color=red>Brak spojnosci definicji dla kolumny : ".$ses_column_name."[<b>".$k_name."</b>] </font>";
					}
					else {
						$new_desc[ $desc_to_sort[$k_name] ] = $k_name;//@2012-10-15 walka z warningami sqix
					}
				}
				// add columns
				foreach ($desc_to_sort as $k_name => $v_ind) {
					$new_desc[ $v_ind ] = $k_name;
				}

				$_SESSION["{$ses_column_name}_COLUMN"]['DESC'] = $new_desc;
			}// sort DESC by ZASOB.SORT_PRIO
		}
		unset($dbg_set_permy);
		$_SESSION['CRM_PROCES_USERA_UZYTY'] = $CRM_PROCES_USERA_UZYTY;
		$_SESSION['CRM_PROCES_USERA_UZYTY_MAP'] = $CRM_PROCES_USERA_UZYTY_MAP;
		$_SESSION['CRM_LISTA_ZASOBOW_TREE'] = $CRM_TREE_WSKAZNIK_NARZEDZIE;//zapisanie jakie zasoby user ma dostepne!!! TODO
		$_SESSION['CRM_WSKAZNIK_PROCES_WSKAZNIK_TREE'] = $CRM_WSKAZNIK_PROCES_WSKAZNIK_TREE;//zapisanie jakie zasoby user ma dostepne!!! TODO
		// ! tutaj poszukamy co jest proces_init tylko z CRM_PROCES_USERA_UZYTY_MAP
		$CRM_PROCES_USERA_UZYTY_MAP = array_keys($CRM_PROCES_USERA_UZYTY_MAP);
		//DEBUG_S(-3,'menu_to_show',$menu_to_show,__FILE__,__FUNCTION__,__LINE__);
			if (!empty($CRM_PROCES_USERA_UZYTY_MAP)) {
				$sql = "select `ID`,`DESC` from `CRM_PROCES` where `TYPE`='PROCES_INIT' and ID in (".implode(",", $CRM_PROCES_USERA_UZYTY_MAP).") ";
				$result = $db->query($sql);
				$CRM_PROCES_USERA_UZYTY_MAP_PROCES_INIT = array();
				while ($h = $db->fetch($result)) {
					$CRM_PROCES_USERA_UZYTY_MAP_PROCES_INIT []= $h->ID;
				}
				$_SESSION['CRM_PROCES_USERA_UZYTY_MAP_PROCES_INIT'] = $CRM_PROCES_USERA_UZYTY_MAP_PROCES_INIT;
			}
		}
	}

	//nie wiem czy to tu wstawic czy wyzej ??? proba inicjalizacji tabel na bazie uzytych tabel::
	//zerzniete z MENU by PIOTR by sqix
	foreach ($_SESSION as $COLUMN_INDEX => $COLUMN_VAR) {
		if (substr($COLUMN_INDEX, -7) == '_COLUMN') {
			$prems_ok = false;
			if (isset($COLUMN_VAR['PERMEDIT'])) {
				$fields_deafult_R = array('ID','A_RECORD_CREATE_DATE','A_RECORD_CREATE_AUTHOR','A_RECORD_UPDATE_DATE','A_RECORD_UPDATE_AUTHOR');
				foreach ($COLUMN_VAR['PERMEDIT'] as $k_field => $v_perm) {
					if (in_array($k_field, $fields_deafult_R)) {
						continue;
					}
					if (false !== strpos($v_perm, 'R')) {
						$prems_ok = true;
					}
				}
			}
			if ($prems_ok) {
				if (substr($COLUMN_INDEX, -12) != '_HIST_COLUMN')  { // jezeli nie jest kolumna HIST!!
					$RELATIVEDB_TRG_COLUMN_PARM = ""; //parametr do przekazanie do funkcji dla extracolumn wirtualnych
					if (is_array($COLUMN_VAR))
					if (isset($COLUMN_VAR['RELATIVEDB']))
					if (isset($COLUMN_VAR['RELATIVEDB']['TRG_COLUMN']))
					foreach ($COLUMN_VAR['RELATIVEDB']['TRG_COLUMN'] as $VCOLUMN => $VCOLUMN_VAR) {
						if (empty($RELATIVEDB_TRG_COLUMN_PARM)) {
							$RELATIVEDB_TRG_COLUMN_PARM = $VCOLUMN;
						}
						else {
							$RELATIVEDB_TRG_COLUMN_PARM .= " ".$VCOLUMN;
						}
					}
					DEBUG_S(1, 'perms_ok('.$COLUMN_INDEX.') = "' . $prems_ok . '"',array($COLUMN_VAR,$RELATIVEDB_TRG_COLUMN_PARM),__FILE__,__FUNCTION__,__LINE__);
					SEF('USERS_COLUMN_INIT2');

					global $special_tables_ignore_init;
					if (!isset($special_tables_ignore_init)) $special_tables_ignore_init = array();

					if (!in_array(substr($COLUMN_INDEX, 0, (strlen($COLUMN_INDEX) - 7)), $special_tables_ignore_init)) {
						//if(!isset($_SESSION[$COLUMN_INDEX]['DESC'])) {
						DEBUG_S(3, 'Uruchamiam '.$COLUMN_INDEX.' USERS_COLUMN_INIT2(' . substr($COLUMN_INDEX,0,(strlen($COLUMN_INDEX)-7)) . ',0,'.$RELATIVEDB_TRG_COLUMN_PARM.',N)',array($COLUMN_INDEX,$special_tables_ignore_init),__FILE__,__FUNCTION__,__LINE__);
#OFF 2013-06-11						USERS_COLUMN_INIT2(substr($COLUMN_INDEX, 0, (strlen($COLUMN_INDEX) - 7)), $RELATIVEDB_TRG_COLUMN_PARM, 'N', '');
					}
				}
			}
		}
	}
}


}
