Adding registered_by field to export attendees.
'p_static' => true,
'required' => true,
'use' => 'lg'
- )
+ ),
+
+ // Registered By
+ 'registered_by' => array(
+ 'field' => 'reg_request',
+ 'as' => 'registered_by',
+ 'type' => 'pointer',
+ 'p_table' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX . 'reg_request',
+ 'p_field' => 'CONCAT_WS( \' \', bill_fname, bill_lname )',
+ 'p_static' => true,
+ 'required' => false,
+ 'use' => 'lg'
+ ),
);
// Check selected fields
$select = array(
- 'exportId' => $this->checkFlag('exportId'),
- 'exportRegistrant' => $this->checkFlag('exportRegistrant'),
- 'exportAddr1' => $this->checkFlag('exportAddr1'),
- 'exportAddr2' => $this->checkFlag('exportAddr2'),
- 'exportCity' => $this->checkFlag('exportCity'),
- 'exportState' => $this->checkFlag('exportState'),
- 'exportZip' => $this->checkFlag('exportZip'),
- 'exportEmail' => $this->checkFlag('exportEmail'),
- 'exportPhone' => $this->checkFlag('exportPhone'),
- 'exportCounty' => $this->checkFlag('exportCounty'),
- 'exportLevel' => $this->checkFlag('exportLevel'),
- 'exportTime' => $this->checkFlag('exportTime'),
- 'exportRate' => $this->checkFlag('exportRate'),
- 'exportStatus' => $this->checkFlag('exportStatus'),
- 'exportCustom' => $this->checkFlag('exportCustom'),
+ 'exportId' => $this->checkFlag('exportId'),
+ 'exportRegistrant' => $this->checkFlag('exportRegistrant'),
+ 'exportAddr1' => $this->checkFlag('exportAddr1'),
+ 'exportAddr2' => $this->checkFlag('exportAddr2'),
+ 'exportCity' => $this->checkFlag('exportCity'),
+ 'exportState' => $this->checkFlag('exportState'),
+ 'exportZip' => $this->checkFlag('exportZip'),
+ 'exportEmail' => $this->checkFlag('exportEmail'),
+ 'exportPhone' => $this->checkFlag('exportPhone'),
+ 'exportCounty' => $this->checkFlag('exportCounty'),
+ 'exportLevel' => $this->checkFlag('exportLevel'),
+ 'exportTime' => $this->checkFlag('exportTime'),
+ 'exportRate' => $this->checkFlag('exportRate'),
+ 'exportStatus' => $this->checkFlag('exportStatus'),
+ 'exportRegisteredBy' => $this->checkFlag('exportRegisteredBy'),
+ 'exportCustom' => $this->checkFlag('exportCustom'),
);
// Get registration event ID if supplied
{if $select.exportTime}<th align="left">Date/Time</th>{/if}
{if $select.exportRate}<th align="left">Rate</th>{/if}
{if $select.exportStatus}<th align="left">Status</th>{/if}
+ {if $select.exportRegisteredBy}<th align="left">Registered By</th>{/if}
{if $select.exportCustom && $customFieldHeaders}
{foreach $customFieldHeaders as $header}
<th align="left">{$header}</th>
{if $select.exportTime}<td>{$m.event_time_reformatted}</td>{/if}
{if $select.exportRate}<td>{$m.rate_name}</td>{/if}
{if $select.exportStatus}<td>{$m.request_status_name}</td>{/if}
+ {if $select.exportRegisteredBy}<td>{$m.registered_by}</td>{/if}
{if $select.exportCustom && $customFieldHeaders}
{foreach $m.custom_data as $cData}
<td>{$cData}</td>
{if $select.exportLevel}"Level",{/if}
{if $select.exportTime}"Date/Time",{/if}
{if $select.exportRate}"Rate",{/if}
-{if $select.exportStatus}"Status"{/if}
+{if $select.exportStatus}"Status",{/if}
+{if $select.exportRegisteredBy}"Registered By"{/if}
{if $select.exportCustom && $customFieldHeaders}{foreach $customFieldHeaders as $header},"{$header}"{/foreach}{/if}
{foreach $registrants as $m}
{if $select.exportLevel}"{$m.class_name}",{/if}
{if $select.exportTime}"{$m.event_time_reformatted}",{/if}
{if $select.exportRate}"{$m.rate_name}",{/if}
-{if $select.exportStatus}"{$m.request_status_name}"{/if}
+{if $select.exportStatus}"{$m.request_status_name}",{/if}
+{if $select.exportRegisteredBy}"{$m.registered_by}"{/if}
{if $select.exportCustom && $customFieldHeaders}{foreach $m.custom_data as $cData},"{$cData}"{/foreach}{/if}
{/foreach}
<input type="hidden" name="glm_action" value="registrantsListExport">
<input type="hidden" name="regEventID" value="{$regEvent.id}">
<table class="glm-admin-table">
-
+
<tr>
<th>Name Search:</th>
<td><input type="text" name="text_search" value=""></td>
<table padding="3">
<tr>
<td class="exportFieldsTd">
- <a id="selectAllStatusFields" class="button button-secondary button-small">Check All</a> <a class="button button-secondary button-small" id="unselectAllStatusFields">Uncheck All</a> Please select at least one.<br>
+ <a id="selectAllStatusFields" class="button button-secondary button-small">Check All</a> <a class="button button-secondary button-small" id="unselectAllStatusFields">Uncheck All</a> Please select at least one.<br>
{foreach from=$submitStatus key=status_id item=status_name}
<input class="statusCheckbox" type="checkbox" name="status[{$status_id}]"> {$status_name}<br>
{/foreach}
<input class="exportField" type="checkbox" name="exportCity" checked> City<br>
<input class="exportField" type="checkbox" name="exportState" checked> State<br>
<input class="exportField" type="checkbox" name="exportZip" checked> ZIP/Postal Code<br>
+ <input class="exportField" type="checkbox" name="exportRegisteredBy" checked> Registered By<br>
</td>
<td class="exportFieldsTd">
<input class="exportField" type="checkbox" name="exportEmail" checked> Email <br>
return false;
}
});
-
+
// Setup the Export Registrant Dialog
var dialog = $('#exportRegistrantsDialog').dialog({
autoOpen: false,