- if (isInString('Y', $display) || (empty($display))) {
- // Generate year selection
- $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_ye" size="1">';
- for ($idx = 0; $idx <= 10; $idx++) {
- $OUT .= '<option class="mini_select" value="' . $idx . '"';
- if ($idx == $Y) $OUT .= ' selected="selected"';
- $OUT .= '>' . $idx . '</option>';
- } // END - for
- $OUT .= '</select></td>';
- } else {
- $OUT .= '<input type="hidden" name="' . $prefix . '_ye" value="0" />';
- }
-
- if (isInString('M', $display) || (empty($display))) {
- // Generate month selection
- $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_mo" size="1">';
- for ($idx = 0; $idx <= 11; $idx++) {
- $OUT .= ' <option class="mini_select" value="' . $idx . '"';
- if ($idx == $M) $OUT .= ' selected="selected"';
- $OUT .= '>' . $idx . '</option>';
- } // END - for
- $OUT .= '</select></td>';
- } else {
- $OUT .= '<input type="hidden" name="' . $prefix . '_mo" value="0" />';
- }
-
- if (isInString('W', $display) || (empty($display))) {
- // Generate week selection
- $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_we" size="1">';
- for ($idx = 0; $idx <= 4; $idx++) {
- $OUT .= ' <option class="mini_select" value="' . $idx . '"';
- if ($idx == $W) $OUT .= ' selected="selected"';
- $OUT .= '>' . $idx . '</option>';
- } // END - for
- $OUT .= '</select></td>';
- } else {
- $OUT .= '<input type="hidden" name="' . $prefix . '_we" value="0" />';
- }
-
- if (isInString('D', $display) || (empty($display))) {
- // Generate day selection
- $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_da" size="1">';
- for ($idx = 0; $idx <= 31; $idx++) {
- $OUT .= ' <option class="mini_select" value="' . $idx . '"';
- if ($idx == $D) $OUT .= ' selected="selected"';
- $OUT .= '>' . $idx . '</option>';
- } // END - for
- $OUT .= '</select></td>';
- } else {
- $OUT .= '<input type="hidden" name="' . $prefix . '_da" value="0" />';
- }
-
- if (isInString('h', $display) || (empty($display))) {
- // Generate hour selection
- $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_ho" size="1">';
- for ($idx = 0; $idx <= 23; $idx++) {
- $OUT .= ' <option class="mini_select" value="' . $idx . '"';
- if ($idx == $h) $OUT .= ' selected="selected"';
- $OUT .= '>' . $idx . '</option>';
- } // END - for
- $OUT .= '</select></td>';
- } else {
- $OUT .= '<input type="hidden" name="' . $prefix . '_ho" value="0" />';
- }
-
- if (isInString('m', $display) || (empty($display))) {
- // Generate minute selection
- $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_mi" size="1">';
- for ($idx = 0; $idx <= 59; $idx++) {
- $OUT .= ' <option class="mini_select" value="' . $idx . '"';
- if ($idx == $m) $OUT .= ' selected="selected"';
- $OUT .= '>' . $idx . '</option>';
- } // END - for
- $OUT .= '</select></td>';
- } else {
- $OUT .= '<input type="hidden" name="' . $prefix . '_mi" value="0" />';
- }