Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-04-10 19:23:03 +07:00
parent e4705579f0
commit 0700a715e4
5693 changed files with 857475 additions and 0 deletions

View File

@ -0,0 +1,47 @@
body { font-family: DejaVuSansCondensed, sans-serif; font-size: 11pt; }
p { text-align: justify; margin-bottom: 4pt; margin-top:0pt; }
hr { width: 70%; height: 1px;
text-align: center; color: #999999;
margin-top: 8pt; margin-bottom: 8pt; }
a { color: #000066; font-style: normal; text-decoration: underline;
font-weight: normal; }
pre { font-family: DejaVuSansMono, monospaced; font-size: 9pt; margin-top: 5pt; margin-bottom: 5pt; }
h1 { font-weight: normal; font-size: 26pt; color: #000066;
font-family: DejaVuSansCondensed, sans-serif; margin-top: 18pt; margin-bottom: 6pt;
border-top: 0.075cm solid #000000; border-bottom: 0.075cm solid #000000;
text-align: ; page-break-after:avoid; }
h2 { font-weight: bold; font-size: 12pt; color: #000066;
font-family: DejaVuSansCondensed, sans-serif; margin-top: 6pt; margin-bottom: 6pt;
border-top: 0.07cm solid #000000; border-bottom: 0.07cm solid #000000;
text-align: ; text-transform: uppercase; page-break-after:avoid; }
h3 { font-weight: normal; font-size: 26pt; color: #000000;
font-family: DejaVuSansCondensed, sans-serif; margin-top: 0pt; margin-bottom: 6pt;
border-top: 0; border-bottom: 0;
text-align: ; page-break-after:avoid; }
h4 { font-weight: ; font-size: 13pt; color: #9f2b1e;
font-family: DejaVuSansCondensed, sans-serif; margin-top: 10pt; margin-bottom: 7pt;
font-variant: small-caps;
text-align: ; margin-collapse:collapse; page-break-after:avoid; }
h5 { font-weight: bold; font-style:italic; ; font-size: 11pt; color: #000044;
font-family: DejaVuSansCondensed, sans-serif; margin-top: 8pt; margin-bottom: 4pt;
text-align: ; page-break-after:avoid; }
h6 { font-weight: bold; font-size: 9.5pt; color: #333333;
font-family: DejaVuSansCondensed, sans-serif; margin-top: 6pt; margin-bottom: ;
text-align: ; page-break-after:avoid; }
.breadcrumb {
text-align: right; font-size: 8pt; font-family: DejaVuSerifCondensed, serif; color: #666666;
font-weight: bold; font-style: normal; margin-bottom: 6pt; }
.infobox { margin-top:10pt; background-color:#DDDDBB; text-align:center; border:1px solid #880000; }
.big { font-size: 1.5em; }
.red { color: #880000; }
.slanted { font-style: italic; }

View File

@ -0,0 +1,120 @@
@page {
size: 15cm 17cm; /* width height <length>{1,2} | auto | portrait | landscape NB 'em' and 'ex' % are not allowed */
margin: 10%; /* % of page-box width for LR, height for TB */
margin-header: 5mm;
margin-footer: 5mm;
margin-left: 4cm;
margin-right: 2cm;
odd-header-name: myHeader2Odd;
even-header-name: html_myHTMLHeaderEven;
odd-footer-name: html_myHTMLFooterOdd;
even-footer-name: myFooter2Even;
marks: crop; /* crop | cross | none */
}
@page :first {
margin-top: 5cm; /* Top margin on first page 10cm */
}
@page standard {
size: auto; /* auto is the default mPDF value */
margin: 10%; /* % of page-box width for LR, height for TB */
marks: none; /* crop | cross | none */
}
@page standard :first {
margin-top: 7cm; /* Top margin on first page 10cm */
}
@page bigsquare {
size: 15cm 20cm;
margin-left: 4cm;
marks: crop cross; /* crop | cross | none */
background: transparent url('bg.jpg') repeat scroll 5mm 5mm; /* position inset by bleedMargin */
}
@page bigsquare :right {
header: html_myHTMLHeaderOdd;
footer: html_myHTMLFooterOdd;
}
@page bigsquare :left { /* left is what mPDF calls EVEN page - right=ODD */
header: html_myHTMLHeaderEven;
footer: html_myHTMLFooterEven;
}
@page smallsquare {
size: 25cm 15cm;
margin-left: 4cm;
marks: crop; /* crop | cross | none */
background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5;
}
@page rotated {
size: landscape;
marks: none; /* crop | cross | none */
background-color: #fff0f2;
margin-left: 3cm;
margin-right: 3cm;
}
@page rotated :first {
margin-top: 7cm; /* Top margin on first page 10cm */
}
h1.heading1 { color: #1188FF;
}
h1.heading2 { color: #88FF11;
page-break-before: always;
page: standard;
}
h1.heading3 { color: #FF1188;
page-break-before: right;
}
h1.heading4 { color: #FF8811;
page-break-before: left;
page: bigsquare;
}
h1.heading5 { color: #11FF88;
page: smallsquare;
}
h1.heading6 { color: #8811FF;
page: rotated;
}
br.paging { page-break-after: always; }
body { font-family: DejaVuSansCondensed; font-size: 11pt; }
p { text-align: justify; margin-bottom: 4pt; margin-top:0pt; }
hr { width: 70%; height: 1px;
text-align: center; color: #999999;
margin-top: 8pt; margin-bottom: 8pt; }
a { color: #000066; font-style: normal; text-decoration: underline;
font-weight: normal; }
pre { font-family: DejaVuSansMono; font-size: 9pt; margin-top: 5pt; margin-bottom: 5pt; }
h1 { font-weight: normal; font-size: 26pt; color: #000066;
font-family: DejaVuSansCondensed; margin-top: 18pt; margin-bottom: 6pt;
border-top: 0.075cm solid #000000; border-bottom: 0.075cm solid #000000;
text-align: ; page-break-after:avoid; }
h2 { font-weight: bold; font-size: 12pt; color: #000066;
font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: 6pt;
border-top: 0.07cm solid #000000; border-bottom: 0.07cm solid #000000;
text-align: ; text-transform: uppercase; page-break-after:avoid; }
h3 { font-weight: normal; font-size: 26pt; color: #000000;
font-family: DejaVuSansCondensed; margin-top: 0pt; margin-bottom: 6pt;
border-top: 0; border-bottom: 0;
text-align: ; page-break-after:avoid; }
h4 { font-weight: ; font-size: 13pt; color: #9f2b1e;
font-family: DejaVuSansCondensed; margin-top: 10pt; margin-bottom: 7pt;
text-align: ; margin-collapse:collapse; page-break-after:avoid; }
h5 { font-weight: bold; font-style:italic; ; font-size: 11pt; color: #000044;
font-family: DejaVuSansCondensed; margin-top: 8pt; margin-bottom: 4pt;
text-align: ; page-break-after:avoid; }
h6 { font-weight: bold; font-size: 9.5pt; color: #333333;
font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: ;
text-align: ; page-break-after:avoid; }

View File

@ -0,0 +1,122 @@
body { font-family: 'DejaVu Sans Condensed'; font-size: 11pt; }
p { text-align: justify; margin-bottom: 4pt; margin-top:0pt; }
table {font-family: 'DejaVu Sans Condensed'; font-size: 9pt; line-height: 1.2;
margin-top: 2pt; margin-bottom: 5pt;
border-collapse: collapse; }
thead { font-weight: bold; vertical-align: bottom; }
tfoot { font-weight: bold; vertical-align: top; }
thead td { font-weight: bold; }
tfoot td { font-weight: bold; }
.headerrow td, .headerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
.footerrow td, .footerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
th { font-weight: bold;
vertical-align: top;
padding-left: 2mm;
padding-right: 2mm;
padding-top: 0.5mm;
padding-bottom: 0.5mm;
}
td { padding-left: 2mm;
vertical-align: top;
padding-right: 2mm;
padding-top: 0.5mm;
padding-bottom: 0.5mm;
}
th p { margin:0pt; }
td p { margin:0pt; }
table.widecells td {
padding-left: 5mm;
padding-right: 5mm;
}
table.tallcells td {
padding-top: 3mm;
padding-bottom: 3mm;
}
hr { width: 70%; height: 1px;
text-align: center; color: #999999;
margin-top: 8pt; margin-bottom: 8pt; }
a { color: #000066; font-style: normal; text-decoration: underline;
font-weight: normal; }
pre { font-family: 'DejaVu Sans Mono'; font-size: 9pt; margin-top: 5pt; margin-bottom: 5pt; }
h1 { font-weight: normal; font-size: 26pt; color: #000066;
font-family: 'DejaVu Sans Condensed'; margin-top: 18pt; margin-bottom: 6pt;
border-top: 0.075cm solid #000000; border-bottom: 0.075cm solid #000000;
text-align: ; page-break-after:avoid; }
h2 { font-weight: bold; font-size: 12pt; color: #000066;
font-family: 'DejaVu Sans Condensed'; margin-top: 6pt; margin-bottom: 6pt;
border-top: 0.07cm solid #000000; border-bottom: 0.07cm solid #000000;
text-align: ; text-transform:uppercase; page-break-after:avoid; }
h3 { font-weight: normal; font-size: 26pt; color: #000000;
font-family: 'DejaVu Sans Condensed'; margin-top: 0pt; margin-bottom: 6pt;
border-top: 0; border-bottom: 0;
text-align: ; page-break-after:avoid; }
h4 { font-weight: ; font-size: 13pt; color: #9f2b1e;
font-family: 'DejaVu Sans Condensed'; margin-top: 10pt; margin-bottom: 7pt; font-variant: small-caps;
text-align: ; margin-collapse:collapse; page-break-after:avoid; }
h5 { font-weight: bold; font-style:italic; ; font-size: 11pt; color: #000044;
font-family: 'DejaVu Sans Condensed'; margin-top: 8pt; margin-bottom: 4pt;
text-align: ; page-break-after:avoid; }
h6 { font-weight: bold; font-size: 9.5pt; color: #333333;
font-family: 'DejaVu Sans Condensed'; margin-top: 6pt; margin-bottom: ;
text-align: ; page-break-after:avoid; }
.breadcrumb {
text-align: right; font-size: 8pt; font-family: 'DejaVu Serif Condensed'; color: #666666;
font-weight: bold; font-style: normal; margin-bottom: 6pt; }
.bpmTopic tbody tr:nth-child(even) { background-color: #f5f8f5; }
.bpmTopicC tbody tr:nth-child(even) { background-color: #f5f8f5; }
.bpmNoLines tbody tr:nth-child(even) { background-color: #f5f8f5; }
.bpmNoLinesC tbody tr:nth-child(even) { background-color: #f5f8f5; }
.bpmTopnTail tbody tr:nth-child(even) { background-color: #f5f8f5; }
.bpmTopnTailC tbody tr:nth-child(even) { background-color: #f5f8f5; }
.evenrow td, .evenrow th { background-color: #f5f8f5; }
.oddrow td, .oddrow th { background-color: #e3ece4; }
.bpmTopic { background-color: #e3ece4; }
.bpmTopicC { background-color: #e3ece4; }
.bpmNoLines { background-color: #e3ece4; }
.bpmNoLinesC { background-color: #e3ece4; }
.bpmClear { }
.bpmClearC { text-align: center; }
.bpmTopnTail { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
.bpmTopnTailC { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
.bpmTopnTailClear { topntail: 0.02cm solid #495b4a; }
.bpmTopnTailClearC { topntail: 0.02cm solid #495b4a; }
.bpmTopicC td, .bpmTopicC td p { text-align: center; }
.bpmNoLinesC td, .bpmNoLinesC td p { text-align: center; }
.bpmClearC td, .bpmClearC td p { text-align: center; }
.bpmTopnTailC td, .bpmTopnTailC td p { text-align: center; }
.bpmTopnTailClearC td, .bpmTopnTailClearC td p { text-align: center; }
.pmhMiddleCenter { text-align:center; vertical-align:middle; }
.pmhMiddleRight { text-align:right; vertical-align:middle; }
.pmhBottomCenter { text-align:center; vertical-align:bottom; }
.pmhBottomRight { text-align:right; vertical-align:bottom; }
.pmhTopCenter { text-align:center; vertical-align:top; }
.pmhTopRight { text-align:right; vertical-align:top; }
.pmhTopLeft { text-align:left; vertical-align:top; }
.pmhBottomLeft { text-align:left; vertical-align:bottom; }
.pmhMiddleLeft { text-align:left; vertical-align:middle; }
.infobox { margin-top:10pt; background-color:#DDDDBB; text-align:center; border:1px solid #880000; }
.bpmTopic td, .bpmTopic th { border-top: 1px solid #FFFFFF; }
.bpmTopicC td, .bpmTopicC th { border-top: 1px solid #FFFFFF; }
.bpmTopnTail td, .bpmTopnTail th { border-top: 1px solid #FFFFFF; }
.bpmTopnTailC td, .bpmTopnTailC th { border-top: 1px solid #FFFFFF; }