-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
103 lines (64 loc) · 2.3 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/*
Example
*/
include "DIVBasedTable.php";
##### Step 1 - Create Object #######
$DIV = new DIVBasedTable();
##### Step 2 - Define Table Properties ####
$DIV->TableWidth = "100%"; ##### Table Width
$DIV->TableWidthColNo = 10; ##### No. of Columns
$DIV->TableStyle = "background-color: #a1d2f1; "; ###### Style for whole table
$DIV->HeaderCellStyle = "font-family: verdana; height: 5px"; ##### Style for Header Cells
$DIV->BodyRowCellStyle = "font-family: verdana"; ###### Style for Table Body Cells
$DIV->TableRowStyle = "font-family: verdana; "; ###### Style for Table Row
###### Step 3 - Apply CSS
$DIV->GetCSS();
###### Step 3 - Start Table Drawing
$DIV->StartTable();
###### Step 4 - Start Table Header
$DIV->StartHeader();
###### Step 5 - Start Header Cells
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->AddHeaderCell("HeaderCell", "background-color: #f8f8f8; height=5;");
$DIV->StopHeader();
###### Step 6 - Start Table Body Row
$DIV->StartTableRow();
###### Step 7 - Start Table Body Cells
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->StopTableRow();
$DIV->StartTableRow();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell();
$DIV->AddBodyCell("A Cell", "background-color: #f0f0f0;");
$DIV->StopTableRow();
###### Step 8 - Finalize Table
$DIV->CloseTable();
###### Step 9 - Get Final Table HTML
echo $DIV->GetFinalTable();
exit;
?>