public function renderToolProspectsContentFiltersSiteAction()
    {
        $tableSite = $this->getServiceLocator()->get('MelisEngineTableSite');
        $translator = $this->getServiceLocator()->get('translator');
        $sites = $tableSite->fetchAll();
        $siteId = $this->getRequest()->getPost('pros_site_id');

        $options = '<option  value="">'.$translator->translate('tr_melistoolprospects_prospects_common_choose_label').'</option>';
        foreach($sites as $site){
            $selected  = ($site->site_id == $siteId)? 'selected' : '';
            $options .= '<option value="'.$site->site_id.'" '.$selected.'>'.$site->site_label .'</option>';
        }

        $view =  new ViewModel();
        $view->options = $options;
        return $view;
    }
public function renderToolProspectsContentFiltersSiteAction()
    {
        $tableSite = $this->getServiceLocator()->get('MelisEngineTableSite');
        $translator = $this->getServiceLocator()->get('translator');
        $sites = $tableSite->fetchAll();
        $siteId = $this->getRequest()->getPost('pros_site_id');

        $options = '<option  value="">'.$translator->translate('tr_melistoolprospects_prospects_common_choose_label').'</option>';
        foreach($sites as $site){
            $selected  = ($site->site_id == $siteId)? 'selected' : '';
            $options .= '<option value="'.$site->site_id.'" '.$selected.'>'.$site->site_label .'</option>';
        }

        $view =  new ViewModel();
        $view->options = $options;
        return $view;
    }
public function renderToolProspectsContentFiltersSiteAction ( ) { $ tableSite = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTableSite' ) ; $ translator = $ this -> getServiceLocator ( ) -> get ( 'translator' ) ; $ sites = $ tableSite -> fetchAll ( ) ; $ siteId = $ this -> getRequest ( ) -> getPost ( 'pros_site_id' ) ; $ options = '<option  value="">' . $ translator -> translate ( 'tr_melistoolprospects_prospects_common_choose_label' ) . '</option>' ; foreach ( $ sites as $ site ) { $ selected = ( $ site -> site_id == $ siteId ) ? 'selected' : '' ; $ options .= '<option value="' . $ site -> site_id . '" ' . $ selected . '>' . $ site -> site_label . '</option>' ; } $ view = new ViewModel ( ) ; $ view -> options = $ options ; return $ view ; }
renders the list content prospects filter site
@return \Zend\View\Model\ViewModel
renders the list content prospects filter site