Browse Source

fix catalog course modal and items CT#7539

aragonc 9 years ago
parent
commit
649f7f5790
1 changed files with 36 additions and 39 deletions
  1. 36 39
      main/template/default/auth/courses_categories.php

+ 36 - 39
main/template/default/auth/courses_categories.php

@@ -105,9 +105,44 @@ $code = isset($code) ? $code : null;
     });
 </script>
 
+<div class="row">
+    <div class="col-md-6">
+        <h2><?php echo get_lang('Search'); ?></h2>
+        <?php if ($showCourses) { ?>
+        <?php if (!isset($_GET['hidden_links']) || intval($_GET['hidden_links']) != 1) { ?>
+            <form class="form-search" method="post" action="<?php echo getCourseCategoryUrl(1, $pageLength, 'ALL', 0, 'subscribe'); ?>">
+                <input type="hidden" name="sec_token" value="<?php echo $stok; ?>">
+                <input type="hidden" name="search_course" value="1" />
+                    <div class="control-group">
+                        <div class="controls">
+                            <div class="input-append">
+                                <input type="text" name="search_term" value="<?php echo (empty($_POST['search_term']) ? '' : api_htmlentities(Security::remove_XSS($_POST['search_term']))); ?>" />
+                                <div class="btn-group">
+                                    <button class="btn btn-default btn-sm" type="submit">
+                                        <i class="fa fa-search"></i> <?php echo get_lang('Search'); ?>
+                                    </button>
+                                        <?php
+                                        $hidden_links = 0;
+                                        } else {
+                                            $hidden_links = 1;
+                                        }
 
+                                        /* Categories will only show down to 4 levels, if you want more,
+                                         * you will have to patch the following code. We don't recommend
+                                         * it, as this can considerably slow down your system
+                                         */
+                                        if (!empty($browse_course_categories)) {
+                                        echo '<a class="btn btn-default btn-sm" href="'.api_get_self().'?action=display_random_courses">'.get_lang('RandomPick').'</a>';
+                                        ?>
+                                </div>
+                            </div>
+                        </div>
+                    </div>       
+            </form>
+    </div>
+    <div class="col-md-6"></div>
+</div>
 <div class="row"> 
-
  <?php if ($showCourses && $action != 'display_sessions') { 
             
 
@@ -215,44 +250,6 @@ $code = isset($code) ? $code : null;
 
 <div class="row">
     <div class="col-md-3">
-        <div class="panel panel-default">
-            <div class="panel-heading"><?php echo get_lang('Search'); ?></div>
-            <div class="panel-body">
-                <?php if ($showCourses) { ?>
-                <?php if (!isset($_GET['hidden_links']) || intval($_GET['hidden_links']) != 1) { ?>
-                    <form class="form-search" method="post" action="<?php echo getCourseCategoryUrl(1, $pageLength, 'ALL', 0, 'subscribe'); ?>">
-                        <fieldset>
-                            <input type="hidden" name="sec_token" value="<?php echo $stok; ?>">
-                            <input type="hidden" name="search_course" value="1" />
-                            <div class="control-group">
-                                <div class="controls">
-                                    <div class="input-append">
-                                        <input type="text" name="search_term" value="<?php echo (empty($_POST['search_term']) ? '' : api_htmlentities(Security::remove_XSS($_POST['search_term']))); ?>" />
-                                        <div class="btn-group">
-                                        <button class="btn btn-default btn-sm" type="submit">
-                                            <i class="fa fa-search"></i> <?php echo get_lang('Search'); ?>
-                                        </button>
-                                        <?php
-                                        $hidden_links = 0;
-                                        } else {
-                                            $hidden_links = 1;
-                                        }
-
-                                        /* Categories will only show down to 4 levels, if you want more,
-                                         * you will have to patch the following code. We don't recommend
-                                         * it, as this can considerably slow down your system
-                                         */
-                                        if (!empty($browse_course_categories)) {
-                                        echo '<a class="btn btn-default btn-sm" href="'.api_get_self().'?action=display_random_courses">'.get_lang('RandomPick').'</a>';
-                                        ?>
-                                        </div>
-                                    </div>
-                                </div>
-                            </div>
-                        </fieldset>
-                    </form>
-            </div>
-        </div>
         <div class="panel panel-default">
             <div class="panel-heading">
                 <?php