diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index c75de83e5..c7ac10d82 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -11,7 +11,6 @@ class Customers extends Person_controller function index($limit_from=0) { $data['controller_name'] = $this->get_controller_name(); - $data['form_width'] = $this->get_form_width(); $lines_per_page = $this->Appconfig->get('lines_per_page'); $customers = $this->Customer->get_all($lines_per_page, $limit_from); $data['links'] = $this->_initialize_pagination($this->Customer, $lines_per_page, $limit_from); @@ -210,13 +209,6 @@ class Customers extends Person_controller echo json_encode( array('success'=>$success,'message'=>$msg) ); } - - /* - get the width for the add/edit form - */ - function get_form_width() - { - return 400; - } + } ?> \ No newline at end of file diff --git a/application/controllers/Employees.php b/application/controllers/Employees.php index 4ebf46f79..942234cba 100644 --- a/application/controllers/Employees.php +++ b/application/controllers/Employees.php @@ -11,7 +11,6 @@ class Employees extends Person_controller function index($limit_from=0) { $data['controller_name'] = $this->get_controller_name(); - $data['form_width'] = $this->get_form_width(); $lines_per_page = $this->Appconfig->get('lines_per_page'); $employees = $this->Employee->get_all($lines_per_page, $limit_from); $data['links'] = $this->_initialize_pagination($this->Employee, $lines_per_page, $limit_from); @@ -128,12 +127,5 @@ class Employees extends Person_controller echo json_encode(array('success'=>false,'message'=>$this->lang->line('employees_cannot_be_deleted'))); } } - /* - get the width for the add/edit form - */ - function get_form_width() - { - return 750; - } } ?> \ No newline at end of file diff --git a/application/controllers/Giftcards.php b/application/controllers/Giftcards.php index ab5f85545..4e3c0a123 100644 --- a/application/controllers/Giftcards.php +++ b/application/controllers/Giftcards.php @@ -12,7 +12,6 @@ class Giftcards extends Secure_area implements iData_controller function index($limit_from=0) { $data['controller_name'] = $this->get_controller_name(); - $data['form_width'] = $this->get_form_width(); $lines_per_page = $this->Appconfig->get('lines_per_page'); $giftcards = $this->Giftcard->get_all($lines_per_page, $limit_from); $data['links'] = $this->_initialize_pagination($this->Giftcard, $lines_per_page, $limit_from); @@ -117,13 +116,5 @@ class Giftcards extends Secure_area implements iData_controller echo json_encode(array('success'=>false, 'message'=>$this->lang->line('giftcards_cannot_be_deleted'))); } } - - /* - get the width for the add/edit form - */ - function get_form_width() - { - return 360; - } } ?> diff --git a/application/controllers/Item_kits.php b/application/controllers/Item_kits.php index 06d56905d..f582288c0 100644 --- a/application/controllers/Item_kits.php +++ b/application/controllers/Item_kits.php @@ -29,7 +29,6 @@ class Item_kits extends Secure_area implements iData_controller function index($limit_from=0) { $data['controller_name'] = $this->get_controller_name(); - $data['form_width'] = $this->get_form_width(); $lines_per_page = $this->Appconfig->get('lines_per_page'); $item_kits = $this->Item_kit->get_all($lines_per_page, $limit_from); @@ -186,13 +185,5 @@ class Item_kits extends Secure_area implements iData_controller $data['barcode_config'] = $barcode_config; $this->load->view("barcode_sheet", $data); } - - /* - get the width for the add/edit form - */ - function get_form_width() - { - return 400; - } } ?> \ No newline at end of file diff --git a/application/controllers/Items.php b/application/controllers/Items.php index 65264ac87..9b4689cdb 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -16,7 +16,6 @@ class Items extends Secure_area implements iData_controller $stock_locations = $this->Stock_location->get_allowed_locations(); $data['controller_name'] = $this->get_controller_name(); - $data['form_width'] = $this->get_form_width(); $lines_per_page = $this->Appconfig->get('lines_per_page'); $items = $this->Item->get_all($stock_location, $lines_per_page, $limit_from); $data['links'] = $this->_initialize_pagination($this->Item, $lines_per_page, $limit_from); @@ -786,12 +785,5 @@ class Items extends Secure_area implements iData_controller echo json_encode( array('success'=>$success, 'message'=>$msg) ); } - /* - get the width for the add/edit form - */ - function get_form_width() - { - return 450; - } } ?> diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index a96ad8b76..31512b947 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -79,16 +79,6 @@ class Sales extends Secure_area echo $data_row; } - /** - * - * Get the width for the add/edit form. - * @return number The form width - */ - function get_form_width() - { - return 400; - } - /* Returns Sales table data rows. This will be called with AJAX. */ diff --git a/application/controllers/Suppliers.php b/application/controllers/Suppliers.php index 7be159a62..48b4cac98 100644 --- a/application/controllers/Suppliers.php +++ b/application/controllers/Suppliers.php @@ -11,7 +11,6 @@ class Suppliers extends Person_controller function index($limit_from=0) { $data['controller_name'] = $this->get_controller_name(); - $data['form_width'] = $this->get_form_width(); $lines_per_page = $this->Appconfig->get('lines_per_page'); $suppliers = $this->Supplier->get_all($lines_per_page); @@ -127,13 +126,5 @@ class Suppliers extends Person_controller $data_row=get_supplier_data_row($this->Supplier->get_info($person_id),$this); echo $data_row; } - - /* - get the width for the add/edit form - */ - function get_form_width() - { - return 360; - } } ?> \ No newline at end of file diff --git a/application/controllers/interfaces/Idata_controller.php b/application/controllers/interfaces/Idata_controller.php index e05d493d0..eba816219 100644 --- a/application/controllers/interfaces/Idata_controller.php +++ b/application/controllers/interfaces/Idata_controller.php @@ -12,6 +12,5 @@ interface iData_controller public function view($data_item_id=-1); public function save($data_item_id=-1); public function delete(); - public function get_form_width(); } ?> \ No newline at end of file diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index f1c17f59e..b76fab130 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -64,7 +64,6 @@ function get_sales_manage_sale_data_row($sale, $controller) { $CI =& get_instance(); $controller_name = $CI->uri->segment(1); - $width = $controller->get_form_width(); $table_data_row='