[Redizajn 1KA] - Urejanje --> Nastavitve --> Prikaz podatkov

This commit is contained in:
tejagerjovic 2021-11-25 13:05:41 +01:00
parent 73d69fbb98
commit 6e519119f0

View File

@ -645,26 +645,51 @@ class SurveyAdminSettings {
echo '<fieldset>';
echo '<legend>' . $lang['srv_data_valid_units_settings'] . '</legend>';
echo '<p>';
echo '<span class="strong" >'.$lang['srv_prikaz_default_valid'].'</span>';
echo '<label><input type="radio" name="defValidProfile" '.($row['defValidProfile']==2?' checked':'').' value="2">'.'(5,6) '.$lang['srv_data_valid_units'].'</label>';
echo '<label><input type="radio" name="defValidProfile" '.($row['defValidProfile']==3?' checked':'').' value="3">'.'(6) '.$lang['srv_data_finished_units'].'</label>';
echo '</p>';
echo '<div class="setting_holder">';
echo '<span class="setting_title" >'.$lang['srv_prikaz_default_valid'].'</span>';
echo '<div class="setting_item">';
echo '<input type="radio" id="defValidProfile2" name="defValidProfile" '.($row['defValidProfile']==2?' checked':'').' value="2">';
echo '<label for="defValidProfile2">'.'(5,6) '.$lang['srv_data_valid_units'].'</label>';
echo '</div>';
echo '<div class="setting_item">';
echo '<input type="radio" id="defValidProfile3" name="defValidProfile" '.($row['defValidProfile']==3?' checked':'').' value="3">';
echo '<label for="defValidProfile3">'.'(6) '.$lang['srv_data_finished_units'].'</label>';
echo '</div>';
echo '</div>';
// Pri volitvah ne moremo prikazati datuma respondenta
if(!SurveyInfo::getInstance()->checkSurveyModule('voting')){
echo '<p>';
echo '<span class="strong" >'.$lang['srv_prikaz_showItime'].'</span>';
echo '<label><input type="radio" name="showItime" '.((int)$row['showItime']==0?' checked':'').' value="0">'.$lang['no1'].'</label>';
echo '<label><input type="radio" name="showItime" '.((int)$row['showItime']==1?' checked':'').' value="1">'.$lang['yes'].'</label>';
echo '</p>';
echo '<div class="setting_holder">';
echo '<span class="setting_title" >'.$lang['srv_prikaz_showItime'].'</span>';
echo '<div class="setting_item">';
echo '<input type="radio" id="showItime0" name="showItime" '.((int)$row['showItime']==0?' checked':'').' value="0">';
echo '<label for="showItime0">'.$lang['no1'].'</label>';
echo '</div>';
echo '<div class="setting_item">';
echo '<input type="radio" id="showItime1" name="showItime" '.((int)$row['showItime']==1?' checked':'').' value="1">';
echo '<label for="showItime1">'.$lang['yes'].'</label>';
echo '</div>';
echo '</div>';
}
echo '<p>';
echo '<span class="strong" >'.$lang['srv_prikaz_showLineNumber'].'</span>';
echo '<label><input type="radio" name="showLineNumber" '.((int)$row['showLineNumber']==0?' checked':'').' value="0">'.$lang['no1'].'</label>';
echo '<label><input type="radio" name="showLineNumber" '.((int)$row['showLineNumber']==1?' checked':'').' value="1">'.$lang['yes'].'</label>';
echo '</p>';
echo '<div class="setting_holder">';
echo '<span class="setting_title" >'.$lang['srv_prikaz_showLineNumber'].'</span>';
echo '<div class="setting_item">';
echo '<input type="radio" id="showLineNumber0" name="showLineNumber" '.((int)$row['showLineNumber']==0?' checked':'').' value="0">';
echo '<label for="showLineNumber0">'.$lang['no1'].'</label>';
echo '</div>';
echo '<div class="setting_item">';
echo '<input type="radio" id="showLineNumber1" name="showLineNumber" '.((int)$row['showLineNumber']==1?' checked':'').' value="1">';
echo '<label for="showLineNumber1">'.$lang['yes'].'</label>';
echo '</div>';
echo '</div>';
echo '</fieldset>';
}