.
諏訪子 <suwako@076.moe>、2026-05-04 14:44
コミット 0223951285b3b2d124f69cedf2dfa5e0ff885082
・親 fc777da
・ファイルを見る
4個のファイル、+59 -6
| @@ -52,8 +52,9 @@ | ||
| 52 | 52 | private string $ip = ''; |
| 53 | 53 | private int $resellerId = 0; |
| 54 | 54 | 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'; | |
| 57 | 58 | |
| 58 | 59 | public function __construct() { |
| 59 | 60 | if (!OPENPROVIDER_ENABLED) return; |
| @@ -1,8 +1,30 @@ | ||
| 1 | 1 | {@ include(common/header) @} |
| 2 | 2 | <h1>請求書一覧</h1> |
| 3 | - {@ kys($data) @} | |
| 4 | - 検索バー<br /> | |
| 5 | 3 | {@ 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) @} | |
| 6 | 28 | {@ else @} |
| 7 | 29 | <p>何も見つけられませんでした。</p> |
| 8 | 30 | {@ endif @} |
| @@ -1,8 +1,37 @@ | ||
| 1 | 1 | {@ include(common/header) @} |
| 2 | 2 | <h1>支払一覧</h1> |
| 3 | - {@ kys($data) @} | |
| 4 | - 検索バー<br /> | |
| 5 | 3 | {@ 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) @} | |
| 6 | 35 | {@ else @} |
| 7 | 36 | <p>何も見つけられませんでした。</p> |
| 8 | 37 | {@ endif @} |
| @@ -33,6 +33,7 @@ | ||
| 33 | 33 | </tbody> |
| 34 | 34 | </table> |
| 35 | 35 | <p>結果数:{{ $data['data']['total'] }}</p> |
| 36 | +{@ include(common/pagination) @} | |
| 36 | 37 | {@ else @} |
| 37 | 38 | <p>何も見つけられませんでした。</p> |
| 38 | 39 | {@ endif @} |