FSN#38621 Planbord mag breder

svn path=/Website/trunk/; revision=31783
This commit is contained in:
Peter Feij
2016-12-02 09:04:17 +00:00
parent edb718c70c
commit 96d0cdf71f
5 changed files with 15 additions and 1 deletions

BIN
APPL/Pictures/plan60x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

BIN
APPL/Pictures/plan72x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

BIN
APPL/Pictures/plan96x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

View File

@@ -69,6 +69,17 @@ div.res_remark { display: none;
border: 1px solid #eee;
box-shadow: 4px 4px 8px #666;
}
table.planbord96 tr td.between div { width:24px;}
table.planbord96 tr td.post div { width:16px;}
table.planbord96 td.reserv { background-image:url(../pictures/plan96x16.png) }
table.planbord72 tr td.between div { width:24px;}
table.planbord72 tr td.post div { width:16px;}
table.planbord72 td.reserv { background-image:url(../pictures/plan72x16.png) }
table.planbord60 tr td.between div { width:24px;}
table.planbord60 tr td.post div { width:16px;}
table.planbord60 td.reserv { background-image:url(../pictures/plan60x16.png) }
table.planbord48 tr td.between div { width:24px;}
table.planbord48 tr td.post div { width:16px;}

View File

@@ -1845,7 +1845,10 @@ res = {
{
var nr_hours = nr_days * (S("res_t2") - S("res_t1"));
var targethour_px = width_px / nr_hours;
var hour_px = 48;
var hour_px = 96;
if (targethour_px < 96) hour_px = 72;
if (targethour_px < 72) hour_px = 60;
if (targethour_px < 60) hour_px = 48;
if (targethour_px < 48) hour_px = 36;
if (targethour_px < 36) hour_px = 24;
if (targethour_px < 24) hour_px = 16;