0

addDisplayGroup 1:

$this->addDisplayGroup(DATEFROM,ELEM_DATETO),
                      'Date', array('order'  => 4,
                                'decorators' => array('FormElements',

        array(array('openinnerdiv' => 'HtmlTag'),
              array('tag' => 'div', 'id'=>'date_to_from','name'=>'date_to_from','class'=>'date_to_from')),

         array(array('opendiv' => 'HtmlTag'),
         array('tag' => 'div','id'=>'date' ))                                       
             ),
        )
    );

addDisplayGroup 2:

$this->addDisplayGroup(array('AddBlock','Add','AddDate','ORDERID','COUNTRYCODE','DATEFROM','DATETO','AGE','GENDER','LIST','CAMERA'),
              'queryblockfld_1',array('order'    => 4,
                'decorators' => array('FormElements',

                array(array('openinnerdiv' => 'HtmlTag'),
                      array('tag' => 'div', 'id'=>'queryblockfld_1','name'=>'queryblockfld','class'=>'queryblockfld')),

                array(array('opendiv' => 'HtmlTag'),
                      array('tag' => 'div','id'=>'queryblock' ))

                                                                ), 
                                            )
                        ); 

に追加 addDisplayGroup1したいaddDisplayGroup 2。誰でもこれで私を助けることができますか?

4

1 に答える 1

0

Web での長い調査の後、私は自分の質問に対する答えを見つけました。

$this->addDisplayGroup(array('DATEFROM','DATETO'),
                                       'contact',array('legend' => 'Contact Information'));

$from_to = $this->getDisplayGroup('contact');
$from_to->setDecorators(array('FormElements',
  array(array('openinnerdiv' => 'HtmlTag'),
  array('tag' => 'div', 'id'=>'date_1','name'=>'date_1','class'=>'date_1','openOnly'=>true)),
  array(array('opendiv6' => 'HtmlTag'),
  array('tag' => 'div','id'=>'blockfld_1','class'=>'blockfld','openOnly'=>true)),
  array(array('opendiv' => 'HtmlTag'),
  array('tag' => 'div','id'=>'block','openOnly'=>true)),                                                                        
));


$this->addDisplayGroup(array('AddBlock','Add','AddDate','NUMBERPLATE','COUNTRYCODE','NODE','CAMERA','NODELIST','NODECAMERA'),
       'pass',array('legend' => 'Password')); 

$pass = $this->getDisplayGroup('pass');
 $pass->setDecorators(array(
        'FormElements',
         array('HtmlTag',array('tag'=>'div','closeOnly'=>true))
));

答えを修正しただけなので、小さな間違いがいくつかあるので、親切に修正してください。

于 2013-05-29T16:48:16.617 に答える