diff options
author | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-06-16 18:34:25 +0200 |
---|---|---|
committer | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-06-16 18:34:25 +0200 |
commit | d67ca2c0f7f6b75608386c226d33afdda872757c (patch) | |
tree | 6865ecca6d30cf4ae70a68ca85f8f22161176f33 /inc/html.php | |
parent | b59a406b93334a3a9ba2c1f2529a3bc7123361f4 (diff) | |
download | rpg-d67ca2c0f7f6b75608386c226d33afdda872757c.tar.gz rpg-d67ca2c0f7f6b75608386c226d33afdda872757c.tar.bz2 |
media reference check part 2
Part 1 only checks for the existance of references.
Part 2 will show where this references are so that the user
could easily find them.
Both parts are configurable:
refcheck
darcs-hash:20050616163425-7ef76-a7fce6cd1ef5d2cc2e4ac3b869969a65c671770a.gz
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> */ |