쇼핑몰관리자: #9 상품관리 상품입력/수정 페이지 세부 수정

This commit is contained in:
rollydream
2013-03-27 13:21:18 +09:00
parent 336b0faf60
commit f88f60a3de
4 changed files with 235 additions and 235 deletions

View File

@ -23,86 +23,79 @@ $sql = "select * $sql_common order by fm_id desc limit $from_record, {$config['c
$result = sql_query($sql);
?>
<table width=100%>
<tr>
<td width=20%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=60% align=center>&nbsp;</td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</table>
<style type="text/css">
#faq_box th{height:35px;line-height:35px;text-align:center}
#faq_box p{position:relative}
#faq_box span{position:absolute;top:-12;right:5px}
#faq_register h3{color:#18abff}
#faq_register ul{list-style:none;padding-left:0}
#faq_register ul li{height:20px;line-height:20px}
</style>
<section id="faq_box" class="cbox">
<h2>FAQ관리</h2>
<p><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a><span>건수 : <? echo $total_count ?></span></p>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col class="grid_11">
<col class="grid_2">
<col class="gird_2">
<col class="grid_1">
</colgroup>
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">제목</th>
<th scope="col">FAQ수</th>
<th scope="col">상세보기</th>
<th scope="col"><a href='./faqmasterform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0 title='등록'></a></th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ";
$row1 = sql_fetch($sql1);
$cnt = $row1['cnt'];
<table cellpadding=0 cellspacing=0 width=100% border=0>
<colgroup width=80>
<colgroup width=''>
<colgroup width=80>
<colgroup width=80>
<colgroup width=80>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td>ID</td>
<td>제목</td>
<td>FAQ 수</td>
<td>상세보기</td>
<td><a href='./faqmasterform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0 title='등록'></a></td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ";
$row1 = sql_fetch($sql1);
$cnt = $row1['cnt'];
$s_detail_vie = icon("보기", "./faqlist.php?fm_id={$row['fm_id']}");
$s_detail_vie = icon("보기", "./faqlist.php?fm_id={$row['fm_id']}");
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id={$row['fm_id']}");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id={$row['fm_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/faq.php?fm_id={$row['fm_id']}");
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id={$row['fm_id']}");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id={$row['fm_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/faq.php?fm_id={$row['fm_id']}");
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center>{$row['fm_id']}</td>
<td>" . stripslashes($row['fm_subject']) . "</td>
<td align=center>$cnt</td>
<td align=center>$s_detail_vie</td>
<td align=center>$s_mod $s_del $s_vie</td>
</tr>";
}
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center>{$row['fm_id']}</td>
<td>" . stripslashes($row['fm_subject']) . "</td>
<td align=center>$cnt</td>
<td align=center>$s_detail_vie</td>
<td align=center>$s_mod $s_del $s_vie</td>
</tr>";
}
if ($i == 0)
echo "<tr><td colspan=5 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
?>
</tbody>
</table>
</section>
if ($i == 0)
echo "<tr><td colspan=5 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
?>
<tr><td colspan=5 height=1 bgcolor=CCCCCC></td></tr>
</table>
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
<table width=100%>
<tr bgcolor=#ffffff>
<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><br>
<section id="faq_register" class="cbox">
<h2>FAQ 등록하기</h2>
<ul>
<li>: FAQ는 무제한으로 등록할 수 있습니다</li>
<li>1. 먼저 <img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif'>를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )</li>
<li> 2. 상세보기에 있는 <img src='<?=G4_ADMIN_URL?>/img/icon_viewer.gif'>을 눌러 세부 내용으로 들어갑니다.</li>
</ul>
</section>
<table width=100% cellpadding=5 cellspacing=0 border=0 bgcolor=#F6F6F6>
<tr>
<td>
<table width=100% cellpadding=10 cellspacing=0 bgcolor=#FFFFFF>
<tr>
<td style="line-height:220%;">
<B><FONT COLOR="18ABFF">&middot; FAQ 등록하기</FONT></B><BR>
: FAQ는 무제한으로 등록할 수 있습니다.<BR>
1. 먼저 <img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' align=absmiddle>를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )<BR>
2. 상세보기에 있는 <img src='<?=G4_ADMIN_URL?>/img/icon_viewer.gif' align=absmiddle>을 눌러 세부 내용으로 들어갑니다.
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>