쇼핑몰관리자 :#25 배너관리 목록 표준화 및 스타일

This commit is contained in:
rollydream
2013-04-02 16:32:33 +09:00
parent a4af6a116b
commit 31dab4d694

View File

@ -19,43 +19,44 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함 $from_record = ($page - 1) * $rows; // 시작 열을 구함
?> ?>
<style type="text/css">
<table width=100% height=30> </style>
<tr>
<td width=60%><?//=subtitle($g4['title'])?></td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</table>
<section class="cbox">
<table cellpadding=0 cellspacing=0 width=100%> <h2>배너관리</h2>
<colgroup width=25> <p>건수 <? echo $total_count ?></p>
<colgroup width=''> <table class="frm_flb">
<colgroup width=50> <colgroup>
<colgroup width=90> <col class="grid_1">
<colgroup width=90> <col class="grid_7">
<colgroup width=50> <col class="grid_1">
<colgroup width=40> <col class="grid_2">
<colgroup width=80> <col class="grid_2">
<tr><td colspan=8 height=2 bgcolor=#0E87F9></td></tr> <col class="grid_2">
<tr align=center class=ht> <col class="grid_1">
<td>ID</td> <col class="grid_2">
<td>이미지</td> </colgroup>
<td>위치</td> <thead>
<td>시작일시</td> <tr>
<td>종료일시</td> <th scope="col">ID</th>
<td>출력순서</td> <th scope="col">이미지</th>
<td>조회</td> <th scope="col">위치</th>
<td><?=icon("입력", "./bannerform.php");?></td> <th scope="col">시작일시</th>
</tr> <th scope="col">종료일시</th>
<tr><td colspan=8 height=1 bgcolor=#CCCCCC></td></tr> <th scope="col">출력순서</th>
<? <th scope="col">조회</th>
$sql = " select * from {$g4['yc4_banner_table']} <th scope="col"><?=icon("입력", "./bannerform.php");?></th>
</tr>
</thead>
<tbody>
<?
$sql = " select * from {$g4['yc4_banner_table']}
order by bn_order, bn_id desc order by bn_order, bn_id desc
limit $from_record, $rows "; limit $from_record, $rows ";
$result = sql_query($sql); $result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) for ($i=0; $row=mysql_fetch_array($result); $i++)
{ {
// 테두리 있는지 // 테두리 있는지
$bn_border = $row['bn_border']; $bn_border = $row['bn_border'];
// 새창 띄우기인지 // 새창 띄우기인지
@ -73,32 +74,29 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$s_del = icon("삭제", "javascript:del('./bannerformupdate.php?w=d&bn_id={$row['bn_id']}');"); $s_del = icon("삭제", "javascript:del('./bannerformupdate.php?w=d&bn_id={$row['bn_id']}');");
$list = $i%2; $list = $i%2;
echo " ?>
<tr class='list$list center'> <tr class="list<?=$list?> center">
<td>{$row['bn_id']}</td> <td><?=$row['bn_id']?></td>
<td align=left style='padding-top:5px; padding-bottom:5px;'>$bn_img</td> <td><?=$bn_img?></td>
<td>{$row['bn_position']}</td> <td><?=$row['bn_position']?></td>
<td>$bn_begin_time</td> <td><?=$bn_begin_time?></td>
<td>$bn_end_time</td> <td><?=$bn_end_time?></td>
<td>{$row['bn_order']}</td> <td><?=$row['bn_order']?></td>
<td>{$row['bn_hit']}</td> <td><?=$row['bn_hit']?></td>
<td>$s_mod $s_del</td> <td><?=$s_mod?> <?=$s_del?></td>
</tr><tr><td colspan=8 height=1 bgcolor=F5F5F5></td></tr>"; </tr>
} <?
}
if ($i == 0) { if ($i == 0) {
echo "<tr><td colspan=8 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n"; echo "<tr><td colspan=\"8\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
} }
?> ?>
<tr><td colspan=8 height=1 bgcolor=#CCCCCC></td></tr> </tbody>
</table> </table>
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
</section>
<table width=100%>
<tr>
<td width=50%></td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</table>
<? <?
include_once (G4_ADMIN_PATH.'/admin.tail.php'); include_once (G4_ADMIN_PATH.'/admin.tail.php');