first commit 2
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
$sub_menu = '100900';
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$sql = "select * from g5_google_ads order by ga_id desc";
|
||||
$result = sql_query($sql);
|
||||
|
||||
include_once(G5_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
<span class="btn_ov01"><span class="ov_txt"> 등록된 광고 수</span><span class="ov_num"> <?php echo sql_num_rows($result); ?>개</span></span>
|
||||
</div>
|
||||
|
||||
<div class="btn_fixed_top">
|
||||
<a href="./google_ads_form.php" class="btn btn_01">광고 추가</a>
|
||||
</div>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $g5['title']; ?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">ID</th>
|
||||
<th scope="col">광고 이름</th>
|
||||
<th scope="col">클라이언트 ID</th>
|
||||
<th scope="col">슬롯 ID</th>
|
||||
<th scope="col">사용여부</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php for ($i=0; $row=sql_fetch_array($result); $i++) { ?>
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td class="td_num"><?php echo $row['ga_id']; ?></td>
|
||||
<td><?php echo $row['ga_name']; ?></td>
|
||||
<td><?php echo $row['ga_client_id']; ?></td>
|
||||
<td><?php echo $row['ga_slot_id']; ?></td>
|
||||
<td class="td_chk"><?php echo $row['ga_use'] ? '사용' : '미사용'; ?></td>
|
||||
<td class="td_mng td_mng_s">
|
||||
<a href="./google_ads_form.php?w=u&ga_id=<?php echo $row['ga_id']; ?>" class="btn btn_03">수정</a>
|
||||
<a href="./google_ads_form_update.php?w=d&ga_id=<?php echo $row['ga_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="6" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G5_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user