// quick select change function onQuickSelChange(obj) { window.location="?mod="+obj.value; } //ajax for subpages var pnid; // id of page which is not shown in ajax var piid; // id of page which is shown in ajax function getSubLvlList(id) { var getString = 'id='+id+'&nid='+pnid+'&iid='+piid; // set some parameters for the ajax request... var myAjax = new Ajax('ajax/AjaxSql.php', { method: 'get', data: getString, update: $('output1'), onComplete: function(req){ $('sub_value').innerHTML = req; $('sub_name').innerHTML = 'podstrona nadrzedna'; } }).request(); // ...and automatically make the ajax request } function getTemplateForPL(plid,id) { var getString = 'id='+id+'&nid='+pnid+'&iid='+piid; // set some parameters for the ajax request... var myAjax = new Ajax('ajax/AjaxSql.php', { method: 'get', data: getString, update: $('output1'), onComplete: function(req){ $('sub_value').innerHTML = req; $('sub_name').innerHTML = 'podstrona nadrzedna'; } }).request(); // ...and automatically make the ajax request } // on select change redirect function onRedirect(u) { window.location = u; } function PopUp(l) { window.open(l,'','resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=120,height=120,left=0,top=0'); return false; } function CustomizedPopUp(l,w,h){ list=l.split("***"); for(var i=0;i') d.writeln('') d.writeln('') d.writeln('kliknij zdjęcie aby zamknąć okno') d.writeln('') d.writeln('') d.writeln('zamknij okno') d.writeln('') d.writeln('') d.close() return false; } function getCursorX(){ return wspL=window.opera?window.clientX:document.all?window.event.x:window.pageX; } function getCursorY(){ return wspT=window.opera?window.clientY:document.all?window.event.y:window.pageY; } // quick menu change function onQuickMenuChange(fn, t) { var ok = QMCheckBoxes(fn); if(ok == false) { (new Dialog('raw','Nie zaznaczono żadnego rekordu.', '')).showRaw(); //alert('Nie zaznaczono żadnego rekordu.'); t[0].selected = true; return false; } //var ok = confirm('zastosować zmiany?'); var ok=false; if(t.value=='del') (new Dialog('confirm','Czy na pewno usunąć zaznaczone rekordy??
Jeśli to zrobisz nie będzie już możliwości cofnięcia zmian.', '')).showConfirmQuickMenu(fn,t.value); else (new Dialog('confirm','zastosować zmiany?', '')).showConfirmQuickMenu(fn,t.value); if(ok === false) { t[0].selected = true; return false; } return true; } function onQuickMenuSubmit(fn,t){ document.forms[fn]['qm_value'].value = t; document.forms[fn].submit(); } function QMCheckBoxes(fn) { var form = document.forms[fn]; var q = form.elements.length; for(var i=0;iedycja' menu+= '| seo' $('form:podmenu').setHTML(menu); if($('SEOhref').getStyle('color')!='#AAA') $('EDhref').setStyle('color','#AAA'); ////wyłączenie pokazywania łapki na pierwszym elemencie; switchCursor('aa'); } } function addSubMenu2(lang,langid,seo){ if(typeof(seo) != 'undefined'){ var menu = 'edycja' menu+= '| seo' $('form:podmenu'+langid).setHTML(menu); $('form:podmenu'+langid).setStyle('display','block'); for(i=0;i<1000;i++){ if(i!=langid && $('form:podmenu'+i)) $('form:podmenu'+i).setStyle('display','none'); } //wyszarzenie seo if($('bkm2_'+lang+'_SEO').getStyle('display')=='none') $('EDhref'+langid).setStyle('color','#AAA'); else $('SEOhref'+langid).setStyle('color','#AAA'); ////wyłączenie pokazywania łapki na pierwszym elemencie; switchCursor2('aa',langid); } } function showTab2(bname, lang){ if(typeof(lang) == "undefined") lang = '' // oznaczenie odpowiedniej zakladki elms = document.getElementsByTagName('li') for(i=0; i' if(this.type == "alert"){ div_alert+= '
' div_alert+= '' div_alert+= '' // guziki div_alert+= '' div_alert+= '

komunikat

'+this.text+'

OK

ANULUJ

'; } div_alert+= '' d.innerHTML = div_alert return false; } function showRaw(){ document.getElementById('sciemniacz').style.display = ''; document.getElementById('sciemniacz').setStyle('height', getScrollHeight()+'px'); document.getElementById('dynamic_content').style.display = ''; var top=window.getScrollTop(); top+=200; d = document.getElementById('dynamic_content'); div_alert = '
' div_alert+= '
' div_alert+= '' div_alert+= '' // guziki div_alert+= '' div_alert+= '

komunikat

'+this.text+'

'; div_alert+= '
' d.innerHTML = div_alert return this.url_ok; } function showConfirmQuickMenu(fn,t){ document.getElementById('sciemniacz').style.display = ''; document.getElementById('sciemniacz').setStyle('height', getScrollHeight()+'px'); document.getElementById('dynamic_content').style.display = ''; var top=window.getScrollTop(); top+=200; var d = document.getElementById('dynamic_content'); div_alert = '
' if(this.type == "confirm"){ div_alert+= '
' div_alert+= '' div_alert+= '' // guziki div_alert+= '' div_alert+= '

komunikat

'+this.text+'

OK

ANULUJ

'; } div_alert+= '
' d.innerHTML = div_alert return false; } function showFilesDeleteList(){ document.getElementById('sciemniacz').style.display = ''; document.getElementById('sciemniacz').setStyle('height', getScrollHeight()+'px'); document.getElementById('dynamic_content').style.display = ''; var top=window.getScrollTop(); top+=200; var d = document.getElementById('dynamic_content'); var url='?mod=file_browser&acn=checkForDelete&type='+this.type+'&file='+this.url_ok; div_alert = '
'; div_alert+= '
'; div_alert+= '

komunikat

'; div_alert+= '

'+this.text+'

'; div_alert+= '
'; div_alert+= ''; div_alert+= '
'; div_alert+= '
'; d.innerHTML = div_alert; new Ajax(url, { method: 'get', evalScripts: true, update: document.getElementById('listOfRecordsWithFiles') }).request(); return false; } function showOpeningDates(){ document.getElementById('sciemniacz').style.display = ''; document.getElementById('sciemniacz').setStyle('height', getScrollHeight()+'px'); document.getElementById('dynamic_content').style.display = ''; var top=window.getScrollTop(); top+=200; var url='?mod=newsletter_msg&acn=getOpeningList'+this.url_ok; div_alert = '
'; div_alert+= '
'; div_alert+= '

komunikat

'; div_alert+= '

'+this.text+'

'; div_alert+= '
'; div_alert+= ''; div_alert+= '
'; div_alert+= '
'; d.innerHTML = div_alert; $('loadingGif').setStyle('display',''); new Ajax(url, { method: 'get', evalScripts: true, update: document.getElementById('listOfRecordsWithFiles') }).request(); return false; } function showLinksDates(){ document.getElementById('sciemniacz').style.display = ''; document.getElementById('sciemniacz').setStyle('height', getScrollHeight()+'px'); document.getElementById('dynamic_content').style.display = ''; var top=window.getScrollTop(); top+=200; var url='?mod=newsletter_msg&acn=getLinkList'+this.url_ok; div_alert = '
'; div_alert+= '
'; div_alert+= '

komunikat

'; div_alert+= '

'+this.text+'

'; div_alert+= '
'; div_alert+= ''; div_alert+= '
'; div_alert+= '
'; d.innerHTML = div_alert; $('loadingGif').setStyle('display',''); new Ajax(url, { method: 'get', evalScripts: true, update: document.getElementById('listOfRecordsWithFiles') }).request(); return false; } function show(){ document.getElementById('dynamic_content').style.display = ''; var d = document.getElementById('dynamic_content'); var top=window.getScrollTop(); top+=200; d.innerHTML = '
'+this.text+'
zamknij [X]
'; return url_ok; } function hide(){ document.getElementById('sciemniacz').style.display = 'none'; document.getElementById('dynamic_content').style.display = 'none'; } function setBounds(w,h){ this.width = w; this.height = h; this.__paint(); } function getHandle(){ if(this.type == 'raw') return document.getElementById('dynamic_content').firstChild; } function __paint(){ var d = document.getElementById('dynamic_content'); d.innerHTML = '
'+this.text+'
zamknij [X]
'; } this.__paint(); } function toggleWindow(toggledItem) { ($(toggledItem).getStyle('display')=='none')?$(toggledItem).setStyle('display','block'):$(toggledItem).setStyle('display','none'); } function setAllChx( name, state ) { var ch = document.getElementsByTagName('input'); for ( var i = 0; i < ch.length; i++ ) { if ( ch[i].type == 'checkbox' && ch[i].name == name) { ch[i].checked = state; } } return true; } function setAllChxByClassName( name, state) { var ch = document.getElementsByTagName('input'); for ( var i = 0; i < ch.length; i++ ) { if ( ch[i].type == 'checkbox' && ch[i].className == name) { if(state == 'inverse')ch[i].checked = !ch[i].checked; else ch[i].checked = state; } } return true; }