public function exportArchiveAction()
    {
        $params = $this->_processParameters($this->showParameters);

        $this->addSnippets($this->exportSnippets, $params);

        $this->html->h2($this->_('Export respondent archive'));

        //Now show the export form
        $export = $this->loader->getRespondentExport();
        $form   = $export->getForm();
        $div    = $this->html->div(array('id' => 'mainform'));
        $div[]  = $form;

        $request = $this->getRequest();

        $form->populate($request->getParams());

        if ($request->isPost()) {
            $respondent = $this->getRespondent();
            $patients   = array(
                array(
                    'gr2o_id_organization' => $respondent->getOrganizationId(),
                    'gr2o_patient_nr'      => $respondent->getPatientNumber()
                    )
                );
            $export->render($patients, $request->getParam('group'), $request->getParam('format'));
        }
    }
public function exportArchiveAction()
    {
        $params = $this->_processParameters($this->showParameters);

        $this->addSnippets($this->exportSnippets, $params);

        $this->html->h2($this->_('Export respondent archive'));

        //Now show the export form
        $export = $this->loader->getRespondentExport();
        $form   = $export->getForm();
        $div    = $this->html->div(array('id' => 'mainform'));
        $div[]  = $form;

        $request = $this->getRequest();

        $form->populate($request->getParams());

        if ($request->isPost()) {
            $respondent = $this->getRespondent();
            $patients   = array(
                array(
                    'gr2o_id_organization' => $respondent->getOrganizationId(),
                    'gr2o_patient_nr'      => $respondent->getPatientNumber()
                    )
                );
            $export->render($patients, $request->getParam('group'), $request->getParam('format'));
        }
    }
public function exportArchiveAction ( ) { $ params = $ this -> _processParameters ( $ this -> showParameters ) ; $ this -> addSnippets ( $ this -> exportSnippets , $ params ) ; $ this -> html -> h2 ( $ this -> _ ( 'Export respondent archive' ) ) ; //Now show the export form $ export = $ this -> loader -> getRespondentExport ( ) ; $ form = $ export -> getForm ( ) ; $ div = $ this -> html -> div ( array ( 'id' => 'mainform' ) ) ; $ div [ ] = $ form ; $ request = $ this -> getRequest ( ) ; $ form -> populate ( $ request -> getParams ( ) ) ; if ( $ request -> isPost ( ) ) { $ respondent = $ this -> getRespondent ( ) ; $ patients = array ( array ( 'gr2o_id_organization' => $ respondent -> getOrganizationId ( ) , 'gr2o_patient_nr' => $ respondent -> getPatientNumber ( ) ) ) ; $ export -> render ( $ patients , $ request -> getParam ( 'group' ) , $ request -> getParam ( 'format' ) ) ; } }
Action for dossier export
Action for dossier export