| 12732 |
anikendra |
1 |
<div id="subView" class="offers clearfix">
|
| 12737 |
anikendra |
2 |
<form method="POST" id="searchcounterform" name="searchcounterform" onsubmit="return searchCounter();">
|
| 12732 |
anikendra |
3 |
<div class="search-box">
|
|
|
4 |
<div id="search" class="search-hldr clearfix">
|
|
|
5 |
<select name="type">
|
|
|
6 |
<option value="counter_code">Counter Code</option>
|
|
|
7 |
<option value="counter_name">Counter Name</option>
|
|
|
8 |
<option value="email">Email</option>
|
|
|
9 |
<option value="mobile">Mobile</option>
|
|
|
10 |
</select>
|
|
|
11 |
<input name="q" type="text" id="searchterm" value="<?php if(isset($_GET['q']) && $_GET['q'] != '*') echo urldecode($_GET['q']); ?>" placeholder="Search for counter" onKeyDown="if(event.keyCode==13) searchCounter();" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"/><div class="search" onclick="searchCounter()"></div>
|
|
|
12 |
</div>
|
|
|
13 |
<div id="search-result"></div>
|
|
|
14 |
</div>
|
|
|
15 |
</form>
|
|
|
16 |
</div>
|
|
|
17 |
<div class="searchresults">
|
|
|
18 |
<?php if(!empty($response['response']['search_counter']['response'])):?>
|
|
|
19 |
<?php $data = $response['response']['search_counter']['response'];?>
|
|
|
20 |
<?php foreach ($data->counters as $key => $counter) :?>
|
|
|
21 |
<a href="/fos/getusers/<?php echo $counter->id;?>" class="searchresult">
|
|
|
22 |
<span class="searchattribute">
|
|
|
23 |
<?php echo $counter->code;?>
|
|
|
24 |
</span>
|
|
|
25 |
<span class="searchattribute">
|
|
|
26 |
<?php echo $counter->name;?>
|
|
|
27 |
</span>
|
|
|
28 |
<span class="searchattribute">
|
|
|
29 |
<?php echo $counter->email;?>
|
|
|
30 |
</span>
|
|
|
31 |
<span class="searchattribute">
|
|
|
32 |
<?php echo $counter->mobile;?>
|
|
|
33 |
</span>
|
|
|
34 |
</a>
|
|
|
35 |
<?php endforeach;?>
|
|
|
36 |
<?php endif;?>
|
|
|
37 |
</div>
|
|
|
38 |
<style type="text/css">
|
|
|
39 |
.searchresult{-moz-box-sizing: border-box;border-bottom: 1px solid #E5E6E0;display: block;padding: 10px 5px;position: relative;width: 100%;}
|
| 12763 |
anikendra |
40 |
.searchresult span{width: 24%;display: inline-block;}
|
| 12732 |
anikendra |
41 |
#search select{display: inline-block;width:25%;float:left;}
|
|
|
42 |
#search input{display: inline-block;;width: 50%;float: left;border:1px solid #E5E6E0;margin:2px 0 0 5px;padding: 11px;}
|
|
|
43 |
</style>
|
| 12737 |
anikendra |
44 |
<script>
|
|
|
45 |
function searchCounter(){
|
|
|
46 |
document.getElementById('searchcounterform').submit();
|
|
|
47 |
};
|
|
|
48 |
</script>
|