This commit is contained in:
2022-04-07 01:26:31 -04:00
parent a0cf3feecc
commit 62c4444217
3 changed files with 72 additions and 14 deletions
+27 -12
View File
@@ -6,31 +6,31 @@
$email_preff = array (
["title" => "Successful Login",
"desc" => "I am working on this value",
"pref_id" => "pr1"],
"pref_id" => "pr10"],
["title" => "Too many login trials",
"desc" => "I am working on this value",
"pref_id" => "pr2"],
"pref_id" => "pr20"],
["title" => "New job sent to me",
"desc" => "I am working on this value",
"pref_id" => "pr3"],
"pref_id" => "pr30"],
["title" => "Relevant job posted to the market",
"desc" => "I am working on this value",
"pref_id" => "pr4"],
"pref_id" => "pr40"],
["title" => "Active job status changed ",
"desc" => "I am working on this value",
"pref_id" => "pr5"],
"pref_id" => "pr50"],
["title" => "Job deadline approaching",
"desc" => "I am working on this value",
"pref_id" => "pr6"],
"pref_id" => "pr60"],
["title" => "Payment/Transfer status changed ",
"desc" => "I am working on this value",
"pref_id" => "pr7"],
"pref_id" => "pr70"],
);
?>
@@ -56,17 +56,23 @@ $email_preff = array (
<div class="card-body border-top px-9 py-9">
<?php
foreach ($email_preff as $rw){
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" onclick="return accountSettings('<?=$rw['pref_id']?>');" name="account_settings_<?=$rw['pref_id']?>" value="1" />
<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['desc']?><div id="<?=$rw['pref_id']?>"></div></span>
<span class="text-muted fs-6"><?=$rw['description']?><div id="<?=$rw['pref_id']?>"></div></span>
</span>
<!--end::Label-->
</label>
@@ -158,12 +164,21 @@ $email_preff = array (
<!--
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
url: "/member/accsettings?set_type="+set_type+"&seval="+seval
}).done(function (data) {
$('#'+set_type).html(data);
});
return false;
// return false;
}
function deactivateMyAccount() {