[ Index ] |
|
Code source de IMP H3 (4.1.5) |
1 <?php if (!$prefs->isLocked('default_search')): ?> 2 <?php 3 if (!isset($imp_search)) { 4 require_once IMP_BASE . '/lib/Search.php'; 5 $imp_search = new IMP_Search(); 6 } 7 $curr_default = $prefs->getValue('default_search'); 8 $search_fields = array_merge(array('' => array('label' => _("NONE"))), $imp_search->searchFields()); 9 $def_select = ''; 10 foreach ($search_fields as $key => $val) { 11 $def_select .= '<option value="' . $key . '"'; 12 if ($curr_default == $key) { 13 $def_select .= ' selected="selected"'; 14 } 15 $def_select .= '>' . $val['label'] . '</option>'; 16 } 17 ?> 18 <table border="0"> 19 <tr> 20 <td> 21 <?php echo _("Default Search Field") ?>: 22 <br /> 23 <select name="default_search"><?php echo $def_select ?></select> 24 </td> 25 </tr> 26 </table> 27 <?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 |
![]() |