쇼핑몰관리자: #60 쇼핑몰현황 전자결제내역 표준화 및 스타일 완료
This commit is contained in:
@ -45,79 +45,74 @@ $sql = " select a.*,
|
|||||||
limit $from_record, $rows ";
|
limit $from_record, $rows ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
|
$qstr1 = 'sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search;
|
||||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
$qstr = $qstr1.'&sort1='.$sort1.'&sort2='.$sort2.'&page='.$page;
|
||||||
|
|
||||||
|
$listall = '';
|
||||||
|
if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||||
|
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style type="text/css">
|
|
||||||
.ordercardhistory{text-align:center}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<form name="flist">
|
<form name="flist">
|
||||||
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
|
<input type="hidden" name="sort1" value="<?=$sort1?>">
|
||||||
<input type="hidden" name="page" value="<? echo $page ?>">
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a></p>
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>전자결제내역 검색</legend>
|
<legend>전자결제내역 검색</legend>
|
||||||
<select name="sel_field" title="검색대상">
|
|
||||||
<option value="a.od_id">주문번호</option>
|
<span>
|
||||||
<option value="cd_app_no">승인번호</option>
|
<?=$listall?>
|
||||||
<option value="cd_opt01">결제자</option>
|
전체 전자결제내역 <?=$total_count ?>건
|
||||||
</select>
|
</span>
|
||||||
<? if ($sel_field) echo "<script> document.flist.sel_field.value = '$sel_field';</script>"; ?>
|
|
||||||
<input type="text" name="search" value="<? echo $search ?>" class="frm_input" autocomplete="off">
|
<label for="sel_field" class="sound_only">검색대상</label>
|
||||||
<input type="submit" value="검색" class="btn_submit">
|
<select name="sel_field" id="sel_field">
|
||||||
|
<option value="a.od_id" <?=get_selected($sel_field, 'a.od_id')?>>주문번호</option>
|
||||||
|
<option value="cd_app_no" <?=get_selected($sel_field, 'cp_app_no')?>>승인번호</option>
|
||||||
|
<option value="cd_opt01" <?=get_selected($sel_field, 'cp_opt01')?>>결제자</option>
|
||||||
|
</select>
|
||||||
|
<label for="search" class="sound_only">검색어</label>
|
||||||
|
<input type="text" name="search" value="<?=$search?>" id="search" required class="frm_input required" autocomplete="off">
|
||||||
|
<input type="submit" value="검색" class="btn_submit">
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<p>건수 : <? echo $total_count ?></p>
|
|
||||||
|
</form>
|
||||||
|
|
||||||
<section class="cbox">
|
<section class="cbox">
|
||||||
<h2>전자결제내역</h2>
|
<h2>전자결제내역</h2>
|
||||||
<p>*신용카드, 실시간 계좌이체로 승인한 내역이며, 주문번호를 클릭하시면 주문상세 페이지로 이동합니다.</p>
|
<p>신용카드 혹은 실시간 계좌이체로 결제(승인) 된 내역이며, 주문번호를 클릭하시면 주문상세 페이지로 이동합니다.</p>
|
||||||
<table class="frm_basic">
|
<table class="frm_basic">
|
||||||
<colgroup>
|
|
||||||
<col class="grid_2">
|
|
||||||
<col class="grid_8">
|
|
||||||
<col class="grid_2">
|
|
||||||
<col class="grid_2">
|
|
||||||
<col class="grid_2">
|
|
||||||
<col class="grid_2">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><a href="<? echo title_sort("od_id") . "&$qstr1"; ?>">주문번호</a></th>
|
<th scope="col"><a href="<?=title_sort("od_id") . "&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||||
<th scope="col"><a href="<? echo title_sort("cd_amount") . "&$qstr1"; ?>">승인금액</a></th>
|
<th scope="col"><a href="<?=title_sort("cd_amount") . "&$qstr1"; ?>">승인금액<span class="sound_only"> 순 정렬</span></a></th>
|
||||||
<th scope="col"><a href="<? echo title_sort("cd_app_no") . "&$qstr1"; ?>">승인번호</a></th>
|
<th scope="col"><a href="<?=title_sort("cd_app_no") . "&$qstr1"; ?>">승인번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||||
<th scope="col"><a href="<? echo title_sort("cd_app_rt") . "&$qstr1"; ?>">승인결과</a></th>
|
<th scope="col"><a href="<?=title_sort("cd_app_rt") . "&$qstr1"; ?>">승인결과<span class="sound_only"> 순 정렬</span></a></th>
|
||||||
<th scope="col"><a href="<? echo title_sort("cd_app_time") . "&$qstr1"; ?>">승인일시</a></th>
|
<th scope="col"><a href="<?=title_sort("cd_app_time") . "&$qstr1"; ?>">승인일시<span class="sound_only"> 순 정렬</span></a></th>
|
||||||
<th scope="col"><a href="<? echo title_sort("cd_opt01") . "&$qstr1"; ?>">결제자</a></th>
|
<th scope="col"><a href="<?=title_sort("cd_opt01") . "&$qstr1"; ?>">결제자<span class="sound_only"> 순 정렬</span></a></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<? for ($i=0; $row=sql_fetch_array($result); $i++) { ?>
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
|
||||||
{
|
|
||||||
$list = $i%2;
|
|
||||||
?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="ordercardhistory"><a href="./orderform.php?od_id=<?=$row['od_id']?>"><?=$row['od_id']?></a></td>
|
<td class="td_odrnum2"><a href="./orderform.php?od_id=<?=$row['od_id']?>"><?=$row['od_id']?></a></td>
|
||||||
<td><?=display_amount($row['cd_amount'])?></td>
|
<td><?=display_amount($row['cd_amount'])?></td>
|
||||||
<td class="ordercardhistory"><?=$row['cd_app_no']?></td>
|
<td class="td_num"><?=$row['cd_app_no']?></td>
|
||||||
<td class="ordercardhistory"><?=$row['cd_app_rt']?></td>
|
<td class="td_smallmng"><?=$row['cd_app_rt']?></td>
|
||||||
<td class="ordercardhistory"><?=$row['cd_app_time']?></td>
|
<td class="td_time"><?=$row['cd_app_time']?></td>
|
||||||
<td class="ordercardhistory"><?=$row['cd_opt01']?></td>
|
<td class="td_smallmng"><?=$row['cd_opt01']?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="6" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>'
|
echo '<tr><td colspan="6" class="empty_table">자료가 없습니다.</td></tr>'
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
|
||||||
</section>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user