Browse Source

Add search form see BT#12470

jmontoyaa 8 years ago
parent
commit
1574d378cb
3 changed files with 18 additions and 1 deletions
  1. 2 0
      index.php
  2. 15 0
      main/session/session_list.php
  3. 1 1
      tests/behat/behat.yml

+ 2 - 0
index.php

@@ -168,4 +168,6 @@ if (isset($_GET['firstpage'])) {
     api_delete_firstpage_parameter();
 }
 
+//var_dump(api_check_password('1AAAAAAAAAAA'));
+var_dump(api_check_password(api_generate_password()));
 $controller->tpl->display_two_col_template();

+ 15 - 0
main/session/session_list.php

@@ -317,6 +317,21 @@ if ($list_type == 'complete') {
 
 echo $actions;
 if (api_is_platform_admin()) {
+    echo '<div class="pull-right">';
+    // Create a search-box
+    $form = new FormValidator(
+        'search_simple',
+        'get',
+        '',
+        '',
+        [],
+        FormValidator::LAYOUT_INLINE
+    );
+    $form->addElement('text', 'keyword');
+    $form->addButtonSearch(get_lang('Search'));
+    $form->display();
+    echo '</div>';
+
     echo '<div class="pull-right">';
     echo $sessionFilter->returnForm();
     echo '</div>';

+ 1 - 1
tests/behat/behat.yml

@@ -1,7 +1,7 @@
 default:
     extensions:
         Behat\MinkExtension:
-          base_url: http://localhost/
+          base_url: http://localhost/chamilo_111/
           goutte: ~
           show_cmd: 'open %s'
           selenium2: