$yesterday = strtotime('-1 day', $timestamp);
$tomorrow = strtotime('+1 day', $timestamp);
?>
                <span class="pull-right"><h3> <?php 
echo Fuel\Core\Html::anchor('user/timesheets/advanced/logtimes/' . $yesterday, '&laquo;&laquo; ', array('title' => 'Previous Day'));
?>
 <?php 
echo date('D d M Y', $timestamp);
?>
  <?php 
echo Fuel\Core\Html::anchor('user/timesheets/advanced/logtimes/' . $tomorrow, '&raquo;&raquo; ', array('title' => 'Next Day'));
?>
 </h3></span>
            </div>                
            <?php 
echo Fuel\Core\Form::open(array(), array('timestamp' => $timestamp));
?>
                <div class="widget-content">
                    <div class="well-large">
                        <p>
                            Complete the form below to log your times for <b><u><?php 
echo Fuel\Core\Str::upper(date('D d M Y', $timestamp));
?>
</u></b><br><br>
                            <b>NB:</b> <i><span style="color: red; font-weight: bold;">Please ensure that the respective time slots are properly selected when logging your times.</span></i>
                        </p>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-hover">
                            <thead>
				<tr>
        <div class="widget widget-nopad">
            <br>

            <div class="widget-header">
                <i class="icon-bell"></i>
                <h3> Timesheet &raquo; <?php 
echo \Fuel\Core\Str::truncate($task->project->name, 50) . ' &raquo; ' . \Fuel\Core\Str::truncate($task->project_task_description, 50, '...');
?>
  </h3>
                <span class="pull-right"><h3> <?php 
echo date('D d M Y', $timestamp);
?>
 </h3></span>
            </div>                
            <?php 
echo Fuel\Core\Form::open(array('action' => 'user/timesheets/logtimes/' . $timestamp), array('timestamp' => $timestamp, 'id' => $task->id));
?>
                <div class="widget-content">
                    <div class="well-large">
                        <p>
                            <strong>Instructions or Notes:</strong><br>
                            <?php 
echo trim($task->comment) != '' ? trim($task->comment) : 'N/A';
?>
                        </p>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-hover">
                            <thead>
				<tr>
				    <th>Time</th>
Example #3
0
                                <span class="pull-right">
                                    <h3>
                                        <span class="badge"><?php 
echo count($open_tasks);
?>
 RECORDS AVAILABLE</span>
                                        <?php 
echo \Fuel\Core\Html::anchor(isset($admin) && $admin ? 'admin/tasks' : 'user/tasks', '&laquo; Reset &raquo;', array('class' => 'btn btn-sm btn-default'));
?>
                                    </h3>
                                </span>
                            </div>
                            
                            <div class="widget-header">
                                <?php 
echo Fuel\Core\Form::open(array('action' => isset($admin) && $admin ? 'admin/tasks/filter/' : 'user/tasks/filter/'));
?>
                                
                                <div>                                    
                                    <span class="pull-right">
                                        <div class="form-group col-lg-4 input-group-sm">
                                            <select name="<?php 
echo isset($admin) && $admin ? 'user_id' : 'project_id';
?>
" class="form-control input-sm" onchange="this.form.submit();">                                                
                                                <?php 
if (isset($admin) && $admin) {
    ?>
                                                <option value="0" selected> - All Users - </option>
                                                    <?php 
    foreach ($users as $id => $user) {
Example #4
0
<?php

$business_start = 8;
$business_end = 17;
echo Fuel\Core\Form::open(array('class' => 'form-horizontal'), array('project_task_id' => $task->id, 'id' => $task_log->id, 'user_id' => $task->user_id, 'project_id' => $task->project_id, 'project_task_name_id' => $task->project_task_name_id));
?>

<div class="form-group">
    <label for="task_started" class="control-label input-sm">Date / Time Started:</label>
    
    <div class="input-group">
        <label class="input-group-addon btn input-sm" for="task_started_hr">HH</label>
        <select class="form-control input-sm" name="task_started_hr" id="task_started_hr">
            <?php 
foreach (range($business_start, $business_end) as $hh) {
    ?>
            <option value="<?php 
    echo str_pad($hh, 2, '0', STR_PAD_LEFT);
    ?>
" <?php 
    echo $task_log->task_started != '' && date('H', strtotime($task_log->task_started)) == $hh ? ' selected ' : '';
    ?>
>
                <?php 
    echo str_pad($hh, 2, '0', STR_PAD_LEFT);
    ?>
            </option>
            <?php 
}
?>
        </select>