<?php /* This is a PHP data file */ if (!@$LOADSTRUCT) { die("This is not a program file."); }
return array (
  '_detailPage' => '',
  '_disableAdd' => '0',
  '_disableErase' => '0',
  '_disableModify' => '0',
  '_disablePreview' => '0',
  '_disableView' => '1',
  '_filenameFields' => 'num',
  '_hideRecordsFromDisabledAccounts' => '0',
  '_indent' => '0',
  '_listPage' => '',
  '_maxRecords' => '',
  '_maxRecordsPerUser' => '',
  '_perPageDefault' => '25',
  '_previewPage' => '',
  '_requiredPlugins' => '',
  '_tableName' => 'man_push_notifications',
  'listPageFields' => 'createdDate, message, send_to, geotargeting, sent',
  'listPageOrder' => 'num DESC',
  'listPageSearchFields' => '_all_
Notification Sent|sent|match',
  'menuHidden' => '0',
  'menuName' => 'Push Notifications',
  'menuOrder' => '0000000014',
  'menuPrefixIcon' => '',
  'menuType' => 'multi',
  'num' => array(
    'order' => 1,
    'type' => 'none',
    'label' => 'Record Number',
    'isSystemField' => '1',
  ),
  'createdDate' => array(
    'order' => 2,
    'type' => 'none',
    'label' => 'Created',
    'isSystemField' => '1',
  ),
  'createdByUserNum' => array(
    'order' => 3,
    'type' => 'none',
    'label' => 'Created By',
    'isSystemField' => '1',
  ),
  'updatedDate' => array(
    'order' => 4,
    'type' => 'none',
    'label' => 'Last Updated',
    'isSystemField' => '1',
  ),
  'updatedByUserNum' => array(
    'order' => 5,
    'type' => 'none',
    'label' => 'Last Updated By',
    'isSystemField' => '1',
  ),
  '__separator001__' => array(
    'order' => 6,
    'label' => '',
    'type' => 'separator',
    'separatorType' => 'header bar',
    'separatorHeader' => 'Notification Details',
    'separatorHTML' => '<tr>
 <td colspan=\'2\'>
 </td>
</tr>',
    'isCollapsible' => '',
    'isCollapsed' => '',
  ),
  'app_id' => array(
    'order' => 7,
    'label' => 'Send to App ID',
    'type' => 'list',
    'indexed' => '0',
    'defaultValue' => '',
    'fieldPrefix' => '',
    'description' => '',
    'isRequired' => '1',
    'isUnique' => '0',
    'listType' => 'pulldown',
    'optionsType' => 'query',
    'optionsQuery' => 'SELECT app_id, CONCAT(app_id, " (", COUNT(distinct device_token), \' devices)\') as \'devices\' 
FROM <?php echo $TABLE_PREFIX ?>man_mobile_devices
GROUP BY app_id',
  ),
  'message' => array(
    'order' => 8,
    'label' => 'Message',
    'type' => 'textfield',
    'indexed' => '0',
    'defaultValue' => '',
    'fieldPrefix' => '',
    'description' => '',
    'fieldAddonBefore' => '',
    'fieldAddonAfter' => '',
    'fieldWidth' => 'large',
    'isPasswordField' => '0',
    'isRequired' => '1',
    'isUnique' => '0',
    'minLength' => '',
    'maxLength' => '',
    'charsetRule' => '',
    'charset' => '',
  ),
  'to' => array(
    'order' => '9',
    'label' => 'Send to',
    'type' => 'list',
    'indexed' => '0',
    'defaultValue' => '',
    'fieldPrefix' => '',
    'description' => '',
    'isRequired' => '1',
    'isUnique' => '0',
    'listType' => 'radios',
    'optionsType' => 'text',
    'optionsText' => 'all|All Devices (both members and non-members)
logged-in|Members Devices (logged in)
not-logged-in|Non-Member Devices (not logged in)
userNum|Specific user num below: (all logged in from user)',
  ),
  'to_userNum' => array(
    'order' => '12',
    'label' => '',
    'type' => 'textfield',
    'indexed' => '0',
    'defaultValue' => '',
    'fieldPrefix' => ' &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; Specific User # &nbsp; &nbsp;',
    'description' => '<a href="?menu=<?php echo accountsTable(); ?>" target="_blank">Lookup By user &gt;&gt;</a> | <a href="?menu=man_mobile_devices" target="_blank">Lookup By Device &gt;&gt;</a>',
    'fieldAddonBefore' => '',
    'fieldAddonAfter' => '',
    'fieldWidth' => 'tiny',
    'isPasswordField' => '0',
    'isRequired' => '0',
    'isUnique' => '0',
    'minLength' => '',
    'maxLength' => '',
    'charsetRule' => 'allow',
    'charset' => '1234567890',
  ),
  '__separator004__' => array(
    'order' => 13,
    'label' => 'Delivery is not guaranteed',
    'type' => 'separator',
    'separatorType' => 'html',
    'separatorHeader' => '',
    'separatorHTML' => '<div class="col-sm-2"></div>
<div class="col-sm-10">
*Note: Delivery is not guaranteed.  Users can disable push notifications on an app by app basis.<br /><br />
</div>',
    'isCollapsible' => '',
    'isCollapsed' => '',
  ),
  '__separator003__' => array(
    'order' => '14',
    'label' => '',
    'type' => 'separator',
    'separatorType' => 'header bar',
    'separatorHeader' => 'Geotargeting (only available on supporting apps)',
    'separatorHTML' => '<div class=\'col-sm-2\'>
  Column 1
</div>
<div class=\'col-sm-10\'>
  Column 2
</div>
',
    'isCollapsible' => '',
    'isCollapsed' => '',
  ),
  'geotargeting' => array(
    'order' => 15,
    'label' => 'Geotargeting',
    'type' => 'checkbox',
    'indexed' => '0',
    'fieldPrefix' => '',
    'checkedByDefault' => '0',
    'description' => 'Only send to devices within the following area:',
    'checkedValue' => 'Yes',
    'uncheckedValue' => '-',
  ),
  'geotargeting_range' => array(
    'order' => 16,
    'label' => '',
    'type' => 'textfield',
    'indexed' => '0',
    'defaultValue' => '',
    'fieldPrefix' => '&nbsp; &nbsp; &nbsp; &nbsp; within ',
    'description' => 'miles of',
    'fieldAddonBefore' => '',
    'fieldAddonAfter' => '',
    'fieldWidth' => 'tiny',
    'isPasswordField' => '0',
    'isRequired' => '0',
    'isUnique' => '0',
    'minLength' => '',
    'maxLength' => '4',
    'charsetRule' => 'allow',
    'charset' => '1234567890.',
  ),
  'geotargeting_geotargetNum' => array(
    'order' => 17,
    'label' => '',
    'type' => 'list',
    'indexed' => '0',
    'defaultValue' => '',
    'fieldPrefix' => '',
    'description' => '',
    'isRequired' => '0',
    'isUnique' => '0',
    'listType' => 'pulldown',
    'optionsType' => 'query',
    'optionsQuery' => 'SELECT num, CONCAT(`name`,\' - \',`address`)
  FROM `<?php echo $TABLE_PREFIX ?>man_push_geotargets`
ORDER BY `name`',
  ),
  '__separator006__' => array(
    'order' => 18,
    'label' => '',
    'type' => 'separator',
    'separatorType' => 'header bar',
    'separatorHeader' => 'Internal Data (do not modify)',
    'separatorHTML' => '<tr>
 <td colspan=\'2\'>
 </td>
</tr>',
    'isCollapsible' => '',
    'isCollapsed' => '',
  ),
  'sent' => array(
    'order' => 19,
    'label' => 'Notification Sent',
    'type' => 'checkbox',
    'isSystemField' => '1',
    'adminOnly' => '2',
    'indexed' => '0',
    'fieldPrefix' => '',
    'checkedByDefault' => '0',
    'description' => '',
    'checkedValue' => 'Yes',
    'uncheckedValue' => 'No',
  ),
  'debug_response' => array(
    'order' => 20,
    'label' => 'Debug Response',
    'type' => 'textbox',
    'indexed' => '',
    'defaultContent' => '',
    'fieldPrefix' => '',
    'description' => '',
    'isRequired' => '0',
    'isUnique' => '0',
    'minLength' => '',
    'maxLength' => '',
    'fieldHeight' => '',
    'autoFormat' => '1',
  ),
  '__separator002__' => array(
    'order' => 21,
    'label' => 'Debug: Manually send Push Notifications now',
    'type' => 'separator',
    'separatorType' => 'html',
    'separatorHeader' => '',
    'separatorHTML' => '<div class=\'col-sm-2 control-label\'>
Manual Send
</div>
<div class=\'col-sm-10 form-control-static\' style="padding-left: 5px">
 (for developers only)
<a href="?_pluginAction=man_pushNotifications_cron" target="_blank">Manually send Push Notifications now &gt;&gt;</a>
</div>
',
    'isCollapsible' => '',
    'isCollapsed' => '',
  ),
);
?>