1 <script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
3 //Generate a random number for the search input name fields, so that the browser will not remember any previous entries.
4 $rand = md5(rand(0, time()));
5 if ($this->rand_key != ''){
6 $last_search = $_POST['search_groups_'.$this->rand_key];
8 $last_search = $_POST['search_groups_'.$rand];
11 <div class="social-wrapper">
13 <?php include('tiny_sgroups.tmpl.php'); ?>
16 <div class="input-form">
17 <div class="contentrow">
18 <h3><?php echo _AT('search_for_groups'); ?></h3>
19 <form action="<?php echo AT_SOCIAL_BASENAME.'groups/search.php'; ?>" method="POST" id="search_group_form">
21 <label for="search_groups"><?php echo _AT('search'); ?></label>
22 <input type="text" size="45" name="search_groups_<?php echo $rand;?>" id="search_groups" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>groups/search.php')"/>
23 <input type="hidden" name="rand_key" value="<?php echo $rand;?>"/>
24 <input class="button" type="submit" name="search" value="<?php echo _AT('search'); ?>" />
25 <div id="livesearch"></div>
27 <div class="row"><a href="<?php echo AT_SOCIAL_BASENAME.'groups/search.php?search_groups_'.$rand.'='.$last_search.SEP.'rand_key='.$rand; ?>"><?php echo _AT('browse_all');?></a></div>
34 <h3><?php echo _AT('create_group'); ?></h3>
35 <p><?php echo _AT('create_group_blurb'); ?></p>
36 <span><a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/create.php"><?php echo _AT('create_group'); ?></a></span><br />
39 <div style="clear:both;"></div>