쇼핑몰관리자: #12 FAQ관리 FAQ입력/수정 표준화 및 스타일 1차 작업 완료

This commit is contained in:
rollydream
2013-03-27 14:14:35 +09:00
parent 251365a76d
commit a95cf4a2f0
5 changed files with 116 additions and 113 deletions

View File

@ -31,12 +31,16 @@ $result = sql_query($sql);
<section class="cbox">
<h2>내용관리</h2>
<p id="content_fir"><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a><span>건수 : <? echo $total_count ?>&nbsp;</span></p>
<?=$pg_anchor?>
<p id="content_fir">
<a href='<?=$_SERVER['PHP_SELF']?>'>처음</a>
<span>건수 : <? echo $total_count ?>&nbsp;</span>
</p>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col class="gird_14">
<col class="grid_1">
<col class="grid_3">
<col class="gird_14">
<col class="grid_1">
</colgroup>
<thead id="content_head">
<tr>
@ -62,7 +66,7 @@ $result = sql_query($sql);
}
if ($i == 0) {
echo "<tr><td colspan=3 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
echo "<tr><td colspan=\"3\" align=\"center\" height="100" bgcolor=\"#ffffff\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>

View File

@ -31,55 +31,50 @@ $g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<form name="frmfaqform" action="./faqformupdate.php" onsubmit="return frmfaqform_check(this);" method="post" style="margin:0px;">
<form name="frmfaqform" action="./faqformupdate.php" onsubmit="return frmfaqform_check(this);" method="post">
<input type="hidden" name="w" value="<? echo $w ?>">
<input type="hidden" name="fm_id" value="<? echo $fm_id ?>">
<input type="hidden" name="fa_id" value="<? echo $fa_id ?>">
<section>
<?//=subtitle($html_title)?>
<section class="cbox">
<h2>FAQ상세입력 수정</h2>
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col class="grid_13">
</colgroup>
<tbody>
<tr>
<th scope="col"><label for="fa_order">출력순서</label></th>
<td >
<input type="text" name="fa_order" value="<?=$fa['fa_order']?>" id="fa_order" class="frm_input" maxlength="10" size="10">
<?=help('숫자가 작을수록 FAQ 페이지의 상단에 출력합니다.', 60, -50)?>
</td>
</tr>
<tr>
<th scope="col">질문
<? if ($w == 'u') {
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
}
?>
</th>
<td >
<?=editor_html('fa_subject', $fa['fa_subject']);?>
</td>
</tr>
<tr>
<th scope="col">답변</th>
<td ><?=editor_html('fa_content', $fa['fa_content']);?></td>
</tr>
</tbody>
</table>
</section>
<form name=frmfaqform method=post action='./faqformupdate.php' onsubmit="return frmfaqform_check(this);" style="margin:0px;">
<input type=hidden name=w value='<? echo $w ?>'>
<input type=hidden name=fm_id value='<? echo $fm_id ?>'>
<input type=hidden name=fa_id value='<? echo $fa_id ?>'>
<table cellpadding=0 cellspacing=0 width=100%>
<colgroup width=15%></colgroup>
<colgroup width=85% bgcolor=#ffffff></colgroup>
<tr><td colspan=2 height=2 bgcolor=#0E87F9></td></tr>
<tr class=ht>
<td> 출력 순서</td>
<td>
<input type=text id=fa_order name=fa_order size=10 maxlength=10 value='<?=$fa['fa_order']?>' class=ed>
<?=help('숫자가 작을수록 FAQ 페이지의 상단에 출력합니다.', 60, -50)?>
</td>
</tr>
<tr>
<td> 질문
<? if ($w == 'u') {
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
}
?>
</td>
<td style='padding-top:5px; padding-bottom:5px;'>
<?=editor_html('fa_subject', $fa['fa_subject']);?>
</td>
</tr>
<tr>
<td> 답변</td>
<td style='padding-top:5px; padding-bottom:5px;'>
<?=editor_html('fa_content', $fa['fa_content']);?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=CCCCCC><td></tr>
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type=button class=btn1 accesskey='l' value=' 목 록 ' onclick="document.location.href='./faqlist.php?fm_id=<?=$fm_id?>';">
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./faqlist.php?fm_id=<?=$fm_id?>">목록</a>
</div>
</form>
<script language="javascript">

View File

@ -27,14 +27,15 @@ $result = sql_query($sql);
#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 h2{color:#18abff}
#faq_register ul{list-style:none;padding-left:0}
#faq_register ul li{height:20px;line-height:20px}
#faq_register ul li{height:25px;line-height:25px}
</style>
<section id="faq_box" class="cbox">
<h2>FAQ관리</h2>
<p><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a><span>건수 : <? echo $total_count ?></span></p>
<h2>FAQ관리</h2>
<?=$pg_anchor?>
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a><span>건수 : <? echo $total_count ?></span></p>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -49,7 +50,7 @@ $result = sql_query($sql);
<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>
<th scope="col"><a href='./faqmasterform.php'><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" title="등록"></a></th>
</tr>
</thead>
<tbody>
@ -69,16 +70,16 @@ $result = sql_query($sql);
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center>{$row['fm_id']}</td>
<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>
<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";
echo "<tr><td colspan=\"5\" align=\"center\" height=\"100\" bgcolor=#ffffff><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
?>
</tbody>
</table>
@ -88,11 +89,12 @@ $result = sql_query($sql);
<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>
<?=$pg_anchor?>
<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>

View File

@ -34,12 +34,13 @@ else
$g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<form name="feventform" action="./itemeventformupdate.php" onsubmit="return feventform_check(this);" method="post" enctype="MULTIPART/FORM-DATA" style="margin:0px">
<form name="feventform" action="./itemeventformupdate.php" onsubmit="return feventform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
<input type="hidden" name="w" value="<? echo $w ?>">
<input type="hidden" name="ev_id" value="<? echo $ev_id ?>">
<section class="cbox">
<?//=subtitle($html_title);?>
<h2>이벤트 입력 수정</h2>
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -62,6 +63,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<tr>
<th scope="col">출력스킨</th>
<td colspan="3">
<?=help("기본으로 제공하는 스킨은 $cart_dir/list.skin.*.php 입니다.\n\n$cart_dir/list.php&skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.");?>
<select name=ev_skin>
<? echo get_list_skin_options("^list\.skin\.(.*)\.php", G4_SHOP_PATH); ?>
</select>
@ -69,7 +71,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<? if ($w == 'u') { ?>
<script>document.all.ev_skin.value='<?=$ev['ev_skin']?>';</script>
<? } ?>
<?=help("기본으로 제공하는 스킨은 $cart_dir/list.skin.*.php 입니다.\n\n$cart_dir/list.php&skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.");?>
</td>
</tr>
<tr>
@ -93,15 +94,15 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="ev_use">사용</label></th>
<td colspan="3">
<?=help("사용하지 않으면 왼쪽의 이벤트 메뉴와 이벤트리스트 페이지에 접근할 수 없습니다.");?>
<select name="ev_use" id="ev_use">
<option value="1">예
<option value="0">아니오
</select>
<script>document.all.ev_use.value='<?=$ev['ev_use']?>';</script>
</td>
<th scope="col"><label for="ev_use">사용</label></th>
<td colspan="3">
<?=help("사용하지 않으면 왼쪽의 이벤트 메뉴와 이벤트리스트 페이지에 접근할 수 없습니다.");?>
<select name="ev_use" id="ev_use">
<option value="1">예</option>
<option value="0">아니오</option>
</select>
<script>document.all.ev_use.value='<?=$ev['ev_use']?>';</script>
</td>
</tr>
<tr>
<th scope="col"><label for="ev_subject">이벤트제목</label></th>
@ -118,13 +119,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$mimg_str = "";
$mimg = G4_DATA_PATH."/event/{$ev['ev_id']}_m";
if (file_exists($mimg)) {
echo "<input type=checkbox name=ev_mimg_del value='1'>삭제";
$mimg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_m' border=0>";
echo "<input type=\"checkbox\" name=\"ev_mimg_del\" value=\"1\">삭제";
$mimg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_m' border=\"0\">";
}
?>
</td>
</tr>
<? if ($mimg_str) { echo "<tr><td></td><td colspan=3>$mimg_str</td></tr>"; } ?>
<? if ($mimg_str) { echo "<tr><td></td><td colspan=\"3\">$mimg_str</td></tr>"; } ?>
<tr>
@ -136,13 +137,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$himg_str = "";
$himg = G4_DATA_PATH."/event/{$ev['ev_id']}_h";
if (file_exists($himg)) {
echo "<input type=checkbox name=ev_himg_del value='1'>삭제";
$himg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_h' border=0>";
echo "<input type=\"checkbox\" name=\"ev_himg_del\" value='1'>삭제";
$himg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_h' border=\"0\">";
}
?>
</td>
</tr>
<? if ($himg_str) { echo "<tr><td colspan=4>$himg_str</td></tr>"; } ?>
<? if ($himg_str) { echo "<tr><td colspan=\"4\">$himg_str</td></tr>"; } ?>
<tr>
@ -154,13 +155,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$timg_str = "";
$timg = G4_DATA_PATH."/event/{$ev['ev_id']}_t";
if (file_exists($timg)) {
echo "<input type=checkbox name=ev_timg_del value='1'>삭제";
$timg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_t' border=0>";
echo "<input type=\"checkbox\" name=\"ev_timg_del\" value='1'>삭제";
$timg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_t' border=\"0\">";
}
?>
</td>
</tr>
<? if ($timg_str) { echo "<tr><td colspan=4>$timg_str</td></tr>"; } ?>
<? if ($timg_str) { echo "<tr><td colspan=\"4\">$timg_str</td></tr>"; } ?>
<tr>
<th scope="col">상단내용</th>
<td colspan="3">
@ -177,10 +178,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</tbody>
</table>
</section>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./itemevent.php">목록</a>
</div>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./itemevent.php">목록</a>
</div>
</form>
<script>

View File

@ -125,7 +125,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<th scope="col"><label for="ca_id">분류명</label></th>
<td colspan="3">
<select name="ca_id" id="ca_id" onchange="categorychange(this.form)">
<option value="">= 기본분류 =
<option value="">= 기본분류 =</option>
<?
$script = "";
$sql = " select * from {$g4['yc4_category_table']} ";
@ -250,24 +250,24 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<input type="text" name="it_origin" value="<?=get_text($it['it_origin'])?>" id="it_origin" class="frm_input" size="41">
</td>
</tr>
<?
for ($i=1; $i<=3; $i++) {
$k1=$i*2-1;
$k2=$i*2;
$val11 = stripslashes($it["it_opt".$k1."_subject"]);
$val12 = stripslashes($it["it_opt".$k1]);
$val21 = stripslashes($it["it_opt".$k2."_subject"]);
$val22 = stripslashes($it["it_opt".$k2]);
<?
for ($i=1; $i<=3; $i++) {
$k1=$i*2-1;
$k2=$i*2;
$val11 = stripslashes($it["it_opt".$k1."_subject"]);
$val12 = stripslashes($it["it_opt".$k1]);
$val21 = stripslashes($it["it_opt".$k2."_subject"]);
$val22 = stripslashes($it["it_opt".$k2]);
echo "
<tr>
<td><input type=text name='it_opt{$k1}_subject' size=15 class=frm_input value='".get_text($val11)."'></td>
<td><textarea name='it_opt{$k1}' rows='3' cols=40 class=frm_input>$val12</textarea></td>
<td><input type=text name='it_opt{$k2}_subject' size=15 class=frm_input value='".get_text($val21)."'></td>
<td><textarea name='it_opt{$k2}' rows='3' cols=40 class=frm_input>$val22</textarea></td>
</tr>\n";
}
?>
echo "
<tr>
<td><input type=text name='it_opt{$k1}_subject' size=15 class=frm_input value='".get_text($val11)."'></td>
<td><textarea name='it_opt{$k1}' rows='3' cols=40 class=frm_input>$val12</textarea></td>
<td><input type=text name='it_opt{$k2}_subject' size=15 class=frm_input value='".get_text($val21)."'></td>
<td><textarea name='it_opt{$k2}' rows='3' cols=40 class=frm_input>$val22</textarea></td>
</tr>\n";
}
?>
<tr>
<td colspan="4">
<style type="text/css">
@ -527,8 +527,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</script>
※ 상품 선택후 <FONT COLOR="#0E87F9">더블클릭하면 왼쪽에 추가됨</FONT><br>※ 한 번 클릭시 상품이미지/상품금액 출력<br>
<select onchange="search_relation(this)">
<option value=''>분류별 관련상품
<option value=''>----------------------
<option value=''>분류별 관련상품</option>
<option value=''>----------------------</option>
<?
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where length(ca_id) = 2 order by ca_id ";
$result = sql_query($sql);
@ -672,7 +672,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
}
?>
</select>
<input type='hidden' name='ev_list' value='<?=$str?>'>
<input type="hidden" name="ev_list" value="<?=$str?>">
</td>
<td>이벤트목록</td>
<td>
@ -821,10 +821,10 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</table>
</section>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./itemlist.php?<?=$qstr?>">목록</a>
</div>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./itemlist.php?<?=$qstr?>">목록</a>
</div>
</form>