[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 // special function for content part form 2 3 function showHide_TeaserArticleSelection(value) { 4 5 if(value == 0) { 6 7 toggleDisplayById('calink_auto_0', 'none'); 8 toggleDisplayById('calink_auto_1', 'none'); 9 toggleDisplayById('prio0', 'none'); 10 toggleDisplayById('prio1', 'none'); 11 toggleDisplayById('calink_manual_0', ''); 12 toggleDisplayById('calink_manual_1', ''); 13 14 } else { 15 16 toggleDisplayById('calink_manual_0', 'none'); 17 toggleDisplayById('calink_manual_1', 'none'); 18 toggleDisplayById('calink_auto_0', ''); 19 toggleDisplayById('calink_auto_1', ''); 20 toggleDisplayById('prio0', ''); 21 toggleDisplayById('prio1', ''); 22 23 } 24 25 } 26 27 28 29 30 // special function for content part form 31 32 function showHide_CntFormfieldRow(whichLayer, status, rowplus) { 33 34 if(status == 'block') { 35 innerLink = '<a href="#" onclick="return showHide_CntFormfieldRow(\''+whichLayer+'\', \'none\''; 36 if(rowplus == 4) { 37 innerLink += ', 4'; 38 } 39 innerLink += ')"><img src="img/button/arrow_opened.gif" alt="" border="0" /></a>'; 40 } else { 41 innerLink = '<a href="#" onclick="return showHide_CntFormfieldRow(\''+whichLayer+'\', \'block\''; 42 if(rowplus == 4) { 43 innerLink += ', 4'; 44 } 45 innerLink += ')"><img src="img/button/arrow_closed.gif" alt="" border="0" /></a>'; 46 } 47 48 if (document.getElementById) { 49 // this is the way the standards work 50 document.getElementById(whichLayer+'_1').style.display = status; 51 document.getElementById(whichLayer+'_2').style.display = status; 52 document.getElementById(whichLayer+'_3').style.display = status; 53 54 if(rowplus == 4) { 55 document.getElementById(whichLayer+'_4').style.display = status; 56 } 57 58 document.getElementById(whichLayer).innerHTML = innerLink; 59 60 if(status == 'block') { 61 document.getElementById(whichLayer+'_1').style.display = 'table-row'; 62 document.getElementById(whichLayer+'_2').style.display = 'table-row'; 63 document.getElementById(whichLayer+'_3').style.display = 'table-row'; 64 if(rowplus == 4) { 65 document.getElementById(whichLayer+'_4').style.display = 'table-row'; 66 } 67 } 68 69 } 70 else if (document.all) { 71 // this is the way old msie versions work 72 document.all[whichLayer+'_1'].style.display = status; 73 document.all[whichLayer+'_2'].style.display = status; 74 document.all[whichLayer+'_3'].style.display = status; 75 if(rowplus == 4) { 76 document.all[whichLayer+'_4'].style.display = status; 77 } 78 document.all[whichLayer].innerHTML = innerLink; 79 } 80 else if (document.layers) { 81 // this is the way nn4 works 82 document.layers[whichLayer+'_1'].display = status; 83 document.layers[whichLayer+'_2'].display = status; 84 document.layers[whichLayer+'_3'].display = status; 85 if(rowplus == 4) { 86 document.layers[whichLayer+'_4'].display = status; 87 } 88 document.layers[whichLayer].innerHTML = innerLink; 89 } 90 return false; 91 } 92 93 94 95 function insertOptionBefore(objectId, optionValue, optionText) { 96 var elSel = document.getElementById(objectId); 97 if (elSel.selectedIndex >= 0) { 98 var elOptNew = document.createElement('option'); 99 elOptNew.text = optionText; 100 elOptNew.value = optionValue; 101 var elOptOld = elSel.options[elSel.selectedIndex]; 102 try { 103 elSel.add(elOptNew, elOptOld); // standards compliant; doesn't work in IE 104 } catch(ex) { 105 elSel.add(elOptNew, elSel.selectedIndex); // IE only 106 } 107 } 108 } 109 110 function removeOptionSelected(objectId) { 111 var elSel = document.getElementById(objectId); 112 var i; 113 for (i = elSel.length - 1; i>=0; i--) { 114 if (elSel.options[i].selected) { 115 elSel.remove(i); 116 } 117 } 118 } 119 120 function appendOptionLast(objectId, optionValue, optionText) { 121 var elOptNew = document.createElement('option'); 122 elOptNew.text = optionText; 123 elOptNew.value = optionValue; 124 var elSel = document.getElementById(objectId); 125 try { 126 elSel.add(elOptNew, null); // standards compliant; doesn't work in IE 127 } catch(ex) { 128 elSel.add(elOptNew); // IE only 129 } 130 } 131 132 function removeOptionLast(objectId) { 133 var elSel = document.getElementById(objectId); 134 if (elSel.length > 0) { 135 elSel.remove(elSel.length - 1); 136 } 137 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |