Optimize screen size

This commit is contained in:
Laurent Destailleur 2013-08-01 02:28:47 +02:00
parent 0a2ed1f678
commit a334b96469
5 changed files with 13 additions and 13 deletions

View File

@ -97,7 +97,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
$startyear=$endyear-1; $startyear=$endyear-1;
$mode='customer'; $mode='customer';
$userid=0; $userid=0;
$WIDTH=($shownb && $showtot)?'256':'320'; $WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
$HEIGHT='192'; $HEIGHT='192';
$stats = new FactureStats($this->db, 0, $mode, ($userid>0?$userid:0)); $stats = new FactureStats($this->db, 0, $mode, ($userid>0?$userid:0));

View File

@ -96,7 +96,7 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
$startyear=$endyear-1; $startyear=$endyear-1;
$mode='supplier'; $mode='supplier';
$userid=0; $userid=0;
$WIDTH=($shownb && $showtot)?'256':'320'; $WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
$HEIGHT='192'; $HEIGHT='192';
$stats = new FactureStats($this->db, 0, $mode, ($userid>0?$userid:0)); $stats = new FactureStats($this->db, 0, $mode, ($userid>0?$userid:0));

View File

@ -97,7 +97,7 @@ class box_graph_orders_permonth extends ModeleBoxes
$startyear=$endyear-1; $startyear=$endyear-1;
$mode='customer'; $mode='customer';
$userid=0; $userid=0;
$WIDTH=($shownb && $showtot)?'256':'320'; $WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
$HEIGHT='192'; $HEIGHT='192';
$stats = new CommandeStats($this->db, 0, $mode, ($userid>0?$userid:0)); $stats = new CommandeStats($this->db, 0, $mode, ($userid>0?$userid:0));

View File

@ -96,7 +96,7 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
$startyear=$endyear-1; $startyear=$endyear-1;
$mode='supplier'; $mode='supplier';
$userid=0; $userid=0;
$WIDTH=($shownb && $showtot)?'256':'320'; $WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
$HEIGHT='192'; $HEIGHT='192';
$stats = new CommandeStats($this->db, 0, $mode, ($userid>0?$userid:0)); $stats = new CommandeStats($this->db, 0, $mode, ($userid>0?$userid:0));

View File

@ -97,7 +97,7 @@ class box_graph_propales_permonth extends ModeleBoxes
$startyear=$endyear-1; $startyear=$endyear-1;
$mode='customer'; $mode='customer';
$userid=0; $userid=0;
$WIDTH=($shownb && $showtot)?'256':'320'; $WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
$HEIGHT='192'; $HEIGHT='192';
$stats = new PropaleStats($this->db, 0, $mode, ($userid>0?$userid:0)); $stats = new PropaleStats($this->db, 0, $mode, ($userid>0?$userid:0));