-
Notifications
You must be signed in to change notification settings - Fork 1
/
quote.php
52 lines (45 loc) · 1.68 KB
/
quote.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
<?php
/**
* Class Quote
*/
class Quote {
public $daq;
public $receiver;
public $transmitter;
public $cables;
public $activator;
public $locale;
function __construct($daq, $receiver, $transmitter, $cables, $activator, $locale) {
$this->daq = $daq;
$this->receiver = $receiver;
$this->transmitter = $transmitter;
$this->cables = $cables;
$this->activator = $activator;
$this->locale = $locale;
}
function getHTML() {
$html = null;
$html .= '<div class="divTable">';
$html .= ' <div class="divTableBody">';
$html .= ' <div class="divTableRow">';
$html .= ' <div class="divTableCell"><strong>'.$this->locale["EPOCH_COL_HEADER"].'</strong></div>';
$html .= ' <div class="divTableCell"><strong>'.$this->locale["BIOPAC_PART_COL_HEADER"].'</strong></div>';
$html .= ' <div class="divTableCell"><strong>'.$this->locale["EPITEL_PART_COL_HEADER"].'</strong></div>';
$html .= ' <div class="divTableCell"><strong>'.$this->locale["NOTES_COL_HEADER"].'</strong></div>';
$html .= ' <div class="divTableCell"><strong>'.$this->locale["QTY_COL_HEADER"].'</strong></div>';
$html .= ' </div>';
if ($this->daq->name!=null) {$html .= ' '.$this->daq->getHTML();}
if ($this->receiver->name!=null) {$html .= ' '.$this->receiver->getHTML();}
$html .= ' '.$this->transmitter->getHTML();
if ($this->daq->name!=null) {
foreach ($this->cables as $cable) {
if ($cable->name!=null) {$html .= ' '.$cable->getHTML();}
}
}
if ($this->activator->name!=null) {$html .= ' '.$this->activator->getHTML();}
$html .= ' </div>';
$html .= '</div>';
return $html;
}
}
?>