/>
$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 = '
' . $GLOBALS['strPageNumber'] . ''; echo $header; if (isset($disp) && $disp) { 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; while ($relrow = @PMA_mysql_fetch_array($disp)) { 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 (strlen($val) <= $cfg['LimitChars']) { $value = htmlspecialchars($val); $vtitle = ''; } else { $vtitle = htmlspecialchars($val); $value = htmlspecialchars(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 ? '' : ''); ?>