var bg_cache; var id_cache; var action; var action_idx; function toggleItem(idx) { window.location.href='../../../mod/manage/man_sites.html?sid=4Zs8MEhAdfgIE&tree_id='+itemList[idx]['id']; } function itemHiglight(idx,mode) { var bg=bg_cache; if(mode) bg='#777777'; //alert(document.getElementById('item'+idx).innerHTML); bg_cache=document.getElementById('item'+idx).style.backgroundColor; document.getElementById('item'+idx).style.backgroundColor=bg; } function actionHiglight(obj,mode) { var bg=bg_cache; if(mode) bg='#777777'; //alert(document.getElementById(obj).innerHTML); bg_cache=obj.style.backgroundColor; obj.style.backgroundColor=bg; } /***UNUSED (now change form): function itemRename(idx) { var newStr,oldStr; oldStr=document.getElementById('item'+idx).innerHTML; newStr=prompt('Bitte neuen Namen eingeben:',oldStr); //alert('>'+newStr+'< >'+oldStr+'<'+'red.imprint-net.org/ : ../../../'); if(newStr!=oldStr && newStr != null) window.location.href='http://red.imprint-net.org/?sid=4Zs8MEhAdfgIE&mode=rename&id='+itemList[idx]['id']+'&par=val&newStr='+newStr; //alert('http://red.imprint-net.org/?sid=4Zs8MEhAdfgIE&mode=rename&id='+itemList[idx]['id']+'&par=val&newStr='+newStr); }***/ //-----actions: function itemMove(idx) { //alert(id); if(action!=0) { action=0; itemInsertSetVisible(0); } else { action='move'; action_idx=idx; itemInsertSetVisible(1); } } function itemCopy(idx) { //alert(id); if(action!=0) { action=0; itemInsertSetVisible(0); } else { action='copy'; action_idx=idx; itemInsertSetVisible(1); } } function itemInsert(dest_idx) { //if(action) alert(action+' '+action_idx+' to '+dest_idx); itemInsertSetVisible(0); //erst mal nur serverseitiges copy/move/new, sp�ter mit hiddenoper?? //alert('http://red.imprint-net.org/?sid=4Zs8MEhAdfgIE&mode='+action+'&src_id='+itemList[action_idx]['id']+'&dest_id='+itemList[dest_idx]['id']); window.location.href='http://red.imprint-net.org/?sid=4Zs8MEhAdfgIE&mode='+action+'&src_id='+itemList[action_idx]['id']+'&dest_id='+itemList[dest_idx]['id']; } function itemRemove(idx) { //if(confirm('Sind Sie sicher, da� Sie den Eintrag "'+document.getElementById('item'+idx).innerHTML+'" l�schen m�chten?')) // window.location.href='http://red.imprint-net.org/?sid=4Zs8MEhAdfgIE&mode=removenow&obj_id='+itemList[idx]['id']; window.open('http://red.imprint-net.org/mod/manage/man_sites_popup.html?sid=4Zs8MEhAdfgIE&mode=deletecheck&id='+itemList[idx]['id'],'Object_Selection','width=380,height=350,left=100,top=80,toolbar=no,status=no,menubar=no,scrollbars=no'); } function itemChange(idx) { window.open('http://red.imprint-net.org/mod/manage/man_sites_popup.html?sid=4Zs8MEhAdfgIE&mode=changeform&id='+itemList[idx]['id'],'Object_Selection','width=780,height=650,left=100,top=80,toolbar=no,status=no,menubar=no,scrollbars=no'); // &objtype='+itemList[idx]['type']+' } function itemInsertSetVisible(mode) { var v_str='hidden'; if(mode) v_str='visible'; /* for(i = 0; i < document.images.length; ++i) { //alert(document.images[i].id); var img_id=document.images[i].id; if(img_id.match(/item\d+Insert/)) document.images[i].style.visibility=v_str; } */ for(i=0; i