Files
sam-api/public/tenant/member/tenant_select.php

38 lines
1.5 KiB
PHP
Raw Normal View History

2025-08-10 02:36:50 +09:00
<?php
$CURRENT_SECTION = 'member';
include '../inc/header.php';
// 2. 샘플 테넌트 목록 (실제로는 DB 등에서 불러옴)
$sample_tenants = [
['id' => 101, 'name' => '삼성전자'],
['id' => 102, 'name' => '카카오'],
['id' => 103, 'name' => '네이버'],
];
?>
<div class="container" style="max-width:500px; margin-top:40px;">
<div class="card shadow p-4">
<h4 class="mb-3 text-center">테넌트(회사/기업) 선택</h4>
<form method="post" action="tenant_select_process.php">
<div class="mb-3">
<label for="tenant_id" class="form-label">기존 테넌트 선택</label>
<select class="form-select" id="tenant_id" name="tenant_id" required>
<option value="">테넌트 선택...</option>
<?php foreach ($sample_tenants as $tenant) { ?>
<option value="<?= $tenant['id']?>"><?= $tenant['name']?></option>
<?php } ?>
2025-08-10 02:36:50 +09:00
</select>
</div>
<button type="submit" class="btn btn-primary w-100 mb-3">선택</button>
</form>
<hr>
<div class="mb-3">
<label class="form-label"> 테넌트(회사/기업) 추가</label><br>
<a href="/tenant/tenant/join.php" class="btn btn-success w-100">추가</a>
</div>
</div>
</div>
<?php include '../inc/footer.php'; ?>