This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="payments form col-lg-10 col-md-9 columns"> | |
<?= $this->Form->create($payment); | |
//$url = $this->Url->build() | |
?> | |
<fieldset> | |
<legend><?= __('Submit Payment') ?></legend> | |
<div style="float: right"> | |
<?= $this->Html->link('Cancel Appointment', ['controller' => 'Events', 'action' => 'cancelAppointment', $event_id], ['class' => 'btn-primary btn']) ?> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use App\Controller\AppController; | |
use Cake\I18n\Date; | |
use Cake\I18n\Time; | |
use Cake\Log\Log; | |
use Cake\ORM\TableRegistry; | |
use Notifier\Utility\NotificationManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Aura\Intl\Exception; | |
use App\Controller\AppController; | |
use Cake\I18n\Date; | |
use Cake\I18n\Time; | |
use Cake\Log\Log; | |
use Shim\Model\Table\Table; | |
use Cake\ORM\TableRegistry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function drugAlert() { | |
/** | |
* run on terminal | |
* | |
* bin/cake Alerts drugAlert | |
* | |
*/ | |
// send notification to patient/caregiver/provider/fAdmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo $this->Html->script('moment/moment.min'); | |
echo $this->Html->css('AdminLTE./bootstrap/css/bootstrap-datetimepicker.min'); | |
echo $this->Html->script('AdminLTE./bootstrap/js/bootstrap-datetimepicker'); | |
echo $this->Html->script('AdminLTE./plugins/datepicker/bootstrap-datepicker'); | |
$log_role = $this->request->session()->read('Auth.User.role'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo $this->Html->script('moment/moment.min'); | |
echo $this->Html->css('AdminLTE./bootstrap/css/bootstrap-datetimepicker.min'); | |
echo $this->Html->script('AdminLTE./bootstrap/js/bootstrap-datetimepicker'); | |
echo $this->Html->script('AdminLTE./plugins/datepicker/bootstrap-datepicker'); | |
$log_role = $this->request->session()->read('Auth.User.role'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function drugAlert() { | |
/** | |
* run on terminal | |
* | |
* bin/cake Alerts drugAlert | |
* | |
*/ | |
// send notification to patient/caregiver/provider/fAdmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function appointments() | |
{ | |
/** | |
* run on terminal | |
* | |
* bin/cake Alerts appointments arg[minutes] | |
* | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function editCaregivers($id = null) | |
{ | |
if ($this->request->session()->read('Auth.User.role') == "Patient") { | |
$patient_user_id = $this->request->session()->read('Auth.User.id'); | |
$patient = $this->Patients->findByUserId($patient_user_id) | |
->contain(['Users', 'Facilities', 'PatientAddresses', 'Languages'])->first(); | |
} else { | |
$patient = $this->Patients->get($id, [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function addCaregiver($patient, $p) | |
{ | |
if ($p == 1) { | |
//debug("hh"); exit; | |
$caregiver1_email = $patient->primary_contact_email ? $patient->primary_contact_email : null; | |
$caregiver1_mobile = $patient->primary_contact_phone1 ? $patient->primary_contact_phone1 : null; | |
$caregiver1_name = $patient->primary_contact_name ? $patient->primary_contact_name : null; | |
$data['caregiver_type'] = 0; | |
} |