| 1 | {@ include(common/header) @} |
| 2 | <h2>ドメイン確認</h2> |
| 3 | <form method="GET" action="/openprovider/checkdomain"> |
| 4 | 各行列で1つのドメイン名をご入力下さい。<br /> |
| 5 | <textarea name="domains">{{ $saved }}</textarea><br /> |
| 6 | <button>送信</button> |
| 7 | </form> |
| 8 | {@ if (isset($data) && !empty($data)) @} |
| 9 | <hr /> |
| 10 | <h2>結果</h2> |
| 11 | <table> |
| 12 | <thead> |
| 13 | <tr> |
| 14 | <th>ドメイン名</th> |
| 15 | <th>状況</th> |
| 16 | <th>理由</th> |
| 17 | <th>値段</th> |
| 18 | </tr> |
| 19 | </thead> |
| 20 | <tbody> |
| 21 | {@ foreach ($data as $d) @} |
| 22 | {$ $status = '不明' $} |
| 23 | {$ $statusClass = 'status-fumei' $} |
| 24 | {@ if ($d['status'] === 'free') @} |
| 25 | {$ $status = '登録可能' $} |
| 26 | {$ $statusClass = 'status-free' $} |
| 27 | {@ elif ($d['status'] === 'reserved') @} |
| 28 | {$ $status = '予約済み' $} |
| 29 | {$ $statusClass = 'status-reserved' $} |
| 30 | {@ elif ($d['status'] === 'active') @} |
| 31 | {$ $status = '登録済み' $} |
| 32 | {$ $statusClass = 'status-use' $} |
| 33 | {@ endif @} |
| 34 | <tr class="{{ $statusClass }}"> |
| 35 | <td><a href="/openprovider/registerdomain/{{ $d['domain'] }}">{{ $d['domain'] }}</a>{{ isset($d['is_premium']) && $d['is_premium'] ? '(プレミアム)' : '' }}</td> |
| 36 | <td>{{ $status }}</td> |
| 37 | <td>{{ $d['reason'] ?? '' }}</td> |
| 38 | <td> |
| 39 | {@ if (isset($d['price'])) @} |
| 40 | {@ if (isset($d['price']['product'])) @} |
| 41 | 商品: {{ $d['price']['product']['price'] }} {{ $d['price']['product']['currency'] }} |
| 42 | {@ endif @} |
| 43 | {@ if (isset($d['price']['reseller'])) @} |
| 44 | <br />リセラー: {{ $d['price']['reseller']['price'] }} {{ $d['price']['reseller']['currency'] }} |
| 45 | {@ endif @} |
| 46 | {@ endif @} |
| 47 | </td> |
| 48 | </tr> |
| 49 | {@ endforeach @} |
| 50 | </tbody> |
| 51 | </table> |
| 52 | {@ endif @} |
| 53 | {@ include(common/footer) @} |