[ Index ] |
|
Code source de IMP H3 (4.1.5) |
1 <script type="text/javascript"> 2 <!-- 3 4 var busyExpanding = false; 5 var searchFields = new Array(); 6 var searchValues = new Array(); 7 8 function expandField(field) 9 { 10 <?php if ($GLOBALS['prefs']->getValue('auto_expand')): ?> 11 if (document.frames) { 12 var iframe = document.frames['autoexpand']; 13 } else if (document.getElementById) { 14 var iframe = document.getElementById('autoexpand'); 15 } else { 16 return; 17 } 18 if (!iframe) { 19 return; 20 } 21 if (!field) { 22 field = new Object(); 23 field.name = searchFields.slice(0, 1); 24 field.value = searchValues.slice(0, 1); 25 } 26 if (busyExpanding) { 27 searchFields[searchFields.length] = field.name; 28 searchValues[searchValues.length] = field.value; 29 window.setTimeout('expandField()', 500); 30 return; 31 } 32 busyExpanding = true; 33 var doc; 34 if (iframe.contentDocument) { 35 doc = iframe.contentDocument; 36 } else if (iframe.contentWindow) { 37 doc = iframe.contentWindow.document; 38 } else if (iframe.document) { 39 doc = iframe.document; 40 } else { 41 return true; 42 } 43 var url = '<?php echo Horde::url(Util::addParameter('expand.php', 'actionID', 'expand_addresses'), true) ?>'; 44 url += '&field_name=' + _escape(field.name); 45 url += '&field_value=' + _escape(field.value); 46 url += '&form_name=' + _escape(field.form.name); 47 48 var status = document.getElementById('expanding' + field.name); 49 status.innerHTML = '<?php echo _("Expanding") ?>'; 50 status.style.visibility = 'visible'; 51 52 doc.location.replace(url); 53 <?php endif; ?> 54 } 55 56 function _escape(value) 57 { 58 if (typeof encodeURIComponent == 'undefined') { 59 return escape(value); 60 } else { 61 return encodeURIComponent(value); 62 } 63 } 64 65 // --> 66 </script>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 12:30:07 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |