forked from science-ation/science-ation
- Enable maxyear user filtering. unfortunately it needs to be specified
manually (done this way because i don't want to start integrating changes with the report system right now.)
This commit is contained in:
parent
9e0ea3bafd
commit
f73215fede
@ -120,6 +120,14 @@ $report_fundraisings_fields = array(
|
|||||||
'table' => 'users.year',
|
'table' => 'users.year',
|
||||||
'components' => array('users') ),
|
'components' => array('users') ),
|
||||||
|
|
||||||
|
'user_filter' => array(
|
||||||
|
'name' => 'User Filter by MAX(year)',
|
||||||
|
'header' => '',
|
||||||
|
'width' => 0.1,
|
||||||
|
'table' => 'MAX(users.year)',
|
||||||
|
'group_by' => array('users.uid'),
|
||||||
|
'components' => array('users') ),
|
||||||
|
|
||||||
'static_text' => array(
|
'static_text' => array(
|
||||||
'name' => 'Static Text (useful for labels)',
|
'name' => 'Static Text (useful for labels)',
|
||||||
'header' => '',
|
'header' => '',
|
||||||
@ -162,7 +170,7 @@ $report_fundraisings_fields = array(
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$q = " FROM fundraising_campaigns
|
$q = " FROM fundraising_campaigns
|
||||||
$users_from
|
$users_from
|
||||||
WHERE
|
WHERE
|
||||||
1
|
1
|
||||||
|
@ -15,5 +15,7 @@ INSERT INTO `reports_items` (`id`, `reports_id`, `type`, `ord`, `field`, `value`
|
|||||||
('', LAST_INSERT_ID(), 'col', 0, 'namefl', '', 5, 5, 95, 12, 1, '', 'left vcenter'),
|
('', LAST_INSERT_ID(), 'col', 0, 'namefl', '', 5, 5, 95, 12, 1, '', 'left vcenter'),
|
||||||
('', LAST_INSERT_ID(), 'col', 1, 'address', '', 5, 30, 95, 24, 2, '', 'left vcenter'),
|
('', LAST_INSERT_ID(), 'col', 1, 'address', '', 5, 30, 95, 24, 2, '', 'left vcenter'),
|
||||||
('', LAST_INSERT_ID(), 'col', 2, 'city_prov', '', 5, 60, 95, 12, 1, '', 'left vcenter'),
|
('', LAST_INSERT_ID(), 'col', 2, 'city_prov', '', 5, 60, 95, 12, 1, '', 'left vcenter'),
|
||||||
('', LAST_INSERT_ID(), 'col', 3, 'postal', '', 5, 80, 95, 12, 1, '', 'left vcenter');
|
('', LAST_INSERT_ID(), 'col', 3, 'postal', '', 5, 80, 95, 12, 1, '', 'left vcenter'),
|
||||||
|
('', LAST_INSERT_ID(), 'col', 4, 'user_filter', '', 99, 99, 1, 1, 1, '', 'center vcenter');
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user