<h3> Affiliate request for <?php echo PageContext::$response->business_name; ?></h3>
<div class="business_profile_addressBlk" id="tagged_people"> 
    <div class="frnd_reqst_blk_content">
        <?php if (sizeof(PageContext::$response->associatesRequest) == 0) { ?>
            No affiliate request so far
            <?php
        } else {
            foreach (PageContext::$response->associatesRequest AS $id => $user) {?>
                <div class="frnds_list_blk_tag">
                    <div class="frnd_reqst_img">
                        <a  href="<?php echo PageContext::$response->baseUrl . 'profile/' . $user->user_alias ?>"><img src="<?php echo ($user->file_path == '') ? PageContext::$response->userImagePath . 'thumb/member_noimg.jpg' : PageContext::$response->userImagePath . 'thumb/' . $user->file_path; ?>"></a>
                    </div>
                    <div class="frnd_content">
                        <h6><a  href="<?php echo PageContext::$response->baseUrl . 'profile/' . $user->user_alias ?>"><?php echo $user->user_firstname . ' ' . $user->user_lastname ?></a></h6>
                        <div class="frnd_content_accept" style="width: 100px!important">
                            <span><?php echo $user->role ?></span>
                        </div>
<!--                        <p><div class="affliate_content_add" id="affiliate_<?php echo$user->user_id ?>">
                            <?php if (in_array($user->user_id, PageContext::$response->affliatesUsersList)) { ?>
                                Affiliate <a uid="<?php echo $user->user_id ?>" bid="<?php echo PageContext::$response->business_id ?>" class="jremoveaffiliate">x Remove</a>
                            <?php } else {
                                ?>
                                +<span><a uid="<?php echo $user->user_id ?>" bid="<?php echo PageContext::$response->business_id; ?>" class="jaddaffiliate">Add as affiliate</a></span>
                            <?php } ?>
                        </div></p>-->
                    </div>
                </div>
            <?php } ?>
            <div><?php echo PageContext::$response->paginationAffilate; ?> </div>
        <?php } ?>
        <div class="clear"></div>
        <div class="clear"></div>
    </div>
</div>
<div class="clear"></div>
