made a copy
[atutor.git] / mods / _standard / social / html / sgroup_search.tmpl.php
1 <script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
2 <div class="input-form" style="width:40%;padding:1em;min-height:4.5em;">
3         <h3><?php echo _AT('search_for_groups'); ?></h3>
4         <form action="<?php echo AT_SOCIAL_BASENAME.'groups/search.php'; ?>" method="POST" id="search_group_form">
5                 <div class="row">
6                         <label for="search_groups"><?php echo _AT('search'); ?></label>
7                                 <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')"/>
8                         <input type="hidden" name="rand_key" value="<?php echo $this->rand_key;?>"/>
9                         <input class="button" type="submit" name="search" value="<?php echo _AT('search'); ?>" />
10                         <span style="float:right"><a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/create.php"><?php echo _AT('create_group'); ?></a></span><br />
11                         <div id="livesearch"></div>
12                 </div>
13         </form>
14 </div>
15
16 <div class="headingbox"><h3><?php echo _AT('search_results'); ?></h3></div>
17 <div class="contentbox">
18         <?php if (!empty($this->search_result)):
19         foreach($this->search_result as $group_id=>$group_array): 
20         $grp_obj = $group_array['obj'];
21         ?>
22         <div class="box">
23                 <div style="float:left;">
24                 <?php echo $grp_obj->getLogo(); ?>                      
25                 </div>
26                 <div style="float:left; padding-left:0.5em;">
27                         <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/>
28                         <?php echo _AT('type') .': '. $grp_obj->getGroupType();?><br/>
29                         <?php echo _AT('description') .': <br/>'. $grp_obj->getDescription();?><br/>
30                 </div>
31                 <div style="clear:both;"></div>
32         </div>
33         <?php endforeach; 
34         else: 
35                 echo _AT('none_found');
36         endif;?>
37 </div>