<?php 

echo DapMemberShowLoader();
$orderoflinks = "NEWESTFIRST";
$sorttype = "purchasedate";
$pleaselogintext ="Please login";
$clicktologintext ="Click to Login";

$currentlyhaveaccesstext="You currently have access to %%USERPRODUCTSCOUNT%% product(s).";
$nocontent = "No Content Available";
$dateformat = "YYYY-MM-DD";
$showproductcount = "Y";
$howmanylinks = "9999";
$howmanyupcominglinks = "5";
$howmanylinksperpage = "10";
$mycontent_read_more = "Read More";
$mycontent_read_more_length = "130";

$orderoflinks =  dapMemberGetMessageByKeyAndAction('mycontent','orderoflinks'); 
$sorttype =   dapMemberGetMessageByKeyAndAction('mycontent','sorttype');

$pleaselogintext =   dapMemberGetMessageByKeyAndAction('mycontent','pleaselogintext');
$clicktologintext =   dapMemberGetMessageByKeyAndAction('mycontent','clicktologintext');
$currentlyhaveaccesstext =   dapMemberGetMessageByKeyAndAction('mycontent','currentlyhaveaccesstext');
$nocontent =   dapMemberGetMessageByKeyAndAction('mycontent','nocontent');
$mycontent_read_more =   dapMemberGetMessageByKeyAndAction('mycontent','mycontent_read_more');
$mycontent_read_more_length =   dapMemberGetMessageByKeyAndAction('mycontent','mycontent_read_more_length');
$allowed_file_upload_types =   dapMemberGetMessageByKeyAndAction('myprofile','allowed_file_upload_types');
$file_upload_max_size =   dapMemberGetMessageByKeyAndAction('myprofile','file_upload_max_size');

if($mycontent_read_more ==""){
	$mycontent_read_more = "Read More";
}else{
	$mycontent_read_more = stripslashes($mycontent_read_more);
}
if($mycontent_read_more_length ==""){
	$mycontent_read_more_length = "130";
}
 
$dateformat =   dapMemberGetMessageByKeyAndAction('mycontent','dateformat');
$showproductcount =   dapMemberGetMessageByKeyAndAction('mycontent','showproductcount');

$howmanylinks =   dapMemberGetMessageByKeyAndAction('mycontent','howmanylinks');
$howmanyupcominglinks =   dapMemberGetMessageByKeyAndAction('mycontent','howmanyupcominglinks');
$howmanylinksperpage =   dapMemberGetMessageByKeyAndAction('mycontent','howmanylinksperpage');


$mycontent_not_logged_in_text = dapMemberGetMessageByKeyAndAction('mycontent','pleaselogintext');
$mycontent_clickto_log_in_text = dapMemberGetMessageByKeyAndAction('mycontent','clicktologintext');

if($mycontent_not_logged_in_text == ''){
	$mycontent_not_logged_in_text = 'Sorry, you must log in before you can view this content.';
}
if($mycontent_clickto_log_in_text == ''){
	$mycontent_clickto_log_in_text = 'Click here to log in.';
}

$myprofile_not_logged_in_text = dapMemberGetMessageByKeyAndAction('myprofile','not_login');
$myprofile_clickto_log_in_text = dapMemberGetMessageByKeyAndAction('myprofile','clicktologintext');

if($myprofile_not_logged_in_text == ''){
	$myprofile_not_logged_in_text = 'Sorry, you must log in before you can view this content.';
}
if($myprofile_clickto_log_in_text == ''){
	$myprofile_clickto_log_in_text = 'Click here to log in.';	
}

$affiliate_not_logged_in_text = dapMemberGetMessageByKeyAndAction('affiliate','not_login');
$affiliate_clickto_log_in_text = dapMemberGetMessageByKeyAndAction('affiliate','clicktologintext');

if($affiliate_not_logged_in_text == ''){
	$affiliate_not_logged_in_text = 'Sorry, you must log in before you can view this content. %%LINKSTART%%  Click to login %%LINKEND%%. ';
}
if($affiliate_clickto_log_in_text == ''){
	$affiliate_clickto_log_in_text = 'Click here to log in.';
}

  ?>
  
<div id="dap_member_page_wrapper">
	<div class="dap_member_setting_outer common_outer">
		
		<ul class="nav nav-tabs custom_tabbar" role="tablist"> 
		
		  <li class="nav-item">
			<a class="nav-link active" href="#dap_member_customize_user_facing_message" data-toggle="tab" role="tab" aria-selected="false"><span>1</span> <span class="fa_tick"><i class="fa fa-check"></i></span>Login Settings</a>
		  </li>
		  <li class="nav-item ">
			<a class="nav-link" href="#dap_member_customize_storefront_messages" data-toggle="tab" role="tab" aria-selected="false"><span>2</span> <span class="fa_tick"><i class="fa fa-check"></i></span>My Content Settings</a>
		  </li>
		  <li class="nav-item ">
			<a class="nav-link" href="#dap_member_customize_profile_messages" data-toggle="tab" role="tab" aria-selected="false"><span>2</span> <span class="fa_tick"><i class="fa fa-check"></i></span>Common Settings</a>
		  </li>
		  
		</ul>
		
		<div class="tab-content mt-3 mb-2">
			
			<div class="tab-pane " id="dap_member_customize_profile_messages" role="tabpanel" aria-labelledby="template-tab">
				
				<div id="accordion_profile" class="accordion custom_accordion">
					<div class="card mb-0">
						
						<div class="card-header collapsed" data-toggle="collapse" href="#accordion_affiliate_tab" aria-expanded="false">
							<a class="card-title">
							   Affiliate
							</a>
						</div>
						<div id="accordion_affiliate_tab" class="card-body collapse" data-parent="#accordion_profile" >
							<form action="#" method="POST" id="dap_affiliate_settings_info_form">
								
						<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Enter text to be displayed to "not-logged-in" members</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="not_login" value="<?php echo $affiliate_not_logged_in_text ?> ">
									</div>
								</div>
								
								
								
								
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('affiliate','dap_affiliate_settings_info_form')">Update</button>
									</div>
								</div>
							</form>
						</div>
				
				
			
			
					
								
						
						 <div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab_profile" aria-expanded="false">
							<a class="card-title">
							  My Profile
							</a>
						</div>
						<div id="dap_general_tab_profile" class="card-body collapse" data-parent="#accordion_profile" style="">
							<form action="#" method="POST" id="dap_login_profile_settings_info_form">
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Success message	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="success" value="<?php echo dapMemberGetMessageByKeyAndAction('myprofile','success');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> First Name Validation message	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="first_name" value="<?php echo dapMemberGetMessageByKeyAndAction('myprofile','first_name');?> ">
									</div>
								</div>
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Email Validation message</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="invalid_email" value="<?php echo dapMemberGetMessageByKeyAndAction('myprofile','invalid_email');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Password Length Validation message</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="password_leangth_error" value="<?php echo dapMemberGetMessageByKeyAndAction('myprofile','password_leangth_error');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Repeat Password not match Validation message</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="password_repeat_error" value="<?php echo dapMemberGetMessageByKeyAndAction('myprofile','password_repeat_error');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Opted unsubscribe message</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="opted_error" value="<?php echo dapMemberGetMessageByKeyAndAction('myprofile','opted_error');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Enter text to be displayed to "not-logged-in" members</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="not_login" value="<?php echo $myprofile_not_logged_in_text ?> ">
									</div>
								</div>
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Enter text for "Click here to Login"	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="clicktologintext" value="<?php echo $myprofile_clickto_log_in_text ?>">
									</div>
								</div>	
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Max File Upload Size Message	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="file_upload_max_size" value="<?php echo $file_upload_max_size ?>">
									</div>
								</div>	
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Files Allowed To Upload Message	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="allowed_file_upload_types" value="<?php echo $allowed_file_upload_types ?>">
									</div>
								</div>	
								
								
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('myprofile','dap_login_profile_settings_info_form')">Update</button>
									</div>
								</div>
							</form>
						</div>
				
				
			</div>
			</div>
			</div>
			
			<div class="tab-pane active" id="dap_member_customize_user_facing_message" role="tabpanel" aria-labelledby="template-tab">
				<div id="accordion" class="accordion custom_accordion">
					<div class="card mb-0">
						
						 <div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab0" aria-expanded="false">
							<a class="card-title">
							  Common
							</a>
						</div>
						<div id="dap_general_tab0" class="card-body collapse" data-parent="#accordion" style="">
							<form action="#" method="POST" id="dap_login_common_settings_info_form">
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Email field Required	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="email_empty" value="<?php echo dapMemberGetMessageByKeyAndAction('login','email_empty');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Password field Required	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="password_empty" value="<?php echo dapMemberGetMessageByKeyAndAction('login','password_empty');?> ">
									</div>
								</div>
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Invalid Email </label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="email_valid" value="<?php echo dapMemberGetMessageByKeyAndAction('login','email_valid');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> User Already Logged-in Text </label>
									</div> 
									<div class="col-sm-5"> 
										<div id="already_login" class="form-control already_login dap_member_tiny_editor"><?php echo stripslashes(dapMemberGetMessageByKeyAndAction('login','already_login'));?></div>
									</div>
								</div>
								
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Admin Already Logged-in Text </label> 
									</div> 
									<div class="col-sm-5">
										<div id="dap_admin_already_login" class="form-control dap_admin_already_login dap_member_tiny_editor"><?php echo stripslashes(dapMemberGetMessageByKeyAndAction('login','dap_admin_already_login'));?></div>
									</div>
								</div>
								
								
								
								
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('login','dap_login_common_settings_info_form','common_tab')">Update</button>
									</div>
								</div>
							</form>
						</div>
						
						
						<div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab1" aria-expanded="false">
							<a class="card-title">
							   Sign in messages
							</a>
						</div>
						<div id="dap_general_tab1" class="card-body collapse" data-parent="#accordion" >
							<form action="#" method="POST" id="dap_signin_settings_info_form">
								
								
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Wrong Email id or Password </label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="email_password_wrong" value="<?php echo dapMemberGetMessageByKeyAndAction('login','email_password_wrong');?> ">
									</div>
								</div>
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Login Success message </label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="login_success" value="<?php echo dapMemberGetMessageByKeyAndAction('login','login_success');?> ">
									</div>
								</div>
								
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Captcha not select message </label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="captcha_not_select" value="<?php echo dapMemberGetMessageByKeyAndAction('login','captcha_not_select');?> ">
									</div>
								</div>
								
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Invalid Captcha message </label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="invalid_captcha" value="<?php echo dapMemberGetMessageByKeyAndAction('login','invalid_captcha');?> ">
									</div>
								</div>
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('login','dap_signin_settings_info_form')">Update</button>
									</div>
								</div>
							</form>
						</div>
					
					  <div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab2" aria-expanded="false">
							<a class="card-title">
							  Forgot Your Password
							</a>
						</div>
						<div id="dap_general_tab2" class="card-body collapse" data-parent="#accordion" style="">
							<form action="#" method="POST" id="dap_forgot_settings_info_form">
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Email not found	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="email_not_found" value="<?php echo dapMemberGetMessageByKeyAndAction('login','email_not_found');?>">
									</div>
								</div>		
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Reset Link Send	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="reset_link" value="<?php echo dapMemberGetMessageByKeyAndAction('login','reset_link');?>">
									</div>
								</div>							
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('login','dap_forgot_settings_info_form')">Update</button>
									</div>
								</div>
							</form>
						</div>
						
						 <div class="card-header collapsed" data-toggle="collapse" href="#cs_general_tab3" aria-expanded="false">
							<a class="card-title">
							   Reset Password Messages	
							</a>
						</div>
						<div id="cs_general_tab3" class="card-body collapse" data-parent="#accordion" style="">
							<form action="#" method="POST" id="dap_reset_settings_info_form">
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Password not match	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="password_not_match" value="<?php echo dapMemberGetMessageByKeyAndAction('login','password_not_match');?>">
									</div>
								</div>		
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Reset Password successfully	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="reset_password_success" value="<?php echo dapMemberGetMessageByKeyAndAction('login','reset_password_success');?>">
									</div>
								</div>		
								
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label> Reset key expired	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="reset_key_expired" value="<?php echo dapMemberGetMessageByKeyAndAction('login','reset_key_expired');?>">
									</div>
								</div>	
								
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('login','dap_reset_settings_info_form')">Update</button>
									</div>
								</div>
							</form>
						</div>
						
						                    <div class="card-header collapsed" data-toggle="collapse" href="#cs_general_tab4" aria-expanded="false">
							<a class="card-title">
							   Login with Facebook
							</a>
						</div>
						<div id="cs_general_tab4" class="card-body collapse" data-parent="#accordion" style="">
							<form action="#" method="POST" id="dap_login_with_fb_form">
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label>Link account heading text	</label>
									</div> 
									<div class="col-sm-5">
										<input class="form-control" type="text" name="link_account_heading_msg" value="<?php echo dapMemberGetMessageByKeyAndAction('loginFB','link_account_heading_msg');?>">
									</div>
								</div>		
								
								<div class="form-group row my-4">
									<div class="col-sm-5 align-items-center d-flex">
										<label>Link account confirm box msg	</label>
									</div> 
									<div class="col-sm-5">
										<div class="form-control dap_member_tiny_editor link_account_confirm_box_msg" id="link_account_confirm_box_msg" ><?php echo stripslashes(dapMemberGetMessageByKeyAndAction('loginFB','link_account_confirm_box_msg'));?> </div>
									</div>
								</div>		
								
								
								<div class="row">
									<div class="col-sm-10 text-right">
										<button class="btn btn-success" type="button" onclick="dap_save_settings_info('loginFB','dap_login_with_fb_form' ,'loginFB_tab')">Update</button>
									</div>
								</div>
							</form>
						</div>
					
						
						
					</div>
				</div>
			</div>
			
			<div class="tab-pane" id="dap_member_customize_storefront_messages" role="tabpanel" aria-labelledby="template-tab">
				<div id="accordion" class="accordion custom_accordion">
					<div class="card mb-0">
				
			<div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab5" aria-expanded="false">
	<a class="card-title">
	  Common
	</a>
</div>
<div id="dap_general_tab5" class="card-body collapse" data-parent="#accordion" style="">
		<form action="#" method="POST" id="dap_mycontent_settings_info_form">								
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label>Enter text to be displayed to "not-logged-in" members</label>
				</div> 
				<div class="col-sm-5">
					<input class="form-control" type="text" name="pleaselogintext" value="<?php echo $mycontent_not_logged_in_text ?>">
				</div>
			</div>		
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label> Enter text for "Click here to Login"	</label>
				</div> 
				<div class="col-sm-5">
					<input class="form-control" type="text" name="clicktologintext" value="<?php echo $mycontent_clickto_log_in_text ?>">
				</div>
			</div>		
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label> Enter text for "Currently Have Access" </label>
				</div> 
				<div class="col-sm-5">
					<input class="form-control" type="text" name="currentlyhaveaccesstext" value="<?php echo dapMemberGetMessageByKeyAndAction('mycontent','currentlyhaveaccesstext');?>">
				</div>
			</div>		
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label>  Enter DATE Format	</label>
				</div> 
				<div class="col-sm-5">  
					<input class="form-control" type="text" name="dateformat" value="<?php echo dapMemberGetMessageByKeyAndAction('mycontent','dateformat');?>">
				</div>
			</div>		
			 
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label> Enter "No Content Available" Text	</label>
				</div> 
				<div class="col-sm-5">
					<input class="form-control" type="text" name="nocontent" value="<?php echo dapMemberGetMessageByKeyAndAction('mycontent','nocontent');?>">
				</div>
			</div>						
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label> Display Product Count?	</label>
				</div> 
				<div class="col-sm-5">
					<select class="form-control" name="showproductcount" id="showproductcount">
					  <option value="Y" <?php if($showproductcount == "Y") { echo "selected" ; }?>>YES</option>
					  <option value="N" <?php if($showproductcount == "N") { echo "selected" ; }?>>NO</option>
				   </select>
				</div>
			</div>	
				 
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label> Enter "Read More" Text	</label>
				</div> 
				<div class="col-sm-5">
					<input class="form-control" type="text" name="mycontent_read_more" value="<?php echo $mycontent_read_more;?>">
				</div>
			</div>
			<div class="form-group row my-4">
				<div class="col-sm-5 align-items-center d-flex">
					<label> Enter "Read More" Character length	</label>
				</div> 
				<div class="col-sm-5">
					<input class="form-control" type="number" name="mycontent_read_more_length" value="<?php echo $mycontent_read_more_length;?>">
				</div>
			</div>						
			
			<div class="row">
				<div class="col-sm-10 text-right">
					<button class="btn btn-success" type="button" onclick="dap_save_settings_info('mycontent','dap_mycontent_settings_info_form')">Update</button>
				</div>
			</div>
		</form>
	</div>
	
<div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab6" aria-expanded="false">
	<a class="card-title">
	  Pagination Options 
	</a>
</div>
<div id="dap_general_tab6" class="card-body collapse" data-parent="#accordion" style="">
	<form action="#" method="POST" id="dap_mycontent_settings_display_form">
		
		<div class="form-group row my-4">
			<div class="col-sm-5 align-items-center d-flex">
				<label> How Many Available Links you want to display?	</label>
			</div> 
			<div class="col-sm-5">
				<input class="form-control" type="text" name="howmanylinks" value="<?php echo dapMemberGetMessageByKeyAndAction('mycontent','howmanylinks');?>">
			</div>
		</div>	
		<div class="form-group row my-4">
			<div class="col-sm-5 align-items-center d-flex">
				<label>  How Many Upcoming Links you want to display?	</label>
			</div> 
			<div class="col-sm-5">
				<input class="form-control" type="text" name="howmanyupcominglinks" value="<?php echo dapMemberGetMessageByKeyAndAction('mycontent','howmanyupcominglinks');?>">
			</div>
		</div>	
		<div class="form-group row my-4">
			<div class="col-sm-5 align-items-center d-flex">
				<label>  How Many Links you want to display per page in pagination?	</label>
			</div>  
			<div class="col-sm-5"> 
				<input class="form-control" type="text" name="howmanylinksperpage" value="<?php echo dapMemberGetMessageByKeyAndAction('mycontent','howmanylinksperpage');?>">
			</div>
		</div>							
		<div class="row">  
			<div class="col-sm-10 text-right">
				<button class="btn btn-success" type="button" onclick="dap_save_settings_info('mycontent','dap_mycontent_settings_display_form')">Update</button>
			</div>
		</div>
	</form>
</div>
				
<div class="card-header collapsed" data-toggle="collapse" href="#dap_general_tab7" aria-expanded="false">
	<a class="card-title">
	 Sorting Options
	</a>
</div>
<div id="dap_general_tab7" class="card-body collapse" data-parent="#accordion" style="">
	<form action="#" method="POST" id="dap_mycontent_settings_order_form">
		
		 
		<div class="form-group row my-4">
			<div class="col-sm-5 align-items-center d-flex">
				<label> Order of Products	</label>
			</div> 
			
			<div class="col-sm-5">
				<select name="sorttype" id="sorttype" style=" width: 100% !important;" class="form-control">
					<option value="purchasedate"  <?php if($sorttype == "purchasedate") { echo "selected" ; }?>>By Purchase Date</option>
					<option value="id"  <?php if($sorttype == "id") { echo "selected" ; }?>>By ID</option>
					<option value="name"  <?php if($sorttype == "name") { echo "selected" ; }?>>By Name</option>
				</select>
				 
			</div>
		</div>	
		
		<div class="form-group row my-4">
			<div class="col-sm-5 align-items-center d-flex">
				<label> Order Of Links	<div class="tool-tip">
				  <i class="fa fa-info-circle" aria-hidden="true">
				  </i>
				  <div class="toll-tip-desc"> 
					  NEWESTFIRST:- Display exactly as DAP Content responder tab <br/>
					  OLDESTFIRST:- Display in the reverse order of the  DAP Content responder tab
				   </div>
				</div></label>
			</div> 
			<div class="col-sm-5">
				
				<select class="form-control" name="orderoflinks" id="orderoflinks">
					<option value="NEWESTFIRST"  <?php if($orderoflinks == "NEWESTFIRST") { echo "selected" ; }?>>NEWESTFIRST</option>
					<option value="OLDESTFIRST" <?php if($orderoflinks == "OLDESTFIRST") { echo "selected" ; }?>>OLDESTFIRST</option>
				</select>

				 
			</div>
		</div>	
							
		
		<div class="row">
			<div class="col-sm-10 text-right">
				<button class="btn btn-success" type="button" onclick="dap_save_settings_info('mycontent','dap_mycontent_settings_order_form')">Update</button>
			</div>
		</div>
	</form>
</div>


				</div>
				</div>
			</div>
		</div>
	</div>
</div>


 




