Podatki - obdobje - popravek preklopa radio gumbov

This commit is contained in:
pero1203 2022-08-08 11:15:10 +02:00
parent dd0f48f2fd
commit 04f7f29675

View File

@ -532,22 +532,22 @@ class SurveyTimeProfiles {
echo '<p class="setting_title">' . $lang['srv_time_profile_time'] . '</p>'; echo '<p class="setting_title">' . $lang['srv_time_profile_time'] . '</p>';
echo '<div class="setting_item">'; echo '<div class="setting_item">';
echo '<input type="radio" name="type" id="time_date_type" value="0" '.($type == '0' ? ' checked="checked"' : '').' autocomplete="off"><label>' . $lang['srv_time_profile_from'] . ':</label>'; echo ' <input type="radio" name="type" id="time_date_type" value="0" '.($type == '0' ? ' checked="checked"' : '').' autocomplete="off"><label for="time_date_type">' . $lang['srv_time_profile_from'] . ':</label>';
echo '<input id="startDate" type="text" class="text medium" name="startDate" value="' . $p_data['starts'] . '" onclick="changeTimeProfileType();" readonly="true" '.' autocomplete="off"/>&nbsp;'; echo ' <input id="startDate" type="text" class="text medium" name="startDate" value="' . $p_data['starts'] . '" onclick="changeTimeProfileType();" readonly="true" '.' autocomplete="off"/>&nbsp;';
echo '<span class="faicon calendar_icon pointer blue" id="starts_img"></span>'; echo ' <span class="faicon calendar_icon pointer blue" id="starts_img"></span>';
echo '<label>' . $lang['srv_time_profile_to'] . ':</label>'; echo ' <label>' . $lang['srv_time_profile_to'] . ':</label>';
echo '<input id="endDate" type="text" class="text medium" name="endDate" value="' . $p_data['ends'] . '" onclick="changeTimeProfileType();" readonly="true" '.'cautocomplete="off"/>&nbsp;'; echo ' <input id="endDate" type="text" class="text medium" name="endDate" value="' . $p_data['ends'] . '" onclick="changeTimeProfileType();" readonly="true" '.'cautocomplete="off"/>&nbsp;';
echo '<span class="faicon calendar_icon pointer blue" id="expire_img"></span>' . "\n" ; echo ' <span class="faicon calendar_icon pointer blue" id="expire_img"></span>' . "\n" ;
echo '</div>'; echo '</div>';
echo '<div class="setting_item">'; echo '<div class="setting_item">';
echo '<input type="radio" name="type" id="time_date_interval" value="1" '.($type == '0' ? '' : ' checked="checked"').' autocomplete="off"><label>'.$lang['srv_statistic_period_label'].':</label>'; echo ' <input type="radio" name="type" id="time_date_interval" value="1" '.($type == '0' ? '' : ' checked="checked"').' autocomplete="off"><label for="time_date_interval">'.$lang['srv_statistic_period_label'].':</label>';
echo '<select class="dropdown medium" name="stat_interval" id="stat_interval" onclick="changeTimeProfileType(\'interval\');" '.'autocomplete="off">'; echo ' <select class="dropdown medium" name="stat_interval" id="stat_interval" onclick="changeTimeProfileType(\'interval\');" '.'autocomplete="off">';
echo '<option value="" selected="true">'.$lang['srv_time_profile_choose_interval'].'</option>'; echo ' <option value="" selected="true">'.$lang['srv_time_profile_choose_interval'].'</option>';
foreach (self::$STP_ARRAYS as $INTERVAL) { foreach (self::$STP_ARRAYS as $INTERVAL) {
echo '<option value="'.$INTERVAL.'"' . ($time == $INTERVAL ? ' selected' : '') . '>'.$lang['srv_diagnostics_'.$INTERVAL].'</option>'; echo ' <option value="'.$INTERVAL.'"' . ($time == $INTERVAL ? ' selected' : '') . '>'.$lang['srv_diagnostics_'.$INTERVAL].'</option>';
} }
echo '</select>'; echo ' </select>';
echo '</div>'; echo '</div>';
echo '</div>'; echo '</div>';