From b98f498ed652f10ffc6dbdd1f7305ff9ec262f74 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 22:14:44 +0000 Subject: Change admin/graphics to avoid using radio buttons. Instead, when you hover over a toolkit it changes color and your cursor becomes a pointer. Clicking changes the toolkit. --- core/controllers/admin_graphics.php | 3 +- core/views/admin_graphics.html.php | 174 +++++++++++++++++------------------- 2 files changed, 84 insertions(+), 93 deletions(-) (limited to 'core') diff --git a/core/controllers/admin_graphics.php b/core/controllers/admin_graphics.php index babad3d4..ba1c7569 100644 --- a/core/controllers/admin_graphics.php +++ b/core/controllers/admin_graphics.php @@ -26,9 +26,8 @@ class Admin_Graphics_Controller extends Admin_Controller { print $view; } - public function save() { + public function choose($toolkit) { access::verify_csrf(); - $toolkit = $this->input->post("graphics_toolkit"); if ($toolkit != module::get_var("core", "graphics_toolkit")) { module::set_var("core", "graphics_toolkit", $toolkit); diff --git a/core/views/admin_graphics.html.php b/core/views/admin_graphics.html.php index 7d57ec6f..6b64da59 100644 --- a/core/views/admin_graphics.html.php +++ b/core/views/admin_graphics.html.php @@ -1,100 +1,92 @@ -
+ +

-
"> - -

- - - - - +

+
-
- gd): ?> disabled="disabled" - checked="checked" - > -
-
-

-

- "", "link_end" => "")) ?> -

- gd["GD Version"] && function_exists('imagerotate')): ?> -

- $tk->gd["GD Version"])) ?> -

- gd["GD Version"]): ?> -

- $tk->gd["GD Version"])) ?> -

- -

- -

- -
+ > + + + - - - - + > + + + - - - - -
+ + +

+

+ "", "link_end" => "")) ?> +

+ gd["GD Version"] && function_exists('imagerotate')): ?> +

+ $tk->gd["GD Version"])) ?> +

+ gd["GD Version"]): ?> +

+ $tk->gd["GD Version"])) ?> +

+ +

+ +

+ +
-
- imagemagick): ?> disabled="disabled" - checked="checked" - > -
-
-

-

- "", "link_end" => "")) ?> -

- imagemagick): ?> -

- $tk->imagemagick)) ?> -

- -

- -

- -
+ + +

+

+ "", "link_end" => "")) ?> +

+ imagemagick): ?> +

+ $tk->imagemagick)) ?> +

+ +

+ +

+ +
-
- graphicsmagick): ?> disabled="disabled" - checked="checked" - > -
-
-

-

- "", "link_end" => "")) ?> -

- graphicsmagick): ?> -

- $tk->graphicsmagick)) ?> -

- -

- -

- -
- "/> -
+ > + + + + +

+

+ "", "link_end" => "")) ?> +

+ graphicsmagick): ?> +

+ $tk->graphicsmagick)) ?> +

+ +

+ +

+ + + +
-- cgit v1.2.3