Beispiel #1
0
 public function print_search() {
     $str = parent::print_search();
     $str .= '<label>Space: </label><br /><select name="space">';
     foreach ($this->user_session->stores as $v) {
         $str .= '<option ';
         if ($v->__toString() === 'workspace://SpacesStore') {
             $str .= 'selected ';
         }
         $str .= 'value="';
         $str .= $v->__toString().'">';
         $str .= $v->__toString();
         $str .= '</option>';
     }
     $str .= '</select>';
     return $str;
 }
Beispiel #2
0
 public function print_search()
 {
     $str = parent::print_search();
     $str .= html_writer::label(get_string('space', 'repository_alfresco'), 'repository_alfresco_space', false, array('class' => 'accesshide'));
     $str .= '<select id="repository_alfresco_space" class="alfresco-workplace" name="space">';
     foreach ($this->user_session->stores as $v) {
         $str .= '<option ';
         if ($v->__toString() === 'workspace://SpacesStore') {
             $str .= 'selected ';
         }
         $str .= 'value="';
         $str .= $v->__toString() . '">';
         $str .= $v->__toString();
         $str .= '</option>';
     }
     $str .= '</select>';
     return $str;
 }
Beispiel #3
0
    public function print_search() {
        global $CFG, $DB;

//        require_once $CFG->dirroot.'/repository/elisfiles/renderer.php';
//        //reset the page template
//        // we need to send filepicker templates to the browser just once
//        $fprenderer = $PAGE->get_renderer('repository', 'elisfiles');

        require_once $CFG->dirroot.'/repository/elisfiles/lib/ELIS_files.php';
        require_once $CFG->dirroot.'/repository/elisfiles/ELIS_files_factory.class.php';
        require_once $CFG->dirroot.'/repository/elisfiles/lib/HTML_TreeMenu-1.2.0/TreeMenu.php';
        require_once $CFG->dirroot.'/repository/elisfiles/tree_menu_lib.php';

        $str = ''; // BJB140106: WAS get_string('searchforfilesinrepository', 'repository_elisfiles');

//        $renderer = $PAGE->get_renderer('repository', 'elisfiles');
//        $str .= $renderer->repository_default_searchform();
        $str .= parent::print_search();

        return $str;
    }