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

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

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

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

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

					<?php    $i = 1;

					   foreach ($data ['user_badges'] as $badge_id => $badge_label):?>

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

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

							<td ><img src="<?php echo $data ['badges_img'][$badge_id];?>" style="height:40px;" title="<?php echo $badge_label;?>" /></td>

              <td width="100px">

                  <div class="ulp-small-button">

                      <span class="ulp-delete" onClick="ulpRemoveUserBadge(<?php echo $data ['uid'];?>, <?php echo $badge_id;?>,'<?php echo $badge_label;?>');"><?php _e('Remove', 'ulp');?></span>

                  </div>

              </td>

            </tr>

					<?php  $i++;

					endforeach;?>

			<?php endif;?>

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

					<?php   $i = 1;

					  foreach ($data ['badges'] as $badge_id => $badge_label):?>

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

						  <?php if (isset($data ['user_badges'][ $badge_id ])) continue;?>

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

              <td ><img src="<?php echo $data ['badges_img'][$badge_id];?>" style="height: 50px;" title="<?php echo $badge_label;?>" /></td>

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

            </tr>

					<?php  $i++;

					endforeach;?>

			<?php endif;?>

    </table>

	</div>

</div>
