~cyrenity/zivios/devel

« back to all changes in this revision

Viewing changes to application/modules/default/views/scripts/search/searchall.phtml

  • Committer: Faraz Khan
  • Date: 2008-09-15 13:29:33 UTC
  • Revision ID: fkhan@zivios.org-20080915132933-d27jml5l29xw4gsr
Initial release to bazaar, code in sync with 0.5.0-release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Copyright (c) 2008 Zivios, LLC.
 
4
 *
 
5
 * This file is part of Zivios.
 
6
 *
 
7
 * Zivios is free software: you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation, either version 3 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * Zivios is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with Zivios.  If not, see <http://www.gnu.org/licenses/>.
 
19
 *
 
20
 * @package             Zivios
 
21
 * @copyright   Copyright (c) 2008 Zivios, LLC. (http://www.zivios.org)
 
22
 * @license             http://www.zivios.org/legal/license
 
23
 * @version             $Id: searchall.phtml 890 2008-08-22 11:52:49Z mhashmi $
 
24
 **/
 
25
?>
 
26
<style>
 
27
#basicsearch {
 
28
        margin-top: 10px;
 
29
    border-bottom: 1px dashed #888;
 
30
    width: 530px;
 
31
    padding-bottom: 5px;
 
32
}
 
33
</style>
 
34
<div id="basicsearch">
 
35
<div class="info" style="width: 515px; font-size: 10px;">Search Base: <b><?php echo $this->obj->getdn(); ?></b></div>
 
36
<form id="bsrh" method="post" action="#" onsubmit="return validateSearch(this);">
 
37
<fieldset>
 
38
<legend>Search</legend>
 
39
<label for="searchinput">Search</label>
 
40
         &nbsp; <input id="srhinput" type="text" size="45" maxlength="32" value="" name="srhinput" /><br />
 
41
 
 
42
<label for="filter">Filter</label>
 
43
         &nbsp <select name="filter">
 
44
                <option value="all" <?php echo $this->all; ?>>Everything</option>
 
45
                <option value="userentry" <?php echo $this->uentry; ?>>System Users</option>
 
46
                <option value="groupentry" <?php echo $this->gentry; ?>>System Groups</option>
 
47
                <option value="serverentry" <?php echo $this->sentry; ?>>Enterprise Servers</option>
 
48
                <option value="desktopentry" <?php echo $this->dentry; ?>>Enterprise Desktops</option>
 
49
                <option value="serviceentry" <?php echo $this->serentry; ?>>Enterprise Services</option>
 
50
        </select>
 
51
        <input style="height: 22px; margin-top: 2px;" type="submit" name="search" value="Search" />
 
52
        <br />
 
53
</fieldset>
 
54
<input type="hidden" name="operate_dn" value="<?php echo $this->obj->getdn(); ?>" />
 
55
</form>
 
56
</div>
 
57
<br />
 
58
<div id="searchresults"></div>
 
59
 
 
60
<script language="javascript">
 
61
$('srhinput').activate();
 
62
validateSearch = function(f)
 
63
{
 
64
        if (f.srhinput.value =="") {
 
65
                alert("Please enter a search string");
 
66
                return false;
 
67
        }
 
68
 
 
69
        callAjaxRender('bsrh', '/search/basicSearch', 'searchresults');
 
70
        return false;
 
71
}
 
72
</script>
 
73