<?php

session_start();
include_once '../dao/staff.php';
include_once '../dao/reference.php';
?>
<!-- add address button -->
<div class="add-new-address clearfix">
    <p class="add-new-btn"><a href="javascript:void(0)" onClick="add_reference();">+ ADD NEW REFERENCE</a></p>
</div>

<?php 
$serv1 = get_staffid_from_serviceprovider($_SESSION['provider']['serviceprovider_id']);
$resulttt = count($serv1);
$serv3 = get_reference_customers_from_service_provider($_SESSION['provider']['serviceprovider_id']);
$resultz = count($serv3);
$flagzz = 0;
while ($resultz > $flagzz) {
    $get_names = get_customername_hiredate($serv3[$flagzz]['itconsumer_id']);
    ?>
<!-- address box -->
<div id="div_address_<?php 
    echo $address1[0]['address_id'];
    ?>
" class="address-box-wrap" style="float: left; margin-top: 12px;">
    <div class="address-box"><div class="address-box-inner">
            <p class="address-box-label">Customer</p>
            <p class="address-box-value"><?php 
    echo $get_names[0]['itconsumername'];
    ?>
</p>
                                                         <?php 
    $flag++;
}
?>
                                                                              
                             <p></p>                           
                            <?php 
echo '<h4>  </h4>';
?>

							<h5>Staff</h5>
                      
                                                    <!-- staffing parts-->
						
                                                    <?php 
$serv1 = get_staffid_from_serviceprovider($provider_idd);
$resulttt = count($serv1);
$flags = 0;
while ($resulttt > $flags) {
    $get_name = get_staffname_hiredate($serv1[$flags]['spstaff_id']);
    ?>
							<!-- address box -->
                                                        <div id="div_staff_<?php 
    echo $serv1[$flags]['spstaff_id'];
    ?>
" class="address-box-wrap" style="float: left; margin-top: 12px;">
								<div class="address-box"><div class="address-box-inner">
									<p class="address-box-label"><?php 
    echo $flags + 1;
    ?>
</p>