header('Content-Type: application/json'); //getMemberTypeList(); echo $core->getMemberTypeList($search, $start, $limit); //print_r($list); } if ($job == "getSiteSettings") { header('Content-Type: application/json'); getSiteSettings(); } if ($job == "getMemberList") { header('Content-Type: application/json'); getMemberList(); } if ($job == "getMemberDetails") { header('Content-Type: application/json'); getMemberDetails(); } if ($job == "setMemberDetails") { header('Content-Type: application/json'); setMemberDetails(); } if ($job == "addMember") { header('Content-Type: application/json'); addMember(); } if ($job == "deleteMember") { header('Content-Type: application/json'); deleteMember(); } if ($job == "memberStateChange") { header('Content-Type: application/json');
<?php include "header-admin.php"; require 'controller/controller.php'; $isbn = $_GET['isbn']; $memberDetails = getMemberDetails($isbn); if ($memberDetails[0]['Gender'] == 'Female') { $memberDetails[0]['Gender'] = 'checked'; } $memId = $memberDetails[0]['Member ID']; require 'controller/session.php'; if (checkSession()) { ?> <div class="container"> <h2>Editing Member Details</h2> <form name="add_book" method="post" action="controller/submit_editmembership_details.php" onsubmit="return submitForm();"> <div class="form-group" id="name_id_label"> <label >Name</label> <input type="text" class="form-control" id="name_id" value="<?php echo $memberDetails[0]['Member Name']; ?> " /> <span class="error"></span> </div> <div class="form-group" id="phoneno_id_label"> <label >Phone number</label> <input type="number" class="form-control" id="phoneno_id" value="<?php echo $memberDetails[0]['Phone No.']; ?> "/>