v1.4.0: Progressbar
v1.4.1: Bugfix Progressbar
This commit is contained in:
@@ -68,6 +68,7 @@ $Epi = new Epirent();
|
|||||||
<th scope="col">Event</th>
|
<th scope="col">Event</th>
|
||||||
<th scope="col">Dispo-Start<br><i>VB-Start</i></th>
|
<th scope="col">Dispo-Start<br><i>VB-Start</i></th>
|
||||||
<th scope="col">Dispo-Ende<br><i>VB-Ende</i></th>
|
<th scope="col">Dispo-Ende<br><i>VB-Ende</i></th>
|
||||||
|
<th scope="col">Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="getCheckOutTableHolder">
|
<tbody id="getCheckOutTableHolder">
|
||||||
@@ -94,6 +95,7 @@ $Epi = new Epirent();
|
|||||||
<th scope="col">Event</th>
|
<th scope="col">Event</th>
|
||||||
<th scope="col">Dispo-Start<br><i>RP-Start</i></th>
|
<th scope="col">Dispo-Start<br><i>RP-Start</i></th>
|
||||||
<th scope="col">Dispo-Ende<br><i>RP-Ende</i></th>
|
<th scope="col">Dispo-Ende<br><i>RP-Ende</i></th>
|
||||||
|
<th scope="col">Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="getCheckInTableHolder">
|
<tbody id="getCheckInTableHolder">
|
||||||
|
|||||||
@@ -92,6 +92,19 @@ foreach ($data_output as $packingjob) {
|
|||||||
} else {
|
} else {
|
||||||
echo "<td>" . date_format(new \DateTime($packingjob->date_end), 'd.m.Y') . " " . getTimeFromSeconds($packingjob->time_end) . "</td>";
|
echo "<td>" . date_format(new \DateTime($packingjob->date_end), 'd.m.Y') . " " . getTimeFromSeconds($packingjob->time_end) . "</td>";
|
||||||
}
|
}
|
||||||
|
echo "<td>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($packingjob->is_all_in == 0) {
|
||||||
|
echo "<span class='badge badge-success'>";
|
||||||
|
} else {
|
||||||
|
|
||||||
|
echo '<div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: '.((($packingjob->ps_parameters->result->total_pieces-abs($packingjob->is_all_out))-abs($packingjob->is_all_in)) /($packingjob->ps_parameters->result->total_pieces - abs($packingjob->is_all_out)))*100 .'%" aria-valuenow="' . ($packingjob->ps_parameters->result->total_pieces-abs($packingjob->is_all_out)) . '" aria-valuemin="0" aria-valuemax="' . $packingjob->ps_parameters->result->total_pieces - abs($packingjob->is_all_out) . '"></div></div>';
|
||||||
|
|
||||||
|
echo "<span class='badge badge-info'>";
|
||||||
|
}
|
||||||
|
echo (($packingjob->ps_parameters->result->total_pieces-abs($packingjob->is_all_out))-abs($packingjob->is_all_in)) . "/" . $packingjob->ps_parameters->result->total_pieces - abs($packingjob->is_all_out). " (".$packingjob->ps_parameters->result->total_pieces.")" ;
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,6 +91,17 @@ foreach ($data_output as $packingjob) {
|
|||||||
} else {
|
} else {
|
||||||
echo "<td>" . date_format(new \DateTime($packingjob->date_end), 'd.m.Y') . " " . getTimeFromSeconds($packingjob->time_end) . "</td>";
|
echo "<td>" . date_format(new \DateTime($packingjob->date_end), 'd.m.Y') . " " . getTimeFromSeconds($packingjob->time_end) . "</td>";
|
||||||
}
|
}
|
||||||
|
echo "<td>";
|
||||||
|
|
||||||
|
if ($packingjob->is_all_out == 0) {
|
||||||
|
echo "<span class='badge badge-success'>";
|
||||||
|
} else {
|
||||||
|
echo '<div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: '.(($packingjob->ps_parameters->result->total_pieces - abs($packingjob->is_all_out))/$packingjob->ps_parameters->result->total_pieces)*100 .'%" aria-valuenow="' . ($packingjob->ps_parameters->result->total_pieces - abs($packingjob->is_all_out)) . '" aria-valuemin="0" aria-valuemax="' . $packingjob->ps_parameters->result->total_pieces . '"></div></div>';
|
||||||
|
|
||||||
|
echo "<span class='badge badge-info'>";
|
||||||
|
}
|
||||||
|
echo ($packingjob->ps_parameters->result->total_pieces - abs($packingjob->is_all_out)) . "/" . $packingjob->ps_parameters->result->total_pieces;
|
||||||
|
echo "</span><td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user