[ Index ] |
|
Code source de IMP H3 (4.1.5) |
1 <?php if (!$prefs->isLocked('sent_mail_folder')): ?> 2 <script type="text/javascript"> 3 <!-- 4 5 function newChoice_sent_mail_folder(val) 6 { 7 if (val == "") { 8 document.prefs.sent_mail.selectedIndex = 0; 9 return; 10 } 11 var field = document.prefs.sent_mail; 12 for (var i = 0; i < field.options.length; i++) { 13 if (field.options[i].value == val) { 14 field.selectedIndex = i; 15 break; 16 } 17 } 18 } 19 20 function newFolderName() 21 { 22 if (document.prefs.sent_mail.selectedIndex == 2) { 23 var folder = window.prompt('<?php echo addslashes(_("Enter the name for your new sent mail folder")) ?>', document.prefs.sent_mail_new.value ? document.prefs.sent_mail_new.value : ''); 24 if (folder != '' && folder != null) { 25 document.prefs.sent_mail_new.value = folder; 26 document.prefs.sent_mail[2].text = '<?php echo addslashes(_("Create a new sent mail folder")) ?> [' + document.prefs.sent_mail_new.value + ']'; 27 } 28 } 29 30 if (document.prefs.sent_mail.selectedIndex == 0) { 31 document.prefs.save_sent_mail.checked = 0; 32 } 33 } 34 35 //--> 36 </script> 37 38 <?php echo Horde::label('sent_mail', _("Sent mail folder:")) ?><br /> 39 <select name="sent_mail" id="sent_mail" onchange="newFolderName();"> 40 <option value=""><?php echo _("None") ?></option> 41 <option value="-1" selected="selected"><?php echo _("Use Default Value") ?></option> 42 <?php echo IMP::flistSelect(_("Create a new sent mail folder"), true, array('INBOX')) ?> 43 </select> 44 <input type="hidden" name="sent_mail_new" value="" /> 45 <?php endif; ?>
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 |
![]() |