diff options
| author | Simon | 2011-04-05 10:58:06 +0200 |
|---|---|---|
| committer | Simon | 2011-04-05 10:58:06 +0200 |
| commit | be2bf7f171d70966b92025ca7d0a302d12e775f2 (patch) | |
| tree | d16651fa95cdf35e8f24cb375d2b4051b32d25b1 | |
| parent | Sortierung der Filter wiederhergestellt (diff) | |
| download | pbs2-be2bf7f171d70966b92025ca7d0a302d12e775f2.tar.gz pbs2-be2bf7f171d70966b92025ca7d0a302d12e775f2.tar.xz pbs2-be2bf7f171d70966b92025ca7d0a302d12e775f2.zip | |
such-aussehen geändert
| -rw-r--r-- | application/modules/user/views/scripts/client/index.phtml | 4 | ||||
| -rw-r--r-- | library/Pbs/Search.php | 33 | ||||
| -rw-r--r-- | public/media/css/style.css | 5 |
3 files changed, 31 insertions, 11 deletions
diff --git a/application/modules/user/views/scripts/client/index.phtml b/application/modules/user/views/scripts/client/index.phtml index 5a75741..051ea90 100644 --- a/application/modules/user/views/scripts/client/index.phtml +++ b/application/modules/user/views/scripts/client/index.phtml @@ -8,8 +8,8 @@ <?php if ($this->clients): ?> <table> <tr> - <th>MAC</th> - <th>Hardwarehash</th> + <th>MAC<span class='code'> [macadress]</span></th> + <th>Hardwarehash<span class='code'> [hardwarehash]</span></th> <th colspan=2>Actions</th> </tr> <?php foreach ($this->clients as $client): ?> diff --git a/library/Pbs/Search.php b/library/Pbs/Search.php index 86d3dde..c06f519 100644 --- a/library/Pbs/Search.php +++ b/library/Pbs/Search.php @@ -10,17 +10,32 @@ class Pbs_Search{ $str = "<form style='text-align:right;' action='/user/client/search'> <input type='text' id='search' name='search' ".(($this->searchTerm != '')?'value="'.$this->searchTerm.'"':'')."> <button type='submit' class='searchbutton' value='search'> Search</button>"; - if($this->searchTerm != ''){ - $str .= "<a href='/user/client/'><img src='/media/img/delete.png' alt='Delete Client'/></a> - <script type='text/javascript' src='/media/js/jquery.highlight-3.js'></script> - <script> + $highlight = array(); + if($this->searchTerm != ''){ + $str .= "<a href='/user/client/'><img src='/media/img/delete.png' alt='Delete Client'/></a> + <script type='text/javascript' src='/media/js/jquery.highlight-3.js'></script>"; + foreach($this->getSearchTerms() as $term){ + $highlight[] = "$('table').highlight('".$term."');"; + } + + } + $str .= "<script> $(document).ready(function(){"; - foreach($this->getSearchTerms() as $term){ - $str .= "$('table').highlight('".$term."');"; - } - $str .= "}); + $str .= implode("\n",$highlight); + $str .= "$('#search') + .focus(function() { + $('table tr .code').show(); + }).focusout(function() { + $('table tr .code').css('verticalAlign','-2px').animate({ + opacity: 0, + width:0 + }, 1000, function() { + $(this).attr({'style': 'display:none'}); + }); + + });"; + $str .= "}); </script>"; - } $str .= "</form>"; return $str; } diff --git a/public/media/css/style.css b/public/media/css/style.css index a8c4421..4cd29e9 100644 --- a/public/media/css/style.css +++ b/public/media/css/style.css @@ -296,6 +296,11 @@ th { font-size: 12px; border: 1px solid #999; } +th .code{ + font-size: 11px; + font-family:"Courier New",Verdana; + display:none; +} td { font-size: 12px; |
