From b751839490caad45523f30442c0e474aa50c3572 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 1 Oct 2018 16:40:45 -0400 Subject: [PATCH] making progress with the modal export form --- models/admin/export/index.php | 5 +- setup/adminHooks.php | 30 ++-- views/admin/export/index.html | 165 +++++++++++++----- .../newDashboard/components/buttons.html | 4 +- .../admin/newDashboard/components/modal.html | 7 +- views/admin/newDashboard/index.html | 27 ++- 6 files changed, 164 insertions(+), 74 deletions(-) diff --git a/models/admin/export/index.php b/models/admin/export/index.php index 5d478bbb..14607570 100644 --- a/models/admin/export/index.php +++ b/models/admin/export/index.php @@ -1,7 +1,7 @@ config = $config; // Run constructor for members data class - parent::__construct(false, false); + // parent::__construct(false, false); } diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 59410298..ac5ca93a 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -433,7 +433,13 @@ add_filter( 'classes' => '', 'data' => '', 'styles' => '' - + ], + 'export-member' => [ + 'content' => 'Export', + 'url' => '#', + 'classes' => 'btn-small widget-export-btn waves-effect waves-light btn modal-trigger', + 'styles' => '', + 'data' => 'membersExportModal' ], ], ], @@ -457,20 +463,18 @@ add_filter( ], ], [ - 'id' => 'entityAmount', - 'title' => 'Number of ' . $this->config['terms']['term_member_plur_cap'], - 'order' => 1, - 'template' => 'entityAmount', - 'table' => $membersTable, - 'url' => $membersIndexPage . "&option=search", + 'id' => 'entityAmount', + 'title' => 'Number of ' . $this->config['terms']['term_member_plur_cap'], + 'order' => 1, + 'template' => 'entityAmount', + 'table' => $membersTable, + 'url' => $membersIndexPage . "&option=search", ], [ - 'id' => 'eventExportModal', - 'title' => 'Export Events', - 'order' => 99, - 'template' => 'entityAmount', - 'table' => $membersTable, - 'url' => $membersIndexPage . "&option=search", + 'id' => 'membersExportModal', + 'template' => 'modal', + 'order' => 99, + 'form' => $this->controller('export', 'index', false, true) ], [ 'id' => 'textSearch', diff --git a/views/admin/export/index.html b/views/admin/export/index.html index d99f0243..fbb09e6c 100644 --- a/views/admin/export/index.html +++ b/views/admin/export/index.html @@ -1,49 +1,118 @@ -
- - - - - - - - - - - - {$count = 0} - {foreach $fileData as $fileHeader => $file} - - - - - - - - {$count = $count + 1} +
+ + + +
File TypeNew FileSample FileCurrent FileUpdated
- {$fileHeader} - - - - Sample {$fileHeader} File - - {if $file.exists} - {$fileHeader} File - {/if} - - {if $file.exists} - {$file.mtime|date_format:"%D %I:%M %p"} - {/if} -
+ + + - - - -
Categories: +
Clear Data - - -
- -
- -{include file='admin/footer.html'} + + + + + Member Types: + + + + + Show Archived: + Featured Only: + Pending Only: + Name Search:
+ Enter any portion of a {$terms.term_member_cap} name and press enter or select any specific {$terms.term_member_cap} found. + + + Fields to export + + + + + + + + + +
Check All / Uncheck All
+ {$terms.term_member_cap} ID
+ Old {$terms.term_member_cap} ID
+ {$terms.term_member_cap} Name
+ Profile Reference Name
+ Address Line #1
+ Address Line #2
+ City
+ State
+ ZIP/Postal Code
+ County
+ Region
+
+ Phone #
+ Toll Free
+ Main E-Mail
+ Primary Contact Name
+ Primary Contact E-Mail
+ Web Address (URL)
+ Categories
+ Mailing Address Line #1
+ Mailing Address Line #2
+ Mailing City
+ Mailing State
+ Mailing ZIP/Postal Code
+
+ + + {* Custom Field Part *} + {if apply_filters( 'glm-members-customfields-active', false )} + + Custom Fields + + {$customFields = apply_filters('glm-member-db-fields-get-members-fields', false, 'glm-member-db')} + {if $customFields} + {foreach $customFields as $cf} + {$cf.field_name}
+ {/foreach} + {/if} + + + {/if} + + Include Clicks & Views + + + + + + + + +
+ Month: +
+ URL Click Counts
+ Detail Page View Counts +
+ + + + Export to: + + Export for Print
+ Export to Spreadsheet (CSV) + + + + Cancel + + + + \ No newline at end of file diff --git a/views/admin/newDashboard/components/buttons.html b/views/admin/newDashboard/components/buttons.html index 30d0fddb..3f1826c8 100644 --- a/views/admin/newDashboard/components/buttons.html +++ b/views/admin/newDashboard/components/buttons.html @@ -3,8 +3,8 @@ {foreach $component.buttons as $buttonName => $buttonData} - {if $buttonData.content}{$buttonData.content} {$buttonData.data}{/if} + href="{if $buttonData.url}{$buttonData.url}{/if}{if $buttonData.data}{$buttonData.data}{else}#{/if}" {if $buttonData.data} data-export={$buttonData.data} {/if}> + {if $buttonData.content}{$buttonData.content}{/if} {/foreach} diff --git a/views/admin/newDashboard/components/modal.html b/views/admin/newDashboard/components/modal.html index 9896264b..8814de10 100644 --- a/views/admin/newDashboard/components/modal.html +++ b/views/admin/newDashboard/components/modal.html @@ -1,3 +1,8 @@ -{$add.result} \ No newline at end of file + + \ No newline at end of file diff --git a/views/admin/newDashboard/index.html b/views/admin/newDashboard/index.html index 7092863c..366e9dce 100644 --- a/views/admin/newDashboard/index.html +++ b/views/admin/newDashboard/index.html @@ -11,16 +11,20 @@ - - - {include file='admin/footer.html'} \ No newline at end of file -- 2.17.1