<tr>
		<th style="" class="manage-column column-role" id="role" scope="col">Civi Membership Type</th>
		<th style="" class="manage-column column-role" id="role" scope="col">Wordpress Role</th>
		<th style="" class="manage-column column-role" id="role" scope="col">Current Codes</th>
		<th style="" class="manage-column column-role" id="role" scope="col">Expired Codes</th>
		<th style="" class="manage-column column-role" id="role" scope="col">Expiry Assign Role</th>
	</tr>
	</thead>
	<tbody class="list:civimember-role-sync" id="the-list">
	<?php 
if (isset($select)) {
    foreach ($select as $key => $value) {
        ?>
			<tr>
				<td><?php 
        echo CrmSync::get_names($value->civi_mem_type, CrmSync::getMembershipType());
        ?>
					<br/>
					<?php 
        $edit_url = get_site_url() . "/wp-admin/admin.php?&q=edit&id=" . $value->id . "&page=civi_member_sync/settings.php";
        ?>
					<?php 
        $delete_url = get_site_url() . "/wp-admin/admin.php?&q=delete&id=" . $value->id . "&page=civi_member_sync/list.php";
        ?>
					<div class="row-actions">
	      <span class="edit">
	      <a href="<?php 
        echo $edit_url;
        ?>
">Edit</a> | </span>
						<span class="delete"><a href="<?php 
    echo $nameErr;
}
?>
</span>
			<table class="form-table">
				<tr class="form-field form-required">
					<th scope="row">
						<label for="user_login">
							Select a CiviMember Membership Type *
						</label>
					</th>
					<td><select name="civi_member_type" id="civi_member_type" class="required">
							<option value=""></option>
							<?php 
global $civi_member_type;
foreach (CrmSync::getMembershipType() as $key => $value) {
    ?>
								<option value=<?php 
    echo $key;
    if ($key == $civi_member_type) {
        ?>
 selected="selected" <?php 
    }
    ?>
> <?php 
    echo $value;
    ?>
</option>
							<?php 
}
?>