쇼핑몰관리자: #214 쿠폰관리 마크업 및 스타일 완료

This commit is contained in:
whitedot
2013-06-04 16:20:21 +09:00
parent 2649ecbe24
commit f6556492a5
4 changed files with 108 additions and 72 deletions

View File

@ -76,7 +76,7 @@ $colspan = 8;
</fieldset>
</form>
<section class="cbox">
<section id="scp_list" class="cbox">
<h2>쿠폰 내역</h2>
<div id="btn_add">
@ -142,13 +142,13 @@ $colspan = 8;
<input type="hidden" id="cp_id_<?php echo $i; ?>" name="cp_id[<?php echo $i; ?>]" value="<?php echo $row['cp_id']; ?>">
<input type="checkbox" id="chk_<?php echo $i; ?>" name="chk[]" value="<?php echo $i; ?>" title="내역선택">
</td>
<td class="td_mbid"><?php echo $row['cp_id']; ?></td>
<td class="td_mbname"><?php echo $row['cp_subject']; ?></td>
<td class="scp_list_id"><?php echo $row['cp_id']; ?></td>
<td class="scp_list_name"><?php echo $row['cp_subject']; ?></td>
<td><?php echo $cp_target; ?></td>
<td class="td_name sv_use"><div><?php echo $row['mb_id']; ?></div></td>
<td class="td_time"><?php echo substr($row['cp_start'], 2, 8); ?> ~ <?php echo substr($row['cp_end'], 2, 8); ?></td>
<td class="td_pt_log"><?php echo $row['cp_used'] ? '예' : '아니오'; ?></td>
<td class="td_num td_pt"><a href="./couponform.php?w=u&amp;cp_id=<?php echo $row['cp_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $row['cp_id']; ?> 수정"></a></td>
<td class="td_boolean"><?php echo $row['cp_used'] ? '예' : '아니오'; ?></td>
<td class="td_mng"><a href="./couponform.php?w=u&amp;cp_id=<?php echo $row['cp_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $row['cp_id']; ?> 수정"></a></td>
</tr>
<?php

View File

@ -15,40 +15,48 @@ if($_GET['mb_name']) {
}
?>
<div id="sch_member_frm">
<form name="fmember" method="get">
<div>
<label for="mb_name">회원이름</label>
<input type="text" name="mb_name" id="mb_name" class="frm_input required" required size="20">
</div>
<?php if($_GET['mb_name']) { ?>
<table>
<tr>
<th>회원이름</th>
<th>회원아이디</th>
<th>선택</th>
</tr>
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td><?php echo $row['mb_name']; ?></td>
<td><?php echo $row['mb_id']; ?></td>
<td><button type="button" onclick="sel_member_id('<?php echo $row['mb_id']; ?>');">선택</button>
</tr>
<?php
}
<div id="sch_member_frm" class="new_win scp_new_win">
<h1>쿠폰 적용 회원선택</h1>
if($i ==0)
echo '<tr><td colspan="3">검색된 자료가 없습니다.</td></tr>';
?>
</table>
<?php } ?>
<div>
<input type="submit" value="검색">
<button type="button" onclick="window.close();">닫기</button>
</div>
</form>
<form name="fmember" method="get">
<div id="scp_list_find">
<label for="mb_name">회원이름</label>
<input type="text" name="mb_name" id="mb_name" class="frm_input required" required size="20">
<input type="submit" value="검색" class="btn_frmline">
</div>
<?php if($_GET['mb_name']) { ?>
<table>
<caption>검색결과</caption>
<thead>
<tr>
<th>회원이름</th>
<th>회원아이디</th>
<th>선택</th>
</tr>
</thead>
<tbody>
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td class="td_mbname"><?php echo $row['mb_name']; ?></td>
<td><?php echo $row['mb_id']; ?></td>
<td class="scp_find_select"><button type="button" onclick="sel_member_id('<?php echo $row['mb_id']; ?>');">선택</button>
</tr>
<?php
}
if($i ==0)
echo '<tr><td colspan="3" class="empty_table">검색된 자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<?php } ?>
</form>
<div class="btn_confirm">
<button type="button" onclick="window.close();">닫기</button>
</div>
</div>
<script>

View File

@ -28,41 +28,55 @@ if($_GET['sch_word']) {
}
?>
<div id="sch_target_frm">
<form name="ftarget" method="get">
<input type="hidden" name="sch_target" value="<?php echo $_GET['sch_target']; ?>">
<div>
<label for="sch_word"><?php echo $t_name; ?></label>
<input type="text" name="sch_word" id="sch_word" class="frm_input required" required size="20">
</div>
<?php if($_GET['sch_word']) { ?>
<table>
<tr>
<th><?php echo $t_name; ?></th>
<th><?php echo $t_id; ?></th>
<th>선택</th>
</tr>
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td><?php echo $row['t_name']; ?></td>
<td><?php echo $row['t_id']; ?></td>
<td><button type="button" onclick="sel_target_id('<?php echo $row['t_id']; ?>');">선택</button>
</tr>
<?php
}
<div id="sch_target_frm" class="new_win scp_new_win">
<h1>쿠폰 적용 상품선택</h1>
if($i ==0)
echo '<tr><td colspan="3">검색된 자료가 없습니다.</td></tr>';
?>
</table>
<?php } ?>
<div>
<input type="submit" value="검색">
<button type="button" onclick="window.close();">닫기</button>
</div>
</form>
<p class="new_win_desc">
쿠폰을 적용할 상품을 선택하세요. 상품이 많을 경우에는 검색 기능을 이용하세요.
</p>
<form name="ftarget" method="get">
<input type="hidden" name="sch_target" value="<?php echo $_GET['sch_target']; ?>">
<div id="scp_list_find">
<label for="sch_word"><?php echo $t_name; ?></label>
<input type="text" name="sch_word" id="sch_word" class="frm_input required" required size="20">
<input type="submit" value="검색" class="btn_frmline">
</div>
<?php if($_GET['sch_word']) { ?>
<table>
<caption>검색결과</caption>
<thead>
<tr>
<th><?php echo $t_name; ?></th>
<th><?php echo $t_id; ?></th>
<th>선택</th>
</tr>
</thead>
<tbody>
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td><?php echo $row['t_name']; ?></td>
<td class="scp_target_code"><?php echo $row['t_id']; ?></td>
<td class="scp_target_select"><button type="button" onclick="sel_target_id('<?php echo $row['t_id']; ?>');">선택</button>
</tr>
<?php
}
if($i ==0)
echo '<tr><td colspan="3" class="empty_table">검색된 자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<?php } ?>
</form>
<div class="btn_confirm">
<button type="button" onclick="window.close();">닫기</button>
</div>
</div>
<script>

View File

@ -255,6 +255,20 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
/* 이벤트 입력/수정 */
.frm_ev_id {display:inline-block;margin:0 10px 0 0;font-weight:bold}
/* 쿠폰관리 */
#scp_list {}
#scp_list .scp_list_id {width:170px}
#scp_list .scp_list_name {width:90px}
.scp_new_win .empty_table {padding:30px 0}
#scp_list_find {margin:10px auto 20px;padding:20px;width:86%;border:1px solid #e9e9e9;background:#fff}
#scp_list_find .btn_frmline {line-height:1.5em !important}
#scp_list_find label {font-weight:bold}
.scp_find_code {width:110px;text-align:center}
.scp_find_select {width:50px;text-align:center}
/* 배너관리 */
#tbl_bn_list {text-align:center}