[Redizajn 1KA] - Testiranje --> Trajanje --> Ocenjevanje trajanja - v1

This commit is contained in:
tejagerjovic 2022-03-03 18:01:30 +01:00
parent 82ac45e82e
commit c4d5880586
3 changed files with 17 additions and 25 deletions

View File

@ -6013,7 +6013,7 @@ class SurveyAdminSettings {
echo '<tr>'; echo '<tr>';
echo '<th>'.$lang['srv_casi_po_straneh_stran'].'</th>'; echo '<th>'.$lang['srv_casi_po_straneh_stran'].'</th>';
echo '<th>'.$lang['srv_neto_t_cas'].' / '.$lang['srv_bruto_t_cas'].'</th>'; echo '<th colspan="2">'.$lang['srv_neto_t_cas'].' / '.$lang['srv_bruto_t_cas'].'</th>';
echo '</tr>'; echo '</tr>';
@ -6022,26 +6022,22 @@ class SurveyAdminSettings {
$row = mysqli_fetch_array($sql); $row = mysqli_fetch_array($sql);
echo '<tr>'; echo '<tr>';
echo '<td class="nowrap">'.($row['naslov']!=''?$row['naslov']:$lang['srv_intro_label']).'</td>'; echo '<td>'.($row['naslov']!=''?$row['naslov']:$lang['srv_intro_label']).'</td>';
echo '<td>'; echo '<td>';
echo ($time[0]<60?round($time[0],1).'s ':round($time[0]/60,1).'min ').'/ <span class="gray">'.($time[1]<60?round($time[1],1).'s ':round($time[1]/60,1).'min ').'</span>';
echo '</td>';
echo '<td class="graph_cell">';
echo '<div class="graph_cell">'; echo '<div class="graph_cell">';
echo '<div class="time">'; echo '<div class="graph_full" style="width: '.($time[0]/$max*85).'%">&nbsp;</div>';
echo ($time[0]<60?round($time[0],1).'s ':round($time[0]/60,1).'min ').'/ <span class="gray">'.($time[1]<60?round($time[1],1).'s ':round($time[1]/60,1).'min ').'</span>';
echo '</div>';
echo '<div class="graph_full" style="text-align: right; float: left; width: '.($time[0]/$max*85).'%">&nbsp;</div>';
if ((($time[1]-$time[0])/$max*85) > 0) if ((($time[1]-$time[0])/$max*85) > 0)
echo ' <div class="graph_empty" style="border-left: 0; text-align: right; float: left; width: '.(($time[1]-$time[0])/$max*85).'%">&nbsp;</div>'; echo ' <div class="graph_empty" style="width: '.(($time[1]-$time[0])/$max*85).'%">&nbsp;</div>';
echo '</div>'; echo '</div>';
echo '</td>'; echo '</td>';
/*echo '<td style="width:100%">';
echo '</td>';*/
echo '</tr>'; echo '</tr>';
} }
echo '</table>'; echo '</table>';

View File

@ -10006,16 +10006,15 @@ div.srv_diagnostic h2:first-of-type {
div.subpage_predvidenicas table { div.subpage_predvidenicas table {
width: 100%; width: 100%;
white-space: nowrap;
} }
div.subpage_predvidenicas table td div.graph_cell { div.subpage_predvidenicas table td.graph_cell {
width: 100%;
}
div.subpage_predvidenicas table td.graph_cell div.graph_cell {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
div.subpage_predvidenicas table td div.graph_cell div.time {
min-width: 120px;
white-space: nowrap;
padding-right: 8px;
}
div.subpage_predvidenicas div.graph_full { div.subpage_predvidenicas div.graph_full {
background-color: #1E88E5; background-color: #1E88E5;
height: 24px; height: 24px;

View File

@ -17,18 +17,15 @@ div.subpage_predvidenicas {
table { table {
width: 100%; width: 100%;
white-space: nowrap;
td.graph_cell {
width: 100%;
td {
div.graph_cell { div.graph_cell {
display:flex; display:flex;
flex-direction: row; flex-direction: row;
div.time {
min-width: 120px;
white-space: nowrap;
padding-right: 8px;
}
} }
} }
} }