~dantrevino/ubuntu-us-florida-website/main

« back to all changes in this revision

Viewing changes to modules/mod_search/tmpl/default.php

  • Committer: Dan Trevnio
  • Date: 2009-03-24 20:37:18 UTC
  • Revision ID: dantrevino@gmail.com-20090324203718-pg0e3lp4ztjjku9o
initialĀ siteĀ import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php // no direct access
 
2
defined('_JEXEC') or die('Restricted access'); ?>
 
3
<form action="index.php" method="post">
 
4
        <div class="search<?php echo $params->get('moduleclass_sfx') ?>">
 
5
                <?php
 
6
                    $output = '<input name="searchword" id="mod_search_searchword" maxlength="'.$maxlength.'" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'"  onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';
 
7
 
 
8
                        if ($button) :
 
9
                            if ($imagebutton) :
 
10
                                $button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'" onclick="this.form.searchword.focus();"/>';
 
11
                            else :
 
12
                                $button = '<input type="submit" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" onclick="this.form.searchword.focus();"/>';
 
13
                            endif;
 
14
                        endif;
 
15
 
 
16
                        switch ($button_pos) :
 
17
                            case 'top' :
 
18
                                    $button = $button.'<br />';
 
19
                                    $output = $button.$output;
 
20
                                    break;
 
21
 
 
22
                            case 'bottom' :
 
23
                                    $button = '<br />'.$button;
 
24
                                    $output = $output.$button;
 
25
                                    break;
 
26
 
 
27
                            case 'right' :
 
28
                                    $output = $output.$button;
 
29
                                    break;
 
30
 
 
31
                            case 'left' :
 
32
                            default :
 
33
                                    $output = $button.$output;
 
34
                                    break;
 
35
                        endswitch;
 
36
 
 
37
                        echo $output;
 
38
                ?>
 
39
        </div>
 
40
        <input type="hidden" name="task"   value="search" />
 
41
        <input type="hidden" name="option" value="com_search" />
 
42
</form>
 
 
b'\\ No newline at end of file'