diff options
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index 785172b84..3c724865d 100644 --- a/inc/html.php +++ b/inc/html.php @@ -171,7 +171,35 @@ function html_topbtn(){ } /** - * Displays a button (using it's own form) + * Just the back to media window button in its own form + * + * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net> + */ +function html_backtomedia_button($params,$akey=''){ + global $conf; + global $lang; + + $ret = '<form class="button" method="get" action="'.DOKU_BASE.'lib/exe/media.php">'; + + reset($params); + while (list($key, $val) = each($params)) { + $ret .= '<input type="hidden" name="'.$key.'" '; + $ret .= 'value="'.htmlspecialchars($val).'" />'; + } + + $ret .= '<input type="submit" value="'.htmlspecialchars($lang['btn_backtomedia']).'" class="button" '; + if($akey){ + $ret .= 'title="ALT+'.strtoupper($akey).'" '; + $ret .= 'accesskey="'.$akey.'" '; + } + $ret .= '/>'; + $ret .= '</form>'; + + return $ret; +} + +/** + * Displays a button (using its own form) * * @author Andreas Gohr <andi@splitbrain.org> */ |