//select all function _sys_fman_selectall(number){ var tmp=1; while(tmp<=number){ eval("document.filelist.f"+tmp+".checked=true;"); tmp+=1; } return false; } //deselect all function _sys_fman_deselectall(number){ var tmp=1; while(tmp<=number){ eval("document.filelist.f"+tmp+".checked=false;"); tmp+=1; } return false; } //move selected function _sys_fman_moveselected(){ newdir=prompt("Zadajte nové umiestnenie (relatívne k aktuálnemu adresáru):", ''); if(newdir!="" && newdir!=null){ document.filelist.action.value='move'; document.filelist.param.value=newdir; document.filelist.submit(); } } //delete selected function _sys_fman_deleteselected(){ if(confirm("naozaj chcete odstrániť zaškrtnuté súbory?")){ document.filelist.action.value='deleteselected'; document.filelist.submit(); } } //add selected to gallery function _sys_fman_addselectedtogallery(){ galid=prompt("Zadajte ID galérie:", ''); if(galid!="" && galid!=null){ document.filelist.action.value='addtogallery'; document.filelist.param.value=galid; document.filelist.submit(); } } //upload files var totalfiles=1; function _sys_addfile(){ if(totalfiles!=128){ totalfiles=totalfiles+1; document.getElementById('f'+totalfiles).innerHTML=document.getElementById('f'+totalfiles).innerHTML+"
zrušiť"; } else{ alert('Nemožno pridať viac súborov.'); } return false; } function _sys_removefile(id){ document.getElementById('f'+id).innerHTML=""; return false; }