first commit 2
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
?>
|
||||
<div class="local_ov01 local_ov">
|
||||
<strong>SMTP 설정 목록</strong>
|
||||
<p>이곳에서 메일 발송에 사용할 여러 SMTP 서버를 등록하고 관리할 수 있습니다.</p>
|
||||
</div>
|
||||
|
||||
<div class="btn_fixed_top">
|
||||
<a href="?action=create_form" class="btn btn_01">SMTP 설정 추가</a>
|
||||
</div>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption>SMTP 설정 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">ID</th>
|
||||
<th scope="col">이름(용도)</th>
|
||||
<th scope="col">호스트</th>
|
||||
<th scope="col">계정</th>
|
||||
<th scope="col">포트</th>
|
||||
<th scope="col">암호화</th>
|
||||
<th scope="col">발신자 이메일</th>
|
||||
<th scope="col">사용여부</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($smtp_list && count($smtp_list) > 0): ?>
|
||||
<?php foreach ($smtp_list as $row): ?>
|
||||
<tr>
|
||||
<td class="td_num"><?php echo $row['id']; ?></td>
|
||||
<td><?php echo get_text($row['name']); ?></td>
|
||||
<td><?php echo get_text($row['host']); ?></td>
|
||||
<td><?php echo get_text($row['username']); ?></td>
|
||||
<td class="td_num"><?php echo $row['port']; ?></td>
|
||||
<td class="td_num"><?php echo strtoupper($row['encryption']); ?></td>
|
||||
<td><?php echo get_text($row['from_email']); ?></td>
|
||||
<td class="td_num"><?php echo $row['is_use'] ? '<strong class="txt_true">사용</strong>' : '미사용'; ?></td>
|
||||
<td class="td_mng">
|
||||
<a href="?action=edit_form&id=<?php echo $row['id']; ?>" class="btn btn_03">수정</a>
|
||||
<form name="fdelete_<?php echo $row['id']; ?>" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" style="display:inline;">
|
||||
<input type="hidden" name="action" value="delete">
|
||||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>">
|
||||
<!-- token 값은 admin.js 에서 자동으로 채워주므로 비워둬도 괜찮습니다. -->
|
||||
<input type="hidden" name="token" value="">
|
||||
<button type="submit" class="btn btn_02" onclick="return confirm('정말 삭제하시겠습니까?');">삭제</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="9" class="empty_table">등록된 SMTP 설정이 없습니다.</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user