From: Tomasz Pala Date: Sun, 16 Jun 2013 22:18:21 +0000 (+0200) Subject: theme improvement: handle Null checkbox as block /21.10.2011/ X-Git-Tag: REL_5-6-0~44 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=af2d85ac92fbc797aa67c456f02181b7d0fc7f89;p=phppgadmin.git theme improvement: handle Null checkbox as block /21.10.2011/ --- 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; }