fix
This commit is contained in:
@@ -88,11 +88,15 @@ define('PHP_LOGIN_OK', 100 );
|
|||||||
define('PHP_API_OK', 0);
|
define('PHP_API_OK', 0);
|
||||||
|
|
||||||
define('MERMSEMR_BKO_START', 100000 );
|
define('MERMSEMR_BKO_START', 100000 );
|
||||||
define('MERMSEMR_BKO_LOGIN', 100005);
|
define('MERMSEMR_BKO_LOGIN', 100005);
|
||||||
define('MERMSEMR_BKO_CREATEUSER', 100010);
|
define('MERMSEMR_BKO_CREATEUSER', 100010);
|
||||||
define('MERMSEMR_BKO_EDITUSER', 100011);
|
define('MERMSEMR_BKO_EDITUSER', 100011);
|
||||||
define('MERMSEMR_BKO_UPDATEMEMBER', 100012);
|
define('MERMSEMR_BKO_UPDATEMEMBER', 100012);
|
||||||
define('MERMSEMR_BKO_ADDREASON', 100020);
|
define('MERMSEMR_BKO_ADDREASON', 100020);
|
||||||
define('MERMSEMR_BKO_DELETEALLCARDS', 100022);
|
define('MERMSEMR_BKO_DELETEALLCARDS', 100022);
|
||||||
define('MERMSEMR_BKO_ADDCARD', 100028);
|
define('MERMSEMR_BKO_ADDCARD', 100028);
|
||||||
define('MERMSEMR_BKO_LANGUAGE_STATUS', 100030);
|
define('MERMSEMR_BKO_LANGUAGE_STATUS', 100030);
|
||||||
|
|
||||||
|
define('MERMS_PROVIDERS_RESNDSTARTLNK', 150006);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -71,10 +71,16 @@ class Practice extends Admin_Controller {
|
|||||||
|
|
||||||
public function resendEmail() {
|
public function resendEmail() {
|
||||||
|
|
||||||
|
$this->load->model('backend_model');
|
||||||
|
$out = array();
|
||||||
|
|
||||||
$data['pending_practice_id'] = trim($this->input->get('pending_practice_id'));
|
$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() {
|
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'));
|
$pending_practice_id = $data['pending_practice_id'] = trim($this->input->get('pending_practice_id'));
|
||||||
$this->load->model('Practice_model');
|
$this->load->model('Practice_model');
|
||||||
$data = $this->Practice_model->loadPendingPractice($pending_practice_id);
|
$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);
|
$this->load->view('practice/parts/view_pending.php', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,6 +139,16 @@ class Practice extends Admin_Controller {
|
|||||||
$this->renderPracticePage('view_practice', $data);
|
$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) {
|
protected function renderPracticePage($page_name, $data) {
|
||||||
$this->load->view('template/secure_header', $data);
|
$this->load->view('template/secure_header', $data);
|
||||||
$this->load->view('practice/' . $page_name, $data);
|
$this->load->view('practice/' . $page_name, $data);
|
||||||
|
|||||||
@@ -45,7 +45,11 @@
|
|||||||
function resendEmail(pending_practice_id) {
|
function resendEmail(pending_practice_id) {
|
||||||
// alert(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);
|
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/practice/resendEmail?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
url: "/practice/resendEmail?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||||
@@ -56,6 +60,7 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -283,53 +283,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php include 'dash_scripts.php' ?>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,4 +40,4 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- end row -->
|
<!-- end row -->
|
||||||
|
|
||||||
<?php include 'dash_scripts.php' ?>
|
<?php include 'dash_scripts.php' ?>
|
||||||
|
|||||||
@@ -43,10 +43,56 @@ $read_level = " readonly "
|
|||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
<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-danger" onclick='rejectPracticeSignup(<?=$pending_id?>);' name="reject_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-primary" onclick='approvePracticeSignup(<?=$pending_id?>);' name="approve_signup" value="Sign up">Approve</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</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