タスクのタイム シートに作業時間数を入力する必要があります。これは、HH:MM 形式のみである必要があります。特定のタスクの時間を合計する必要があります。
24 時間増加する場合は、このタスクの総作業時間 = 25:45 時間または 39:50 時間のように、再度更新する必要があります。私は最初に jQuery timepicker を使用し、それを 12 時間に制限しましたが、時間単位と分単位で期間を追加および更新する方法がわかりません。
午前/午後は必要ありません。勤務時間と分数だけです。時間間隔 = 10 分。
また、ユーザーはタスクに :30 分、:35 分、:40 分の作業を追加できる必要があります。Zoho ポータルを見たことがあれば、タスクにログ時間を追加する方法をご存知でしょう。私も全く同じようにしたいです。
これが私が使用したものです-
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery.timepicker.css" >
<script src="<?php echo base_url(); ?>assets/javascripts/jquery.timepicker.min.js" ></script>
<section class="form-row">
<section class="form-row-left">
<label class="required" for="time_spent"><?php echo $this->lang->line('time_spent_hh_mm');?></label></section>
<section class="form-row-right">
<input class="" id="time_spent" name="time_spent" type="text">
<?php echo form_error('time_spent', '<div class="error">', '</div>'); ?>
</section>
<script>
$(document).ready(function () {
$('#time_spent').timepicker({
defaultTime: 'value',
minuteStep: 1,
disableFocus: true,
template: 'dropdown',
controlType: 'select',
timeFormat: "HH:mm",
ampm: false
});
});
</script>