From d5b8204e57ae88b80a0c4823a0b52ebaff255988 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 2 Aug 2023 10:35:12 +0000 Subject: [PATCH] Added Orientation to views/controllers/model for paper --- application/models/Labels_model.php | 2 ++ application/views/labels/createpaper.php | 13 +++++++++++++ application/views/labels/editpaper.php | 11 +++++++++++ 3 files changed, 26 insertions(+) diff --git a/application/models/Labels_model.php b/application/models/Labels_model.php index 27b8c188..ac2c3e61 100644 --- a/application/models/Labels_model.php +++ b/application/models/Labels_model.php @@ -32,6 +32,7 @@ class Labels_model extends CI_Model { 'metric' => xss_clean($this->input->post('measurementType', true)), 'width' => xss_clean($this->input->post('width', true)), 'height' => xss_clean($this->input->post('height', true)), + 'orientation' => xss_clean($this->input->post('orientation', true)), 'last_modified' => date('Y-m-d H:i:s'), ); @@ -182,6 +183,7 @@ class Labels_model extends CI_Model { 'metric' => xss_clean($this->input->post('measurementType', true)), 'width' => xss_clean($this->input->post('width', true)), 'height' => xss_clean($this->input->post('height', true)), + 'orientation' => xss_clean($this->input->post('orientation', true)), 'last_modified' => date('Y-m-d H:i:s'), ); diff --git a/application/views/labels/createpaper.php b/application/views/labels/createpaper.php index 91d47a0b..ee721d98 100644 --- a/application/views/labels/createpaper.php +++ b/application/views/labels/createpaper.php @@ -33,6 +33,8 @@ + +
@@ -45,6 +47,17 @@ Total height of paper
+
+ +
+ +
+ + Orientation of paper +
diff --git a/application/views/labels/editpaper.php b/application/views/labels/editpaper.php index 8bb02108..cddfb59a 100644 --- a/application/views/labels/editpaper.php +++ b/application/views/labels/editpaper.php @@ -47,6 +47,17 @@ +
+ +
+ + Orientation of paper +
+
+