* @license http://www.gaslightmedia.com Gaslightmedia
* @version 0.1
*/
-
+require_once GLM_MEMBERS_PLUGIN_PATH . '/controllers/admin.php';
/**
*
* This class exports the currently selected members list
* to a printable HTML file, to a CSV file, or otherwise.
*/
-class GlmMembersAdmin_ajax_adminSearch
+class GlmMembersAdmin_ajax_adminSearch extends glmMembersAdmin
{
/**
$limit = 20;
$status = $this->config['status_numb']['Active'];
- $list = apply_filters('glm-member-db-admin-search', '');
+ // $list = apply_filters('glm-member-db-admin-search', '');
+ $list = $this->controller( 'manageDashboard', 'members', false, true, true);
$return = array(
+++ /dev/null
-<?php
-
-/**
- * Gaslight Media Members Database
- * Members List Export by AJAX
- *
- * PHP version 5.5
- *
- * @category glmWordPressPlugin
- * @entity glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 0.1
- */
-require_once GLM_MEMBERS_PLUGIN_PATH . '/controllers/admin.php';
-/**
- *
- * This class exports the currently selected members list
- * to a printable HTML file, to a CSV file, or otherwise.
- */
-class GlmMembersAdmin_ajax_memberEdit extends glmMembersAdmin
-{
-
- /**
- * WordPress Database Object
- *
- * @var $wpdb
- * @access public
- */
- public $wpdb;
- /**
- * Plugin Configuration Data
- *
- * @var $config
- * @access public
- */
- public $config;
-
- /**
- * Constructor
- *
- * This constructor sets up this model. At this time that only includes
- * storing away the WordPress data object.
- *
- * @return object Class object
- *
- */
- public function __construct ($wpdb, $config)
- {
-
- // Save WordPress Database object
- $this->wpdb = $wpdb;
-
- // Save plugin configuration object
- $this->config = $config;
-
- //parent::__construct(false, false);
-
- }
-
- /**
- * Perform Model Action
- *
- * This modelAction takes an AJAX image upload and stores the image in the
- * media/images directory of the plugin.
- *
- * This model action does not return, it simply does it's work then calls die();
- *
- * @param $actionData
- *
- * Echos JSON string as response and does not return
- */
- public function modelAction ($actionData = false)
- {
- global $wpdb;
- $memberID = $_REQUEST['memberID'];
- $editData = $this->controller( 'member', 'index', array("memberID" => $memberID), true, true);
-
- $return = array(
- "test" => $sql,
- 'searchData' => $editData // Where our events list will go
- );
-
- header('Content-type:application/json;charset=utf-8', true);
- echo json_encode($return);
- wp_die();
- }
-}
--- /dev/null
+<?php
+
+/**
+ * Gaslight Media Members Database
+ * Members List Export by AJAX
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @entity glmMembersDatabase
+ * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @version 0.1
+ */
+require_once GLM_MEMBERS_PLUGIN_PATH . '/controllers/admin.php';
+/**
+ *
+ * This class exports the currently selected members list
+ * to a printable HTML file, to a CSV file, or otherwise.
+ */
+class GlmMembersAdmin_ajax_memberManagement extends glmMembersAdmin
+{
+
+ /**
+ * WordPress Database Object
+ *
+ * @var $wpdb
+ * @access public
+ */
+ public $wpdb;
+ /**
+ * Plugin Configuration Data
+ *
+ * @var $config
+ * @access public
+ */
+ public $config;
+
+ /**
+ * Constructor
+ *
+ * This constructor sets up this model. At this time that only includes
+ * storing away the WordPress data object.
+ *
+ * @return object Class object
+ *
+ */
+ public function __construct ($wpdb, $config)
+ {
+
+ // Save WordPress Database object
+ $this->wpdb = $wpdb;
+
+ // Save plugin configuration object
+ $this->config = $config;
+
+ //parent::__construct(false, false);
+
+ }
+
+ /**
+ * Perform Model Action
+ *
+ * This modelAction takes an AJAX image upload and stores the image in the
+ * media/images directory of the plugin.
+ *
+ * This model action does not return, it simply does it's work then calls die();
+ *
+ * @param $actionData
+ *
+ * Echos JSON string as response and does not return
+ */
+ public function modelAction ($actionData = false)
+ {
+ global $wpdb;
+ $memberID = $_REQUEST['memberID'];
+ $editData = $this->controller( 'member', 'index', array("memberID" => $memberID), true, true);
+
+ $return = array(
+ "test" => $sql,
+ 'searchData' => $editData // Where our events list will go
+ );
+
+ header('Content-type:application/json;charset=utf-8', true);
+ echo json_encode($return);
+ wp_die();
+ }
+}
'countiesMapData' => 'glm-member-db',
'glmTextSearch' => 'glm-member-db',
'adminSearch' => 'glm-member-db',
- 'memberEdit' => 'glm-member-db',
+ 'memberManagement' => 'glm-member-db',
),
'manageDashboard' => array(
'members' => 'glm-member-db',
$(".edit-screen").html('');
var editData = {
action : 'glm_members_admin_ajax',
- glm_action : 'memberEdit',
+ glm_action : 'memberManagement',
form_action : 'index',
view : "index",
option : 'index',