Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -24,49 +24,54 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
||||
|
||||
<?//=subtitle($g4['title'])?>
|
||||
|
||||
<form name=fitemps method=post onsubmit="return fitemps_submit(this);" style="margin:0px;">
|
||||
<input type=hidden name=w value='<? echo $w ?>'>
|
||||
<input type=hidden name=is_id value='<? echo $is_id ?>'>
|
||||
<input type=hidden name=page value='<? echo $page ?>'>
|
||||
<input type=hidden name=sort1 value='<? echo $sort1 ?>'>
|
||||
<input type=hidden name=sort2 value='<? echo $sort2 ?>'>
|
||||
<table cellpadding=0 cellspacing=1 width=100%>
|
||||
<colgroup width=120 class=tdsl></colgroup>
|
||||
<colgroup width='' bgcolor=#ffffff></colgroup>
|
||||
<tr><td colspan=4 height=3 bgcolor=0E87F9></td></tr>
|
||||
<tr height=25>
|
||||
<td> 상품명</td>
|
||||
<td><a href='<?=G4_SHOP_URL?>/item.php?it_id=<?=$is['it_id']?>'><?=$is['it_name']?></a></td>
|
||||
</tr>
|
||||
<tr height=25>
|
||||
<td> 이 름</td>
|
||||
<td><?=$name?></td>
|
||||
</tr>
|
||||
<tr height=25>
|
||||
<td> 점 수</td>
|
||||
<td><? echo stripslashes($is['is_score']) ?> 점</td>
|
||||
</tr>
|
||||
<tr height=25>
|
||||
<td> 제 목</td>
|
||||
<td><input type=text class=ed name=is_subject required itenmae='제목' style='width:99%;'
|
||||
value='<?=conv_subject($is['is_subject'], 120)?>'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> 내 용</td>
|
||||
<td>
|
||||
<?=editor_html('is_content', $is['is_content']);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=25>
|
||||
<td> 확 인</td>
|
||||
<td><input type=checkbox name=is_confirm value='1' <?=($is['is_confirm']?"checked":"")?> id=is_confirm> <label for='is_confirm'>확인하였습니다.</a></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</table>
|
||||
<form name="fitemps" method="post" onsubmit="return fitemps_submit(this);">
|
||||
<input type="hidden" name="w" value="<? echo $w ?>">
|
||||
<input type="hidden" name="is_id" value="<? echo $is_id ?>">
|
||||
<input type="hidden" name="page" value="<? echo $page ?>">
|
||||
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
|
||||
<input type="hidden" name="sort2" value="<? echo $sort2 ?>">
|
||||
|
||||
<p align=center>
|
||||
<input type=submit class=btn1 value=' 확 인 ' accesskey='s'>
|
||||
<input type=button class=btn1 value=' 목 록 ' onclick="document.location.href='./itempslist.php?<?=$qstr?>';">
|
||||
<section class="cbox">
|
||||
<h2>사용후기 수정</h2>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">상품명</th>
|
||||
<td><a href="<?=G4_SHOP_URL?>/item.php?it_id=<?=$is['it_id']?>"><?=$is['it_name']?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">이름</th>
|
||||
<td><?=$name?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">점수</th>
|
||||
<td><?=stripslashes($is['is_score']) ?> 점</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" required class="required frm_input" id="is_subject" size="100"
|
||||
value='<?=conv_subject($is['is_subject'], 120)?>'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">내용</th>
|
||||
<td><?=editor_html('is_content', $is['is_content']);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">확인</th>
|
||||
<td><input type="checkbox" name="is_confirm" value="1" <?=($is['is_confirm']?"checked":"")?> id="is_confirm"><label for="is_confirm">확인하였습니다</label></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itempslist.php?<?=$qstr?>">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
@ -52,63 +52,64 @@ $result = sql_query($sql);
|
||||
//$qstr = "page=$page&sst=$sst&sod=$sod&stx=$stx";
|
||||
$qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
?>
|
||||
<style type="text/css">
|
||||
.itempslist{text-align:center}
|
||||
</style>
|
||||
|
||||
<form name=flist style="margin:0px;">
|
||||
<table width=100% cellpadding=4 cellspacing=0>
|
||||
<input type=hidden name=page value="<?=$page?>">
|
||||
<tr>
|
||||
<td width=10%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
|
||||
<td width=80% align=center>
|
||||
<select name="sca">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = "";
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= " ";
|
||||
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
|
||||
}
|
||||
?>
|
||||
<form name="flist">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<p><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></p>
|
||||
<fieldset>
|
||||
<legend>상품후기 검색</legend>
|
||||
<select name="sca" title="검색분류">
|
||||
<option value=''>전체분류</option>
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = "";
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= " ";
|
||||
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<script> document.flist.sca.value = '<?=$sca?>';</script>
|
||||
|
||||
<select name=sfl>
|
||||
<option value='it_name'>상품명
|
||||
<option value='a.it_id'>상품코드
|
||||
<option value='is_name'>이름
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="it_name">상품명</option>
|
||||
<option value="a.it_id">상품코드</option>
|
||||
<option value="is_name">이름</option>
|
||||
</select>
|
||||
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
|
||||
|
||||
<input type=hidden name=save_stx value='<?=$stx?>'>
|
||||
<input type=text name=stx value='<?=$stx?>'>
|
||||
<input type=image src='<?=G4_ADMIN_URL?>/img/btn_search.gif' align=absmiddle>
|
||||
</td>
|
||||
<td width=10% align=right>건수 : <? echo $total_count ?> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="save_stx" value="<?=$stx?>">
|
||||
<input type="text" name="stx" value="<?=$stx?>" class="frm_input" title="검색어">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</fieldset>
|
||||
<p>건수 : <? echo $total_count ?></p>
|
||||
</form>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 width=100% border=0>
|
||||
<colgroup width=80>
|
||||
<colgroup width=''>
|
||||
<colgroup width=80>
|
||||
<colgroup width=200>
|
||||
<colgroup width=40>
|
||||
<colgroup width=40>
|
||||
<colgroup width=80>
|
||||
<tr><td colspan=7 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<tr align=center class=ht>
|
||||
<td></td>
|
||||
<td><?=subject_sort_link("it_name"); ?>상품명</a></td>
|
||||
<td><?=subject_sort_link("mb_name"); ?>이름</a></td>
|
||||
<td><?=subject_sort_link("is_subject"); ?>제목</a></td>
|
||||
<td><?=subject_sort_link("is_score"); ?>점수</a></td>
|
||||
<td><?=subject_sort_link("is_confirm"); ?>확인</a></td>
|
||||
<td>수정 삭제</td>
|
||||
<section class="cbox">
|
||||
<table class="frm_basic">
|
||||
<colgroup>
|
||||
<col class="grid_8">
|
||||
<col class="grid_2">
|
||||
<col class="grid_4">
|
||||
<col class="grid_1">
|
||||
<col class="grid_1">
|
||||
<col class="grid_2">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="itempslist"><?=subject_sort_link("it_name"); ?>상품명</a></th>
|
||||
<th scope="col"><?=subject_sort_link("mb_name"); ?>이름</a></th>
|
||||
<th scope="col"><?=subject_sort_link("is_subject"); ?>제목</a></th>
|
||||
<th scope="col"><?=subject_sort_link("is_score"); ?>점수</a></th>
|
||||
<th scope="col"><?=subject_sort_link("is_confirm"); ?>확인</a></th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
<tr><td colspan=7 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
@ -124,32 +125,28 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$confirm = $row['is_confirm'] ? "Y" : " ";
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list'>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
|
||||
<td><a href='$href'>".cut_str($row['it_name'],30)."</a></td>
|
||||
<td align=center>$name</td>
|
||||
<td>".$row['is_subject']."</td>
|
||||
<td align=center>".$row['is_score']."</td>
|
||||
<td align=center>$confirm</td>
|
||||
<td align=center>$s_mod $s_del</td>
|
||||
</tr>";
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=$href?>"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
|
||||
<td class="itempslist"><?=$name?></td>
|
||||
<td><?=$row['is_subject']?></td>
|
||||
<td class="itempslist"><?=$row['is_score']?></td>
|
||||
<td class="itempslist"><?=$confirm?></td>
|
||||
<td class="itempslist"><a href="./itempsform.php?w=u&is_id=<?=$row['is_id']?>&$qstr">수정</a> <a href="./itempsformupdate.php?w=d&is_id=<?=$row['is_id']?>&$qstr')">삭제</a></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
echo "<tr><td colspan=7 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
|
||||
echo '<tr><td colspan="7" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
|
||||
}
|
||||
?>
|
||||
<tr><td colspan=7 height=1 bgcolor=CCCCCC></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</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>
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||
|
||||
<?
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
|
||||
@ -52,101 +52,97 @@ $result = sql_query($sql);
|
||||
//$qstr = "page=$page&sst=$sst&sod=$sod&stx=$stx";
|
||||
$qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
?>
|
||||
<style type="text/css">
|
||||
.itemqalist{text-align:center}
|
||||
</style>
|
||||
|
||||
<form name=flist style="margin:0px;">
|
||||
<table width=100% cellpadding=4 cellspacing=0>
|
||||
<input type=hidden name=page value="<?=$page?>">
|
||||
<tr>
|
||||
<td width=10%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
|
||||
<td width=80% align=center>
|
||||
<select name="sca">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = "";
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= " ";
|
||||
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<script> document.flist.sca.value = '<?=$sca?>';</script>
|
||||
<form name="flist">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a></p>
|
||||
<fieldset>
|
||||
<legend>상품문의 검색</legend>
|
||||
<select name="sca">
|
||||
<option value=''>전체분류</option>
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = "";
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= " ";
|
||||
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<script> document.flist.sca.value = '<?=$sca?>';</script>
|
||||
|
||||
<select name=sfl>
|
||||
<option value='it_name'>상품명
|
||||
<option value='a.it_id'>상품코드
|
||||
</select>
|
||||
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
|
||||
<select name="sfl">
|
||||
<option value="it_name">상품명</option>
|
||||
<option value="a.it_id">상품코드</option>
|
||||
</select>
|
||||
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
|
||||
|
||||
<input type=hidden name=save_stx value='<?=$stx?>'>
|
||||
<input type=text name=stx value='<?=$stx?>'>
|
||||
<input type=image src='<?=G4_ADMIN_URL?>/img/btn_search.gif' align=absmiddle>
|
||||
</td>
|
||||
<td width=10% align=right>건수 : <? echo $total_count ?> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="save_stx" value="<?=$stx?>">
|
||||
<input type="text" name="stx" value="<?=$stx?>" class="frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</fieldset>
|
||||
<p>건수 : <? echo $total_count ?></p>
|
||||
</form>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 width=100%>
|
||||
<colgroup width=80>
|
||||
<colgroup width=''>
|
||||
<colgroup width=100>
|
||||
<colgroup width=250>
|
||||
<colgroup width=50>
|
||||
<colgroup width=80>
|
||||
<tr><td colspan=6 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<tr align=center class=ht>
|
||||
<td></td>
|
||||
<td><?=subject_sort_link("it_name"); ?>상품명</a></td>
|
||||
<td><?=subject_sort_link("mb_name"); ?>이름</a></td>
|
||||
<td><?=subject_sort_link("iq_subject"); ?>질문</a></td>
|
||||
<td><?=subject_sort_link("iq_answer"); ?>답변</a></td>
|
||||
<td>수정 삭제</td>
|
||||
</tr>
|
||||
<tr><td colspan=6 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<?
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
|
||||
<section class="cbox">
|
||||
<h2>상품문의 관리</h2>
|
||||
<table class="frm_basic">
|
||||
<colgroup>
|
||||
<col class="grid_8">
|
||||
<col class="grid_2">
|
||||
<col class="grid_5">
|
||||
<col class="grid_1">
|
||||
<col class="grid_2">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?=subject_sort_link("it_name"); ?>상품명</a></th>
|
||||
<th scope="col"><?=subject_sort_link("mb_name"); ?>이름</a></th>
|
||||
<th scope="col"><?=subject_sort_link("iq_subject"); ?>질문</a></th>
|
||||
<th scope="col"><?=subject_sort_link("iq_answer"); ?>답변</a></th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
|
||||
|
||||
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
|
||||
$name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
|
||||
$name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
$s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
|
||||
$s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
|
||||
|
||||
$answer = $row['iq_answer'] ? "Y" : " ";
|
||||
$answer = $row['iq_answer'] ? "Y" : " ";
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list'>
|
||||
<td align=center style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
|
||||
<td><a href='$href'>".cut_str($row['it_name'],30)."</a></td>
|
||||
<td align=center>$name</td>
|
||||
<td>{$row['iq_subject']}</td>
|
||||
<td align=center>$answer</td>
|
||||
<td align=center>$s_mod $s_del</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
echo "<tr><td colspan=6 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
|
||||
}
|
||||
?>
|
||||
<tr><td colspan=6 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<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>
|
||||
$list = $i%2;
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="$href"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
|
||||
<td class="itemqalist"><?=$name?></td>
|
||||
<td><?=$row['iq_subject']?></td>
|
||||
<td class="itemqalist"><?=$answer?></td>
|
||||
<td class="itemqalist"><a href="./itemqaform.php?w=u&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">수정</a> <a href="./itemqaformupdate.php?w=d&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">삭제</a></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="5" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
|
||||
@ -170,7 +170,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
|
||||
}
|
||||
|
||||
if (!$i)
|
||||
echo '<tr><td colspan="9" class="itemtypelist empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
|
||||
echo '<tr><td colspan="9" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
|
||||
Reference in New Issue
Block a user