-
Notifications
You must be signed in to change notification settings - Fork 1
/
quoteitem.php
41 lines (36 loc) · 1.04 KB
/
quoteitem.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
<?php
/**
* QuoteItem
*/
class QuoteItem {
public $name;
public $qty;
public $biopac_pn;
public $epitel_pn;
public $notes;
public $url;
function __construct($name, $qty, $biopac_pn, $biopac_url, $epitel_pn, $notes) {
$this->name = $name;
$this->qty = $qty;
$this->biopac_pn = $biopac_pn;
$this->biopac_url = $biopac_url;
$this->epitel_pn = $epitel_pn;
$this->notes = $notes;
}
function getHTML() {
$html = null;
$html .= '<div class="divTableRow">';
$html .= ' <div class="divTableCell">'.$this->name.'</div>';
if (!empty($this->biopac_url)) {
$html .= ' <div class="divTableCell"><a href="'.$this->biopac_url.'">'.$this->biopac_pn.'</a></div>';
} else {
$html .= ' <div class="divTableCell">'.$this->biopac_pn.'</div>';
}
$html .= ' <div class="divTableCell">'.$this->epitel_pn.'</div>';
$html .= ' <div class="divTableCell">'.$this->notes.'</div>';
$html .= ' <div class="divTableCell">'.$this->qty.'</div>';
$html .= '</div>';
return $html;
}
}
?>