Exemplo n.º 1
0
						<a class="btn btn-default" onclick="var dt = new Date();var time = dt.getHours() + ':' + dt.getMinutes();jQuery('#timetaken_start').val(time);jQuery('#timetaken_end').val(time);return false;"><i class="icon-cancel"></i></a>		
						
<script>
	<?php 
        FSS_Translate_Helper::CalenderLocale();
        ?>
	jQuery(document).ready(function () {
		myCalendarFrom = new dhtmlXCalendarObject('timetaken_start','omega');
		myCalendarFrom.setDateFormat('<?php 
        echo FSS_Helper::getCalFormat();
        ?>
');
		myCalendarFrom.loadUserLanguage(fss_calendar_locale);
		myCalendarTo = new dhtmlXCalendarObject('timetaken_end','omega');
		myCalendarTo.setDateFormat('<?php 
        echo FSS_Helper::getCalFormat();
        ?>
');
		myCalendarTo.loadUserLanguage(fss_calendar_locale);
});
</script>
						
					<?php 
    } else {
        ?>
						<span class="help-inline"><?php 
        echo JText::_('TIME_HOURS');
        ?>
: </span><input type="text" name="timetaken_hours" id="timetaken_hours" style="width: 40px" value="<?php 
        echo FSS_Helper::escape($this->taken_hours);
        ?>