From 96bb137f6b263483fcae62b0c1c6c22f0d983a6d Mon Sep 17 00:00:00 2001 From: itskiprotich Date: Mon, 28 Oct 2024 10:37:24 +0300 Subject: [PATCH] UPD: PQHPT form --- src/Controller/Reporter/PqmpsController.php | 2 +- src/Controller/Reporter/SadrsController.php | 8 +- templates/Manager/Pqmps/index.php | 2 +- templates/Manager/Users/dashboard.php | 2 +- templates/Reporter/Pqmps/edit.php | 129 +-- templates/Reporter/Pqmps/index.php | 2 +- templates/Reporter/Users/dashboard.php | 2 +- templates/element/aefi/aefi_edit.php | 2 +- templates/element/help/product_problems.php | 63 ++ templates/element/menus/manager_menu.php | 2 +- templates/element/menus/reporter_menu.php | 2 +- templates/element/pqmp/pqmp_edit.php | 1097 +++++++++++++++++++ templates/element/pqmp/pqmp_index.php | 4 +- templates/element/sadr/sadr_edit.php | 5 +- webroot/js/padr.js | 2 +- webroot/js/pqmp.js | 8 +- webroot/js/sadrs.js | 2 +- 17 files changed, 1187 insertions(+), 147 deletions(-) create mode 100644 templates/element/help/product_problems.php create mode 100644 templates/element/pqmp/pqmp_edit.php diff --git a/src/Controller/Reporter/PqmpsController.php b/src/Controller/Reporter/PqmpsController.php index 25820aaa9d..5aee865894 100755 --- a/src/Controller/Reporter/PqmpsController.php +++ b/src/Controller/Reporter/PqmpsController.php @@ -83,7 +83,7 @@ public function add() ]; $report = $this->Pqmps->patchEntity($report, $data); if ($this->Pqmps->save($report)) { - $this->Flash->success(__('The Poor-Quality Health Products and Technologies has been created')); + $this->Flash->success(__('The PQHPT has been created')); $this->redirect(array('action' => 'edit', $report->id)); } } diff --git a/src/Controller/Reporter/SadrsController.php b/src/Controller/Reporter/SadrsController.php index 377ff6b055..071b0e4d93 100755 --- a/src/Controller/Reporter/SadrsController.php +++ b/src/Controller/Reporter/SadrsController.php @@ -141,10 +141,10 @@ public function edit($id = null) $sadr = $this->Sadrs->patchEntity($sadr, $this->request->getData(), [ 'validate' => $validate, 'associated' => [ - 'Attachments', - 'SadrReaction', - 'SadrListOfDrugs', - 'SadrListOfMedicines' + 'Attachments'=>[ 'validate' => $validate], + 'SadrReaction'=>[ 'validate' => $validate], + 'SadrListOfDrugs'=>[ 'validate' => $validate], + 'SadrListOfMedicines'=>[ 'validate' => $validate] ] ]); diff --git a/templates/Manager/Pqmps/index.php b/templates/Manager/Pqmps/index.php index 8ea6ef8895..e5fc3099d2 100755 --- a/templates/Manager/Pqmps/index.php +++ b/templates/Manager/Pqmps/index.php @@ -1,5 +1,5 @@ assign('Poor-Quality Health Products and Technologies', 'active'); + $this->assign('PQHPT', 'active'); ?> diff --git a/templates/Manager/Users/dashboard.php b/templates/Manager/Users/dashboard.php index 45a4749675..2a4e141f4d 100755 --- a/templates/Manager/Users/dashboard.php +++ b/templates/Manager/Users/dashboard.php @@ -45,7 +45,7 @@ ?>
-
Poor-Quality Health Products and Technologies
+
PQHPT
'; foreach ($pqmps as $pqmp) { diff --git a/templates/Reporter/Pqmps/edit.php b/templates/Reporter/Pqmps/edit.php index 1e0bc0d15d..fd194cd98f 100755 --- a/templates/Reporter/Pqmps/edit.php +++ b/templates/Reporter/Pqmps/edit.php @@ -1,126 +1,7 @@ assign('PQHPT', 'active'); +?> + +element('pqmp/pqmp_edit'); ?> -
- -
-
- Form->create($pqmp) ?> -
- - Form->control('user_id', ['options' => $users, 'empty' => true]); - echo $this->Form->control('pqmp_id'); - echo $this->Form->control('county_id', ['options' => $counties, 'empty' => true]); - echo $this->Form->control('sub_county_id', ['options' => $subCounties, 'empty' => true]); - echo $this->Form->control('country_id', ['options' => $countries, 'empty' => true]); - echo $this->Form->control('designation_id', ['options' => $designations, 'empty' => true]); - echo $this->Form->control('reference_no'); - echo $this->Form->control('facility_name'); - echo $this->Form->control('facility_code'); - echo $this->Form->control('facility_address'); - echo $this->Form->control('facility_phone'); - echo $this->Form->control('brand_name'); - echo $this->Form->control('generic_name'); - echo $this->Form->control('batch_number'); - echo $this->Form->control('manufacture_date'); - echo $this->Form->control('expiry_date', ['empty' => true]); - echo $this->Form->control('receipt_date', ['empty' => true]); - echo $this->Form->control('name_of_manufacturer'); - echo $this->Form->control('country_of_origin'); - echo $this->Form->control('supplier_name'); - echo $this->Form->control('supplier_address'); - echo $this->Form->control('product_formulation'); - echo $this->Form->control('product_formulation_specify'); - echo $this->Form->control('colour_change'); - echo $this->Form->control('separating'); - echo $this->Form->control('powdering'); - echo $this->Form->control('caking'); - echo $this->Form->control('moulding'); - echo $this->Form->control('odour_change'); - echo $this->Form->control('mislabeling'); - echo $this->Form->control('incomplete_pack'); - echo $this->Form->control('therapeutic_ineffectiveness'); - echo $this->Form->control('particulate_matter'); - echo $this->Form->control('complaint_other'); - echo $this->Form->control('complaint_other_specify'); - echo $this->Form->control('complaint_description'); - echo $this->Form->control('require_refrigeration'); - echo $this->Form->control('product_at_facility'); - echo $this->Form->control('returned_by_client'); - echo $this->Form->control('stored_to_recommendations'); - echo $this->Form->control('other_details'); - echo $this->Form->control('comments'); - echo $this->Form->control('reporter_name'); - echo $this->Form->control('reporter_email'); - echo $this->Form->control('reporter_phone'); - echo $this->Form->control('contact_number'); - echo $this->Form->control('adverse_reaction'); - echo $this->Form->control('reaction_comments'); - echo $this->Form->control('medication_error'); - echo $this->Form->control('emails'); - echo $this->Form->control('submitted'); - echo $this->Form->control('submitted_date', ['empty' => true]); - echo $this->Form->control('active'); - echo $this->Form->control('device'); - echo $this->Form->control('copied'); - echo $this->Form->control('archived'); - echo $this->Form->control('archived_date', ['empty' => true]); - echo $this->Form->control('notified'); - echo $this->Form->control('deleted'); - echo $this->Form->control('deleted_date', ['empty' => true]); - echo $this->Form->control('medicinal_product'); - echo $this->Form->control('blood_products'); - echo $this->Form->control('herbal_product'); - echo $this->Form->control('medical_device'); - echo $this->Form->control('cosmeceuticals'); - echo $this->Form->control('product_other'); - echo $this->Form->control('product_specify'); - echo $this->Form->control('product_vaccine'); - echo $this->Form->control('packaging'); - echo $this->Form->control('labelling'); - echo $this->Form->control('sampling'); - echo $this->Form->control('mechanism'); - echo $this->Form->control('electrical'); - echo $this->Form->control('device_data'); - echo $this->Form->control('software'); - echo $this->Form->control('environmental'); - echo $this->Form->control('failure_to_calibrate'); - echo $this->Form->control('results'); - echo $this->Form->control('readings'); - echo $this->Form->control('cold_chain'); - echo $this->Form->control('reporter_date', ['empty' => true]); - echo $this->Form->control('person_submitting'); - echo $this->Form->control('reporter_name_diff'); - echo $this->Form->control('reporter_designation_diff'); - echo $this->Form->control('reporter_email_diff'); - echo $this->Form->control('reporter_phone_diff'); - echo $this->Form->control('reporter_date_diff', ['empty' => true]); - echo $this->Form->control('assigned_to'); - echo $this->Form->control('assigned_by'); - echo $this->Form->control('assigned_date', ['empty' => true]); - ?> -
- Form->button(__('Submit')) ?> - Form->end() ?> -
-
-
diff --git a/templates/Reporter/Pqmps/index.php b/templates/Reporter/Pqmps/index.php index 8ea6ef8895..e5fc3099d2 100755 --- a/templates/Reporter/Pqmps/index.php +++ b/templates/Reporter/Pqmps/index.php @@ -1,5 +1,5 @@ assign('Poor-Quality Health Products and Technologies', 'active'); + $this->assign('PQHPT', 'active'); ?> diff --git a/templates/Reporter/Users/dashboard.php b/templates/Reporter/Users/dashboard.php index 835c565178..7279cfe51d 100755 --- a/templates/Reporter/Users/dashboard.php +++ b/templates/Reporter/Users/dashboard.php @@ -150,7 +150,7 @@
-
Poor-Quality Health Products and Technologies
+
PQHPT
'; foreach ($pqmps as $pqmp) { diff --git a/templates/element/aefi/aefi_edit.php b/templates/element/aefi/aefi_edit.php index dd626091f3..284d2dd35a 100644 --- a/templates/element/aefi/aefi_edit.php +++ b/templates/element/aefi/aefi_edit.php @@ -23,7 +23,7 @@ // )); ?>
-
+
Form->control('id', array()); diff --git a/templates/element/help/product_problems.php b/templates/element/help/product_problems.php new file mode 100644 index 0000000000..89cd3eefcc --- /dev/null +++ b/templates/element/help/product_problems.php @@ -0,0 +1,63 @@ +
+
+
+
+ +
+
+ +
+
+ EXPLANATION FOR PRODUCT PROBLEMS FOR MEDICAL DEVICES AND DIAGNOSTICS + +• Packaging – damaged, defective, suspect tampered +• Labelling– insufficient instructions for use, illegible +• Sampling – device doesn’t collect/transfer specimen +• Liquid – leak, splash +• Mechanical – misalignment, jam +• Electrical - unable to charge, power loss or fluctuation +• Data – capture, display, or storage affecting product functionality + +• Software – network, program, algorithm, or security affecting product functionality +• Environmental – noise, temperature, humidity/ moisture, fungal/bacterial growth, or dust affecting product functionality +• Failure to calibrate +• Results- Increased rate of invalid or unreturnable test results +• Reading-Obviously incorrect, inadequate or imprecise result or readings, Unable to obtain reading + +
+
+ +
+
+
+
+ +
+
+
+
+

How to Resize a Photo:

+

Right click the picture you want to save and open with `Microsoft office picture manager`.

+

Click on `Edit Pictures` and on the panel that appears on the left, click on `resize`

+

Select predefined width x height

+

In the drop down options, select the option `Web Large (640 x 480 px)` and click on ok

+

Save a copy of the resized photo (using `save as` option) and upload thenew copy

+
+
+ + + +
+
+
+
+
+
diff --git a/templates/element/menus/manager_menu.php b/templates/element/menus/manager_menu.php index 93a052ed17..c0d79fef3d 100755 --- a/templates/element/menus/manager_menu.php +++ b/templates/element/menus/manager_menu.php @@ -47,7 +47,7 @@ ); ?> -
  • +
  • Html->link( ' PQHPTs', diff --git a/templates/element/menus/reporter_menu.php b/templates/element/menus/reporter_menu.php index 5f3166f5b2..160a05f624 100755 --- a/templates/element/menus/reporter_menu.php +++ b/templates/element/menus/reporter_menu.php @@ -22,7 +22,7 @@ array('controller' => 'aefis', 'action'=>'index', 'prefix'=>'Reporter' ), array('escape' => false )); } ?>
  • -
  • +
  • request->getSession()->read('Auth.User.health_program')!="Cancer/Oncology program"){ echo $this->Html->link(' PQHPTs', diff --git a/templates/element/pqmp/pqmp_edit.php b/templates/element/pqmp/pqmp_edit.php new file mode 100644 index 0000000000..4f222274ae --- /dev/null +++ b/templates/element/pqmp/pqmp_edit.php @@ -0,0 +1,1097 @@ +assign('PQHPT', 'active'); +echo $this->Html->script('jquery/combobox', array('inline' => false)); +echo $this->Html->script('pqmp', array('inline' => false)); +?> +Form->create($pqmp); +// 'Pqmp', array( +// 'type' => 'file', +// 'class' => 'form-horizontal', +// 'controlDefaults' => array( +// 'div' => array('class' => 'control-group'), +// 'label' => array('class' => 'control-label'), +// 'between' => '
    ', +// 'after' => '
    ', +// 'class' => '', +// 'format' => array('before', 'label', 'between', 'control', 'after','error'), +// 'error' => array('attributes' => array('class' => 'controls help-block')), +// ), +// )); +?> + + +
    +
    + + + + Form->control('id'); + echo $this->Form->control('Pqmp.reference_no', array('type' => 'hidden')); + ?> + +

    (FOM001/MIP/PMS/SOP/001)

    +
    +
    + Html->image('confidence.png', array('alt' => 'in confidence', 'class' => 'pull-right')); + echo $this->Html->image('coa.png', array('alt' => 'COA', 'style' => 'margin-left: 45%;')); + ?> +
    +

    MINISTRY OF HEALTH

    +
    PHARMACY AND POISONS BOARD
    +
    P.O. Box 27663-00506 NAIROBI
    +
    Tel: +254 709 770 100/+254 709 770 xxx (Replace xxx with extension)
    +
    Email: pv@pharmacyboardkenya.org
    +
    FORM FOR REPORTING SUSPECTED POOR-QUALITY MEDICAL PRODUCTS AND HEALTH TECHNOLOGIES
    +
    +
    +
    + +
    +
    +
    +
    +
    Form ID:
    +
    Important Unique Form ID
    +
    +
    +
    + +
    Product category (Tick appropriate box)
    +
    +
    + Form->control('medicinal_product', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Medicinal product'), + 'div' => false, + 'class' => 'make_radio', + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('blood_products', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Blood and blood products'), + 'div' => false, + 'class' => 'make_radio', + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('herbal_product', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Herbal product '), + 'div' => false, + 'class' => 'make_radio', + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('medical_device', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Medical device'), + 'div' => false, + 'class' => 'make_radio', + 'hiddenField' => false, + 'between' => ' + ', + )); + + ?> +
    +
    + Form->control('product_vaccine', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Vaccine'), + 'div' => false, + 'class' => 'make_radio', + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('cosmeceuticals', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Cosmeceuticals'), + 'div' => false, + 'class' => 'make_radio', + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('product_other', array( + 'type' => 'checkbox', + 'label' => array('text'=>' Others'), + 'div' => false, + 'class' => 'make_radio ppo', + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('product_specify', array( + 'label' => false, + 'placeholder' => '(If others, specify)', + 'div' => false, + 'between' => false, + 'after' => false, + 'class' => 'pposp', + 'disabled' => true + )); + ?> +
    +
    +
    + +
    +
    + Form->control('facility_name', array('label' => array('class' => 'control-label', 'text' => 'Name of Facility'),)); + echo $this->Form->control('facility_address', array('label' => array('class' => 'control-label', 'text' => 'Facility Address'),)); + echo $this->Form->control('facility_code', array('label' => array('class' => 'control-label', 'text' => 'Facility Code'),)); + ?> +
    +
    + Form->control('facility_phone', array('label' => array('class' => 'control-label', 'text' => 'Facility Telephone'),)); + echo $this->Form->control('county_id', array( + 'label' => array('class' => 'control-label required', 'text' => 'COUNTY '), + 'empty' => true, + 'between' => '
    ', + )); + echo $this->Form->control('sub_county_id', array( + 'options' => $subCounties, + 'label' => array('class' => 'control-label'), + 'empty' => true, + 'between' => '
    ', + )); + // print_r($sub_counties); + ?> +
    +
    +
    + +
    +
    +
    PRODUCT IDENTITY
    +
    +
    + +
    +
    + Form->control('brand_name', array( + 'label' => array('class' => 'control-label required', 'text' => 'Brand Name' . ' * ', 'escape' => false), + 'class' => 'autoComblete2' + )); + echo $this->Form->control('batch_number', array('label' => array('class' => 'control-label required', 'text' => 'Batch/Lot Number'),)); + + + echo $this->Form->control('manufacture_date', array( + 'type' => 'date', + 'dateFormat' => 'DMY', + 'minYear' => date('Y') - 100, + 'maxYear' => date('Y'), + 'empty' => true, + 'empty' => array('day' => '(choose day)', 'month' => '(choose month)', 'year' => '(choose year)'), + 'label' => array('class' => 'control-label required', 'text' => 'Date of Manufacture'), + 'after' => '

    Date, Month & Year or Year of Manufacture

    ', + 'class' => ' autosave-ignore ', + )); + + echo $this->Form->control('name_of_manufacturer', array('label' => array('class' => 'control-label required', 'text' => 'Name of Manufacturer' . ' * ', 'escape' => false),)); + echo $this->Form->control('supplier_name', array('label' => array('class' => 'control-label', 'text' => 'Name of Distributor / Supplier'),)); + ?> +
    +
    + Form->control( + 'generic_name', + array( + 'label' => array('class' => 'control-label required', 'text' => 'Generic Name'), + 'class' => ' autoComblete' + ) + ); + + echo $this->Form->control('expiry_date', array( + 'div' => array('class' => 'control-group'), + 'type' => 'text', + 'class' => 'date-pick-expire', + 'label' => array('class' => 'control-label required', 'text' => 'Date of Expiry' . ' * ', 'escape' => false), + 'after' => '

    Date format (dd-mm-yyyy)
    If day is missing, use last day of the month.

    ', + )); + + echo $this->Form->control('receipt_date', array( + 'div' => array('class' => 'control-group required'), + 'type' => 'text', + 'label' => array('class' => 'control-label required', 'text' => 'Date of Receipt' . ' '), + 'after' => '

    Date format (dd-mm-yyyy)

    ', + )); + + echo $this->Form->control('country_id', array( + 'empty' => true, + 'after' => '

    start typing for options

    ', + 'label' => array('class' => 'control-label', 'text' => 'Country of Origin'), + )); + + echo $this->Form->control('supplier_address', array('label' => array('class' => 'control-label', 'text' => 'Distributor/ Supplier\'s Address'),)); + ?> +
    +
    +
    + +
    +
    +
    +

    +
    (Tick appropriate box)
    +
    +
    +
    +
    +

    +
    (Tick appropriate box/boxes)
    +
    +
    +
    + +
    +
    + Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '
    + ', + 'options' => array('Oral tablets / capsules' => 'Oral tablets / capsules'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Oral suspension / syrup' => 'Oral suspension / syrup'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Injection' => 'Injection'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Diluent' => 'Diluent'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Powder for Reconstitution of Suspension' => 'Powder for Reconstitution of Suspension'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Powder for Reconstitution of Injection' => 'Powder for Reconstitution of Injection'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Eye drops' => 'Eye drops'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Ear drops' => 'Ear drops'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Nebuliser solution' => 'Nebuliser solution'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Cream / Ointment / Liniment / Paste' => 'Cream / Ointment / Liniment / Paste'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '', + 'options' => array('Anticoagulant' => 'Anticoagulant (for blood and blood products)'), + 'onclick' => '$("#PqmpProductFormulationSpecify").attr("disabled","disabled")', + )); + echo $this->Form->control('product_formulation', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), + 'before' => '', + 'options' => array('Other' => 'Other'), + 'onclick' => '$("#PqmpProductFormulationSpecify").removeAttr("disabled")', + )); + echo $this->Form->control('product_formulation_specify', array( + // 'label' => array('class' => 'control-label', 'text' => '(specify)'), + 'label' => false, + 'disabled' => true, + 'between' => false, + 'div' => false, + 'class' => 'span7', + 'placeholder' => 'If other, specify', + 'after' => '

    ' + )); + ?> +
    +
    + Form->control('colour_change', array( + 'label' => array('text' => ' Color Change'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('separating', array( + 'label' => array('text' => ' Separating'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('powdering', array( + 'label' => array('text' => ' Powdering / crumbling'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('caking', array( + 'label' => array('text' => ' Caking'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('moulding', array( + 'label' => array('text' => ' Moulding'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('odour_change', array( + 'label' => array('text' => ' Change of odour'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('mislabeling', array( + 'label' => array('text' => ' Mislabeling'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('incomplete_pack', array( + 'label' => array('text' => 'Incomplete pack'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('therapeutic_ineffectiveness', array( + 'label' => array('text' => ' Therapeutic ineffectiveness'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('particulate_matter', array( + 'label' => array('text' => ' Particulate matter in infusions/injectables '), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('complaint_other', array( + 'label' => array('text' => ' Other'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('complaint', array('type' => 'hidden', 'value' => '')); + echo $this->Form->error('Pqmp.complaint', array('wrap' => 'span', 'class' => 'control-group required error')); + echo $this->Form->control('complaint_other_specify', array( + 'class' => 'span6', + 'rows' => '3', + 'label' => false, + 'between' => false, + 'after' => '

    ', + 'disabled' => true, + 'placeholder' => 'If other, specify', + )); + ?> +
    +
    +
    + +
    +
    +
    +

    +
    +
    +
    +
    +
    + Form->control('packaging', array( + 'before' => '
    ', + 'label' => array('text'=>' Packaging'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('labelling', array( + 'label' => array('text'=>' Labelling'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('sampling', array( + 'label' => array('text'=>' Sampling'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('mechanism', array( + 'label' => array('text'=>' Mechanism'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('electrical', array( + 'label' => array('text'=>' Electrical'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('device_data', array( + 'label' => array('text'=>' Data'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' +
    ', + )); + ?> +
    +
    + Form->control('software', array( + 'before' => '
    ', + 'label' => array('text'=>' Software'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('environmental', array( + 'label' => array('text'=>' Environmental'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('failure_to_calibrate', array( + 'label' => array('text'=>' Failure to calibrate'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('results', array( + 'label' => array('text'=>' Results'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' + ', + )); + echo $this->Form->control('readings', array( + 'label' => array('text'=>' Readings'), + 'div' => false, + 'class' => false, + 'hiddenField' => false, + 'between' => ' +
    ', + )); + ?> +
    +
    +
    + +
    +
    + Form->control('complaint_description', array( + 'class' => 'span8', + 'rows' => '2', + 'label' => array('class' => 'control-label required', 'text' => 'Describe the complaint in detail' . ' * ', 'escape' => false), + 'after' => '

    ', + )); + + // echo $this->Form->control('cold_chain', array('class' => 'span8', 'rows' => '2', + // 'label' => array('class' => 'control-label required', 'text' => 'Was the cold chain maintained for both transportation and storage?'), + // 'after'=>'

    ', + // )); + echo "
    Was the cold chain maintained for both transportation and storage?
    "; + echo $this->Form->control('cold_chain', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'class' => 'cold_chain', + 'before' => '
    + ', + 'options' => array('Yes' => 'Yes'), + )); + echo $this->Form->control('cold_chain', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'class' => 'cold_chain', + 'before' => '', + 'options' => array('No' => 'No') + )); + echo $this->Form->control('cold_chain', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'class' => 'cold_chain', + 'format' => array('before', 'label', 'between', 'control', 'after', 'error'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'controls required error')), + 'before' => ' + + clear! + +
    ', + 'options' => array('Not sure' => 'Not sure'), + )); + + ?> +
  • +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    Does the product require refrigeration?
    +
    + Form->control('require_refrigeration', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '
    + +   ', + 'options' => array('Yes' => 'Yes'), + )); + echo $this->Form->control('require_refrigeration', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), + 'before' => '
    ', + 'options' => array('No' => 'No'), + )); + ?> +
    + Form->label('Other details if necessary'); + echo $this->Form->control('other_details', array( + 'class' => 'span10', + 'rows' => '4', + 'label' => false, + 'between' => false, + 'div' => false, + 'after' => '

    ', + 'placeholder' => 'Other details if necessary', + )); + ?> +
    +
    Was the product available at the facility?
    +
    + Form->control('product_at_facility', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '
    +   ', + 'options' => array('Yes' => 'Yes'), + )); + echo $this->Form->control('product_at_facility', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), + 'before' => '
    ', + 'options' => array('No' => 'No'), + )); + ?> +
    +
    Was the product dispensed and returned by client?
    +
    + Form->control('returned_by_client', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '
    +   ', + 'options' => array('Yes' => 'Yes'), + )); + echo $this->Form->control('returned_by_client', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), + 'before' => '
    ', + 'options' => array('No' => 'No'), + )); + ?> +
    +
    Was the product stored according to Manufacturer / MOH recommendations?
    +
    + Form->control('stored_to_recommendations', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'before' => '
    +   ', + 'options' => array('Yes' => 'Yes'), + )); + echo $this->Form->control('stored_to_recommendations', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), + 'before' => '
    ', + 'options' => array('No' => 'No'), + )); + ?> +
    + +
    +
    + +
    +
    + Form->control( + 'comments', + array( + 'class' => 'span8', + 'rows' => '2', + 'label' => array('class' => 'control-label required', 'text' => 'Comments (if any)'), + 'after' => '

    ', + ) + ); + + ?> +
    +
    +
    + + element('multi/attachments', ['model' => 'Pqmp', 'group' => 'attachment', 'examples' => '']); ?> + +
    +
    + Form->control('reporter_name', array( + 'div' => array('class' => 'control-group required'), + 'label' => array('class' => 'control-label required', 'text' => 'Name of Person Reporting *', 'escape' => false), + )); + echo $this->Form->control('reporter_email', array( + 'type' => 'email', + 'div' => array('class' => 'control-group required'), + 'label' => array('class' => 'control-label required', 'text' => 'E-MAIL ADDRESS *', 'escape' => false) + )); + + ?> +
    +
    + Form->control( + 'designation_id', + array('label' => array('class' => 'control-label required', 'text' => 'DESIGNATION' . ' *', 'escape' => false), 'empty' => true) + ); + echo $this->Form->control('reporter_phone', array( + 'div' => array('class' => 'control-group'), + 'label' => array('class' => 'control-label required', 'text' => 'PHONE NO.') + )); + + echo $this->Form->control('reporter_date', array( + 'type' => 'text', + 'class' => 'date-pick-field', + 'label' => array('class' => 'control-label required', 'text' => 'Date *', 'escape' => false), + )); + ?> +
    +
    + + + + + + + + +
    +
    Is the person submitting different from reporter? 
    +
    + Form->control('person_submitting', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'error' => false, + 'class' => 'person-submit', + 'before' => '
    + +   ', + 'options' => array('Yes' => 'Yes'), + )); + echo $this->Form->control('person_submitting', array( + 'type' => 'radio', + 'label' => false, + 'legend' => false, + 'div' => false, + 'hiddenField' => false, + 'class' => 'person-submit subNo', + 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), + 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), + 'before' => '
    ', + 'options' => array('No' => 'No'), + )); + ?> +
    + +
    +
    + Form->control('reporter_name_diff', array( + 'div' => array('class' => 'control-group required'), + 'class' => 'diff', + 'label' => array('class' => 'control-label required', 'text' => 'Name *', 'escape' => false), + )); + echo $this->Form->control('reporter_email_diff', array( + 'type' => 'email', + 'div' => array('class' => 'control-group required'), + 'class' => 'diff', + 'label' => array('class' => 'control-label required', 'text' => 'E-MAIL ADDRESS *', 'escape' => false) + )); + ?> +
    +
    + Form->control('reporter_designation_diff', array( + 'type' => 'select', + 'options' => $designations, + 'empty' => true, + 'class' => 'diff', + 'label' => array('class' => 'control-label required', 'text' => 'Designation' . ' *', 'escape' => false), + 'empty' => true + )); + echo $this->Form->control('reporter_phone_diff', array( + 'div' => array('class' => 'control-group'), + 'class' => 'diff', + 'label' => array('class' => 'control-label required', 'text' => 'PHONE NO.') + )); + echo $this->Form->control('reporter_date_diff', array( + 'type' => 'text', + 'class' => 'date-pick-field diff', + 'label' => array('class' => 'control-label required', 'text' => 'Date'), + )); + ?> +
    +
    + + element('help/product_problems'); ?> + Form->end(); + ?> + +
    +
    +
    +
    + Form->button(' Save Changes', array( + 'name' => 'saveChanges', + 'escapeTitle' => false, + 'class' => 'btn btn-success mapop', + 'formnovalidate' => 'formnovalidate', + 'id' => 'PqmpSaveChanges', + 'title' => 'Save & continue editing', + 'data-content' => 'Save changes to form without submitting it. + The form will still be available for further editing.', + 'div' => false, + )); + ?> +
    +
    + Form->button(' Submit', array( + 'name' => 'submitReport', + 'escapeTitle' => false, + 'onclick' => "return confirm('Are you sure you wish to submit the report?');", + 'class' => 'btn btn-primary btn-block mapop', + 'id' => 'SiteInspectionSubmitReport', + 'title' => 'Save and Submit Report', + 'data-content' => 'Submit report for peer review and approval.', + 'div' => false, + )); + + ?> +
    +
    + Html->link( + ' Download PDF', + array('action' => 'view', 'ext' => 'pdf', $this->request->getData('id')), + array( + 'escape' => false, + 'class' => 'btn btn-info btn-block mapop', + 'title' => 'Download PDF', + 'data-content' => 'Download the pdf version of the report', + ) + ); + ?> +
    +
    + Html->link( + ' Cancel', + array('controller' => 'users', 'action' => 'dashboard'), + array('escape' => false, 'class' => 'btn btn-danger btn-block') + ); + + ?> +
    +
    +
    + \ No newline at end of file diff --git a/templates/element/pqmp/pqmp_index.php b/templates/element/pqmp/pqmp_index.php index 331b1a28c6..6c763cc360 100755 --- a/templates/element/pqmp/pqmp_index.php +++ b/templates/element/pqmp/pqmp_index.php @@ -2,7 +2,7 @@ echo $this->Html->script('sadrs_index', array('inline' => false)); -$this->assign('Poor-Quality Health Products and Technologies', 'active'); +$this->assign('PQHPT', 'active'); ?>
    @@ -29,7 +29,7 @@
    -

    Poor-Quality Health Products and Technologies: Filter, Search, and view reports

    +

    PQHPT: Filter, Search, and view reports


    diff --git a/templates/element/sadr/sadr_edit.php b/templates/element/sadr/sadr_edit.php index 2abfaf03f5..74f7c66dec 100755 --- a/templates/element/sadr/sadr_edit.php +++ b/templates/element/sadr/sadr_edit.php @@ -1288,9 +1288,8 @@ 'label' => false, 'legend' => false, 'div' => false, - 'hiddenField' => false, - 'id' => 'PersonSubmittingNo', - 'class' => 'person-submit ', + 'hiddenField' => false, + 'class' => 'person-submit PersonSubmittingNo', 'format' => array('before', 'label', 'between', 'control', 'error', 'after'), 'error' => array('attributes' => array('wrap' => 'p', 'class' => 'required error')), 'before' => '