roundcubemail/plugins/enigma/lib/enigma_ui.php
function tpl_keys_list($attrib)
    {
        // add id to message list table if not specified
        if (!strlen($attrib['id'])) {
            $attrib['id'] = 'rcmenigmakeyslist';
        }

        // define list of cols to be displayed
        $a_show_cols = array('name');

        // create XHTML table
        $out = $this->rc->table_output($attrib, array(), $a_show_cols, 'id');

        // set client env
        $this->rc->output->add_gui_object('keyslist', $attrib['id']);
        $this->rc->output->include_script('list.js');

        // add some labels to client
        $this->rc->output->add_label('enigma.keyremoveconfirm', 'enigma.keyremoving',
            'enigma.keyexportprompt', 'enigma.withprivkeys', 'enigma.onlypubkeys', 'enigma.exportkeys'
        );

        return $out;
    }
function tpl_keys_list($attrib)
    {
        // add id to message list table if not specified
        if (!strlen($attrib['id'])) {
            $attrib['id'] = 'rcmenigmakeyslist';
        }

        // define list of cols to be displayed
        $a_show_cols = array('name');

        // create XHTML table
        $out = $this->rc->table_output($attrib, array(), $a_show_cols, 'id');

        // set client env
        $this->rc->output->add_gui_object('keyslist', $attrib['id']);
        $this->rc->output->include_script('list.js');

        // add some labels to client
        $this->rc->output->add_label('enigma.keyremoveconfirm', 'enigma.keyremoving',
            'enigma.keyexportprompt', 'enigma.withprivkeys', 'enigma.onlypubkeys', 'enigma.exportkeys'
        );

        return $out;
    }
function tpl_keys_list ( $ attrib ) { // add id to message list table if not specified if ( ! strlen ( $ attrib [ 'id' ] ) ) { $ attrib [ 'id' ] = 'rcmenigmakeyslist' ; } // define list of cols to be displayed $ a_show_cols = array ( 'name' ) ; // create XHTML table $ out = $ this -> rc -> table_output ( $ attrib , array ( ) , $ a_show_cols , 'id' ) ; // set client env $ this -> rc -> output -> add_gui_object ( 'keyslist' , $ attrib [ 'id' ] ) ; $ this -> rc -> output -> include_script ( 'list.js' ) ; // add some labels to client $ this -> rc -> output -> add_label ( 'enigma.keyremoveconfirm' , 'enigma.keyremoving' , 'enigma.keyexportprompt' , 'enigma.withprivkeys' , 'enigma.onlypubkeys' , 'enigma.exportkeys' ) ; return $ out ; }
Template object for list of keys.

@param array Object attributes

@return string HTML content
Template object for list of keys .