<div id="container">
<div>...</div>
<div>...</div>
<div>...</div>
<div> <!-- у этого div'а фиксированная высота и overflow:hidden -->
<p class="image">...</p>
<p class="title">...</p>
<p class="options">...</p>
<div class="payment">...</div>
</div>
</div>
if (isset($_GET['field'], $_GET['order']) &&
in_array($_GET['field'], $allowedFieldsList) &&
($_GET['order'] == 'desc' || $_GET['order'] == 'asc'))
$_SESSION['sort'] = array('field' => $_GET['field'], 'order' => $_GET['order']);
if (isset($_GET['field'], $_GET['rel']) &&
in_array($_GET['field'], $allowedFieldsList) &&
in_array($_GET['rel'], $allowedRelationsList))
$_SESSION['filter'][$_GET['field']] = array('relation' => $_GET['rel'],
'value1' => $_GET['value1'],
'value2' => $_GET['value2']);
char nmea[81];
char buf[4096];
int nmeaIdx, bufIdx, bufLen;
nmeaIdx = 0;
...
while(1) {
bufLen = read(buf, 4096); // Читаем пакет в буфер, получаем количество считанных байт.
bufIdx = 0;
while (bufIdx < bufLen) {
nmea[nmeaIdx] = buf[bufIdx];
if (buf[bufIdx] == '\n') {
nmea[nmeaIdx] = 0;
if (nmea[0] == '$') {
// здесь обрабатываем строку nmea
}
nmeaIdx = 0;
} else
nmeaIdx++;
bufIdx++;
}
}
SELECT `t`.`id`, `au`.`login`, `pu`.`login`, `t`.`task_message`, `ts`.`status`
FROM `TASK` AS `t`
LEFT JOIN `USER` AS `au` ON `au`.`id` = `t`.`author_user_id`
LEFT JOIN `USER` AS `pu` ON `pu`.`id` = `t`.`performer_user_id`
LEFT JOIN `TASK_STATUS AS `ts` ON `ts`.`id` = `t`.`status`
WHERE ...
nmea = "$GPGSA,A,3,04,11,19,32,01,,,,,,,,8.16,6.83,4.47*0B";
String[] parts = nmea.split('[,*]');
String[] PRNs = new String[12];
for (int i = 0; i < 12 && parts[i+3] != ''; i++) {
PRNs[i] = parts[i+3];
Log.d(LOG_TAG, "Элемент "+Integer.toString(i)+": "+PRNs[i];
}