1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 12:00:41 +02:00

Row descriptions in select

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@856 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-20 15:34:05 +00:00
parent c8c4be7839
commit 228e43a0fd
3 changed files with 51 additions and 3 deletions

View File

@@ -57,6 +57,15 @@ function adminer_select_query($query) {
return call_adminer('select_query', "<p><code class='jush-sql'>" . htmlspecialchars($query) . "</code> <a href='" . htmlspecialchars($SELF) . "sql=" . urlencode($query) . "'>" . lang('Edit') . "</a>\n", $query);
}
/** Descriptions of selected data
* @param array all data to print
* @param array foreign keys
* @return array
*/
function adminer_row_descriptions($rows, $foreign_keys) {
return call_adminer('row_descriptions', $rows, $rows, $foreign_keys);
}
/** Value printed in select table
* @param string escaped value to print
* @param string link to foreign key