diff options
author | Tomasz Pala | 2013-06-16 22:18:21 +0000 |
---|---|---|
committer | Jehan-Guillaume de Rorthais | 2013-11-11 21:35:21 +0000 |
commit | af2d85ac92fbc797aa67c456f02181b7d0fc7f89 (patch) | |
tree | d1f422571f684aa8481444c059e791ef17419a02 | |
parent | 20d1f48b43ab7d51a26b044dc435f425333fd1f8 (diff) |
theme improvement: handle Null checkbox as block /21.10.2011/
-rw-r--r-- | display.php | 4 | ||||
-rw-r--r-- | tables.php | 4 | ||||
-rw-r--r-- | 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 "<input type=\"checkbox\" name=\"nulls[{$attrs->fields['attname']}]\"", - isset($_REQUEST['nulls'][$attrs->fields['attname']]) ? ' checked="checked"' : '', " /></td>\n"; + echo "<label><span><input type=\"checkbox\" name=\"nulls[{$attrs->fields['attname']}]\"", + isset($_REQUEST['nulls'][$attrs->fields['attname']]) ? ' checked="checked"' : '', " /></span></label></td>\n"; $elements++; } else @@ -505,8 +505,8 @@ echo "<td style=\"white-space:nowrap;\">"; // Output null box if the column allows nulls (doesn't look at CHECKs or ASSERTIONS) if (!$attrs->fields['attnotnull']) { - echo "<input type=\"checkbox\" name=\"nulls[{$attrs->fields['attnum']}]\"", - isset($_REQUEST['nulls'][$attrs->fields['attnum']]) ? ' checked="checked"' : '', " /></td>"; + echo "<label><span><input type=\"checkbox\" name=\"nulls[{$attrs->fields['attnum']}]\"", + isset($_REQUEST['nulls'][$attrs->fields['attnum']]) ? ' checked="checked"' : '', " /></span></label></td>"; } else { echo " </td>"; 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; } |