I need to know how to change the start time and end
time from 24 hour to 12 hour with AM and PM in the
new Datenator v0.2.3. In the old Datenator v0.22 I
change it. Below is what I did in the old one
(a_event_add.php). I can't find the page to make the
changes in. Can someone help.
<select name="start_time_1">
<?php
// Starttime hours-pulldown menu
$daynum = -5;
for($i=1; $i<=12; $i++) {
if($i < 10) {
$time = $i;
} else {
$time = $i;
}
print '<option>'.$time.'</option>';
}
?>
</select> :
<select name="start_time_2">
<?php
// Starttime minutes-pulldown menu
for($i=0; $i<=11; $i++) {
$daynum += 5;
if($daynum < 10) {
$day = '0'.$daynum;
} else {
$day = $daynum;
}
print '<option>'.$day.'</option>';
}
$daynum = -5;
?>
</select>
<select name="start_time_3" id="start_time_3">
<option>AM</option>
<option>PM</option>
</select> </td>
</tr>
<tr>
<td><?=$text['admin3'][10]?><br><br></td>
<td>
<select name="end_time_1">
<?php
// Endtime hours-pulldown menu
for($i=1; $i<=12; $i++) {
if($i < 10) {
$time = $i;
} else {
$time = $i;
}
print '<option>'.$time.'</option>';
}
?>
</select> :
<select name="end_time_2">
<?php
// Endtime minutes-pulldown menu
for($i=0; $i<=11; $i++) {
$daynum += 5;
if($daynum < 10) {
$day = '0'.$daynum;
} else {
$day = $daynum;
}
print '<option>'.$day.'</option>';
}
?>
</select>
<select name="end_time_3" id="end_time_3">
<option>AM</option>
<option>PM</option>
</select>
Logged In: NO
My email is bygmony@hotmail.com