SVN tag for release should only contain scripts in "docs" folder without "mods",...
[atutor.git] / docs / themes / mobile / users / browse.tmpl.php
1 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
2 <div class="column-login">
3 <div class="input-form">
4 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('filter'); ?></legend>
5         <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
6                 
7                         <div class="row">
8                                 <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
9                         </div>
10                         <div class="row">
11                                 <?php echo _AT('access'); ?><br />
12                                 <input type="radio" name="access" value="private" id="s1" <?php if ($_GET['access'] == 'private') { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('private'); ?></label> 
13
14                                 <input type="radio" name="access" value="protected" id="s2" <?php if ($_GET['access'] == 'protected') { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('protected'); ?></label>
15
16                                 <input type="radio" name="access" value="public" id="s3" <?php if ($_GET['access'] == 'public') { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('public'); ?></label>
17
18                                 <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
19                         </div>
20
21                 <?php if ($this->has_categories): ?>
22                         <div class="row">
23                                 <label for="category"><?php echo _AT('category'); ?></label><br/>
24                                 <select name="category" id="category">
25                                         <option value="-1">- - - <?php echo _AT('cats_all'); ?> - - -</option>
26                                         <option value="0" <?php if ($_GET['category'] == 0) { echo 'selected="selected"'; } ?>>- - - <?php echo _AT('cats_uncategorized'); ?> - - -</option>
27                                         <?php echo $this->categories_select; ?>
28                                 </select>
29                         </div>
30                 <?php endif; ?>
31
32                         <div class="row">
33                                 <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
34
35                                 <input type="text" name="search" id="search" size="30" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
36                                 <br/>
37                                 <?php echo _AT('search_match'); ?>:
38                                 <input type="radio" name="include" value="all" id="match_all" <?php echo $this->checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
39                                 <input type="radio" name="include" value="one" id="match_one" <?php echo $this->checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
40                         </div>
41
42                         <div class="row buttons">
43                                 <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>"/>
44                                 <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>"/>
45                         </div>
46                 
47         </form>
48 </fieldset>
49 </div>
50 </div>
51 <div>
52 <?php if (is_array($this->courses_rows)){ ?>
53         <?php foreach ($this->courses_rows as $row){ ?>
54             <?php  $counter++; ?>
55                 <ul class="fl-list-menu fl-list-thumbnails">
56                  <li>
57                                 <h3 class="browse-courses"><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3>      
58                      
59                       <?php if ($row['description']): ?>
60                                 <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>"><?php echo substr(nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')),0,150); 
61                                 if(strlen($row['description']) > 150){
62                                 echo "...";
63                                 }
64                                 ?>&nbsp;</span>
65                         <?php else: ?>
66                                 <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>">&nbsp;</span>
67                         <?php endif; ?>
68                 
69                 </li>
70         
71         </ul>         
72         <?php } // end foreach ?>
73 <?php } // end if ?>
74 </div>
75
76 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>