outputString("<$tag>"); } elseif (empty($class) && !empty($id)) { $this->outputString("<$tag id='$id'>"); } elseif (!empty($class) && empty($id)) { $this->outputString("<$tag class='$class'>"); } else { $this->outputString("<$tag class='$class' id='$id'>"); } } protected function tagClose(string $tag = 'div', int $amount = 1) { for ($i = 1; $i <= $amount; $i++) { $this->outputString("$tag>"); } } protected function outputString(string $string) { echo $string; } protected function collapseButton(string $text, string $href, string $id = 'collapseId', string $class = 'btn btn-main collapse-btn', bool $expanded = false) { ($expanded) ? $ex = "true" : $ex = "false"; $this->outputString('' . $text . ''); } protected function HTMLphrase(string $element = 'p', string $class = '', string $text = '', string $id = '') { if (empty($class)) { if (empty($id)) { $this->tagOpen($element); } else { $this->tagOpen($element, '', $id); } } else { if (empty($id)) { $this->tagOpen($element, $class); } else { $this->tagOpen($element, $class, $id); } } $this->outputString($text); $this->tagClose($element); } protected function colOpen(string $class = 'col-12') { $this->tagOpen('div', $class); } protected function rowColOpen(string $row_class = 'row', string $col_class = 'col-12') { $this->tagOpen('div', $row_class); $this->tagOpen('div', $col_class); } protected function textInput(string $name_id, string $value = '', string $class = 'form-control', bool $required = false, int $min_length = 0, int $max_length = 124) { (empty($value)) ? $val = '' : $val = " value='$value'"; ($required) ? $req = 'required' : $req = ''; $this->outputString(""); } protected function numberInput(string $name_id, string $value = '', string $class = 'form-control', bool $required = false, int $min = 0, int $max = 9999, string $step = 'any') { (empty($value)) ? $val = '' : $val = " value='$value'"; ($required) ? $req = 'required' : $req = ''; $this->outputString(""); } protected function hiddenInput(string $name_id, string $value = '') { (empty($value)) ? $val = '' : $val = " value='$value'"; $this->outputString(""); } protected function submitInput(string $text, string $id = 'submitInput', string $class = 'btn') { $this->outputString(""); } protected function inputPrepend(string $text) { $this->outputString('
{$row['hostname']} {$row['ipv4']} {$row['virt']} {$row['price']} {$row['currency']} " . $this->paymentTerm($row['term']) . "
{$row['ipv4']}
{$row['domain']} domain {$row['price']} {$row['currency']} " . $this->paymentTerm($row['term']) . "
{$row['domain']} {$row['type']} {$row['price']} {$row['currency']} " . $this->paymentTerm($row['term']) . "
$text
' . $data['ipv4'] . '
' . $ipv6 . '
' . $data['ns1'] . '
' . $data['ns2'] . '
' . $data['cpu_type'] . '
Ram
' . $data['gb5_id'] . '
Location:
Send:
Receive: