From: stevetruckstuff Date: Fri, 18 Aug 2006 21:31:57 +0000 (+0000) Subject: Add advanced template for re-ordering indexes as an example X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=393a696c0d8bed4d4bd4bbfa33857408f8c0ab57;p=squirrelmail.git Add advanced template for re-ordering indexes as an example git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11615 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default/stylesheet.tpl b/templates/default/stylesheet.tpl index 98d92ffe..6298a4d3 100644 --- a/templates/default/stylesheet.tpl +++ b/templates/default/stylesheet.tpl @@ -557,14 +557,11 @@ tr.odd { } #optionHighlight td.moveLink { - text-align: center; + text-align: right; font-size: 75%; + vertical-align: bottom; } #optionHighlight td.fieldName { text-align: left; } - -#optionHighlight select,input { - font-size: 75%; -} \ No newline at end of file diff --git a/templates/default_advanced/images/add.png b/templates/default_advanced/images/add.png new file mode 100644 index 00000000..6ea87ddb Binary files /dev/null and b/templates/default_advanced/images/add.png differ diff --git a/templates/default_advanced/images/delete.png b/templates/default_advanced/images/delete.png new file mode 100644 index 00000000..eea65483 Binary files /dev/null and b/templates/default_advanced/images/delete.png differ diff --git a/templates/default_advanced/images/down.png b/templates/default_advanced/images/down.png new file mode 100644 index 00000000..0a8b3e7c Binary files /dev/null and b/templates/default_advanced/images/down.png differ diff --git a/templates/default_advanced/images/up.png b/templates/default_advanced/images/up.png new file mode 100644 index 00000000..73903d26 Binary files /dev/null and b/templates/default_advanced/images/up.png differ diff --git a/templates/default_advanced/options_order.tpl b/templates/default_advanced/options_order.tpl new file mode 100644 index 00000000..d6f96b9e --- /dev/null +++ b/templates/default_advanced/options_order.tpl @@ -0,0 +1,95 @@ + +
+ + + + + + + + + + + + + + +
+ +
+ +
+ + + + + $index) { + echo " \n"; + + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + + echo " \n"; + } + + if (count($not_used) > 0) { + ?> + + + + $name) { + echo "\n" . + "\n" . + "\n" . + "\n"; + } + ?> +
+ +
\n" .($order > 0 ? ''.getIcon($icon_theme_path, 'up.png', _("up"), _("up")).'' : ' '). "\n \n" .($order < count($current_order)-1 ? ''.getIcon($icon_theme_path, 'down.png', _("down"), _("down")).'' : ' '). "\n \n" .(!in_array($index, $always_show) ? ''.getIcon($icon_theme_path, 'delete.png', _("remove"), _("remove")).'' : ' '). "\n \n" .$fields[$index]. "\n
+ +
".getIcon($icon_theme_path, 'add.png', _("Add"), _("Add"))."".htmlspecialchars($name)."
+
+ +
+
\ No newline at end of file diff --git a/templates/default_advanced/stylesheet_advanced.tpl b/templates/default_advanced/stylesheet_advanced.tpl index 1c7bbb71..90d2dfc3 100644 --- a/templates/default_advanced/stylesheet_advanced.tpl +++ b/templates/default_advanced/stylesheet_advanced.tpl @@ -38,6 +38,16 @@ extract($t); ?> +/* advanced option order defs */ +#optionHighlight td.divider { + border-top: 1px solid ; + border-bottom: 1px solid ; + background: ; + font-weight: bold; + padding-top: 2px; + padding-bottom: 2px; +} + /* Advanced Tree definitions */ .dtree { font-size:11px; diff --git a/templates/default_advanced/template.php b/templates/default_advanced/template.php index 809fb33b..aacf78bb 100644 --- a/templates/default_advanced/template.php +++ b/templates/default_advanced/template.php @@ -17,7 +17,8 @@ */ $templates_provided = array ( 'left_main.tpl', - 'stylesheet_advanced.tpl' + 'stylesheet_advanced.tpl', + 'options_order.tpl', ); /**