<?php
echo DapMemberShowLoader();
$permalink1 = get_site_url();
$permalink2 = get_home_url();
if ($permalink1 == $permalink2) {
    $permalink = $permalink1;
} else {
    $permalink = $permalink2;
}
$find = array('http://', 'https://');
$replace = 'https://';
$siteurl = str_replace($find, $replace, $permalink);

$count_explodedata =0;
 
if(isset($_GET['pages'])){
	$selected_pages_from_DAP = $_GET['pages'];
	$explodedata = explode("-",$selected_pages_from_DAP);
	$count_explodedata = count( $explodedata);
	
}
?>	

<div id="dap_member_page_wrapper">
	<div class="dap_member_page_outer">
		<div class="master_heading d-flex align-items-center justify-content-between pb-2 mb-5">
			<h4><i class="fa fa-indent mr-2"></i> Member Pages</h4>
		</div>
		
		<div class="form-group row">  
		  <div class="col-sm-5 d-flex align-items-center">
			<h3 class="section_heading"> Would you like DAP to generate member pages automatically? </h3>
		  </div>
		  <div class="col-sm-4 d-flex align-items-center pl-0 ml-sub-45">
			  <!--select class="form-control" id="create_member" name="create_member">
				  <option value="no">No, I would like to create pages myself</option>
				  <option value="yes">Yes, please create member pages for me</option>
			  </select-->
				 <input type="radio" value="no" <?php if($count_explodedata > 0) { echo "";}else{ echo "checked"; }?>  name="create_member" class="create_member"> <span class="mr-2 ml-1" style="  margin-right: 20px !important;">No</span>
				 <input type="radio" value="yes"  <?php if($count_explodedata > 0) { echo "checked";}else{ echo ""; }?> name="create_member" class="create_member"> <span class="ml-1">Yes</span>
		  </div>
		</div>
		
		<div class="form-group row" id="create_member_no" style="display:<?php if($count_explodedata > 0) { echo "none";}else{ echo "block"; }?>">  
		  <div class="col-sm-12">
			<h3 class="section_heading mb-3"> Click on a box below to select the page that you want to create:</h3>
		  </div>
		  <div class="col-sm-12 d-flex align-items-center">
			  <div class="create_member_no_div">
				<a href="<?= admin_url('admin.php?page=dap_member_login'); ?>">Login Page</a>
				<a href="<?= admin_url('admin.php?page=dap_member_content'); ?>">Content Page </a>
				<a href="<?= admin_url('admin.php?page=dap_member_profile'); ?>">Profile Page</a>
				<a href="<?= admin_url('admin.php?page=dap_member_affiliate'); ?>">Affiliate Page</a>
				<a href="<?= admin_url('admin.php?page=dap_member_invoice'); ?>">Invoice Page</a>
				<a href="<?= admin_url('admin.php?page=dap_member_cancellation'); ?>">Cancellation Page</a>
				<a href="<?= admin_url('admin.php?page=dap_member_subaccount'); ?>">Group Management</a>
			  </div>
		  </div>
		</div>   
		
		<div id="create_member_yes"  style="display:<?php if($count_explodedata > 0) { echo "block";}else{ echo "none"; }?>">  
			<div class="form-group row mb-3"  >  
			  <div class="col-sm-12 d-flex align-items-center">
				<h3 class="section_heading mb-3">What pages would you like us to create?</h3>
			  </div>
			  <div class="col-sm-12 mt-2">
				  
				  <input type="hidden" id="addin_config_login" name="addin_config_login"  value="<?php if($count_explodedata > 0) { if(in_array("login",$explodedata)){  echo "yes";}else{ echo "no"; } }?>"/> 
				  <input type="hidden" id="addin_config_content" name="addin_config_content"  value="<?php if($count_explodedata > 0) { if(in_array("content",$explodedata)){  echo "yes";}else{ echo "no"; } }?>"/> 
				  <input type="hidden" id="addin_config_profile" name="addin_config_profile"  value="<?php if($count_explodedata > 0) { if(in_array("profile",$explodedata)){  echo "yes";}else{ echo "no"; } }?>"/> 
				  <input type="hidden" id="addin_config_affiliate" name="addin_config_affiliate"  value="<?php if($count_explodedata > 0) { if(in_array("affiliate",$explodedata)){  echo "yes";}else{ echo "no"; } }?>"/>
				  <input type="hidden" id="addin_config_invoice" name="addin_config_invoice"  value="<?php if($count_explodedata > 0) { if(in_array("invoice",$explodedata)){  echo "yes";}else{ echo "no"; } }?>"/>
				  <input type="hidden" id="addin_config_cancellation" name="addin_config_cancellation"  value="<?php if($count_explodedata > 0) { if(in_array("cancellation",$explodedata)){  echo "yes";}else{ echo "no"; } }?>"/>
				  
				  
				 <div class="Select_with_check">
					 <input type="checkbox" name="member_type" value="login" <?php if($count_explodedata > 0) { if(in_array("login",$explodedata)){  echo "checked";}else{ echo ""; } }?>> <span>Login</span>
				 </div>
				 <div class="inner_section" id="member_login_outer" style="display:<?php if($count_explodedata > 0) { if(in_array("login",$explodedata)){  echo "block";}else{ echo "none"; } }?>">
					   
					 <div class="form-group  d-flex  row mb-0 form_group_inner">  					 
					   
						   <div class="form-wrap  d-flex align-items-center">							   
								
								 <div class="col-sm-3 align-items-center">
									<label> Create a New Login Page </label>
								  </div>
								 <div class="col-sm-9  align-items-center">
									  <div class="col-sm-9 input-group pl-0">
										  <div class="input-group-prepend">
											<span class="input-group-text"><?php echo $siteurl; ?>/</span>
										  </div>
										<input type="text" name="create_login_page" id="create_login_page" class="form-control page_name" value="" placeholder="Enter Name"/>
									  </div>
									  
									  <div class="col-sm-3">
										<button type="button"  id="login_page" data-id ="create_login_page" class="btn theme-btn btn-blue notransform check_availability_page_btn create_page_btn">Check Availability</button>									 
									  </div>
								</div>

							</div>
							
							
								<div class="error-msgs text-center messages-div">
									<h5 class="alert alert-danger error_create_login_page error_msg" style="display:none">Sorry, This Name is already taken. Please Try with another one. </h5>
									<h5 class="alert alert-success success_create_login_page success_msg" style="display:none">Congrats! This Name is available</h5>
								</div>
 
						</div>
						<div class="form-group row mb-0" >  
						  <div class="col-sm-3 align-items-center"></div>
							<div class="col-sm-9 align-items-center">
								<div class="or">
								  <span>OR</span>
								</div>
							</div>
						</div>
					  
					   <div class="form-group row mb-0 form_group_inner">  
					  
						  <div class="col-sm-3 d-flex  align-items-center">
							<label> Select an Existing Page for Login </label>
						  </div>
						  <div class="col-sm-7 d-flex align-items-center padd-right-25">
								<select class="form-control" id="login_page_url" name="login_page_url">
									<option value="">Select a URL</option>
									 <?php
										$page_ids = get_all_page_ids();
										foreach($page_ids as $page){
											$page_name = get_page( $page );
											if ($page_name->post_status == 'publish'){
											?>
												<option value='<?php echo $page; ?>'>
												<?php echo get_permalink($page); ?>
												</option>
											<?php } 
								 
										}//close foreach loop ?>
							  </select>
						  </div>
					</div>
					<input type="hidden" id="login_page_id" name="login_page_id" class="page_id" value=""/>
				</div>
				
				 <div class="Select_with_check">
					 <input type="checkbox" name="member_type" value="content" <?php if($count_explodedata > 0) { if(in_array("content",$explodedata)){  echo "checked";}else{ echo ""; } }?>> <span>My Content</span>
				 </div>
				 <div class="inner_section" id="member_content_outer" style="display:<?php if($count_explodedata > 0) { if(in_array("content",$explodedata)){  echo "block";}else{ echo "none"; } }?>">
					   
					 <div class="form-group row mb-0 form_group_inner">  					 
					   
						   <div class="form-wrap  d-flex align-items-center">							   
								
								 <div class="col-sm-3 align-items-center">
									<label> Create a New Content Page </label>
								  </div>
								 <div class="col-sm-9  align-items-center">
									  <div class="col-sm-9 input-group">
										  <div class="input-group-prepend">
											<span class="input-group-text"><?php echo $siteurl; ?>/</span>
										  </div>
										<input type="text" name="create_content_page" id="create_content_page" class="form-control page_name" value="" placeholder="Enter Name"/>
									  </div>
									  
									  <div class="col-sm-3">
										<button type="button" id="content_page" class=" btn theme-btn btn-blue notransform check_availability_page_btn create_page_btn">Check Availability</button>									 
									  </div>
								</div>

 
							</div>
							
								<div class="error-msgs text-center messages-div">
									<h5 class="alert alert-danger error_create_content_page error_msg" style="display:none">Sorry, This Name is already taken. Please Try with another one. </h5>
									<h5 class="alert alert-success success_create_content_page success_msg" style="display:none">Congrats! This Name is available</h5>
								</div>
						</div>
						
					<div class="form-group row mb-0" >  
						  <div class="col-sm-3 align-items-center"></div>
							<div class="col-sm-9 align-items-center">
								<div class="or">
								  <span>OR</span>
								</div>
							</div>
						</div>
					   <div class="form-group row mb-0 form_group_inner">  
					  
						  <div class="col-sm-3 d-flex  align-items-center pr-0">
							<label> Select an Existing Page for Content </label>
						  </div>
						  <div class="col-sm-7 d-flex align-items-center padd-right-25">
								<select class="form-control" id="content_page_url" name="content_page_url">
									<option value="">Select a URL</option>
									 <?php
										$page_ids = get_all_page_ids();
										foreach($page_ids as $page){
											$page_name = get_page( $page );
											if ($page_name->post_status == 'publish'){
											?>
												<option value='<?php echo $page; ?>'>
												<?php echo get_permalink($page); ?>
												</option>
											<?php } 
								 
										}//close foreach loop ?>
							  </select>
						  </div>
					</div>
					<input type="hidden" id="content_page_id" name="content_page_id" class="page_id" value=""/>
				</div>
				
				 <div class="Select_with_check">
					 <input type="checkbox" name="member_type" value="profile" <?php if($count_explodedata > 0) { if(in_array("profile",$explodedata)){  echo "checked";}else{ echo ""; } }?>> <span>My Profile</span>
				 </div>
				 <div class="inner_section" id="member_profile_outer" style="display:<?php if($count_explodedata > 0) { if(in_array("profile",$explodedata)){  echo "block";}else{ echo "none"; } }?>">
					  					  
					  
					 <div class="form-group  row mb-0 form_group_inner">  					 
					   
						   <div class="form-wrap  d-flex align-items-center">							   
								
								 <div class="col-sm-3 align-items-center">
									<label> Create a New Profile Page </label>
								  </div>
								 <div class="col-sm-9 align-items-center">
									  <div class="col-sm-9 input-group pl-0">
										  <div class="input-group-prepend">
											<span class="input-group-text"><?php echo $siteurl; ?>/</span>
										  </div>
										<input type="text" name="create_profile_page" id="create_profile_page" class="form-control page_name" value="" placeholder="Enter Name"/>
									  </div>
									  
									  <div class="col-sm-3">
										<button type="button" id="profile_page" data-id="create_profile_page"  class="check_availability_page_btn btn theme-btn btn-blue notransform create_page_btn">Check Availability</button>									 
									  </div>
								</div>

							 
							</div>
							
								<div class="error-msgs text-center messages-div">
									<h5 class="alert alert-danger error_create_profile_page error_msg" style="display:none">Sorry, This Name is already taken. Please Try with another one. </h5>
									<h5 class="alert alert-success success_create_profile_page success_msg" style="display:none">Congrats! This Name is available</h5>
								</div>
						</div>
						
						 <div class="form-group row mb-0" >  
						  <div class="col-sm-3 align-items-center"></div>
							<div class="col-sm-9 align-items-center">
								<div class="or">
								  <span>OR</span>
								</div>
							</div>
						</div>
						
					   <div class="form-group row mb-0 form_group_inner">  
					  
						  <div class="col-sm-3 d-flex align-items-center pr-0">
							<label> Select an Existing Page for Profile </label>
						  </div>
						  <div class="col-sm-7 d-flex align-items-center padd-right-25">
								<select class="form-control" id="profile_page_url" name="profile_page_url">
									<option value="">Select a URL</option>
									 <?php
										$page_ids = get_all_page_ids();
										foreach($page_ids as $page){
											$page_name = get_page( $page );
											if ($page_name->post_status == 'publish'){
											?>
												<option value='<?php echo $page; ?>'>
												<?php echo get_permalink($page); ?>
												</option>
											<?php } 
								 
										}//close foreach loop ?>
							  </select>
						  </div>
					</div>
				</div>
				<input type="hidden" id="profile_page_id" name="profile_page_id" class="page_id" value=""/>
				
				<div class="Select_with_check">
					 <input type="checkbox" name="member_type" value="affiliate" <?php if($count_explodedata > 0) { if(in_array("affiliate",$explodedata)){  echo "checked";}else{ echo ""; } }?>> <span>Affiliate Page</span>
				 </div>
				 <div class="inner_section" id="member_affiliate_outer" style="display:<?php if($count_explodedata > 0) { if(in_array("affiliate",$explodedata)){  echo "block";}else{ echo "none"; } }?>">
					   
					 <div class="form-group  d-flex  row mb-0 form_group_inner">  					 
					   
						   <div class="form-wrap  d-flex align-items-center">							   
								
								 <div class="col-sm-3 align-items-center">
									<label> Create a New Affiliate Page </label>
								  </div>
								 <div class="col-sm-9  align-items-center">
									  <div class="col-sm-9 input-group">
										  <div class="input-group-prepend">
											<span class="input-group-text"><?php echo $siteurl; ?>/</span>
										  </div>
										<input type="text" name="create_affiliate_page" id="create_affiliate_page" class="form-control page_name" value="" placeholder="Enter Name"/>
									  </div>
									  
									  <div class="col-sm-3">
										<button type="button"  id="affiliate_page" data-id ="create_affiliate_page" class="check_availability_page_btn btn theme-btn btn-blue notransform check_availability_page_btn create_page_btn">Check Availability</button>									 
									  </div>
								</div>

 
							</div>
							
								<div class="error-msgs text-center messages-div">
									<h5 class="alert alert-danger error_create_affiliate_page error_msg" style="display:none">Sorry, This Name is already taken. Please Try with another one. </h5>
									<h5 class="alert alert-success success_create_affiliate_page success_msg" style="display:none">Congrats! This Name is available</h5>
								</div>
						</div>
						
					<div class="form-group row mb-0" >  
						  <div class="col-sm-3 align-items-center"></div>
							<div class="col-sm-9">
								<div class="or">
								  <span>OR</span>
								</div>
							</div>
						</div>
					   <div class="form-group row mb-0 form_group_inner">    
					  
						  <div class="col-sm-3 d-flex  align-items-center pr-0">
							<label> Select an Existing Page for Affiliate </label>
						  </div>
						  <div class="col-sm-7">
								<select class="form-control" id="affiliate_page_url" name="affiliate_page_url">
									<option value="">Select a URL</option>
									 <?php
										$page_ids = get_all_page_ids();
										foreach($page_ids as $page){
											$page_name = get_page( $page );
											if ($page_name->post_status == 'publish'){
											?>
												<option value='<?php echo $page; ?>'>
												<?php echo get_permalink($page); ?>
												</option>
											<?php } 
								 
										}//close foreach loop ?>
							  </select>
						  </div>
					</div>
					<input type="hidden" id="content_page_id" name="content_page_id" class="page_id" value=""/>
				</div>
				
				<div class="Select_with_check">
					 <input type="checkbox" name="member_type" value="invoice" <?php if($count_explodedata > 0) { if(in_array("invoice",$explodedata)){  echo "checked";}else{ echo ""; } }?>> <span>Invoice Page</span>
				 </div>
				 <div class="inner_section" id="member_invoice_outer" style="display:<?php if($count_explodedata > 0) { if(in_array("invoice",$explodedata)){  echo "block";}else{ echo "none"; } }?>">
					   
					 <div class="form-group  d-flex  row mb-0 form_group_inner">  					 
					   
						   <div class="form-wrap  d-flex align-items-center">							   
								
								 <div class="col-sm-3 align-items-center">
									<label> Create a New Invoice Page </label>
								  </div>
								 <div class="col-sm-9">
									  <div class="col-sm-9 input-group">
										  <div class="input-group-prepend">
											<span class="input-group-text"><?php echo $siteurl; ?>/</span>
										  </div>
										<input type="text" name="create_invoice_page" id="create_invoice_page" class="form-control page_name" value="" placeholder="Enter Name"/>
									  </div>
									  
									  <div class="col-sm-3 padd-right-0">
										<button type="button" id="invoice_page" data-id="create_invoice_page" class="check_availability_page_btn btn theme-btn btn-blue notransform create_page_btn">Check Availability</button>									 
									  </div>
								</div>

 
							</div>
							
								<div class="error-msgs text-center messages-div">
									<h5 class="alert alert-danger error_create_invoice_page error_msg" style="display:none">Sorry, This Name is already taken. Please Try with another one. </h5>
									<h5 class="alert alert-success success_create_invoice_page success_msg" style="display:none">Congrats! This Name is available</h5>
									<h5 class="alert alert-success error_invoice_no_page_selected error_msg" style="display:none">Please Enter a Page Name.</h5>
								</div>
						</div>
						
					<div class="form-group row mb-0" >  
						  <div class="col-sm-3  align-items-center"></div>
							<div class="col-sm-9 align-items-center">
								<div class="or">
								  <span>OR</span>
								</div>
							</div>
						</div>
					   <div class="form-group row form_group_inner">  
					  
						  <div class="col-sm-3 d-flex  align-items-center pr-0">
							<label> Select an Existing Page for Invoice </label>
						  </div>
						  <div class="col-sm-9">
							  <div class="col-sm-9 input-group">
								<select class="form-control" id="invoice_page_url" name="invoice_page_url">
									<option value="">Select a URL</option>
									 <?php
										$page_ids = get_all_page_ids();
										foreach($page_ids as $page){
											$page_name = get_page( $page );
											if ($page_name->post_status == 'publish'){
											?>
												<option value='<?php echo $page; ?>'>
												<?php echo get_permalink($page); ?>
												</option>
											<?php } 
								 
										}//close foreach loop ?>
							  </select>
							  </div>
						  </div>
					</div>
					<div class="form-group row">							   
								
						 <div class="col-sm-3 align-items-center">
							<label> Enter Admin Email </label>
						  </div>
						 <div class="col-sm-9">
							  <div class="col-sm-9 input-group">
								<input type="text" name="invoice_admin_email" id="invoice_admin_email" class="form-control page_name" value="" placeholder="Enter Admin Email"/>
							  </div>
							  
						</div>
						
						<div class="error-msgs text-center messages-div">
							<h5 class="alert alert-danger error_invoice_admin_email error_msg" style="display:none">Please enter Admin Email. </h5>
						</div>


					</div>
									
					
					<div class="form-group row">							   
								
						 <div class="col-sm-3 align-items-center">
							<label> Enter Company Name </label>
						  </div>
						 <div class="col-sm-9">
							  <div class="col-sm-9 input-group">
								<input type="text" name="invoice_company_name" id="invoice_company_name" class="form-control page_name" value="" placeholder=""/>
							  </div>
						</div>
						<div class="error-msgs text-center messages-div">
							<h5 class="alert alert-danger error_invoice_company_name error_msg" style="display:none">Please enter Company Name. </h5>
						</div>

					</div>
					
					<div class="form-group row">							   
								
						 <div class="col-sm-3 align-items-center">
							<label> Enter Company URL </label>
						  </div>
						 <div class="col-sm-9">
							  <div class="col-sm-9 input-group">
								<input type="text" name="invoice_company_url" id="invoice_company_url" class="form-control page_name" value="" placeholder=""/>
							  </div>
						</div>
						<div class="error-msgs text-center messages-div">
							<h5 class="alert alert-danger error_invoice_company_url error_msg" style="display:none">Please enter Company URL. </h5>
						</div>

					</div>
					
					<div class="form-group row mb-0 ">							   
								
						 <div class="col-sm-3 pr-0">
							<label> Enter full URL of your Logo image  </label>
						  </div>
						 <div class="col-sm-9 ">
							  <div class="col-sm-9 input-group">
								  <input type="button" name="photo" class="photo_upload" value="Upload Image">
							 </div>
							 <div class="col-sm-9">
								  <div class="or my-4">
									<span>OR</span>
								  </div>
							  </div>
							  <div class="col-sm-9 input-group">
								<input type="text" class="form-control photo_url" value="">
							  </div>
						</div>
						<div class="error-msgs text-center messages-div">
							<h5 class="alert alert-danger error_invoice_logo_image error_msg" style="display:none">Please Upload Logo Image or Enter Logo Image URL. </h5>
						</div>
					</div>
					<input type="hidden" id="invoice_page_id" name="invoice_page_id" class="page_id" value=""/>
					<input type="hidden" id="invoice_saved_id" name="invoice_saved_id" class="page_id" value=""/>
				</div>
				
				<div class="Select_with_check">
					 <input type="checkbox" name="member_type" value="cancellation" <?php if($count_explodedata > 0) { if(in_array("cancellation",$explodedata)){  echo "checked";}else{ echo ""; } }?>> <span>Cancellation Page</span>
				 </div>
				 <div class="inner_section" id="member_cancellation_outer" style="display:<?php if($count_explodedata > 0) { if(in_array("cancellation",$explodedata)){  echo "block";}else{ echo "none"; } }?>">
					   
					 <div class="form-group  d-flex  row mb-0 form_group_inner">  					 
					   
						   <div class="form-wrap  d-flex align-items-center">							   
								
								 <div class="col-sm-3 d-flex align-items-center">
									<label> Create a New Cancellation Page </label>
								  </div>
								 <div class="col-sm-9">
									  <div class="col-sm-9 input-group pl-0">
										  <div class="input-group-prepend">
											<span class="input-group-text"><?php echo $siteurl; ?>/</span>
										  </div>
										<input type="text" name="create_cancellation_page" id="create_cancellation_page" class="form-control page_name" value="" placeholder="Enter Name"/>
									  </div>
									  
									  <div class="col-sm-3 padd-right-0">
										<button type="button" id="cancellation_page" data-id="create_cancellation_page" class="btn theme-btn btn-blue notransform create_page_btn check_availability_page_btn">Check Availability</button>									 
									  </div>
								</div>

 
							</div>
							
								<div class="error-msgs text-center messages-div">
									<h5 class="alert alert-danger error_create_cancellation_page error_msg" style="display:none">Sorry, This Name is already taken. Please Try with another one. </h5>
									<h5 class="alert alert-success success_create_cancellation_page success_msg" style="display:none">Congrats! This Name is available</h5>
									<h5 class="alert alert-success error_cancellation_no_page_selected error_msg" style="display:none">Please Enter a Page Name.</h5>
								</div>
						</div>
						
					<div class="form-group row mb-0" >  
						  <div class="col-sm-3 d-flex align-items-center"></div>
							<div class="col-sm-9">
								<div class="or">
								  <span>OR</span>
								</div>
							</div>
						</div>
					   <div class="form-group row form_group_inner">  
					  
						  <div class="col-sm-3 d-flex align-items-center">
							<label> Select an Existing Page for Cancellation </label>
						  </div>
						  <div class="col-sm-7 d-flex align-items-center padd-right-25">
								<select class="form-control" id="cancellation_page_url" name="cancellation_page_url">
									<option value="">Select a URL</option>
									 <?php
										$page_ids = get_all_page_ids();
										foreach($page_ids as $page){
											$page_name = get_page( $page );
											if ($page_name->post_status == 'publish'){
											?>
												<option value='<?php echo $page; ?>'>
												<?php echo get_permalink($page); ?>
												</option>
											<?php } 
								 
										}//close foreach loop ?>
							  </select>
						  </div>
					</div>
					
					<input type="hidden" id="cancellation_page_id" name="cancellation_page_id" class="page_id" value=""/>
					<input type="hidden" id="cancellation_saved_id" name="cancellation_saved_id" class="page_id" value=""/>
				</div>
				
			  </div>
			</div>
			<div class="form-group row shortcode_div" style='display:none'>
			 
		  <div class="col-sm-12 d-flex align-items-center">
			  <div class="get_shortcode">
				  <h3 class="section_heading">Here are the shortcodes: </h3>
				  <div class="login_shortcode_outer"></div>
				  <div class="mycontent_shortcode_outer"></div>
				  <div class="affiliate_shortcode_outer "></div>
				  <div class="invoice_shortcode_outer "></div>
				  <div class="profile_shortcode_outer "></div>
				  <div class="cancellation_shortcode_outer "></div>
				 
			  </div>
		  </div>
		</div>
			<div class="form-group row" style="clear:both" >
			   <div class="col-sm-12 form_action_buttons form-action text-right">
				  <button type="button" class="btn btn-success theme-btn create_shortcode_btn">Create Member Pages</button>
				</div>
			</div>
		
		
		
		
	  </div>
	  
	  <div class="row"  style="clear:both" >
		  <div class="col-sm-12 tab_bottom_button tab_position_button">
			  <a href="<?= admin_url('admin.php?page=dap_member_pages'); ?>"class="btn btn-success theme-btn">Return to Member Pages</a>
		  </div>
	  </div>
	</div>
</div>

