'doList', ); var $types = array('mncar', 'affiliate'); var $type = null; function MemberRoster(&$Doc, &$DBObj, $type = '') { $this->MemberGrid($Doc, $DBObj); if (!in_array(strtolower($type), $this->types)) { $this->type = reset($this->types); } else { $this->type = strtolower($type); } } function doNew() { return false; } function doInsert() { return false; } function doEdit() { return false; } function doUpdate() { return false; } function doDelete() { return false; } function _doListBind(&$DB_List) { $DB_List->bind(); return true; } function doList() { $this->_saveBackUrl(); $this->DBObj->_filterFields = array("CONCAT(Member.last_name, ', ', Member.first_name, Member.middle_initial, IF(Member.middle_initial = '', '.', ''))", 'Company.name', 'Member.primary_phone'); $this->DBObj->filter['search_type'] = 'individual'; $filterForm = DB_Grid::getFilterForm(); $filterForm->tpl = BASE_PATH . '/tpl/Member/Roster/filter.tpl'; $filterForm->getElement('cancel_btn')->setValue('Reset'); $filterForm->updateElementAttr(array('query'), array('class' => 'inp_search')); $this->DBObj->setFilter($filterForm->getElementValue('query')); $filterForm->exec(); require_once 'app/Member/Roster/RosterList.php'; $DB_List = new RosterList($this->Doc, $this->DBObj, $this->functionalFields, $this->type); $this->_doListBind($DB_List); $DB_List->exec(); return true; } function _saveBackUrl() { $this->setBackUrl(Constant::get('BASE_URL').'/'.CURR_PAGE_FULL.'?'.$_SERVER['QUERY_STRING'], SMGetAliasByItemType('Member/Show')); } }