-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminer-tables_fuzzy_search.php
executable file
·54 lines (47 loc) · 1.2 KB
/
adminer-tables_fuzzy_search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/** Add fuzzy search in tables for Adminer
* @link https://github.com/brunetton/adminer-tables_fuzzy_search
* @author Bruno Duyé, https://github.com/brunetton
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
class AdminerTablesFuzzySearch {
function tablesPrint($tables) {
?>
<style media="screen" type="text/css">
#fuzzy_tables_search_result .selected a {
color: red;
}
#fuzzy_tables_search_result a em {
font-weight: bold;
font-style: italic;
}
</style>
<script type="text/javascript">
<?php
include("fuzzy_min.js");
include("fuzzy_search.js");
?>
</script>
<p class="jsonly" style="padding-bottom: 0; border-bottom: none;">
<input id='fuzzy_tables_search_input' accesskey="F" onblur="closeResults()"/>
</p>
<div id="fuzzy_tables_search_result" style="
margin: 0 0 0 1em;
border: 1px solid #969696;
position: absolute;
background-color: #FCFCFF;
padding: 0.2em 0.2em 0.2em 0.4em;
width: 25em;
overflow: hidden;
display: none;">
</div>
<?php
Adminer::tablesPrint();
?>
<script type="text/javascript">
<?php include "tables_print.js"; ?>
</script>
<?
}
}