function cforms2_check_time($no)
{
    global $cformsSettings;
    $t1f = $t2f = false;
    if (strlen($cformsSettings['form' . $no]['cforms' . $no . '_startdate']) > 1) {
        $t1 = cforms2_make_time(stripslashes($cformsSettings['form' . $no]['cforms' . $no . '_startdate']));
    } else {
        $t1f = true;
    }
    if (strlen($cformsSettings['form' . $no]['cforms' . $no . '_enddate']) > 1) {
        $t2 = cforms2_make_time(stripslashes($cformsSettings['form' . $no]['cforms' . $no . '_enddate']));
    } else {
        $t2f = true;
    }
    return ($t1f || $t1 <= time()) && ($t2f || $t2 >= time()) ? true : false;
}
echo $date[0];
?>
"/>
                        <input type="text" id="cforms_endtime" name="cforms_endtime" placeholder="<?php 
_e('HH:MM', 'cforms2');
?>
" value="<?php 
echo $date[1];
?>
" title="<?php 
_e('Time entry.', 'cforms2');
?>
"/>
						<label for="cforms_startdate"><?php 
if ($dt == 'x' && strlen($cformsSettings['form' . $no]['cforms' . $no . '_enddate']) > 1) {
    $dt = cforms2_make_time(stripslashes($cformsSettings['form' . $no]['cforms' . $no . '_enddate'])) - time();
    if ($dt > 0) {
        echo __('The form will be available for another ', 'cforms2') . cforms2_sec2hms($dt);
    } else {
        echo __('The form is not available anymore.', 'cforms2');
    }
}
?>
</label>
                    </td>
				</tr>

				<?php 
if ($cformsSettings['form' . $no]['cforms' . $no . '_maxentries'] != '' || $cformsSettings['form' . $no]['cforms' . $no . '_startdate'] != '' || $cformsSettings['form' . $no]['cforms' . $no . '_enddate'] != '') {
    ?>
				<tr class="ob">