4e09da9a87e8872856e37cee1ab5df2900f34ac8
[atutor.git] / docs / themes / simplified-desktop / social / sgroup_search.tmpl.php
1 <script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
2
3 <div class="social-wrapper">
4 <div class="input-form">
5         <h3><?php echo _AT('search_for_groups'); ?></h3>
6         <form action="<?php echo AT_SOCIAL_BASENAME.'groups/search.php'; ?>" method="POST" id="search_group_form">
7                 <div class="row">
8                         <label for="search_groups"><?php echo _AT('search'); ?></label>
9                                 <input type="text" size="60" name="search_groups_<?php echo $this->rand_key;?>" id="search_groups" value="<?php echo $this->last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>groups/search.php')"/>
10                         <input type="hidden" name="rand_key" value="<?php echo $this->rand_key;?>"/>
11                         <input class="button" type="submit" name="search" value="<?php echo _AT('search'); ?>" />
12                         <span><a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/create.php"><?php echo _AT('create_group'); ?></a></span><br />
13                         <div id="livesearch"></div>
14                 </div>
15         </form>
16 </div>
17
18 <div class="headingbox"><h3><?php echo _AT('search_results'); ?></h3></div>
19 <div class="contentbox">
20         <?php if (!empty($this->search_result)):
21         foreach($this->search_result as $group_id=>$group_array): 
22         $grp_obj = $group_array['obj'];
23         ?>
24         <div class="box">
25                 <div>
26                 <?php echo $grp_obj->getLogo(); ?>                      
27                 </div>
28                 <div>
29                         <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'groups/view.php?id='.$grp_obj->getId());?>"><h4><?php echo $grp_obj->getName(); ?></h4></a><br/>
30                         <?php echo _AT('type') .': '. $grp_obj->getGroupType();?><br/>
31                         <?php echo _AT('description') .': <br/>'. $grp_obj->getDescription();?><br/>
32                 </div>
33                 <div style="clear:both;"></div>
34         </div>
35         <?php endforeach; 
36         else: 
37                 echo _AT('none_found');
38         endif;?>
39 </div>
40
41 <div style="clear:both;"></div>
42 </div>