/>

$per_page)) { $showall = ''; } else { $showall = ''; } $session_max_rows = $per_page; $pageNow = @floor($pos / $session_max_rows) + 1; $nbTotalPage = @ceil($the_total / $session_max_rows); if ($the_total > $per_page) { $gotopage = PMA_pageselector( 'browse_foreigners.php?field=' . urlencode($field) . '&' . PMA_generate_common_url($db, $table) . $pk_uri . '&fieldkey=' . (isset($fieldkey) ? $fieldkey : '') . '&foreign_filter=' . (isset($foreign_filter) ? htmlspecialchars($foreign_filter) : '') . '&', $session_max_rows, $pageNow, $nbTotalPage ); } else { $gotopage = ''; } $header = ' '; echo $header; if (isset($disp_row) && is_array($disp_row)) { function dimsort($arrayA, $arrayB) { $keyA = key($arrayA); $keyB = key($arrayB); if ($arrayA[$keyA] == $arrayB[$keyB]) { return 0; } return ($arrayA[$keyA] < $arrayB[$keyB]) ? -1 : 1; } $mysql_key_relrow = array(); $mysql_val_relrow = array(); $count = 0; foreach ($disp_row AS $disp_row_key => $relrow) { if ($foreign_display != FALSE) { $val = $relrow[$foreign_display]; } else { $val = ''; } $mysql_key_relrow[$count] = array($relrow[$foreign_field] => $val); $mysql_val_relrow[$count] = array($val => $relrow[$foreign_field]); $count++; } usort($mysql_val_relrow, 'dimsort'); $hcount = 0; for ($i = 0; $i < $count; $i++) { $hcount++; $bgcolor = ($hcount % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; if ($cfg['RepeatCells'] > 0 && $hcount > $cfg['RepeatCells']) { echo $header; $hcount = -1; } $val = key($mysql_val_relrow[$i]); $key = $mysql_val_relrow[$i][$val]; if (PMA_strlen($val) <= $cfg['LimitChars']) { $value = htmlspecialchars($val); $vtitle = ''; } else { $vtitle = htmlspecialchars($val); $value = htmlspecialchars(PMA_substr($val, 0, $cfg['LimitChars']) . '...'); } $key_equals_data = isset($data) && $key == $data; ?>
' . $strKeyname . ' ' . $strDescription . ' ' . $showall . ' ' . $gotopage . ' ' . $strDescription . ' ' . $strKeyname . '
' : '') . '' . htmlspecialchars($key) . '' . ($key_equals_data ? '' : ''); ?> ' : '') . '' . $value . '' . ($key_equals_data ? '' : ''); ?> ' : '') . '' . $value . '' . ($key_equals_data ? '' : ''); ?> ' : '') . '' . htmlspecialchars($key) . '' . ($key_equals_data ? '' : ''); ?>