| 12732 |
anikendra |
1 |
<h2>Choose user to place order for</h2>
|
|
|
2 |
<div class="searchresults">
|
|
|
3 |
<?php if(!empty($response['response']['search_user']['response'])):?>
|
|
|
4 |
<?php $data = $response['response']['search_user']['response'];?>
|
|
|
5 |
<?php foreach ($data->users as $key => $user) :?>
|
| 12763 |
anikendra |
6 |
<a href="/fos/loginas/<?php echo $user->userId;?>/<?php echo $user->activeCartId;?>/<?php echo $user->email;?>" class="searchresult">
|
| 12732 |
anikendra |
7 |
<span class="searchattribute">
|
|
|
8 |
<?php echo $user->name;?>
|
|
|
9 |
</span>
|
|
|
10 |
<span class="searchattribute">
|
|
|
11 |
<?php echo $user->email;?>
|
|
|
12 |
</span>
|
|
|
13 |
<span class="searchattribute">
|
|
|
14 |
<?php echo $user->mobileNumber;?>
|
|
|
15 |
</span>
|
|
|
16 |
</a>
|
|
|
17 |
<?php endforeach;?>
|
|
|
18 |
<?php endif;?>
|
|
|
19 |
</div>
|
|
|
20 |
<script type="text/javascript">
|
|
|
21 |
function selectCounter(id){
|
|
|
22 |
document.location = '/fos/getcounterusers/'+id;
|
|
|
23 |
}
|
|
|
24 |
function searchCounter(){
|
|
|
25 |
if(document.getElementById('searchterm').value=='')
|
|
|
26 |
return false;
|
|
|
27 |
document.getElementById('searchcounterform').submit();
|
|
|
28 |
}
|
|
|
29 |
</script>
|
|
|
30 |
<style type="text/css">
|
|
|
31 |
.searchresult{-moz-box-sizing: border-box;border-bottom: 1px solid #E5E6E0;display: block;padding: 10px 5px;position: relative;width: 100%;}
|
|
|
32 |
.searchresult span{width: 25%;display: inline-block;}
|
|
|
33 |
#search select{display: inline-block;width:25%;float:left;}
|
|
|
34 |
#search input{display: inline-block;;width: 50%;float: left;border:1px solid #E5E6E0;margin:2px 0 0 5px;padding: 11px;}
|
|
|
35 |
</style>
|