204 lines
7.9 KiB
PHP
204 lines
7.9 KiB
PHP
<!-- Main content -->
|
|
<?php include('common/userstrip.php'); ?>
|
|
|
|
<?php
|
|
|
|
$email_preff = array (
|
|
["title" => "Successful Login",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr10"],
|
|
|
|
["title" => "Too many login trials",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr20"],
|
|
|
|
["title" => "New job sent to me",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr30"],
|
|
|
|
["title" => "Relevant job posted to the market",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr40"],
|
|
|
|
["title" => "Active job status changed ",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr50"],
|
|
|
|
["title" => "Job deadline approaching",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr60"],
|
|
|
|
["title" => "Payment/Transfer status changed ",
|
|
"desc" => "I am working on this value",
|
|
"pref_id" => "pr70"],
|
|
|
|
);
|
|
?>
|
|
|
|
|
|
|
|
|
|
<!--begin::Notifications-->
|
|
<div class="card mb-5 mb-xl-10">
|
|
<!--begin::Card header-->
|
|
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_email_preferences" aria-expanded="true" aria-controls="kt_account_email_preferences">
|
|
<div class="card-title m-0">
|
|
<h3 class="fw-bolder m-0">Email Preferences</h3>
|
|
</div>
|
|
</div>
|
|
<!--begin::Card header-->
|
|
<!--begin::Content-->
|
|
<div id="kt_account_settings_email_preferences" class="collapse show">
|
|
<!--begin::Form-->
|
|
<form class="form">
|
|
|
|
<!--begin::Card body-->
|
|
<div class="card-body border-top px-9 py-9">
|
|
|
|
<?php
|
|
|
|
foreach ($settings_option as $rw){
|
|
|
|
?>
|
|
<!--begin::Option-->
|
|
<label class="form-check form-check-custom form-check-solid align-items-start">
|
|
<!--begin::Input-->
|
|
<input class="form-check-input me-3"
|
|
type="checkbox"
|
|
<?=( in_array($rw['pref_id'],$selected_settings)) ? ' checked ':'' ?>
|
|
onclick="return accountSettings('<?=$rw['pref_id']?>');"
|
|
id="account_settings_<?=$rw['pref_id']?>" value="1" />
|
|
<!--end::Input-->
|
|
<!--begin::Label-->
|
|
<span class="form-check-label d-flex flex-column align-items-start">
|
|
<span class="fw-bolder fs-5 mb-0"><?=$rw['title']?></span>
|
|
<span class="text-muted fs-6"><?=$rw['description']?><div id="<?=$rw['pref_id']?>"></div></span>
|
|
</span>
|
|
<!--end::Label-->
|
|
</label>
|
|
<!--end::Option-->
|
|
<!--begin::Option-->
|
|
<div class="separator separator-dashed my-6"></div>
|
|
<!--end::Option-->
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<!--end::Card body-->
|
|
|
|
</form>
|
|
<!--end::Form-->
|
|
</div>
|
|
<!--end::Content-->
|
|
</div>
|
|
<!--end::Notifications-->
|
|
|
|
<!--begin::Deactivate Account-->
|
|
<div class="card">
|
|
<!--begin::Card header-->
|
|
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_deactivate" aria-expanded="true" aria-controls="kt_account_deactivate">
|
|
<div class="card-title m-0">
|
|
<h3 class="fw-bolder m-0">Deactivate Account</h3>
|
|
</div>
|
|
</div>
|
|
<!--end::Card header-->
|
|
<!--begin::Content-->
|
|
<div id="kt_account_settings_deactivate" class="collapse show">
|
|
<!--begin::Form-->
|
|
<form id="kt_account_deactivate_form" name="dact_individual" class="form">
|
|
<!--begin::Card body-->
|
|
<div class="card-body border-top p-9">
|
|
<!--begin::Notice-->
|
|
<div class="notice d-flex bg-light-warning rounded border-warning border border-dashed mb-9 p-6">
|
|
<!--begin::Icon-->
|
|
<!--begin::Svg Icon | path: icons/duotune/general/gen044.svg-->
|
|
<span class="svg-icon svg-icon-2tx svg-icon-warning me-4">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
<rect opacity="0.3" x="2" y="2" width="20" height="20" rx="10" fill="black" />
|
|
<rect x="11" y="14" width="7" height="2" rx="1" transform="rotate(-90 11 14)" fill="black" />
|
|
<rect x="11" y="17" width="2" height="2" rx="1" transform="rotate(-90 11 17)" fill="black" />
|
|
</svg>
|
|
</span>
|
|
<!--end::Svg Icon-->
|
|
<!--end::Icon-->
|
|
<!--begin::Wrapper-->
|
|
<div class="d-flex flex-stack flex-grow-1">
|
|
<!--begin::Content-->
|
|
<div class="fw-bold">
|
|
<h4 class="text-gray-900 fw-bolder">You Are Deactivating Your Account</h4>
|
|
<div class="fs-6 text-gray-700">Please note we cannot reproduce or reconnect your account once deactivation is completed. If you need to join us again, you will have to create a new account.
|
|
<br />
|
|
<a class="fw-bolder" href="/dash">Return Home</a></div>
|
|
</div>
|
|
<!--end::Content-->
|
|
</div>
|
|
<!--end::Wrapper-->
|
|
</div>
|
|
<!--end::Notice-->
|
|
<!--begin::Form input row-->
|
|
<div class="form-check form-check-solid fv-row">
|
|
<input name="deactivate" class="form-check-input" type="checkbox" value="" id="deactivate" />
|
|
<label class="form-check-label fw-bold ps-2 fs-6" for="deactivate">I confirm my account deactivation</label>
|
|
</div>
|
|
<!--end::Form input row-->
|
|
</div>
|
|
<!--end::Card body-->
|
|
<!--begin::Card footer-->
|
|
<div class="card-footer d-flex justify-content-end py-6 px-9">
|
|
<div id="del-sec" name="del-sec"><button onclick="return deactivateMyAccount();" id="kt_account_deactivate_account_submit" type="submit" class="btn btn-danger fw-bold">Deactivate Account</button></div>
|
|
</div>
|
|
<!--end::Card footer-->
|
|
</form>
|
|
<!--end::Form-->
|
|
</div>
|
|
<!--end::Content-->
|
|
</div>
|
|
<!--end::Deactivate Account-->
|
|
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
function accountSettings(set_type){
|
|
// alert(set_type);
|
|
let seval = 0;
|
|
var chkBox = document.getElementById('account_settings_'+set_type);
|
|
if (chkBox.checked)
|
|
{
|
|
seval = 100;
|
|
}else{
|
|
seval = 99;
|
|
}
|
|
|
|
$.ajax({
|
|
url: "/member/accsettings?set_type="+set_type+"&seval="+seval
|
|
}).done(function (data) {
|
|
$('#'+set_type).html(data);
|
|
});
|
|
// return false;
|
|
|
|
}
|
|
function deactivateMyAccount() {
|
|
// var deactivate = document.dact_individual.deactivate.value;
|
|
var deactivate = document.getElementById("deactivate").checked;
|
|
// alert("deactivate --- " + deactivate);
|
|
if (deactivate != true) {
|
|
alert('You must confirm my account deactivation');
|
|
return false;
|
|
}
|
|
var dialog = confirm("Please confirm account deletion. We will not be able to reverse this action. ?");
|
|
if (dialog) {
|
|
//console.log('Continue')
|
|
}
|
|
else {
|
|
return true;
|
|
}
|
|
$.ajax({
|
|
url: "/member/deleteacc?contact_id=DELETE"
|
|
}).done(function (data) {
|
|
$('#del-sec').html(data);
|
|
});
|
|
return false;
|
|
}
|
|
// -->
|
|
</script>
|