스킨화 작업 2차

This commit is contained in:
chicpro
2013-09-24 16:01:24 +09:00
parent de94493584
commit ba7607130b
47 changed files with 1886 additions and 1980 deletions

View File

@ -2,15 +2,8 @@
include_once('./_common.php');
include_once(G5_EDITOR_LIB);
// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
$iq_question_max_length = 10000;
$w = escape_trim($_REQUEST['w']);
$it_id = escape_trim($_REQUEST['it_id']);
$iq_id = escape_trim($_REQUEST['iq_id']);
if (!$is_member) {
alert_login("상품문의는 회원만 작성 가능합니다.", urlencode($_SERVER['REQUEST_URI']));
alert_close("상품문의는 회원만 작성 가능합니다.");
}
if ($w == "u")
@ -28,56 +21,14 @@ if ($w == "u")
}
include_once(G5_PATH.'/head.sub.php');
?>
<!-- 상품문의 쓰기 시작 { -->
<div id="sit_qa_write" class="new_win">
<h1 class="new_win_title">상품문의 쓰기</h1>
$itemqaform_skin = G5_MSHOP_SKIN_PATH.'/itemqaform.skin.php';
<form name="fitemqa" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="iq_subject">제목</label></th>
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="frm_input" minlength="2" maxlength="250"></td>
</tr>
<tr>
<th scope="row"><label for="iq_question">질문</label></th>
<td><?php echo editor_html('iq_question', $qa['iq_question']); ?></td>
</tr>
</tbody>
</table>
<div class="btn_win">
<input type="submit" value="작성완료" class="btn_submit">
</div>
</form>
</div>
<script type="text/javascript">
function fitemqa_submit(f)
{
<?php echo get_editor_js('iq_question'); ?>
if (iq_question_editor_data.length > <?php echo $iq_question_max_length; ?>) {
alert("내용은 <?php echo $iq_question_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+iq_question_editor_data.length+" 글자");
CKEDITOR.instances.iq_question.focus();
return false;
}
return true;
if(!file_exists($itemqaform_skin)) {
echo str_replace(G5_PATH.'/', '', $itemqaform_skin).' 스킨 파일이 존재하지 않습니다.';
} else {
include_once($itemqaform_skin);
}
</script>
<!-- } 상품문의 쓰기 끝 -->
<?php
include_once(G5_PATH.'/tail.sub.php');
?>