blob: c89bde1348e187086ca8ee4f66248be2241343b6 (
plain) (
blame)
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
|
<?php
/**
* View to display information about a single client.
*
* @package volse.faktura.web
*/
namespace Faktura;
require_once __DIR__ . '/../faktura.php';
$result = API\call('GET', 'clients?id=eq.' . intval($_GET['id']));
$client = json_decode($result)[0];
?>
<!DOCTYPE html>
<head>
<title>faktura: client</title>
</head>
<body>
<h1><?php echo esc_html($client->name); ?></h1>
<table>
<tr class="field">
<th class="row-label">Contact:</th>
<td class="value"><?php echo esc_html($client->contact); ?></td>
</tr>
<tr class="field">
<th class="row-label">Email:</th>
<td class="value"><?php echo esc_html($client->email); ?></td>
</tr>
<tr class="field">
<th class="row-label">phone:</td>
<td class="value"><?php echo esc_html($client->phone); ?></td>
</tr>
<tr class="field">
<th class="row-label">Address:</th>
<td class="value"><?php echo esc_html($client->address); ?></td>
</tr>
<tr class="field">
<th class="row-label">VAT:</th>
<td class="value"><?php echo $client->vat ? 'Yes' : 'No'; ?></td>
</tr>
</body>
|