Update for paging the member imports
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Jul 2018 15:45:11 +0000 (11:45 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Jul 2018 15:45:11 +0000 (11:45 -0400)
page with next form.

views/admin/management/development.html

index b6b437a..5a5327c 100644 (file)
@@ -1,9 +1,9 @@
 {include file='admin/management/header.html'}
-    
+
     <p>Note: Customers will not have access to this tab.</p>
-    
+
     <h2>Development Activities</h2>
-    
+
     <ul>
         <li>
             <H3>Import</H3>
                     <p>
                         <a href="{$thisUrl}?page={$thisPage}&glm_action=development&option=import_connections">Import data from "Connections" business directory</a>
 
-    {if $importNotice} 
+    {if $importNotice}
                         <div class="glm-indent glm-notice">{$importNotice}</div>
     {/if}
                     </p>
 
     {if $import}
 
-                    <h3 style="margin-left: 2em;">Members imported: {$membersImported}</h3>
-                    
+                <h3 style="margin-left: 2em;">Members imported: {$membersImported}</h3>
+                start = {$start}
+                <form action="{$thisUrl}?page={$thisPage}" method="POST">
+                    <input type="hidden" name="page" value="{$thisPage}" />
+                    <input type="hidden" name="glm_action" value="development" />
+                    <input type="hidden" name="option" value="import_connections" />
+                    <input type="hidden" name="start" value="{$start}" />
+                    <input type="hidden" name="import" value="now" />
+                    <input type="submit" value="Next" />
+                </form>
+
     {else}
         {if $haveMembers}
                     <form action="{$thisUrl}?page={$thisPage}&glm_action=development&option=import_connections" method="POST">
                                 <tr class="alternate">
                                     <td><input type="checkbox" name="skip[{$m.id}]" class="skip">{$m.id}</td>
                                     <td>{$m.organization}</td>
-                {assign var="i" value="0"}                        
+                {assign var="i" value="0"}
                 {foreach $m.addresses as $a}
                     {if $i++ gt 1}
                                 <tr>
                                     <td>&nbsp;</td>
                                     <td>&nbsp;</td>
-                    {/if}                                
+                    {/if}
                                     <td>{$a.line_1}</td>
                                     <td>{$a.line_2}</td>
                                     <td>{$a.line_3}</td>
@@ -80,8 +89,8 @@
                                     <td>{$a.latitude|number_format:3:".":","}/{$a.longitude|number_format:3:".":","}</td>
                                 </tr>
                 {/foreach}
-            {/foreach}               
-                            </tbody>         
+            {/foreach}
+                            </tbody>
                         </table>
                     </form>
         {/if}
             </ul>
             <H3>Database</H3>
             <ul>
-<!-- These need to be converted to using the dbVersions tables for all plugins             
+<!-- These need to be converted to using the dbVersions tables for all plugins
                 <li><a href="{$thisUrl}?page={$thisPage}&glm_action=development&option=drop">Drop database tables</a> (WARNING: Destroys all current data)</li>
                 <li><a href="{$thisUrl}?page={$thisPage}&glm_action=development&option=create">Create database tables</a></li>
                 <li><a href="{$thisUrl}?page={$thisPage}&glm_action=development&option=reset">Fully Reset Database (drop/create)</a> (WARNING: Destroys all current data)</li>
--->                
+-->
                 <li><a href="{$thisUrl}?page={$thisPage}&glm_action=development&option=list">List database tables</a></li>
             </ul>
         </li>
     </ul>
 
     <div>
-        <h3>Docuemtation and References</h3>    
+        <h3>Docuemtation and References</h3>
         <p><a href="{$baseUrl}/lib/GlmDataAbstract/GlmDataAbstract_Programmers_Manual.pdf">Data Abstract Class Documentation</a></p>
     </div>
-{if $resultMessage}    
+{if $resultMessage}
     <div>
         <hr>
         {$resultMessage}
     </div>
-{/if}    
+{/if}
 
 {if $databaseList}
     <div>
                             <table style="font-size: .9em;">
       {foreach $d.dbVersions as $v}
                                 <tr><th align="left">{$v.version}</th><td>Number of tables: {$v.tables}</td></tr>
-      {/foreach}                                
+      {/foreach}
                             </table>
                         </td>
                     </tr>
                                     <table style="margin-left: 2em;">
           {foreach $t.tablefields as $f}
                                         <tr><td>{$f.Field}</td><td>{$f.Type}</td></tr>
-          {/foreach}                                    
+          {/foreach}
                                     </table>
                                 </td></tr>
-        {/if}                                    
-      {/foreach}                                
+        {/if}
+      {/foreach}
                             </table>
                         </td>
                     </tr>
   {/foreach}
     </div>
 {/if}
-    
+
 {if $haveMembers}
     <script type="text/javascript">
         jQuery(document).ready(function($) {
 
                $('#skipAll').click(function(event) {
                    $('.skip').each(function() { //loop through each checkbox
-                       this.checked = true;  //select all checkboxes with class "checkbox1"              
+                       this.checked = true;  //select all checkboxes with class "checkbox1"
                    });
                    return false;
            });
-               
+
             $('#skipNone').click(function(event) {
                 $('.skip').each(function() { //loop through each checkbox
-                    this.checked = false;  //select all checkboxes with class "checkbox1"              
+                    this.checked = false;  //select all checkboxes with class "checkbox1"
                 });
                 return false;
             });
-               
+
         });
     </script>
-{/if}            
-    
-    
+{/if}
+
+
 {include file='admin/footer.html'}