From af2d85ac92fbc797aa67c456f02181b7d0fc7f89 Mon Sep 17 00:00:00 2001 From: Tomasz Pala Date: Mon, 17 Jun 2013 00:18:21 +0200 Subject: [PATCH] theme improvement: handle Null checkbox as block /21.10.2011/ --- display.php | 4 ++-- tables.php | 4 ++-- themes/gotar/global.css | 11 +++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/display.php b/display.php index 7ff97909..6098bc34 100644 --- a/display.php +++ b/display.php @@ -89,8 +89,8 @@ if ($_REQUEST['action'] == 'confeditrow' && $rs->fields[$attrs->fields['attname']] === null) { $_REQUEST['nulls'][$attrs->fields['attname']] = 'on'; } - echo "fields['attname']}]\"", - isset($_REQUEST['nulls'][$attrs->fields['attname']]) ? ' checked="checked"' : '', " />\n"; + echo "\n"; $elements++; } else diff --git a/tables.php b/tables.php index a8aa397a..36db6b7b 100644 --- a/tables.php +++ b/tables.php @@ -505,8 +505,8 @@ echo ""; // Output null box if the column allows nulls (doesn't look at CHECKs or ASSERTIONS) if (!$attrs->fields['attnotnull']) { - echo "fields['attnum']}]\"", - isset($_REQUEST['nulls'][$attrs->fields['attnum']]) ? ' checked="checked"' : '', " />"; + echo ""; } else { echo " "; diff --git a/themes/gotar/global.css b/themes/gotar/global.css index 23cef1e8..f15c75a7 100644 --- a/themes/gotar/global.css +++ b/themes/gotar/global.css @@ -96,6 +96,17 @@ input, textarea, select { input, textarea, select { color:#210; } +td label { + display:table; + text-align:center; + height:100%; + width:100%; + border-collapse: collapse; +} +td label span { + display:table-cell; + vertical-align:middle; +} .data1 select, .data2 select { font-weight:bold; } -- 2.39.5