0 ORDER BY FIELD(vrstni_red, $order)"); $max = mysqli_num_rows($sql1); $counter = 0; $sum = 0; $spremenljivkaParams = new enkaParameters($row['params']); $gridWidth = (($spremenljivkaParams->get('gridWidth') > 0) ? $spremenljivkaParams->get('gridWidth') : 30); while ($row1 = mysqli_fetch_array($sql1)) { $naslov = Language::getInstance()->srv_language_vrednost($row1['id']); if ($naslov != '') $row1['naslov'] = $naslov; // Datapiping $row1['naslov'] = Helper::dataPiping($row1['naslov']); $sql2 = sisplet_query("SELECT text FROM srv_data_text" . get('db_table') . " WHERE vre_id='$row1[id]' AND usr_id='" . get('usr_id') . "' AND loop_id $loop_id"); $row2 = mysqli_fetch_array($sql2); //preverjanje skritega vprasanja(-2) $row2['text'] != -2 ? $text = $row2['text'] : $text = ''; echo '
0 ? ' style="display:none"' : '') . '>'; //echo ' '; //echo ' '; echo ' '; echo ' '; echo '
' . "\n"; $counter++; $sum += (double)$text; } if ($row['vsota_limit'] != 0 && $row['vsota_limit'] == $row['vsota_min']) $limit = '(' . $row['vsota_min'] . ')'; elseif ($row['vsota_limit'] != 0 && $row['vsota_min'] != 0) $limit = '(min ' . $row['vsota_min'] . ', max ' . $row['vsota_limit'] . ')'; elseif ($row['vsota_limit'] != 0) $limit = '(max ' . $row['vsota_limit'] . ')'; elseif ($row['vsota_min'] != 0) $limit = '(min ' . $row['vsota_min'] . ')'; $rowl = Language::srv_language_spremenljivka($spremenljivka); if ($rowl['vsota'] != '') $row['vsota'] = $rowl['vsota']; if ($row['vsota'] == '') $row['vsota'] = self::$lang['srv_vsota_text']; echo '
'; //echo ' '; //echo ' '; echo ' '; echo ' '; echo '
' . "\n"; if ($row['vsota_show'] == 1) echo ' '; } }