<div class="breadcrumb">
    <h1>Fetch Practice Data</h1>
    <ul>
        <li><a href="<?php echo SITE_URL.ADMIN_DIR ?>">Dashboard</a></li>
        <li>Fetch Practice Check</li>
    </ul>
</div>
<div class="separator-breadcrumb border-top"></div>
<div class="widget-body">
    <div class="portlet-body">
                        
    <?php echo (isset($successMsg) && $successMsg!='') ? "<div class='alert alert-success'><button data-dismiss='alert' class='close' type='button'>×</button>".base64_decode($successMsg)."</div>" : '' ; ?>
    <?php echo (isset($failedMsg) && $failedMsg!='') ? "<div class='alert alert-danger'><button data-dismiss='alert' class='close' type='button'>×</button>".base64_decode($failedMsg)."</div>" : '' ?>
   
    <div id="status_msg" style="display: none;"><div class="alert alert-success"><button data-dismiss='alert' class='close' type='button'>×</button>&nbsp;</div></div>
    <div id="alert_msg" style="display: none;"><div class="alert alert-danger"><button data-dismiss='alert' class='close' type='button'>×</button>&nbsp;</div></div>

    </div>
</div>

<div class="row">
    <div class="col-lg-12 col-md-12">
        <div class="card mb-5">
            <div class="card-body">
                <div class="row row-xs">
                    <div id="list_data" >
                    </div>
                             
                </div>
            </div>
        </div>
    </div>
</div>


<script type="application/javascript">
   $(document).ready(function() {
    //event.preventDefault();
       
    
    const queryString = window.location.search;
    const params = new URLSearchParams(queryString);


    const practice_office_id = params.get('office_id');
    console.log(practice_office_id);
    if(practice_office_id !== ''){
        $(".loader-bubble").show();
        $.ajax({
            url: "fetchPracticeData.php?act=fetchPracticeData&practice_office_id="+practice_office_id,
            type:'POST',
            //data: postData,
            //dataType: 'json',
            success: function(output_string){
             $(".loader-bubble").hide();
             $("#list_data").html(output_string);
             //$("#list_data").append(output_string);
              
            }
        });
    }
});  


</script>
