diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-06-11 12:39:51 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-06-11 12:39:51 +0000 |
commit | 0d074672fa8209c85af75ef7d7cdfbaf8e16cbab (patch) | |
tree | c8628246d3131dbf338fe9702edcb73712432dcc /phpBB/adm/style | |
parent | 13a02f6cc5bcdb0654642135b2981633ac3996b5 (diff) | |
download | forums-0d074672fa8209c85af75ef7d7cdfbaf8e16cbab.tar forums-0d074672fa8209c85af75ef7d7cdfbaf8e16cbab.tar.gz forums-0d074672fa8209c85af75ef7d7cdfbaf8e16cbab.tar.bz2 forums-0d074672fa8209c85af75ef7d7cdfbaf8e16cbab.tar.xz forums-0d074672fa8209c85af75ef7d7cdfbaf8e16cbab.zip |
Introducing the ability to manually set the dimensions of an image in the imageset editor.
A little spelling.
Introduces new language variable(s).
#11925
#11675
git-svn-id: file:///svn/phpbb/trunk@7750 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r-- | phpBB/adm/style/acp_styles.html | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/phpBB/adm/style/acp_styles.html b/phpBB/adm/style/acp_styles.html index 26d0a6af4a..58d742ba62 100644 --- a/phpBB/adm/style/acp_styles.html +++ b/phpBB/adm/style/acp_styles.html @@ -58,6 +58,35 @@ } //--> </script> + <script type="text/javascript"> + <!-- + /** + * Handle displaying/hiding the dimension fields + */ + function display_options(value) + { + if (value == 0) + { + dE('img_dimensions', -1); + } + else + { + dE('img_dimensions', 1); + } + } + + /** + * Init the wanted display functionality if javascript is enabled. + * If javascript is not available, the user is still able to properly administrate. + */ + onload = function() + { + <!-- IF not IMAGE_SIZE --> + dE('img_dimensions', -1); + <!-- ENDIF --> + } + //--> + </script> <form method="post" action="{U_ACTION}"> @@ -100,9 +129,19 @@ </dl> <dl> <dt><label for="imgsize">{L_INCLUDE_DIMENSIONS}:</label><br /><span>{L_DIMENSIONS_EXPLAIN}</span></dt> - <dd><label><input type="radio" class="radio" name="imgsize" id="imgsize" value="1"<!-- IF IMAGE_SIZE --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> - <label><input type="radio" class="radio" name="imgsize" value="0"<!-- IF not IMAGE_SIZE --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd> + <dd><label><input type="radio" class="radio" name="imgsize" id="imgsize" onclick="display_options(1);" value="1"<!-- IF IMAGE_SIZE --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> + <label><input type="radio" class="radio" name="imgsize" onclick="display_options(0);" value="0"<!-- IF not IMAGE_SIZE --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd> </dl> + <div id="img_dimensions"> + <dl> + <dt><label for="imgwidth">{L_IMAGE_WIDTH}:</label><br /><span>{L_AUTOMATIC_EXPLAIN}</span></dt> + <dd><input type="text" name="imgwidth" value="{IMAGE_SIZE}" /></dd> + </dl> + <dl> + <dt><label for="imgheight">{L_IMAGE_HEIGHT}:</label><br /><span>{L_AUTOMATIC_EXPLAIN}</span></dt> + <dd><input type="text" name="imgheight" value="{IMAGE_HEIGHT}" /></dd> + </dl> + </div> </fieldset> <fieldset class="submit-buttons"> |