[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 $i = 0; 3 while ($i <= count($date['values']) && empty($date['values'][$i])) { 4 $i++; 5 } 6 if (strpos($date['values'][$i], ':') !== false) { 7 $del = ':'; 8 } elseif (strpos($date['values'][$i], '.') !== false) { 9 $del = '.'; 10 } else { 11 $del = ''; 12 } 13 $ampm = (strpos(String::lower($date['values'][0]), 'am') !== false || strpos(String::lower($date['values'][0]), 'pm') !== false); 14 ?> 15 <tr> 16 <td><?php echo _("Select the time delimiter:") ?></td> 17 <td> 18 <select name="delimiter[<?php echo htmlspecialchars($key) ?>]"> 19 <option value=":"<?php echo $del == ':' ? ' selected="selected"' : '' ?>>:</option> 20 <option value="."<?php echo $del == '.' ? ' selected="selected"' : '' ?>>.</option> 21 </select> 22 </td> 23 </tr> 24 <tr> 25 <td><?php echo _("Select the time format:") ?></td> 26 <td> 27 <select name="format[<?php echo htmlspecialchars($key) ?>]"> 28 <option value="24hr"<?php echo $ampm ? '' : ' selected="selected"' ?>><?php echo _("24 hours") ?></option> 29 <option value="ampm"<?php echo $ampm ? ' selected="selected"' : '' ?>><?php echo _("AM/PM") ?></option> 30 </select> 31 </td> 32 </tr>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |