53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
{@ include(common/header) @}
|
|
<h2>ドメイン確認</h2>
|
|
<form method="GET" action="/openprovider/checkdomain">
|
|
各行列で1つのドメイン名をご入力下さい。<br />
|
|
<textarea name="domains">{{ $saved }}</textarea><br />
|
|
<button>送信</button>
|
|
</form>
|
|
{@ if (isset($data) && !empty($data)) @}
|
|
<hr />
|
|
<h2>結果</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ドメイン名</th>
|
|
<th>状況</th>
|
|
<th>理由</th>
|
|
<th>値段</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{@ foreach ($data as $d) @}
|
|
{$ $status = '不明' $}
|
|
{$ $statusClass = 'status-fumei' $}
|
|
{@ if ($d['status'] === 'free') @}
|
|
{$ $status = '登録可能' $}
|
|
{$ $statusClass = 'status-free' $}
|
|
{@ elif ($d['status'] === 'reserved') @}
|
|
{$ $status = '予約済み' $}
|
|
{$ $statusClass = 'status-reserved' $}
|
|
{@ elif ($d['status'] === 'active') @}
|
|
{$ $status = '登録済み' $}
|
|
{$ $statusClass = 'status-use' $}
|
|
{@ endif @}
|
|
<tr class="{{ $statusClass }}">
|
|
<td><a href="/openprovider/registerdomain/{{ $d['domain'] }}">{{ $d['domain'] }}</a>{{ isset($d['is_premium']) && $d['is_premium'] ? '(プレミアム)' : '' }}</td>
|
|
<td>{{ $status }}</td>
|
|
<td>{{ $d['reason'] ?? '' }}</td>
|
|
<td>
|
|
{@ if (isset($d['price'])) @}
|
|
{@ if (isset($d['price']['product'])) @}
|
|
商品: {{ $d['price']['product']['price'] }} {{ $d['price']['product']['currency'] }}
|
|
{@ endif @}
|
|
{@ if (isset($d['price']['reseller'])) @}
|
|
<br />リセラー: {{ $d['price']['reseller']['price'] }} {{ $d['price']['reseller']['currency'] }}
|
|
{@ endif @}
|
|
{@ endif @}
|
|
</td>
|
|
</tr>
|
|
{@ endforeach @}
|
|
</tbody>
|
|
</table>
|
|
{@ endif @}
|
|
{@ include(common/footer) @} |