From 6f86c3cd6e472d2a93f7880606e5c95dbc2d225c Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 5 May 2015 19:13:10 -0400 Subject: [PATCH] More updates to import --- classes/glmMemberImportFromConnections.php | 34 ++++++- views/admin/configure/development.html | 107 ++++++++++++++------- 2 files changed, 102 insertions(+), 39 deletions(-) diff --git a/classes/glmMemberImportFromConnections.php b/classes/glmMemberImportFromConnections.php index 0fa9d876..009b2184 100644 --- a/classes/glmMemberImportFromConnections.php +++ b/classes/glmMemberImportFromConnections.php @@ -111,8 +111,38 @@ class GlmMemberImportFromConnections while (list($k, $v) = each($list)) { // Addresses - $addrArray = unserialize($v['addresses']); - $list[$k]['addresses'] = $addrArray; + $a = unserialize($v['addresses']); + $list[$k]['addresses'] = $a; + + // Phone Numbers + $a = unserialize($v['phone_numbers']); + $list[$k]['phone_numbers'] = $a; + + // E-Mail + $a = unserialize($v['email']); + $list[$k]['email'] = $a; + + // Social Meida + $a = unserialize($v['social']); + $list[$k]['social_media'] = $a; + + // Links + $a = unserialize($v['links']); + $list[$k]['links'] = $a; + + // Dates + $a = unserialize($v['dates']); + $list[$k]['dates'] = $a; + + // Options + $a = unserialize($v['options']); + $list[$k]['options'] = $a; + + + + + + } return $list; diff --git a/views/admin/configure/development.html b/views/admin/configure/development.html index 60bbcd34..35be617b 100644 --- a/views/admin/configure/development.html +++ b/views/admin/configure/development.html @@ -16,43 +16,53 @@ {/foreach} {/if} {if $importData.haveMembers} - - - - - - - - - - - - - - - - {foreach $importData.members as $m} - - - {assign var="i" value="0"} - {foreach $m.addresses as $a} - {if $i++ gt 1} - - - {/if} - - - - - - - - - - {/foreach} - {/foreach} - -
NameAddr Line 1Addr Line 2Addr Line 3CityStateZIPCountryLat/Lon
{$m.organization}
 {$a.line_1}{$a.line_2}{$a.line_3}{$a.city}{$a.state}{$a.zipcode}{$a.country}{$a.latitude|number_format:3:".":","}/{$a.longitude|number_format:3:".":","}
+

Please review list of members that will be imported.

+

+ Skip All   + Import All +

+
+ + + + + + + + + + + + + + + + + {foreach $importData.members as $m} + + + + {assign var="i" value="0"} + {foreach $m.addresses as $a} + {if $i++ gt 1} + + + + {/if} + + + + + + + + + + {/foreach} + {/foreach} + +
SkipNameAddr Line 1Addr Line 2Addr Line 3CityStateZIPCountryLat/Lon
{$m.organization}
  {$a.line_1}{$a.line_2}{$a.line_3}{$a.city}{$a.state}{$a.zipcode}{$a.country}{$a.latitude|number_format:3:".":","}/{$a.longitude|number_format:3:".":","}
+
{/if} @@ -77,4 +87,27 @@ {/if} +{if $importData.haveMembers} + +{/if} + + {include file='admin/footer.html'} -- 2.17.1