Subversion Repositories SmartDukaan

Rev

Rev 12732 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<h2>Choose user to place order for</h2>
<div class="searchresults">
<?php if(!empty($response['response']['search_user']['response'])):?>   
        <?php $data = $response['response']['search_user']['response'];?>
        <?php foreach ($data->users as $key => $user) :?>
        <a href="/fos/loginas/<?php echo $user->userId;?>/<?php echo $user->activeCartId;?>/<?php echo $user->email;?>" class="searchresult">
                <span class="searchattribute">
                        <?php echo $user->name;?>                       
                </span>
                <span class="searchattribute">
                        <?php echo $user->email;?>                      
                </span>
                <span class="searchattribute">
                        <?php echo $user->mobileNumber;?>                       
                </span>         
        </a>
        <?php endforeach;?>
<?php endif;?>
</div>
<script type="text/javascript">
        function selectCounter(id){
                document.location = '/fos/getcounterusers/'+id;
        }
        function searchCounter(){
                if(document.getElementById('searchterm').value=='')
                        return false;
                document.getElementById('searchcounterform').submit();
        } 
</script>
<style type="text/css">
.searchresult{-moz-box-sizing: border-box;border-bottom: 1px solid #E5E6E0;display: block;padding: 10px 5px;position: relative;width: 100%;}
.searchresult span{width: 25%;display: inline-block;}
#search select{display: inline-block;width:25%;float:left;}
#search input{display: inline-block;;width: 50%;float: left;border:1px solid #E5E6E0;margin:2px 0 0 5px;padding: 11px;}
</style>