Beispiel #1
0
													,
													<? $dayInput= new DayInput("clock_on_date_day");
														 $dayInput->create(date("d", $trans_info["start_time"])); ?>
													&nbsp;							
													<input type="text" name="clock_on_date_year" size="4" value="<? echo date("Y", $trans_info["start_time"]); ?>">
												</td>
												<td align="left">
													<img src="images/clock-green-sml.gif">
												</td>
											</tr>
											<tr>
												<td align="left" class="clock_off_text" nowrap>
													End time:
												</td>
												<td align="left" nowrap>
													<? $hourInput = new HourInput("clock_off_time_hour"); 
														 $hourInput->create(date("G", $trans_info["end_time"])); ?>
															:
													<? $minuteInput = new MinuteInput("clock_off_time_min");
														 $minuteInput->create(date("i", $trans_info["end_time"])); ?>
													&nbsp;on&nbsp;
													<? $monthInput = new MonthInput("clock_off_date_month");
														 $monthInput->create(date("n", $trans_info["end_time"])); ?>
													,
													<? $dayInput= new DayInput("clock_off_date_day");
														 $dayInput->create(date("d", $trans_info["end_time"])); ?>
													&nbsp;							
													<input type="text" name="clock_off_date_year" size="4" value="<? echo date("Y", $trans_info["end_time"]); ?>">
												</td>					
												<td align="left">
													<img src="images/clock-red-sml.gif">
Beispiel #2
0
													</table>
												</td>
											</tr>
											<tr>
												<td align="center">
													<table width="300" border="0" class="clock_off_box">
														<tr>
															<td valign="top" align="left" class="clock_off_text">
																<input type="checkbox" name="clock_off_check" id="clock_off_check" onclick="enableClockOff();">Clock off at:
															</td>
															<td valign="middle">
																<? // If the current day is today:
																if (($year == date('Y')) && ($month == date('m')) && ($day == date('j'))): ?>
																	<input type="radio" name="clock_off_radio" id="clock_off_radio_date" value="date" onclick="enableClockOff();">
																<? endif; ?>
																<? $hourInput = new HourInput("clock_off_time_hour");
																	 $hourInput->create(17); ?>
																:
																<? $minuteInput = new MinuteInput("clock_off_time_min");
																	 $minuteInput->create(); ?>
															</td>
															<td>
																<img src="images/clock-red-sml.gif" border="0">
															</td>
														</tr>
														<? // If the current day is today:
														if (($year == date('Y')) && ($month == date('m')) && ($day == date('j'))): ?>
														<tr>
															<td>&nbsp;</td>
															<td valign="middle" align="left" class="clock_off_text">						
																<input type="radio" name="clock_off_radio" id="clock_off_radio_now" value="now" onclick="enableClockOff();" checked>now