From c52b5b511837889f5d7bea71acff623a21c045c8 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sun, 13 Mar 2016 15:29:39 +0000 Subject: [PATCH] hide links, change print button id and add it to stylesheet, hide the print div (#160) --- application/helpers/table_helper.php | 6 +++--- application/views/sales/manage.php | 4 ++-- css/ospos.css | 2 +- css/ospos_print.css | 8 +++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index 743e7f0d4..23b128211 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -77,11 +77,11 @@ function get_sales_manage_sale_data_row($sale, $controller) $table_data_row.=''.$sale['payment_type'].''; $table_data_row.=''.$sale['invoice_number'].''; $table_data_row.=''; - $table_data_row.=anchor($controller_name."/edit/" . $sale['sale_id'] . "/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))); + $table_data_row.=anchor($controller_name."/edit/" . $sale['sale_id'] . "/width:$width", $CI->lang->line('common_edit'), array('class'=>'thickbox print_hide', 'title'=>$CI->lang->line('common_edit'))); $table_data_row.='    '; - $table_data_row.='' . $CI->lang->line('sales_show_receipt') . ''; + $table_data_row.=anchor($controller_name."/receipt/" . $sale['sale_id'], $CI->lang->line('sales_show_receipt'), array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_receipt'))); $table_data_row.='    '; - $table_data_row.='' . $CI->lang->line('sales_show_invoice') . ''; + $table_data_row.=anchor($controller_name."/invoice/" . $sale['sale_id'], $CI->lang->line('sales_show_invoice'), array('class'=>'print_hide', 'title'=>$CI->lang->line('sales_show_invoice'))); $table_data_row.=''; $table_data_row.=''; diff --git a/application/views/sales/manage.php b/application/views/sales/manage.php index 439e95e03..aef9cc85f 100755 --- a/application/views/sales/manage.php +++ b/application/views/sales/manage.php @@ -169,8 +169,8 @@ function init_table_sorting()
lang->line('common_list_of').' '.$this->lang->line('sales_receipt_number'); ?>
- diff --git a/css/ospos.css b/css/ospos.css index 3a909ed22..bf411b188 100644 --- a/css/ospos.css +++ b/css/ospos.css @@ -87,7 +87,7 @@ a.none text-align:center; } -#new_button +#new_button, #print_button { position:absolute; bottom:-5px; diff --git a/css/ospos_print.css b/css/ospos_print.css index 980805e63..18eb39ae5 100644 --- a/css/ospos_print.css +++ b/css/ospos_print.css @@ -4,7 +4,7 @@ font-size:75%; } -#menubar,#footer +#menubar, #footer { display:none; } @@ -63,10 +63,12 @@ table.innertable thead /*display:none;*/ } -.print_show { +.print_show +{ display:block !important; } -.print_hide { +.print_hide +{ display:none !important; } \ No newline at end of file