diff --git a/src/Controller/FeedbacksController.php b/src/Controller/FeedbacksController.php index ae0089c6e..544dc83a4 100755 --- a/src/Controller/FeedbacksController.php +++ b/src/Controller/FeedbacksController.php @@ -81,11 +81,7 @@ public function add() if ($this->Auth->User('id')) { $this->paginate['limit'] = 5; - $previous_messages = $this->paginate($this->Feedbacks); - // $this->paginate['conditions'] = array('user_id' => $this->Auth->User('id')); - // - // $previous_messages = $this->Feedback->find('all', array('conditions' => array('id' => $this->Auth->User('id')))); - // $previous_messages = $this->paginate(); + $previous_messages = $this->paginate($this->Feedbacks); } $users = $this->Feedbacks->Users->find('list', ['limit' => 200])->all(); $this->set(compact('feedback', 'users')); diff --git a/src/Controller/Manager/AggregatesController.php b/src/Controller/Manager/AggregatesController.php index f19538f3a..0158b71c7 100755 --- a/src/Controller/Manager/AggregatesController.php +++ b/src/Controller/Manager/AggregatesController.php @@ -13,6 +13,9 @@ */ class AggregatesController extends AppController { + + + public $page_options = array('5' => '5', '10' => '10', '25' => '25', '50' => '50', '100' => '100'); /** * Index method * @@ -20,11 +23,16 @@ class AggregatesController extends AppController */ public function index() { + + $limit = $this->request->getQuery('pages', 1000); // Default to 10 if 'pages' is not set + $this->paginate = [ 'contain' => ['Users', 'Counties', 'SubCounties', 'Designations'], - ]; - $aggregates = $this->paginate($this->Aggregates); - + 'limit'=>$limit + + ]; + $aggregates = $this->paginate($this->Aggregates->find('search', ['search' => $this->request->getQuery()])); + $this->set('page_options', $this->page_options); $this->set(compact('aggregates')); } diff --git a/src/Controller/Manager/DrugsController.php b/src/Controller/Manager/DrugsController.php index 461ef2078..4158653ad 100755 --- a/src/Controller/Manager/DrugsController.php +++ b/src/Controller/Manager/DrugsController.php @@ -25,7 +25,15 @@ class DrugsController extends AppController */ public function index() { - $drugs = $this->paginate($this->Drugs); + + $limit = $this->request->getQuery('pages', 1000); // Default to 10 if 'pages' is not set + + $this->paginate = [ + 'contain' => [], + 'limit'=>$limit + + ]; + $drugs = $this->paginate($this->Drugs->find('search', ['search' => $this->request->getQuery()])); $this->set('page_options', $this->page_options); $this->set(compact('drugs')); } diff --git a/src/Controller/Manager/ReportsController.php b/src/Controller/Manager/ReportsController.php index 93d113cb4..4ae5ac7b8 100755 --- a/src/Controller/Manager/ReportsController.php +++ b/src/Controller/Manager/ReportsController.php @@ -6,9 +6,8 @@ use App\Controller\AppController; /** - * Reports Controller - * - * @method \App\Model\Entity\Report[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) + * + * */ class ReportsController extends AppController { @@ -19,7 +18,8 @@ class ReportsController extends AppController */ public function index() { - $reports = $this->paginate($this->Reports); + + $reports =[]; $this->set(compact('reports')); } diff --git a/src/Controller/Manager/SaefisController.php b/src/Controller/Manager/SaefisController.php index 445b94545..0ec523960 100755 --- a/src/Controller/Manager/SaefisController.php +++ b/src/Controller/Manager/SaefisController.php @@ -22,22 +22,17 @@ class SaefisController extends AppController */ public function index() { - $criteria = array(); - - // $criteria['Aefis.user_id'] = $this->Auth->user('id'); + + $limit = $this->request->getQuery('pages', 1000); // Default to 10 if 'pages' is not set + $this->paginate = [ - 'contain' => ['Users'], - 'conditions' => $criteria - ]; - $saefis = $this->paginate($this->Saefis); - + 'contain' => [], + 'limit'=>$limit + + ]; + $saefis = $this->paginate($this->Saefis->find('search', ['search' => $this->request->getQuery()])); $this->set('page_options', $this->page_options); $this->set(compact('saefis')); - - // $counties = $this->Saefis->Counties->find('list', array('order' => array('Counties.county_name' => 'ASC'))); - // $this->set(compact('counties')); - // $designations = $this->Saefis->Designations->find('list', array('order' => array('Designations.name' => 'ASC'))); - // $this->set(compact('designations')); } /** diff --git a/src/Controller/Reporter/AefisController.php b/src/Controller/Reporter/AefisController.php index a0384b107..de5322bfa 100755 --- a/src/Controller/Reporter/AefisController.php +++ b/src/Controller/Reporter/AefisController.php @@ -14,7 +14,7 @@ */ class AefisController extends AppController { - + public $page_options = array('25' => '25', '50' => '50', '100' => '100'); /** * Index method diff --git a/src/Model/Table/AggregatesTable.php b/src/Model/Table/AggregatesTable.php index 5a5c80a9e..2a920a60d 100755 --- a/src/Model/Table/AggregatesTable.php +++ b/src/Model/Table/AggregatesTable.php @@ -52,6 +52,9 @@ public function initialize(array $config): void $this->setPrimaryKey('id'); $this->addBehavior('Timestamp'); + $this->addBehavior('Search.Search'); + $this->searchManager() + ->value('retention_status'); $this->belongsTo('Users', [ 'foreignKey' => 'user_id', diff --git a/src/Model/Table/DrugsTable.php b/src/Model/Table/DrugsTable.php index b9fa8d9c7..c50cc86b0 100755 --- a/src/Model/Table/DrugsTable.php +++ b/src/Model/Table/DrugsTable.php @@ -1,4 +1,5 @@ setPrimaryKey('id'); $this->addBehavior('Timestamp'); + $this->addBehavior('Search.Search'); + + $this->searchManager() + ->value('retention_status') + ->value('donation') + ->value('manufacturer') + ->value('brand_name') + ->value('batch_number') + ->value('registration_status') + ->value('inn_name'); } /** diff --git a/src/Model/Table/SaefisTable.php b/src/Model/Table/SaefisTable.php index bb4234507..b46246cf5 100755 --- a/src/Model/Table/SaefisTable.php +++ b/src/Model/Table/SaefisTable.php @@ -1,4 +1,5 @@ setPrimaryKey('id'); $this->addBehavior('Timestamp'); + $this->addBehavior('Search.Search'); + $this->searchManager() + ->value('retention_status'); $this->belongsTo('Users', [ 'foreignKey' => 'user_id', diff --git a/templates/Manager/Aggregates/index.php b/templates/Manager/Aggregates/index.php index 3ecdb8d76..6d8dc797c 100755 --- a/templates/Manager/Aggregates/index.php +++ b/templates/Manager/Aggregates/index.php @@ -1,154 +1,3 @@ $aggregates - */ -?> -
= $this->Paginator->sort('id') ?> | -= $this->Paginator->sort('user_id') ?> | -= $this->Paginator->sort('aggregate_id') ?> | -= $this->Paginator->sort('county_id') ?> | -= $this->Paginator->sort('summary_available') ?> | -= $this->Paginator->sort('sub_county_id') ?> | -= $this->Paginator->sort('designation_id') ?> | -= $this->Paginator->sort('reference_no') ?> | -= $this->Paginator->sort('messageid') ?> | -= $this->Paginator->sort('assigned_to') ?> | -= $this->Paginator->sort('assigned_by') ?> | -= $this->Paginator->sort('company_code') ?> | -= $this->Paginator->sort('company_name') ?> | -= $this->Paginator->sort('reporter_email') ?> | -= $this->Paginator->sort('e2b_type') ?> | -= $this->Paginator->sort('e2b_file') ?> | -= $this->Paginator->sort('dir') ?> | -= $this->Paginator->sort('size') ?> | -= $this->Paginator->sort('type') ?> | -= $this->Paginator->sort('assigned_date') ?> | -= $this->Paginator->sort('signature') ?> | -= $this->Paginator->sort('submitted') ?> | -= $this->Paginator->sort('submitted_date') ?> | -= $this->Paginator->sort('reporter_name') ?> | -= $this->Paginator->sort('reporter_designation') ?> | -= $this->Paginator->sort('reporter_phone') ?> | -= $this->Paginator->sort('reporter_date') ?> | -= $this->Paginator->sort('person_submitting') ?> | -= $this->Paginator->sort('reporter_name_diff') ?> | -= $this->Paginator->sort('reporter_designation_diff') ?> | -= $this->Paginator->sort('reporter_email_diff') ?> | -= $this->Paginator->sort('reporter_phone_diff') ?> | -= $this->Paginator->sort('reporter_date_diff') ?> | -= $this->Paginator->sort('resubmit') ?> | -= $this->Paginator->sort('status') ?> | -= $this->Paginator->sort('active') ?> | -= $this->Paginator->sort('copied') ?> | -= $this->Paginator->sort('archived') ?> | -= $this->Paginator->sort('archived_date') ?> | -= $this->Paginator->sort('created') ?> | -= $this->Paginator->sort('modified') ?> | -= $this->Paginator->sort('action_date') ?> | -= $this->Paginator->sort('deleted') ?> | -= $this->Paginator->sort('deleted_date') ?> | -= $this->Paginator->sort('brand_name') ?> | -= $this->Paginator->sort('inn_name') ?> | -= $this->Paginator->sort('mah') ?> | -= $this->Paginator->sort('local_technical') ?> | -= $this->Paginator->sort('therapeutic_group') ?> | -= $this->Paginator->sort('authorised_indications') ?> | -= $this->Paginator->sort('form_strength') ?> | -= $this->Paginator->sort('interval_code') ?> | -= $this->Paginator->sort('submission_frequency') ?> | -= $this->Paginator->sort('reminder_date') ?> | -= $this->Paginator->sort('report_type') ?> | -= $this->Paginator->sort('manager_initiated') ?> | -= $this->Paginator->sort('manager_submitted') ?> | -= __('Actions') ?> | -
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
= $this->Number->format($aggregate->id) ?> | -= $aggregate->has('user') ? $this->Html->link($aggregate->user->name, ['controller' => 'Users', 'action' => 'view', $aggregate->user->id]) : '' ?> | -= $aggregate->aggregate_id === null ? '' : $this->Number->format($aggregate->aggregate_id) ?> | -= $aggregate->has('county') ? $this->Html->link($aggregate->county->id, ['controller' => 'Counties', 'action' => 'view', $aggregate->county->id]) : '' ?> | -= h($aggregate->summary_available) ?> | -= $aggregate->has('sub_county') ? $this->Html->link($aggregate->sub_county->id, ['controller' => 'SubCounties', 'action' => 'view', $aggregate->sub_county->id]) : '' ?> | -= $aggregate->has('designation') ? $this->Html->link($aggregate->designation->name, ['controller' => 'Designations', 'action' => 'view', $aggregate->designation->id]) : '' ?> | -= h($aggregate->reference_no) ?> | -= h($aggregate->messageid) ?> | -= $aggregate->assigned_to === null ? '' : $this->Number->format($aggregate->assigned_to) ?> | -= $aggregate->assigned_by === null ? '' : $this->Number->format($aggregate->assigned_by) ?> | -= h($aggregate->company_code) ?> | -= h($aggregate->company_name) ?> | -= h($aggregate->reporter_email) ?> | -= h($aggregate->e2b_type) ?> | -= h($aggregate->e2b_file) ?> | -= h($aggregate->dir) ?> | -= h($aggregate->size) ?> | -= h($aggregate->type) ?> | -= h($aggregate->assigned_date) ?> | -= h($aggregate->signature) ?> | -= $aggregate->submitted === null ? '' : $this->Number->format($aggregate->submitted) ?> | -= h($aggregate->submitted_date) ?> | -= h($aggregate->reporter_name) ?> | -= $aggregate->reporter_designation === null ? '' : $this->Number->format($aggregate->reporter_designation) ?> | -= h($aggregate->reporter_phone) ?> | -= h($aggregate->reporter_date) ?> | -= h($aggregate->person_submitting) ?> | -= h($aggregate->reporter_name_diff) ?> | -= $aggregate->reporter_designation_diff === null ? '' : $this->Number->format($aggregate->reporter_designation_diff) ?> | -= h($aggregate->reporter_email_diff) ?> | -= h($aggregate->reporter_phone_diff) ?> | -= h($aggregate->reporter_date_diff) ?> | -= h($aggregate->resubmit) ?> | -= h($aggregate->status) ?> | -= $aggregate->active === null ? '' : $this->Number->format($aggregate->active) ?> | -= $aggregate->copied === null ? '' : $this->Number->format($aggregate->copied) ?> | -= $aggregate->archived === null ? '' : $this->Number->format($aggregate->archived) ?> | -= h($aggregate->archived_date) ?> | -= h($aggregate->created) ?> | -= h($aggregate->modified) ?> | -= h($aggregate->action_date) ?> | -= h($aggregate->deleted) ?> | -= h($aggregate->deleted_date) ?> | -= h($aggregate->brand_name) ?> | -= h($aggregate->inn_name) ?> | -= h($aggregate->mah) ?> | -= h($aggregate->local_technical) ?> | -= h($aggregate->therapeutic_group) ?> | -= h($aggregate->authorised_indications) ?> | -= h($aggregate->form_strength) ?> | -= $aggregate->interval_code === null ? '' : $this->Number->format($aggregate->interval_code) ?> | -= h($aggregate->submission_frequency) ?> | -= h($aggregate->reminder_date) ?> | -= h($aggregate->report_type) ?> | -= h($aggregate->manager_initiated) ?> | -= h($aggregate->manager_submitted) ?> | -- = $this->Html->link(__('View'), ['action' => 'view', $aggregate->id]) ?> - = $this->Html->link(__('Edit'), ['action' => 'edit', $aggregate->id]) ?> - = $this->Form->postLink(__('Delete'), ['action' => 'delete', $aggregate->id], ['confirm' => __('Are you sure you want to delete # {0}?', $aggregate->id)]) ?> - | -
= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?>
-= $this->Paginator->sort('id') ?> | -= $this->Paginator->sort('user_id') ?> | -= $this->Paginator->sort('ce2b_id') ?> | -= $this->Paginator->sort('vigiflow_message') ?> | -= $this->Paginator->sort('vigiflow_date') ?> | -= $this->Paginator->sort('report_type') ?> | -= $this->Paginator->sort('county_id') ?> | -= $this->Paginator->sort('sub_county_id') ?> | -= $this->Paginator->sort('designation_id') ?> | -= $this->Paginator->sort('reference_no') ?> | -= $this->Paginator->sort('messageid') ?> | -= $this->Paginator->sort('assigned_to') ?> | -= $this->Paginator->sort('assigned_by') ?> | -= $this->Paginator->sort('company_code') ?> | -= $this->Paginator->sort('company_name') ?> | -= $this->Paginator->sort('reporter_email') ?> | -= $this->Paginator->sort('e2b_type') ?> | -= $this->Paginator->sort('e2b_file') ?> | -= $this->Paginator->sort('dir') ?> | -= $this->Paginator->sort('size') ?> | -= $this->Paginator->sort('type') ?> | -= $this->Paginator->sort('assigned_date') ?> | -= $this->Paginator->sort('signature') ?> | -= $this->Paginator->sort('submitted') ?> | -= $this->Paginator->sort('submitted_date') ?> | -= $this->Paginator->sort('reporter_name') ?> | -= $this->Paginator->sort('reporter_designation') ?> | -= $this->Paginator->sort('reporter_phone') ?> | -= $this->Paginator->sort('reporter_date') ?> | -= $this->Paginator->sort('person_submitting') ?> | -= $this->Paginator->sort('reporter_name_diff') ?> | -= $this->Paginator->sort('reporter_designation_diff') ?> | -= $this->Paginator->sort('reporter_email_diff') ?> | -= $this->Paginator->sort('reporter_phone_diff') ?> | -= $this->Paginator->sort('reporter_date_diff') ?> | -= $this->Paginator->sort('resubmit') ?> | -= $this->Paginator->sort('status') ?> | -= $this->Paginator->sort('active') ?> | -= $this->Paginator->sort('copied') ?> | -= $this->Paginator->sort('archived') ?> | -= $this->Paginator->sort('archived_date') ?> | -= $this->Paginator->sort('created') ?> | -= $this->Paginator->sort('modified') ?> | -= $this->Paginator->sort('action_date') ?> | -= $this->Paginator->sort('deleted') ?> | -= $this->Paginator->sort('deleted_date') ?> | -= $this->Paginator->sort('report_reference') ?> | -= $this->Paginator->sort('creation_time') ?> | -= $this->Paginator->sort('sender_reference') ?> | -= $this->Paginator->sort('receiver_id') ?> | -= $this->Paginator->sort('sender_id') ?> | -= $this->Paginator->sort('sender_unique_identifier') ?> | -= $this->Paginator->sort('worldwide_identifier') ?> | -= $this->Paginator->sort('date_first_received') ?> | -= $this->Paginator->sort('date_most_recent_info') ?> | -= $this->Paginator->sort('serious') ?> | -= $this->Paginator->sort('patient_name') ?> | -= $this->Paginator->sort('patient_sex') ?> | -= $this->Paginator->sort('patient_dob') ?> | -= $this->Paginator->sort('patient_number') ?> | -= $this->Paginator->sort('sender_address') ?> | -= $this->Paginator->sort('sender_city') ?> | -= $this->Paginator->sort('sender_state') ?> | -= $this->Paginator->sort('sender_department') ?> | -= $this->Paginator->sort('sender_organization') ?> | -= $this->Paginator->sort('results_in_detah') ?> | -= $this->Paginator->sort('life_threatening') ?> | -= $this->Paginator->sort('prolonged_hospitalization') ?> | -= $this->Paginator->sort('incapacitating') ?> | -= __('Actions') ?> | -
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
= $this->Number->format($ce2b->id) ?> | -= $ce2b->has('user') ? $this->Html->link($ce2b->user->name, ['controller' => 'Users', 'action' => 'view', $ce2b->user->id]) : '' ?> | -= $ce2b->ce2b_id === null ? '' : $this->Number->format($ce2b->ce2b_id) ?> | -= h($ce2b->vigiflow_message) ?> | -= h($ce2b->vigiflow_date) ?> | -= h($ce2b->report_type) ?> | -= $ce2b->has('county') ? $this->Html->link($ce2b->county->id, ['controller' => 'Counties', 'action' => 'view', $ce2b->county->id]) : '' ?> | -= $ce2b->has('sub_county') ? $this->Html->link($ce2b->sub_county->id, ['controller' => 'SubCounties', 'action' => 'view', $ce2b->sub_county->id]) : '' ?> | -= $ce2b->has('designation') ? $this->Html->link($ce2b->designation->name, ['controller' => 'Designations', 'action' => 'view', $ce2b->designation->id]) : '' ?> | -= h($ce2b->reference_no) ?> | -= h($ce2b->messageid) ?> | -= $ce2b->assigned_to === null ? '' : $this->Number->format($ce2b->assigned_to) ?> | -= $ce2b->assigned_by === null ? '' : $this->Number->format($ce2b->assigned_by) ?> | -= h($ce2b->company_code) ?> | -= h($ce2b->company_name) ?> | -= h($ce2b->reporter_email) ?> | -= h($ce2b->e2b_type) ?> | -= h($ce2b->e2b_file) ?> | -= h($ce2b->dir) ?> | -= h($ce2b->size) ?> | -= h($ce2b->type) ?> | -= h($ce2b->assigned_date) ?> | -= h($ce2b->signature) ?> | -= $ce2b->submitted === null ? '' : $this->Number->format($ce2b->submitted) ?> | -= h($ce2b->submitted_date) ?> | -= h($ce2b->reporter_name) ?> | -= $ce2b->reporter_designation === null ? '' : $this->Number->format($ce2b->reporter_designation) ?> | -= h($ce2b->reporter_phone) ?> | -= h($ce2b->reporter_date) ?> | -= h($ce2b->person_submitting) ?> | -= h($ce2b->reporter_name_diff) ?> | -= $ce2b->reporter_designation_diff === null ? '' : $this->Number->format($ce2b->reporter_designation_diff) ?> | -= h($ce2b->reporter_email_diff) ?> | -= h($ce2b->reporter_phone_diff) ?> | -= h($ce2b->reporter_date_diff) ?> | -= h($ce2b->resubmit) ?> | -= h($ce2b->status) ?> | -= $ce2b->active === null ? '' : $this->Number->format($ce2b->active) ?> | -= $ce2b->copied === null ? '' : $this->Number->format($ce2b->copied) ?> | -= $ce2b->archived === null ? '' : $this->Number->format($ce2b->archived) ?> | -= h($ce2b->archived_date) ?> | -= h($ce2b->created) ?> | -= h($ce2b->modified) ?> | -= h($ce2b->action_date) ?> | -= h($ce2b->deleted) ?> | -= h($ce2b->deleted_date) ?> | -= h($ce2b->report_reference) ?> | -= h($ce2b->creation_time) ?> | -= h($ce2b->sender_reference) ?> | -= h($ce2b->receiver_id) ?> | -= h($ce2b->sender_id) ?> | -= h($ce2b->sender_unique_identifier) ?> | -= h($ce2b->worldwide_identifier) ?> | -= h($ce2b->date_first_received) ?> | -= h($ce2b->date_most_recent_info) ?> | -= h($ce2b->serious) ?> | -= h($ce2b->patient_name) ?> | -= h($ce2b->patient_sex) ?> | -= h($ce2b->patient_dob) ?> | -= h($ce2b->patient_number) ?> | -= h($ce2b->sender_address) ?> | -= h($ce2b->sender_city) ?> | -= h($ce2b->sender_state) ?> | -= h($ce2b->sender_department) ?> | -= h($ce2b->sender_organization) ?> | -= h($ce2b->results_in_detah) ?> | -= h($ce2b->life_threatening) ?> | -= h($ce2b->prolonged_hospitalization) ?> | -= h($ce2b->incapacitating) ?> | -- = $this->Html->link(__('View'), ['action' => 'view', $ce2b->id]) ?> - = $this->Html->link(__('Edit'), ['action' => 'edit', $ce2b->id]) ?> - = $this->Form->postLink(__('Delete'), ['action' => 'delete', $ce2b->id], ['confirm' => __('Are you sure you want to delete # {0}?', $ce2b->id)]) ?> - | -
= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?>
-= $this->Paginator->sort('id') ?> | -= $this->Paginator->sort('user_id') ?> | -= $this->Paginator->sort('saefi_id') ?> | -= $this->Paginator->sort('initial_id') ?> | -= $this->Paginator->sort('messageid') ?> | -= $this->Paginator->sort('vigiflow_ref') ?> | -= $this->Paginator->sort('vigiflow_date') ?> | -= $this->Paginator->sort('webradr_ref') ?> | -= $this->Paginator->sort('webradr_date') ?> | -= $this->Paginator->sort('province_id') ?> | -= $this->Paginator->sort('district') ?> | -= $this->Paginator->sort('aefi_report_ref') ?> | -= $this->Paginator->sort('name_of_vaccination_site') ?> | -= $this->Paginator->sort('reference_no') ?> | -= $this->Paginator->sort('assigned_to') ?> | -= $this->Paginator->sort('assigned_by') ?> | -= $this->Paginator->sort('assigned_date') ?> | -= $this->Paginator->sort('place_vaccination') ?> | -= $this->Paginator->sort('place_vaccination_other') ?> | -= $this->Paginator->sort('site_type') ?> | -= $this->Paginator->sort('site_type_other') ?> | -= $this->Paginator->sort('vaccination_in') ?> | -= $this->Paginator->sort('vaccination_in_other') ?> | -= $this->Paginator->sort('reporter_name') ?> | -= $this->Paginator->sort('report_date') ?> | -= $this->Paginator->sort('start_date') ?> | -= $this->Paginator->sort('complete_date') ?> | -= $this->Paginator->sort('designation_id') ?> | -= $this->Paginator->sort('telephone') ?> | -= $this->Paginator->sort('mobile') ?> | -= $this->Paginator->sort('reporter_email') ?> | -= $this->Paginator->sort('patient_name') ?> | -= $this->Paginator->sort('gender') ?> | -= $this->Paginator->sort('patient_address') ?> | -= $this->Paginator->sort('date_of_birth') ?> | -= $this->Paginator->sort('age_at_onset_years') ?> | -= $this->Paginator->sort('age_at_onset_months') ?> | -= $this->Paginator->sort('age_at_onset_days') ?> | -= $this->Paginator->sort('age_group') ?> | -= $this->Paginator->sort('symptom_date') ?> | -= $this->Paginator->sort('hospitalization_date') ?> | -= $this->Paginator->sort('status_on_date') ?> | -= $this->Paginator->sort('died_date') ?> | -= $this->Paginator->sort('autopsy_done') ?> | -= $this->Paginator->sort('autopsy_done_date') ?> | -= $this->Paginator->sort('autopsy_planned') ?> | -= $this->Paginator->sort('autopsy_planned_date') ?> | -= $this->Paginator->sort('past_history') ?> | -= $this->Paginator->sort('adverse_event') ?> | -= $this->Paginator->sort('allergy_history') ?> | -= $this->Paginator->sort('comorbidity_disorder') ?> | -= $this->Paginator->sort('covid_positive') ?> | -= $this->Paginator->sort('existing_illness') ?> | -= $this->Paginator->sort('hospitalization_history') ?> | -= $this->Paginator->sort('medication_vaccination') ?> | -= $this->Paginator->sort('faith_healers') ?> | -= $this->Paginator->sort('family_history') ?> | -= $this->Paginator->sort('pregnant') ?> | -= $this->Paginator->sort('pregnant_weeks') ?> | -= $this->Paginator->sort('breastfeeding') ?> | -= $this->Paginator->sort('infant') ?> | -= $this->Paginator->sort('birth_weight') ?> | -= $this->Paginator->sort('delivery_procedure') ?> | -= $this->Paginator->sort('source_examination') ?> | -= $this->Paginator->sort('source_documents') ?> | -= $this->Paginator->sort('source_verbal') ?> | -= $this->Paginator->sort('source_other') ?> | -= $this->Paginator->sort('examiner_name') ?> | -= $this->Paginator->sort('person_details') ?> | -= $this->Paginator->sort('person_designation') ?> | -= $this->Paginator->sort('person_date') ?> | -= $this->Paginator->sort('when_vaccinated') ?> | -= $this->Paginator->sort('vaccine_given') ?> | -= $this->Paginator->sort('prescribing_error') ?> | -= $this->Paginator->sort('vaccine_unsterile') ?> | -= $this->Paginator->sort('vaccine_condition') ?> | -= $this->Paginator->sort('vaccine_reconstitution') ?> | -= $this->Paginator->sort('vaccine_handling') ?> | -= $this->Paginator->sort('vaccine_administered') ?> | -= $this->Paginator->sort('vaccinated_vial') ?> | -= $this->Paginator->sort('vaccinated_session') ?> | -= $this->Paginator->sort('vaccinated_locations') ?> | -= $this->Paginator->sort('vaccinated_cluster') ?> | -= $this->Paginator->sort('vaccinated_cluster_number') ?> | -= $this->Paginator->sort('vaccinated_cluster_vial') ?> | -= $this->Paginator->sort('vaccinated_cluster_vial_number') ?> | -= $this->Paginator->sort('syringes_used') ?> | -= $this->Paginator->sort('syringes_used_specify') ?> | -= $this->Paginator->sort('syringes_used_other') ?> | -= $this->Paginator->sort('injection_dose_route') ?> | -= $this->Paginator->sort('injection_time_mentioned') ?> | -= $this->Paginator->sort('injection_no_touch') ?> | -= $this->Paginator->sort('injection_contraindications') ?> | -= $this->Paginator->sort('injection_reported') ?> | -= $this->Paginator->sort('injection_vaccines') ?> | -= $this->Paginator->sort('injection_vaccines_yes') ?> | -= $this->Paginator->sort('reconstitution_multiple') ?> | -= $this->Paginator->sort('reconstitution_different') ?> | -= $this->Paginator->sort('reconstitution_vial') ?> | -= $this->Paginator->sort('reconstitution_syringe') ?> | -= $this->Paginator->sort('reconstitution_vaccines') ?> | -= $this->Paginator->sort('cold_temperature') ?> | -= $this->Paginator->sort('cold_temperature_deviation') ?> | -= $this->Paginator->sort('procedure_followed') ?> | -= $this->Paginator->sort('other_items') ?> | -= $this->Paginator->sort('partial_vaccines') ?> | -= $this->Paginator->sort('unusable_vaccines') ?> | -= $this->Paginator->sort('unusable_diluents') ?> | -= $this->Paginator->sort('cold_transportation') ?> | -= $this->Paginator->sort('vaccine_carrier') ?> | -= $this->Paginator->sort('coolant_packs') ?> | -= $this->Paginator->sort('similar_events') ?> | -= $this->Paginator->sort('similar_events_episodes') ?> | -= $this->Paginator->sort('affected_vaccinated') ?> | -= $this->Paginator->sort('affected_not_vaccinated') ?> | -= $this->Paginator->sort('affected_unknown') ?> | -= $this->Paginator->sort('created') ?> | -= $this->Paginator->sort('modified') ?> | -= $this->Paginator->sort('action_date') ?> | -= $this->Paginator->sort('submitted') ?> | -= $this->Paginator->sort('resubmit') ?> | -= $this->Paginator->sort('submitted_date') ?> | -= $this->Paginator->sort('report_type') ?> | -= $this->Paginator->sort('status') ?> | -= $this->Paginator->sort('active') ?> | -= $this->Paginator->sort('emails') ?> | -= $this->Paginator->sort('signature') ?> | -= $this->Paginator->sort('deleted') ?> | -= $this->Paginator->sort('copied') ?> | -= $this->Paginator->sort('archived') ?> | -= $this->Paginator->sort('archived_date') ?> | -= $this->Paginator->sort('reporter_phone') ?> | -= $this->Paginator->sort('reporter_date') ?> | -= $this->Paginator->sort('person_submitting') ?> | -= $this->Paginator->sort('reporter_name_diff') ?> | -= $this->Paginator->sort('reporter_designation_diff') ?> | -= $this->Paginator->sort('reporter_email_diff') ?> | -= $this->Paginator->sort('reporter_phone_diff') ?> | -= $this->Paginator->sort('reporter_date_diff') ?> | -= $this->Paginator->sort('patient_phone') ?> | -= $this->Paginator->sort('patient_street_name') ?> | -= $this->Paginator->sort('syringes_used_other_specify') ?> | -= $this->Paginator->sort('vaccinator_training') ?> | -= $this->Paginator->sort('description_of_reaction') ?> | -= $this->Paginator->sort('name_of_person_first_treated') ?> | -= $this->Paginator->sort('name_of_the_person_treating') ?> | -= $this->Paginator->sort('other_source_of_info') ?> | -= $this->Paginator->sort('patient_house_number') ?> | -= $this->Paginator->sort('time_of_first_symptom') ?> | -= $this->Paginator->sort('vaccine_name') ?> | -= $this->Paginator->sort('date_first_reported') ?> | -= $this->Paginator->sort('date_form_filled') ?> | -= __('Actions') ?> | -
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
= $this->Number->format($saefi->id) ?> | -= $saefi->has('user') ? $this->Html->link($saefi->user->name, ['controller' => 'Users', 'action' => 'view', $saefi->user->id]) : '' ?> | -= $saefi->saefi_id === null ? '' : $this->Number->format($saefi->saefi_id) ?> | -= $saefi->initial_id === null ? '' : $this->Number->format($saefi->initial_id) ?> | -= h($saefi->messageid) ?> | -= h($saefi->vigiflow_ref) ?> | -= h($saefi->vigiflow_date) ?> | -= h($saefi->webradr_ref) ?> | -= h($saefi->webradr_date) ?> | -= $saefi->province_id === null ? '' : $this->Number->format($saefi->province_id) ?> | -= h($saefi->district) ?> | -= h($saefi->aefi_report_ref) ?> | -= h($saefi->name_of_vaccination_site) ?> | -= h($saefi->reference_no) ?> | -= $saefi->assigned_to === null ? '' : $this->Number->format($saefi->assigned_to) ?> | -= $saefi->assigned_by === null ? '' : $this->Number->format($saefi->assigned_by) ?> | -= h($saefi->assigned_date) ?> | -= h($saefi->place_vaccination) ?> | -= h($saefi->place_vaccination_other) ?> | -= h($saefi->site_type) ?> | -= h($saefi->site_type_other) ?> | -= h($saefi->vaccination_in) ?> | -= h($saefi->vaccination_in_other) ?> | -= h($saefi->reporter_name) ?> | -= h($saefi->report_date) ?> | -= h($saefi->start_date) ?> | -= h($saefi->complete_date) ?> | -= $saefi->has('designation') ? $this->Html->link($saefi->designation->name, ['controller' => 'Designations', 'action' => 'view', $saefi->designation->id]) : '' ?> | -= h($saefi->telephone) ?> | -= h($saefi->mobile) ?> | -= h($saefi->reporter_email) ?> | -= h($saefi->patient_name) ?> | -= h($saefi->gender) ?> | -= h($saefi->patient_address) ?> | -= h($saefi->date_of_birth) ?> | -= $saefi->age_at_onset_years === null ? '' : $this->Number->format($saefi->age_at_onset_years) ?> | -= $saefi->age_at_onset_months === null ? '' : $this->Number->format($saefi->age_at_onset_months) ?> | -= $saefi->age_at_onset_days === null ? '' : $this->Number->format($saefi->age_at_onset_days) ?> | -= h($saefi->age_group) ?> | -= h($saefi->symptom_date) ?> | -= h($saefi->hospitalization_date) ?> | -= h($saefi->status_on_date) ?> | -= h($saefi->died_date) ?> | -= h($saefi->autopsy_done) ?> | -= h($saefi->autopsy_done_date) ?> | -= h($saefi->autopsy_planned) ?> | -= h($saefi->autopsy_planned_date) ?> | -= h($saefi->past_history) ?> | -= h($saefi->adverse_event) ?> | -= h($saefi->allergy_history) ?> | -= h($saefi->comorbidity_disorder) ?> | -= h($saefi->covid_positive) ?> | -= h($saefi->existing_illness) ?> | -= h($saefi->hospitalization_history) ?> | -= h($saefi->medication_vaccination) ?> | -= h($saefi->faith_healers) ?> | -= h($saefi->family_history) ?> | -= h($saefi->pregnant) ?> | -= h($saefi->pregnant_weeks) ?> | -= h($saefi->breastfeeding) ?> | -= h($saefi->infant) ?> | -= $saefi->birth_weight === null ? '' : $this->Number->format($saefi->birth_weight) ?> | -= h($saefi->delivery_procedure) ?> | -= h($saefi->source_examination) ?> | -= h($saefi->source_documents) ?> | -= h($saefi->source_verbal) ?> | -= h($saefi->source_other) ?> | -= h($saefi->examiner_name) ?> | -= h($saefi->person_details) ?> | -= h($saefi->person_designation) ?> | -= h($saefi->person_date) ?> | -= h($saefi->when_vaccinated) ?> | -= h($saefi->vaccine_given) ?> | -= h($saefi->prescribing_error) ?> | -= h($saefi->vaccine_unsterile) ?> | -= h($saefi->vaccine_condition) ?> | -= h($saefi->vaccine_reconstitution) ?> | -= h($saefi->vaccine_handling) ?> | -= h($saefi->vaccine_administered) ?> | -= $saefi->vaccinated_vial === null ? '' : $this->Number->format($saefi->vaccinated_vial) ?> | -= $saefi->vaccinated_session === null ? '' : $this->Number->format($saefi->vaccinated_session) ?> | -= $saefi->vaccinated_locations === null ? '' : $this->Number->format($saefi->vaccinated_locations) ?> | -= h($saefi->vaccinated_cluster) ?> | -= $saefi->vaccinated_cluster_number === null ? '' : $this->Number->format($saefi->vaccinated_cluster_number) ?> | -= h($saefi->vaccinated_cluster_vial) ?> | -= $saefi->vaccinated_cluster_vial_number === null ? '' : $this->Number->format($saefi->vaccinated_cluster_vial_number) ?> | -= h($saefi->syringes_used) ?> | -= h($saefi->syringes_used_specify) ?> | -= h($saefi->syringes_used_other) ?> | -= h($saefi->injection_dose_route) ?> | -= h($saefi->injection_time_mentioned) ?> | -= h($saefi->injection_no_touch) ?> | -= h($saefi->injection_contraindications) ?> | -= h($saefi->injection_reported) ?> | -= h($saefi->injection_vaccines) ?> | -= h($saefi->injection_vaccines_yes) ?> | -= h($saefi->reconstitution_multiple) ?> | -= h($saefi->reconstitution_different) ?> | -= h($saefi->reconstitution_vial) ?> | -= h($saefi->reconstitution_syringe) ?> | -= h($saefi->reconstitution_vaccines) ?> | -= h($saefi->cold_temperature) ?> | -= h($saefi->cold_temperature_deviation) ?> | -= h($saefi->procedure_followed) ?> | -= h($saefi->other_items) ?> | -= h($saefi->partial_vaccines) ?> | -= h($saefi->unusable_vaccines) ?> | -= h($saefi->unusable_diluents) ?> | -= h($saefi->cold_transportation) ?> | -= h($saefi->vaccine_carrier) ?> | -= h($saefi->coolant_packs) ?> | -= h($saefi->similar_events) ?> | -= $saefi->similar_events_episodes === null ? '' : $this->Number->format($saefi->similar_events_episodes) ?> | -= $saefi->affected_vaccinated === null ? '' : $this->Number->format($saefi->affected_vaccinated) ?> | -= $saefi->affected_not_vaccinated === null ? '' : $this->Number->format($saefi->affected_not_vaccinated) ?> | -= h($saefi->affected_unknown) ?> | -= h($saefi->created) ?> | -= h($saefi->modified) ?> | -= h($saefi->action_date) ?> | -= $this->Number->format($saefi->submitted) ?> | -= h($saefi->resubmit) ?> | -= h($saefi->submitted_date) ?> | -= h($saefi->report_type) ?> | -= h($saefi->status) ?> | -= $saefi->active === null ? '' : $this->Number->format($saefi->active) ?> | -= $saefi->emails === null ? '' : $this->Number->format($saefi->emails) ?> | -= h($saefi->signature) ?> | -= $saefi->deleted === null ? '' : $this->Number->format($saefi->deleted) ?> | -= $saefi->copied === null ? '' : $this->Number->format($saefi->copied) ?> | -= $saefi->archived === null ? '' : $this->Number->format($saefi->archived) ?> | -= h($saefi->archived_date) ?> | -= h($saefi->reporter_phone) ?> | -= h($saefi->reporter_date) ?> | -= h($saefi->person_submitting) ?> | -= h($saefi->reporter_name_diff) ?> | -= h($saefi->reporter_designation_diff) ?> | -= h($saefi->reporter_email_diff) ?> | -= h($saefi->reporter_phone_diff) ?> | -= h($saefi->reporter_date_diff) ?> | -= h($saefi->patient_phone) ?> | -= h($saefi->patient_street_name) ?> | -= h($saefi->syringes_used_other_specify) ?> | -= h($saefi->vaccinator_training) ?> | -= h($saefi->description_of_reaction) ?> | -= h($saefi->name_of_person_first_treated) ?> | -= h($saefi->name_of_the_person_treating) ?> | -= h($saefi->other_source_of_info) ?> | -= h($saefi->patient_house_number) ?> | -= h($saefi->time_of_first_symptom) ?> | -= h($saefi->vaccine_name) ?> | -= h($saefi->date_first_reported) ?> | -= h($saefi->date_form_filled) ?> | -- = $this->Html->link(__('View'), ['action' => 'view', $saefi->id]) ?> - = $this->Html->link(__('Edit'), ['action' => 'edit', $saefi->id]) ?> - = $this->Form->postLink(__('Delete'), ['action' => 'delete', $saefi->id], ['confirm' => __('Are you sure you want to delete # {0}?', $saefi->id)]) ?> - | -
= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?>
-+ Form->control( + 'reference_no', + array( + 'div' => false, + 'placeholder' => 'aggregates/2023', + 'class' => 'span12', + 'label' => array('class' => 'required', 'text' => 'Reference No.') + ) + ); + ?> + | ++ Form->control( + 'company_name', + array( + 'div' => false, + 'placeholder' => '', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Company Name ') + ) + ); + ?> + | ++ Form->control( + 'reporter_email', + array( + 'div' => false, + 'placeholder' => '', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Reporter Email ') + ) + ); + ?> + | ++ Form->control( + 'start_date', + array( + 'div' => false, + 'type' => 'text', + 'class' => 'control-small unauthorized_index', + 'after' => '-to-', + 'label' => array('class' => 'required', 'text' => 'Report Dates'), + 'placeHolder' => 'Start Date' + ) + ); + echo $this->Form->control( + 'end_date', + array( + 'div' => false, + 'type' => 'text', + 'class' => 'control-small unauthorized_index', + 'after' => ' + clear!', + 'label' => false, + 'placeHolder' => 'End Date' + ) + ); + ?> + | +|||
+ Form->control( + 'brand_name', + array( + 'div' => false, + 'placeholder' => '', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Brand Name ') + ) + ); + ?> + | ++ Form->control( + 'inn_name', + array( + 'div' => false, + 'placeholder' => '', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Inn Name ') + ) + ); + ?> + | ++ Form->control( + 'submission_frequency', + array( + 'div' => false, + 'class' => 'span12', + 'label' => array('class' => 'required submission_frequency', 'text' => 'Submission Frequency '), + 'type' => 'select', + 'empty' => true, + 'options' => array( + '0' => 'Monthly', + '1' => 'Yearly' + ) + ) + ); + ?> + | +||||
+ | + Form->control('pages', array( + 'type' => 'select', + 'div' => false, + 'class' => 'control-small', + 'empty' => true, + 'options' => $page_options, + 'label' => false, + )); + ?> + | ++ + | ++ | + Form->button(' Search', array( + 'escapeTitle' => false, + 'class' => 'btn btn-primary', + 'div' => 'control-group', + 'div' => false, + 'formnovalidate' => 'formnovalidate', + 'style' => array('margin-bottom: 5px') + )); + ?> + | ++ Html->link(' Clear', array('action' => 'index'), array('class' => 'btn', 'escape' => false, 'style' => array('margin-bottom: 5px'))); + ?> + | ++ Html->link(' Excel', array('action' => 'index', 'ext' => 'csv', '?' => $this->request->query), array('class' => 'btn btn-success', 'escape' => false)); + ?> + | +
+ Paginator->counter( + __('Page {{page}} of {{pages}}, + showing {{current}} PBRERs out of + {{count}} total, starting on record {{start}}, + ending on {{end}}') + ); + ?> +
+ Form->end(); ?> + +Paginator->sort('id'); ?> | +Paginator->sort('reference_no'); ?> | +Paginator->sort('brand_name'); ?> | +Paginator->sort('inn_name'); ?> | +Paginator->sort('reporter_email'); ?> | +Paginator->sort('created'); ?> | +Paginator->sort('date_submitted'); ?> | ++ |
---|---|---|---|---|---|---|---|
+ | + Html->link($aggregate['reference_no'], array('action' => 'view', $aggregate['id']), array('escape' => false)); + ?> | +
+ Text->truncate($aggregate['brand_name'], 42);
+ if ($aggregate['report_type'] == 'Followup') {
+ echo " Initial: "; + echo $this->Html->link( + '', + array('action' => 'view', $aggregate['aggregate_id']), + array('escape' => false) + ); + } + ?> + |
+ + | + | + | + | + 1) { + echo $this->Html->link( + ' View ', + array('controller' => 'aggregates', 'action' => 'view', $aggregate['id']), + array('escape' => false) + ); + echo " "; + if ($prefix == 'reporter' and $this->request->getSession()->read('Auth.User.user_type') != 'Public Health Program') echo $this->Form->postLink(' Followup ', array('controller' => 'aggregates', 'action' => 'followup', $aggregate['id']), array('escape' => false), __('Add a followup report?')); + + + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $aggregate['user_id'] == $this->request->getSession()->read('Auth.User.id')) echo $this->Form->postLink(' Followup ', array('controller' => 'aggregates', 'action' => 'followup', $aggregate['id']), array('escape' => false), __('Add a followup report?')); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $aggregate['copied'] == 2) echo $this->Html->link( + ' Edit ', + array('controller' => 'aggregates', 'action' => 'edit', $aggregate['id']), + array('escape' => false) + ); + echo " "; + // if (($prefix == 'manager' || $prefix == 'reviewer') && $aggregate['copied'] == 0) echo $this->Form->postLink(' Copy ', array('controller' => 'aggregates', 'action' => 'copy', $aggregate['id']), array('escape' => false), __('Create a clean copy to edit?')); + if (($prefix == 'manager' || $prefix == 'reviewer')) echo $this->Html->link( + ' Archive ', + array('controller' => 'aggregates', 'action' => 'archive', $aggregate['id']), + array('escape' => false), + __('Are you sure you want to archive the report?') + ); + } else { + if ($prefix == 'reporter') echo $this->Html->link( + ' Edit ', + array('controller' => 'aggregates', 'action' => 'edit', $aggregate['id']), + array('escape' => false) + ); + echo " "; + if (($prefix == 'reporter' || $prefix == 'manager') && $aggregate['submitted'] == 0) { + echo " "; + echo $this->Form->postLink(' Delete ', array('controller' => 'aggregates', 'action' => 'delete', $aggregate['id']), array('escape' => false), __('Are you sure you want to delete this report? + Note: This action cannot be undone.')); + } + echo " "; + if ($prefix == 'manager' || $prefix == 'reviewer') echo $this->Html->link( + ' View ', + array('controller' => 'aggregates', 'action' => 'view', $aggregate['id']), + array('escape' => false) + ); + } + ?> + | +
+ Form->control( + 'reference_no', + array( + 'div' => false, + 'placeholder' => 'e2b/2023', + 'class' => 'span12', + 'label' => array('class' => 'required', 'text' => 'Reference No.') + ) + ); + ?> + | ++ Form->control( + 'company_name', + array( + 'div' => false, + 'placeholder' => '', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Company Name ') + ) + ); + ?> + | ++ Form->control( + 'reporter_email', + array( + 'div' => false, + 'placeholder' => '', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Reporter Email ') + ) + ); + ?> + | ++ Form->control( + 'start_date', + array( + 'div' => false, + 'type' => 'text', + 'class' => 'control-small unauthorized_index', + 'after' => '-to-', + 'label' => array('class' => 'required', 'text' => 'Report Dates'), + 'placeHolder' => 'Start Date' + ) + ); + echo $this->Form->control( + 'end_date', + array( + 'div' => false, + 'type' => 'text', + 'class' => 'control-small unauthorized_index', + 'after' => ' + clear!', + 'label' => false, + 'placeHolder' => 'End Date' + ) + ); + ?> + | +|||
+ Form->control(
+ 'drug_name',
+ array(
+ 'div' => false,
+ 'placeholder' => 'drug name',
+ 'class' => 'span12 unauthorized_index',
+ 'label' => array('class' => 'required', 'text' => 'Drug Name')
+ )
+ );
+ ?>
+
+ Serious?+ Form->control('serious', array( + 'options' => array('1' => 'Yes', '0' => 'No'), + 'legend' => false, + 'type' => 'radio', + 'label' => false + )); + ?> + |
+ + Form->control( + 'inn', + array('div' => false, 'placeholder' => 'Brand Name', 'class' => 'span12 unauthorized_index', 'label' => array('class' => 'required', 'text' => 'Brand Name')) + ); + ?> + | ++ Form->control( + 'sender_unique_identifier', + array('div' => false, 'placeholder' => 'eg KE-xx', 'class' => 'span12 unauthorized_index', 'label' => array('class' => 'required', 'text' => 'Sender Identifier')) + ); + ?> + | ++ Form->control( + 'sender_organization', + array('div' => false, 'placeholder' => 'Sender\'s Org', 'class' => 'span12 unauthorized_index', 'label' => array('class' => 'required', 'text' => 'Sender\'s Organization')) + ); + ?> + + + | +|||
+ | + Form->control('pages', array( + 'type' => 'select', + 'div' => false, + 'class' => 'control-small', + // 'selected' => $this->request->params['paging']['limit'], + 'empty' => true, + // 'options' => $page_options, + 'label' => false, + )); + ?> + | ++ + | ++ | + Form->button(' Search', array( + 'escapeTitle' => false, + 'class' => 'btn btn-primary', + 'div' => 'control-group', + 'div' => false, + 'formnovalidate' => 'formnovalidate', + 'style' => array('margin-bottom: 5px') + )); + ?> + | ++ Html->link(' Clear', array('action' => 'index'), array('class' => 'btn', 'escape' => false, 'style' => array('margin-bottom: 5px'))); + ?> + | ++ Html->link(' Excel', array('action' => 'index', 'ext' => 'csv', '?' => $this->request->query), array('class' => 'btn btn-success', 'escape' => false)); + ?> + | +
+ Paginator->counter( + __('Page {{page}} of {{pages}}, + showing {{current}} Ce2bs out of + {{count}} total, starting on record {{start}}, + ending on {{end}}') + ); + ?> +
+ Form->end(); ?> + +Paginator->sort('id'); ?> | +Paginator->sort('reference_no'); ?> | +Paginator->sort('company_name'); ?> | +Paginator->sort('reporter_email'); ?> | +Paginator->sort('e2b_file_type'); ?> | +Paginator->sort('created'); ?> | +Paginator->sort('submitted_date', 'Date Submitted'); ?> | ++ |
---|---|---|---|---|---|---|---|
+ | + 1) { + echo $this->Html->link($ce2b['reference_no'], array('action' => 'view', $ce2b['id']), array('escape' => false, 'class' => 'text-' . ((isset($ce2b['serious']) && $ce2b['serious'] == '1') ? 'error' : 'success'))); + } else { + echo $this->Html->link($ce2b['reference_no'], array('action' => (($prefix == 'reporter') ? 'edit' : 'view'), $ce2b['id']), array('escape' => false, 'class' => 'text-' . ((isset($ce2b['serious']) && $ce2b['serious'] == '1') ? 'error' : 'success'))); + } + ?> + | +Initial: "; + echo $this->Html->link( + '', + array('action' => 'view', $ce2b['ce2b_id']), + array('escape' => false) + ); + } + + + ?> | ++ | + | + | + | + 1) { + echo $this->Html->link( + ' View ', + array('controller' => 'ce2bs', 'action' => 'view', $ce2b['id']), + array('escape' => false) + ); + echo " "; + if ($prefix == 'reporter' and $this->request->getSession()->read('Auth.User.user_type') != 'Public Health Program') echo $this->Form->postLink(' Followup ', array('controller' => 'ce2bs', 'action' => 'followup', $ce2b['id']), array('escape' => false), __('Add a followup report?')); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer')) echo $this->Form->postLink(' 2 ', array('controller' => 'ce2bs', 'action' => 'download', $ce2b['id'], 'ext' => 'xml', 'manager' => false), array('escape' => false), __('Download E2B?')); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && empty($ce2b['vigiflow_ref']) && $ce2b['copied'] == 2) echo $this->Html->link( + ' Vigiflow ', + array('controller' => 'ce2bs', 'action' => 'vigiflow', $ce2b['id'], 'manager' => false), + array('escape' => false) + ); + + //Create a follow up as a manager + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $ce2b['user_id'] == $this->request->getSession()->read('Auth.User.id')) echo $this->Form->postLink(' Followup ', array('controller' => 'ce2bs', 'action' => 'followup', $ce2b['id']), array('escape' => false), __('Add a followup report?')); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $ce2b['copied'] == 2) echo $this->Html->link( + ' Edit ', + array('controller' => 'ce2bs', 'action' => 'edit', $ce2b['id']), + array('escape' => false) + ); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $ce2b['copied'] == 0) echo $this->Form->postLink(' Copy ', array('controller' => 'ce2bs', 'action' => 'copy', $ce2b['id']), array('escape' => false), __('Create a clean copy to edit?')); + + echo " "; + echo $this->Html->link( + ' PDF ', + array('controller' => 'ce2bs', 'action' => 'view', 'ext' => 'pdf', $ce2b['id']), + array('escape' => false) + ); + if (($prefix == 'manager' || $prefix == 'reviewer')) { + echo $this->Html->link( + ' Archive ', + array('controller' => 'ce2bs', 'action' => 'archive', $ce2b['id']), + array('escape' => false), + __('Are you sure you want to archive the report?') + ); + } + + // PDF Download + + } else { + if ($prefix == 'reporter') echo $this->Html->link( + ' Edit ', + array('controller' => 'ce2bs', 'action' => 'edit', $ce2b['id']), + array('escape' => false) + ); + echo " "; + if (($prefix == 'reporter' || $prefix == 'manager') && $ce2b['submitted'] == 0) { + echo " "; + echo $this->Form->postLink(' Delete ', array('controller' => 'ce2bs', 'action' => 'delete', $ce2b['id']), array('escape' => false), __('Are you sure you want to delete this report? + Note: This action cannot be undone.')); + } + echo " "; + if ($prefix == 'manager' || $prefix == 'reviewer') echo $this->Html->link( + ' View ', + array('controller' => 'ce2bs', 'action' => 'view', $ce2b['id']), + array('escape' => false) + ); + } + ?> + | +
Form->control('pages', array( - 'type' => 'select', 'div' => false, 'class' => 'control-small', - // 'selected' => $this->request->params['paging']['limit'], + 'type' => 'select', + 'div' => false, + 'class' => 'control-small', + // 'selected' => $this->request->params['paging']['limit'], 'empty' => true, 'options' => $page_options, 'label' => false, @@ -150,8 +155,10 @@ | Form->button(' Search', array( - 'escapeTitle'=>false, - 'class' => 'btn btn-primary', 'div' => 'control-group', 'div' => false, + 'escapeTitle' => false, + 'class' => 'btn btn-primary', + 'div' => 'control-group', + 'div' => false, 'formnovalidate' => 'formnovalidate', 'style' => array('margin-bottom: 5px') )); @@ -170,27 +177,27 @@ |
Paginator->counter( - __('Page {{page}} of {{pages}}, + echo $this->Paginator->counter( + __('Page {{page}} of {{pages}}, showing {{current}} Drugs out of {{count}} total, starting on record {{start}}, ending on {{end}}') - ); + ); ?>
Form->end(); ?>Paginator->sort('id'); ?> | @@ -209,20 +216,20 @@||||||||||
---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | - | - | - | |
+ | + | + | + | + | + | + | + | + | + | + |
+ Form->control( + 'reference_no', + array( + 'div' => false, + 'placeholder' => 'saefi/2020', + 'class' => 'span12', + 'label' => array('class' => 'required', 'text' => 'Reference No.') + ) + ); + ?> + | ++ + | ++ Form->control( + 'start_date', + array( + 'div' => false, + 'type' => 'text', + 'class' => 'control-small unauthorized_index', + 'after' => '-to-', + 'label' => array('class' => 'required', 'text' => 'Report Dates'), + 'placeHolder' => 'Start Date' + ) + ); + echo $this->Form->control( + 'end_date', + array( + 'div' => false, + 'type' => 'text', + 'class' => 'control-small unauthorized_index', + 'after' => ' + clear!', + 'label' => false, + 'placeHolder' => 'End Date' + ) + ); + ?> + | ++ + | ++ + | ++ Form->control( + 'county_id', + array( + 'div' => false, + 'empty' => true, + 'class' => 'control-small', + 'label' => array('class' => 'required', 'text' => 'County') + ) + ); + ?> + | +|
+ + | ++ + | ++ + | ++ + | ++ + | ++ + | +|
+ request->getSession()->read('Auth.User.user_type') != 'Public Health Program') echo $this->Form->control( + 'patient_name', + array( + 'div' => false, + 'placeholder' => 'Patient name', + 'class' => 'span12 unauthorized_index', + 'label' => array('class' => 'required', 'text' => 'Patient Name') + ) + ); + ?> + | +
+ Report Type?+ Form->control('report_type', array( + 'options' => array('Initial' => 'Initial', 'Followup' => 'Followup'), + 'legend' => false, + 'type' => 'radio', + 'label' => false, + )); + ?> + |
+ + + | ++ + | ++ Form->control( + 'reporter', + array('div' => false, 'class' => 'span12 unauthorized_index', 'label' => array('class' => 'required', 'text' => 'Reporter'), 'placeholder' => 'Name/Email') + ); + ?> + | ++ Form->control( + 'designation_id', + array( + 'div' => false, + 'empty' => true, + 'class' => 'control-small', + 'label' => array('class' => 'required', 'text' => 'Designation') + ) + ); + ?> + | +
+ Gender+ Form->control('gender', array( + 'options' => array('Male' => 'Male', 'Female' => 'Female', 'Unknown' => 'Unknown'), + 'legend' => false, + 'type' => 'radio', + 'label' => false, + )); + ?> + |
+
+ Report Status+ Form->control('submitted', array( + 'options' => array('1' => 'UnSubmitted', '2' => 'Submitted'), + 'legend' => false, + 'type' => 'radio', + 'label' => false, + )); + ?> + |
+ Form->control('health_program', array( + 'type' => 'select', + 'options' => [ + 'Malaria program' => 'Malaria program', + 'National Vaccines and immunisation program' => 'National Vaccines and immunisation program', + 'Neglected tropical diseases program' => 'Neglected tropical diseases program', + 'MNCAH Priority Medicines' => 'MNCAH Priority Medicines', + 'TB program' => 'TB program', + 'NASCOP program' => 'NASCOP program', + 'Cancer/Oncology program' => 'Cancer/Oncology program' + ], + 'empty' => true, + 'label' => array('class' => 'control-label', 'text' => 'Public Health Program'), + 'class' => 'control-xlarge' + )); ?> + | ++ | + | + | + | + |
+ | + Form->control('pages', array( + 'type' => 'select', + 'div' => false, + 'class' => 'control-small', + 'empty' => true, + 'options' => $page_options, + 'label' => false, + )); + ?> + | ++ + | ++ | + Form->button(' Search', array( + 'escapeTitle' => false, + 'class' => 'btn btn-primary', + 'div' => 'control-group', + 'div' => false, + 'formnovalidate' => 'formnovalidate', + 'style' => array('margin-bottom: 5px') + )); + ?> + | ++ Html->link(' Clear', array('action' => 'index'), array('class' => 'btn', 'escape' => false, 'style' => array('margin-bottom: 5px'))); + ?> + | ++ Html->link(' Excel', array('action' => 'index', 'ext' => 'csv', '?' => $this->request->query), array('class' => 'btn btn-success', 'escape' => false)); + ?> + | +
+ Paginator->counter( + __('Page {{page}} of {{pages}}, + showing {{current}} Saefis out of + {{count}} total, starting on record {{start}}, + ending on {{end}}') + ); + ?> +
+ Form->end(); ?> + +Paginator->sort('id'); ?> | +Paginator->sort('reference_no'); ?> | +Paginator->sort('report_type'); ?> | +request->getSession()->read('Auth.User.user_type') != 'Public Health Program') ? $this->Paginator->sort('patient_name') : $this->Paginator->sort('gender'); ?> | +Paginator->sort('reporter_date', 'Date reported'); ?> | +Paginator->sort('created', 'Date created'); ?> | +Paginator->sort('submitted_date', 'Date Submitted'); ?> | ++ |
---|---|---|---|---|---|---|---|
+ | + 1) { + echo $this->Html->link($aefi['reference_no'], array('action' => 'view', $aefi['id']), array('escape' => false, 'class' => 'text-' . ((isset($aefi['serious']) && $aefi['serious'] == 'Yes') ? 'error' : 'success'))); + } else { + echo $this->Html->link($aefi['reference_no'], array('action' => (($prefix == 'reporter') ? 'edit' : 'view'), $aefi['id']), array('escape' => false, 'class' => 'text-' . ((isset($aefi['serious']) && $aefi['serious'] == 'Yes') ? 'error' : 'success'))); + } + ?> | +Initial: "; + echo $this->Html->link( + '', + array('action' => 'view', $aefi['aefi_id']), + array('escape' => false) + ); + } + ?> + | +request->getSession()->read('Auth.User.user_type') != 'Public Health Program') ? h($aefi['patient_name']) : $aefi['gender']; ?> | + ++ | + | + | + 1) { + echo $this->Html->link( + ' View ', + array('controller' => 'saefis', 'action' => 'view', $aefi['id']), + array('escape' => false) + ); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $aefi['copied'] == 2) echo $this->Html->link( + ' Edit ', + array('controller' => 'saefis', 'action' => 'edit', $aefi['id']), + array('escape' => false) + ); + echo " "; + if (($prefix == 'manager' || $prefix == 'reviewer') && $aefi['copied'] == 0) echo $this->Form->postLink(' Copy ', array('controller' => 'saefis', 'action' => 'copy', $aefi['id']), array('escape' => false), __('Create a clean copy to edit?')); + echo $this->Html->link( + ' Archive ', + array('controller' => 'saefis', 'action' => 'archive', $aefi['id']), + array('escape' => false), + __('Are you sure you want to archive the report?') + ); + } else { + if ($prefix == 'reporter' and $this->request->getSession()->read('Auth.User.user_type') != 'Public Health Program') echo $this->Html->link( + ' Edit ', + array('controller' => 'saefis', 'action' => 'edit', $aefi['id']), + array('escape' => false) + ); + } + + + echo " "; + echo $this->Html->link( + ' PDF ', + array('action' => 'view', 'ext' => 'pdf', $aefi['id']), + array('escape' => false) + ); + // Check if the user is a reporter and the report is not submitted + if (($prefix == 'reporter' || $prefix == 'manager') && $aefi['submitted'] == 0 && $this->request->getSession()->read('Auth.User.user_type') != 'Public Health Program') { + echo " "; + echo $this->Form->postLink(' Delete ', array('controller' => 'saefis', 'action' => 'delete', $aefi['id']), array('escape' => false), __('Are you sure you want to delete this report? + Note: This action cannot be undone.')); + } + ?> + | +