fix
This commit is contained in:
@@ -88,11 +88,15 @@ define('PHP_LOGIN_OK', 100 );
|
||||
define('PHP_API_OK', 0);
|
||||
|
||||
define('MERMSEMR_BKO_START', 100000 );
|
||||
define('MERMSEMR_BKO_LOGIN', 100005);
|
||||
define('MERMSEMR_BKO_LOGIN', 100005);
|
||||
define('MERMSEMR_BKO_CREATEUSER', 100010);
|
||||
define('MERMSEMR_BKO_EDITUSER', 100011);
|
||||
define('MERMSEMR_BKO_UPDATEMEMBER', 100012);
|
||||
define('MERMSEMR_BKO_EDITUSER', 100011);
|
||||
define('MERMSEMR_BKO_UPDATEMEMBER', 100012);
|
||||
define('MERMSEMR_BKO_ADDREASON', 100020);
|
||||
define('MERMSEMR_BKO_DELETEALLCARDS', 100022);
|
||||
define('MERMSEMR_BKO_ADDCARD', 100028);
|
||||
define('MERMSEMR_BKO_LANGUAGE_STATUS', 100030);
|
||||
define('MERMSEMR_BKO_DELETEALLCARDS', 100022);
|
||||
define('MERMSEMR_BKO_ADDCARD', 100028);
|
||||
define('MERMSEMR_BKO_LANGUAGE_STATUS', 100030);
|
||||
|
||||
define('MERMS_PROVIDERS_RESNDSTARTLNK', 150006);
|
||||
|
||||
|
||||
|
||||
@@ -71,10 +71,16 @@ class Practice extends Admin_Controller {
|
||||
|
||||
public function resendEmail() {
|
||||
|
||||
$this->load->model('backend_model');
|
||||
$out = array();
|
||||
|
||||
$data['pending_practice_id'] = trim($this->input->get('pending_practice_id'));
|
||||
echo "Sending " . $data['pending_practice_id'];
|
||||
echo "..Sending.."; // . $data['pending_practice_id'];
|
||||
$data['action'] = MERMS_PROVIDERS_RESNDSTARTLNK;
|
||||
$data['practice_pending_id'] = $data['pending_practice_id'];
|
||||
$res = $this->backend_model->mermsemr_api($data, $out);
|
||||
echo "Completed " ;
|
||||
|
||||
// return false;
|
||||
}
|
||||
|
||||
public function selectPracticeAction() {
|
||||
@@ -110,6 +116,7 @@ class Practice extends Admin_Controller {
|
||||
$pending_practice_id = $data['pending_practice_id'] = trim($this->input->get('pending_practice_id'));
|
||||
$this->load->model('Practice_model');
|
||||
$data = $this->Practice_model->loadPendingPractice($pending_practice_id);
|
||||
$data['pending_id'] =$pending_practice_id; // needed on button actions
|
||||
$this->load->view('practice/parts/view_pending.php', $data);
|
||||
}
|
||||
|
||||
@@ -132,6 +139,16 @@ class Practice extends Admin_Controller {
|
||||
$this->renderPracticePage('view_practice', $data);
|
||||
}
|
||||
|
||||
|
||||
public function rejectPracticeSignup(){
|
||||
|
||||
echo 'User Rejected and Removed from Signup';
|
||||
|
||||
}
|
||||
|
||||
public function approvePracticeSignup(){
|
||||
echo 'User Approval Process Started';
|
||||
}
|
||||
protected function renderPracticePage($page_name, $data) {
|
||||
$this->load->view('template/secure_header', $data);
|
||||
$this->load->view('practice/' . $page_name, $data);
|
||||
|
||||
@@ -45,7 +45,11 @@
|
||||
function resendEmail(pending_practice_id) {
|
||||
// alert(pending_practice_id);
|
||||
|
||||
$('#transp_detail').html('Processing...');
|
||||
if(!confirm("Do you really want to resend the email to the new user?")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#transp_detail').html('Starting...');
|
||||
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/resendEmail?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
@@ -56,6 +60,7 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
@@ -283,53 +283,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function viewMember(member_id) {
|
||||
|
||||
$('#transp_detail').html('Processing...');
|
||||
$('#acc' + member_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/member/viewmember?proc=PROCESS&member_id=" + member_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#acc' + member_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function selectPendingPractice(pending_practice_id) {
|
||||
alert(pending_practice_id);
|
||||
|
||||
$('#transp_detail').html('Processing...');
|
||||
// $('#acc' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/selectPendingPractice?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
// $('#acc' + pending_practice_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function resendEmail(pending_practice_id) {
|
||||
// alert(pending_practice_id);
|
||||
|
||||
$('#transp_detail').html('Processing...');
|
||||
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/resendEmail?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#bremail' + pending_practice_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
<?php include 'dash_scripts.php' ?>
|
||||
|
||||
@@ -40,4 +40,4 @@
|
||||
</div>
|
||||
<!-- end row -->
|
||||
|
||||
<?php include 'dash_scripts.php' ?>
|
||||
<?php include 'dash_scripts.php' ?>
|
||||
|
||||
@@ -43,10 +43,56 @@ $read_level = " readonly "
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
||||
<button type="submit" class="btn btn-danger" name="signup" value="Sign up">Reject</button>
|
||||
<button type="submit" class="btn btn-primary" name="signup" value="Sign up">Approve</button>
|
||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
||||
<button type="submit" class="btn btn-danger" onclick='rejectPracticeSignup(<?=$pending_id?>);' name="reject_signup" value="Sign up">Reject</button>
|
||||
<button type="submit" class="btn btn-primary" onclick='approvePracticeSignup(<?=$pending_id?>);' name="approve_signup" value="Sign up">Approve</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function approvePracticeSignup(pending_practice_id) {
|
||||
// alert(pending_practice_id);
|
||||
|
||||
if(!confirm("Do you really want to APPROVE the new user?")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#transp_detail').html('Starting...');
|
||||
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/approvePracticeSignup?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#bremail' + pending_practice_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function rejectPracticeSignup(pending_practice_id) {
|
||||
// alert(pending_practice_id);
|
||||
|
||||
if(!confirm("Do you really want to REJECT the new user?")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#transp_detail').html('Starting...');
|
||||
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/rejectPracticeSignup?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#bremail' + pending_practice_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user