From 6884f9701a4052cf03c2af98ce799d2fd41241f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Nov 2003 15:20:45 +0000 Subject: no more support for php3 --- browse_foreigners.php | 193 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 browse_foreigners.php (limited to 'browse_foreigners.php') diff --git a/browse_foreigners.php b/browse_foreigners.php new file mode 100644 index 0000000000..addd13d80a --- /dev/null +++ b/browse_foreigners.php @@ -0,0 +1,193 @@ + + + + + + phpMyAdmin + + /> + + + + + + + + +
+ + + + + $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) { + $count = 0; + while ($relrow = @PMA_mysql_fetch_array($disp)) { + $count++; + $bgcolor = ($count % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; + + $key = $relrow[$foreign_field]; + if (strlen($relrow[$foreign_display]) <= $cfg['LimitChars']) { + $value = (($foreign_display != FALSE) ? htmlspecialchars($relrow[$foreign_display]) : ''); + $vtitle = ''; + } else { + $vtitle = htmlspecialchars($relrow[$foreign_display]); + $value = (($foreign_display != FALSE) ? htmlspecialchars(substr($vtitle, 0, $cfg['LimitChars']) . '...') : ''); + } + + if ($count > $cfg['RepeatCells']) { + echo $header; + $count = -1; + } + $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 ? '' : ''); ?>
+
+ + + + + -- cgit v1.2.3