<div class="ultp-edit-user-courses-list">

	<h2>Ultimate Learning Pro - <?php _e('Enrolled Courses', 'ulp');?></h2>

	<div class="ulp-edit-wp-user-status">

    <table style="width:100%;">

			<?php if (!empty($data ['user_courses'])):?>

					<?php    $i = 1;

					   foreach ($data ['user_courses'] as $course_id => $course_label):?>

						<tr class="<?php if($i%2==0) echo 'alternate';?>">

                            <td style="width:50px;  text-align:center;"> <input type="checkbox" checked disabled style="background-color:#ddd;"/></td>

							<td ><?php echo $course_label;?></td>

                            <td width="100px"><div  class="ulp-small-button"><span class="ulp-delete" onClick="ulpRemoveCourse(<?php echo $data ['uid'];?>, <?php echo $course_id;?>,'<?php echo $course_label;?>');"><?php _e('Remove', 'ulp');?></span></div>

                            </td>

                        </tr>

					<?php  $i++;

					endforeach;?>

			<?php endif;?>

			<?php if ($data ['courses']):?>

					<?php   $i = 1;

					  foreach ($data ['courses'] as $course):?>

                      <tr class="<?php if($i%2==0) echo 'alternate';?>">

						<?php if (isset($data ['user_courses'][ $course['ID'] ])) continue;?>

						<td style="width:50px;  text-align:center;"><input type="checkbox" name="ulp_enroll_courses[]" value="<?php echo $course ['ID'];?>" /> </td>

                        <td ><?php echo $course ['post_title'];?></td>

                        <td width="100px"></td>

                      </tr>

					<?php  $i++;

					endforeach;?>

			<?php endif;?>

    </table>

	</div>

</div>

