<a href="#" class="add_time_block button-primary"><?php 
epl_e('Add Time Block');
?>
</a>
<?php 
foreach ($time_fields as $k => $row) {
    $_time_key = $k;
    ?>

    <div class="time-box">
        <div class="epl_action epl_delete"></div>
        <table class="epl_form_data_table" cellspacing ="0" id="" style="width:300px;">
            <thead>

            <?php 
    echo epl_get_the_labels($time_field_labels);
    ?>
        <th></th>
        </thead>

        <tbody class="events_planner_tbody">

            <tr>
                <?php 
    echo $row;
    ?>


            </tr>

        </tbody>
<div class="for_class" style="">

    <table class="epl_form_data_table epl_w800" cellspacing ="0" id="epl_class_session_table">
        <thead>
        <th></th>
        <?php 
echo epl_get_the_labels($class_session_field_labels);
?>
        <th><img src="<?php 
echo EPL_FULL_URL;
?>
images/calendar.png" class="load_fullcalendar epl_cur_pointer" /></th>
        </thead>
        <tfoot>
            <tr>
                <td colspan="7" style="vertical-align: middle;">


                    <a href="#" class="add_table_row"><img src ="<?php 
echo EPL_FULL_URL;
?>
images/add.png" /></a>
                </td>
            </tr>


        </tfoot>
        <tbody class="events_planner_tbody">

            <?php 
foreach ($class_session_fields as $k => $row) {