mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 04:11:27 +02:00
Introduce adminer_select_val
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@826 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -57,6 +57,14 @@ 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);
|
||||
}
|
||||
|
||||
/** Value printed in select table
|
||||
* @param string escaped value to print
|
||||
* @return string link to foreign key
|
||||
*/
|
||||
function adminer_select_val($val, $link) {
|
||||
return call_adminer('select_val', ($link ? '<a href="' . $link . '">' . $val . '</a>' : $val), $val, $link);
|
||||
}
|
||||
|
||||
/** Query printed after execution in the message
|
||||
* @param string executed query
|
||||
* @return string
|
||||
|
Reference in New Issue
Block a user