From b06ab047d4b88226b16c5b521f2fc85f0e6695bf Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 1 Aug 2016 17:47:21 +0200 Subject: [PATCH] key name --- etc/dbs/rent.php | 3 +++ lib/css/db.css | 5 +++-- lib/php/db/table.php | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/etc/dbs/rent.php b/etc/dbs/rent.php index 660be31a..58f465af 100644 --- a/etc/dbs/rent.php +++ b/etc/dbs/rent.php @@ -10,10 +10,13 @@ $CONF['_rent'] = array( 'tables' => array( + 'agency' => [ 'row_parse_post' => function(&$r) { return rent_doc('agency',$r); }, ], + 'place' => array( #'replace' => [ 'id' => 'addr.addr' ], 'row_parse_post' => 'place_doc', ), + 'tenant' => array( 'row_parse_post' => 'tenant_doc', ), diff --git a/lib/css/db.css b/lib/css/db.css index 82b5af2d..3d933732 100644 --- a/lib/css/db.css +++ b/lib/css/db.css @@ -44,8 +44,9 @@ text-align: center; } -table.rows th.key:before { content: "["; } -table.rows th.key:after { content: "]"; } +table.rows th .name { padding: 0 0.2em; } +#table.rows th.key .name:before { content: "["; } +table.rows th.key .name:after { content: "!"; } table.rows tr { vertical-align: top; } diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 785b9e41..795f627f 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -469,11 +469,11 @@ Class Table extends nb { $html .= '' .'' .''; - $html .= ' '; + #$html .= ' '; - $html .= $this->prettyText($name); + $html .= ''.$this->prettyText($name).''; - $html .= ' '; + #$html .= ' '; # Desc $sel = ( $this->p('orderby')=="$name desc") ? " sel" : ""; -- 2.47.3