.

諏訪子 <suwako@076.moe>、2026-05-04 14:44
コミット 0223951285b3b2d124f69cedf2dfa5e0ff885082 ・親 fc777da ・ファイルを見る

4個のファイル、+59 -6

@@ -52,8 +52,9 @@
5252 private string $ip = '';
5353 private int $resellerId = 0;
5454 private int $lastAuth = 0;
55- private string $BASEURL = DEBUG_MODE ? 'http://api.sandbox.openprovider.nl:8480/v1beta'
56- : 'https://api.openprovider.eu/v1beta';
55+ private string $BASEURL = 'https://api.openprovider.eu/v1beta';
56+ // private string $BASEURL = DEBUG_MODE ? 'http://api.sandbox.openprovider.nl:8480/v1beta'
57+ // : 'https://api.openprovider.eu/v1beta';
5758
5859 public function __construct() {
5960 if (!OPENPROVIDER_ENABLED) return;
@@ -1,8 +1,30 @@
11 {@ include(common/header) @}
22 <h1>請求書一覧</h1>
3- {@ kys($data) @}
4- 検索バー<br />
53 {@ if (isset($data['data']['results'])) @}
4+ <table>
5+ <thead>
6+ <tr>
7+ <th>日時</th>
8+ <th>請求書番号</th>
9+ <th>単殻</th>
10+ <th></th>
11+ <th></th>
12+ </tr>
13+ </thead>
14+ <tbody>
15+{@ foreach ($data['data']['results'] as $d) @}
16+ <tr>
17+ <td>{{ $d['creation_date'] }}</td>
18+ <td>{{ $d['invoice_number'] }}</td>
19+ <td>{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}</td>
20+ <td><a href="{{ $d['invoice_url'] }}">請求書をダウンロード</a></td>
21+ <td><a href="{{ $d['attachment_url'] }}">添付</a></td>
22+ </tr>
23+{@ endforeach @}
24+ </tbody>
25+ </table>
26+ <p>結果数:{{ $data['data']['total'] }}</p>
27+{@ include(common/pagination) @}
628 {@ else @}
729 <p>何も見つけられませんでした。</p>
830 {@ endif @}
@@ -1,8 +1,37 @@
11 {@ include(common/header) @}
22 <h1>支払一覧</h1>
3- {@ kys($data) @}
4- 検索バー<br />
53 {@ if (isset($data['data']['results'])) @}
4+ <table>
5+ <thead>
6+ <tr>
7+ <th>日時</th>
8+ <th>支払ID</th>
9+ <th>種類</th>
10+ <th>単殻</th>
11+ <th>支払済み</th>
12+ <th>認証済み</th>
13+ <th>完了</th>
14+ </tr>
15+ </thead>
16+ <tbody>
17+{@ foreach ($data['data']['results'] as $d) @}
18+{$ $p = isset($d['payment_date']) $}
19+{$ $c = isset($d['confirmation_date']) $}
20+{$ $r = $d['is_processed'] == 1 $}
21+ <tr>
22+ <td>{{ $d['creation_date'] }}</td>
23+ <td>{{ $d['id'] }}</td>
24+ <td>{{ $d['type'] }}</td>
25+ <td>{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}</td>
26+ <td><span style="color: #{{ $p ? '14c014' : 'ee5040' }};">{{ $p ? '〇' : '✕' }}</span></td>
27+ <td><span style="color: #{{ $c ? '14c014' : 'ee5040' }};">{{ $c ? '〇' : '✕' }}</span></td>
28+ <td><span style="color: #{{ $r ? '14c014' : 'ee5040' }};">{{ $r ? '〇' : '✕' }}</span></td>
29+ </tr>
30+{@ endforeach @}
31+ </tbody>
32+ </table>
33+ <p>結果数:{{ $data['data']['total'] }}</p>
34+{@ include(common/pagination) @}
635 {@ else @}
736 <p>何も見つけられませんでした。</p>
837 {@ endif @}
@@ -33,6 +33,7 @@
3333 </tbody>
3434 </table>
3535 <p>結果数:{{ $data['data']['total'] }}</p>
36+{@ include(common/pagination) @}
3637 {@ else @}
3738 <p>何も見つけられませんでした。</p>
3839 {@ endif @}