การสร้างเส้นตารางใน mpdf
.table{
border-left: 1px solid #000;
border-top: 1px solid #000;
border-collapse: collapse;
}
.td{
margin-top: 10px;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
font-size: 14px;
}
Thursday, March 26, 2015
css การสร้าง ตัวหนังสือแนวตั้ง (vertical text)
css การสร้าง ตัวหนังสือแนวตั้ง (vertical text)
.vertical {
display:block;
writing-mode: tb-rl;
filter: flipv fliph;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
transform: rotate(-90deg);
position:relative;
width:15px;
white-space:nowrap;
font-size:14px;
margin-top:90px;
}
.vertical {
display:block;
writing-mode: tb-rl;
filter: flipv fliph;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
transform: rotate(-90deg);
position:relative;
width:15px;
white-space:nowrap;
font-size:14px;
margin-top:90px;
}
การ limit sql server ภาคสอง
select b.*
from
(
select ROW_NUMBER() OVER (order by i.admit_date ) as rownum , i.hn,i.regist_flag,i.ladmit_n,
CAST(RTRIM(t.titleName) + RTRIM(p.firstName) + ' ' + RTRIM(p.lastName) AS CHAR(50)) AS Name
,w.ward_id,w.ward_name,dbo.ymd2cbe(i.admit_date) as date,
dbo.nowage(p.birthDay,dbo.ce2ymd(getdate()))as age
from Ipd_h i
left join PATIENT p on (p.hn=i.hn)
left join Ward w on(w.ward_id = i.ward_id)
LEFT JOIN PTITLE t ON (p.titleCode = t.titleCode)
where i.ward_id = '841' and i.discharge_status='0' ) as b
where b.rownum between '10' and '20'
from
(
select ROW_NUMBER() OVER (order by i.admit_date ) as rownum , i.hn,i.regist_flag,i.ladmit_n,
CAST(RTRIM(t.titleName) + RTRIM(p.firstName) + ' ' + RTRIM(p.lastName) AS CHAR(50)) AS Name
,w.ward_id,w.ward_name,dbo.ymd2cbe(i.admit_date) as date,
dbo.nowage(p.birthDay,dbo.ce2ymd(getdate()))as age
from Ipd_h i
left join PATIENT p on (p.hn=i.hn)
left join Ward w on(w.ward_id = i.ward_id)
LEFT JOIN PTITLE t ON (p.titleCode = t.titleCode)
where i.ward_id = '841' and i.discharge_status='0' ) as b
where b.rownum between '10' and '20'
Subscribe to:
Comments (Atom)