Example #1
0
<script>
function frmfaqform_check(f)
{
    errmsg = "";
    errfld = "";

    //check_field(f.fa_subject, "제목을 입력하세요.");
    //check_field(f.fa_content, "내용을 입력하세요.");

    if (errmsg != "")
    {
        alert(errmsg);
        errfld.focus();
        return false;
    }

    <?php 
echo get_editor_js('fa_subject');
?>
    <?php 
echo get_editor_js('fa_content');
?>

    return true;
}

// document.getElementById('fa_order').focus(); 포커스 해제
</script>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #2
0
}
if ($w == "u") {
    $qa = sql_fetch(" select * from {$g5['g5_shop_item_qa_table']} where iq_id = '{$iq_id}' ");
    if (!$qa) {
        alert_close("상품문의 정보가 없습니다.");
    }
    $it_id = $qa['it_id'];
    if (!$iq_admin && $qa['mb_id'] != $member['mb_id']) {
        alert_close("자신의 상품문의만 수정이 가능합니다.");
    }
    if ($qa['iq_secret']) {
        $chk_secret = 'checked="checked"';
    }
}
include_once G5_PATH . '/head.sub.php';
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && (!is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE)) {
    $is_dhtml_editor = true;
}
$editor_html = editor_html('iq_question', get_text($qa['iq_question'], 0), $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_question', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_question', $is_dhtml_editor);
$itemqaform_skin = G5_MSHOP_SKIN_PATH . '/itemqaform.skin.php';
if (!file_exists($itemqaform_skin)) {
    echo str_replace(G5_PATH . '/', '', $itemqaform_skin) . ' 스킨 파일이 존재하지 않습니다.';
} else {
    include_once $itemqaform_skin;
}
include_once G5_PATH . '/tail.sub.php';
Example #3
0
    }
}

function fboardform_submit(f)
{
    <?php 
echo get_editor_js("bo_content_head");
?>
    <?php 
echo get_editor_js("bo_content_tail");
?>
    <?php 
echo get_editor_js("bo_mobile_content_head");
?>
    <?php 
echo get_editor_js("bo_mobile_content_tail");
?>

    if (parseInt(f.bo_count_modify.value) < 0) {
        alert("원글 수정 불가 댓글수는 0 이상 입력하셔야 합니다.");
        f.bo_count_modify.focus();
        return false;
    }

    if (parseInt(f.bo_count_delete.value) < 1) {
        alert("원글 삭제 불가 댓글수는 1 이상 입력하셔야 합니다.");
        f.bo_count_delete.focus();
        return false;
    }

    return true;
Example #4
0
</form>

<script>
function frmcontentform_check(f)
{
    errmsg = "";
    errfld = "";

    <?php 
echo get_editor_js('co_content');
?>
    <?php 
echo chk_editor_js('co_content');
?>
    <?php 
echo get_editor_js('co_mobile_content');
?>
    check_field(f.co_id, "ID를 입력하세요.");
    check_field(f.co_subject, "제목을 입력하세요.");
    check_field(f.co_content, "내용을 입력하세요.");

    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }
    return true;
}
</script>

<?php 
Example #5
0
";
    } else {
        f.bo_read_point.value     = f.bo_read_point.defaultValue;
        f.bo_write_point.value    = f.bo_write_point.defaultValue;
        f.bo_comment_point.value  = f.bo_comment_point.defaultValue;
        f.bo_download_point.value = f.bo_download_point.defaultValue;
    }
}

function fboardform_submit(f)
{
    <?php 
echo get_editor_js("bo_content_head");
?>
    <?php 
echo get_editor_js("bo_content_tail");
?>

    if (parseInt(f.bo_count_modify.value) < 0) {
        alert("원글 수정 불가 댓글수는 0 이상 입력하셔야 합니다.");
        f.bo_count_modify.focus();
        return false;
    }

    if (parseInt(f.bo_count_delete.value) < 1) {
        alert("원글 삭제 불가 댓글수는 1 이상 입력하셔야 합니다.");
        f.bo_count_delete.focus();
        return false;
    }

    return true;
Example #6
0
</div>

<div class="btn_confirm01 btn_confirm">
    <input type="submit" value="확인" class="btn_submit" accesskey="s">
    <a href="./newwinlist.php">목록</a>
</div>
</form>

<script>
function frmnewwin_check(f)
{
    errmsg = "";
    errfld = "";

    <?php 
echo get_editor_js('nw_content');
?>

    check_field(f.nw_subject, "제목을 입력하세요.");

    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }
    return true;
}
</script>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #7
0
if ($skin_row['qa_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['qa_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/qa/' . $skin_name;
$skin_url = G5_SKIN_URL . '/apms/qa/' . $skin_name;
if ($move) {
    include_once './_head.php';
} else {
    include_once G5_PATH . '/head.sub.php';
    @(include_once THEMA_PATH . '/head.sub.php');
}
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
    $is_dhtml_editor = true;
}
$editor_html = editor_html('iq_answer', get_text($qa['iq_answer'], 0), $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_answer', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_answer', $is_dhtml_editor);
include_once $skin_path . '/qansform.skin.php';
if ($move) {
    include_once './_tail.php';
} else {
    @(include_once THEMA_PATH . '/tail.sub.php');
    include_once G5_PATH . '/tail.sub.php';
}
Example #8
0
</textarea></td> -->
    </tr>
    </tbody>
    </table>
</div>

<div class="btn_confirm01 btn_confirm">
    <input type="submit" accesskey='s' value="확인" class="btn_submit">
    <a href="./itemqalist.php?<?php 
echo $qstr;
?>
">목록</a>
</div>
</form>

<script>
function fitemqaform_submit(f)
{
    <?php 
echo get_editor_js('iq_question');
?>
    <?php 
echo get_editor_js('iq_answer');
?>

    return true;
}
</script>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #9
0
	<input type="submit" value="확인" class="btn_submit" accesskey="s">
<?php 
}
?>
    <a href="./surveyslist.php">목록</a>
</div>
</form>

<script type="text/javascript">
function frmsurveys_check(f){
	
	errmsg = "";
    errfld = "";
    
	<?php 
echo get_editor_js('su_content');
?>

    check_field(f.su_subject, "제목을 입력하세요.");
    
    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }
    return true;
}

</script>
<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #10
0
echo editor_html('fm_tail_html', $fm['fm_tail_html']);
?>
        </td>
    </tr>
    </tbody>
    </table>
</div>

<div class="btn_confirm01 btn_confirm">
    <input type="submit" value="확인" class="btn_submit" accesskey="s">
    <a href="./faqmasterlist.php">목록</a>
</div>

</form>

<script>
function frmfaqmasterform_check(f)
{
    <?php 
echo get_editor_js('fm_head_html');
?>
    <?php 
echo get_editor_js('fm_tail_html');
?>
}

// document.frmfaqmasterform.fm_subject.focus();
</script>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #11
0
<script>
function fmailform_check(f)
{
    errmsg = "";
    errfld = "";

    check_field(f.ma_subject, "제목을 입력하세요.");
    //check_field(f.ma_content, "내용을 입력하세요.");

    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }

    <?php 
echo get_editor_js("ma_content");
?>
    <?php 
echo chk_editor_js("ma_content");
?>

     return true;
 }

document.fmailform.ma_subject.focus();
</script>

<?php 
include_once './admin.tail.php';
Example #12
0
echo $frm_submit;
?>
</div>
</form>

<script>
function fconfig_check(f)
{
    <?php 
echo get_editor_js('de_baesong_content');
?>
    <?php 
echo get_editor_js('de_change_content');
?>
    <?php 
echo get_editor_js('de_guest_privacy');
?>

    return true;
}

$(function() {
    $(".pg_info_fld").hide();
    $(".pg_vbank_url").hide();
    <?php 
if ($default['de_pg_service']) {
    ?>
    $(".<?php 
    echo $default['de_pg_service'];
    ?>
_info_fld").show();
Example #13
0
?>
>
            <label for="is_confirm_no">아니오</label>
        </td>
    </tr>
    </tbody>
    </table>
</div>

<div class="btn_confirm01 btn_confirm">
    <input type="submit" value="확인" class="btn_submit" accesskey="s">
    <a href="./itemuselist.php?<?php 
echo $qstr;
?>
">목록</a>
</div>
</form>

<script>
function fitemuseform_submit(f)
{
    <?php 
echo get_editor_js('is_content');
?>

    return true;
}
</script>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #14
0
    ed = ed.replace(/[&]nbsp[;]/gi,""); 
    ed = ed.replace(/[<]br[^>]*[>]/gi, "");
    ed = ed.replace(/[<]div[^>]*[>]/gi, "");
    ed = ed.replace(/[<][\/]div[^>]*[>]/gi, "");
    ed = ed.replace(/\s/g, "");

    return !ed;
}

<?php 
        if (is_g5()) {
            ?>
function g5_editor_to_text()
{
    <?php 
            echo get_editor_js('wr_content', $is_comment_editor);
            ?>
}
<?php 
        }
        ?>

function fviewcomment_submit(f)
{
    var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자

    /*
    var s;
    if (s = word_filter_check(document.getElementById('wr_content').value))
    {
        alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
Example #15
0
    var ev_item = it_id = "";

    $("#reg_item_list input[name='it_id[]']").each(function() {
        it_id = $(this).val();
        if(it_id == "")
            return true;

        item.push(it_id);
    });

    if(item.length > 0)
        ev_item = item.join();

    $("input[name=ev_item]").val(ev_item);

    <?php 
echo get_editor_js('ev_head_html');
?>
    <?php 
echo get_editor_js('ev_tail_html');
?>

    return true;
}

/* document.feventform.ev_subject.focus(); 포커스해제*/
</script>


<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #16
0
{
    if (obj.checked) {
        result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}

function fwrite_submit(f)
{
    <?php 
echo get_editor_js('wr_content', $is_dhtml_editor);
?>
    <?php 
echo chk_editor_js('wr_content', $is_dhtml_editor);
?>

    var subject = "";
    var content = "";
    $.ajax({
        url: g5_bbs_url+"/ajax.filter.php",
        type: "POST",
        data: {
            "subject": f.wr_subject.value,
            "content": f.wr_content.value
        },
        dataType: "json",
Example #17
0
                error = data.error;
            }
        });

        if (error) {
            alert(error);
            return false;
        }
    }

    <?php 
echo get_editor_js('ca_head_html');
?>
    <?php 
echo get_editor_js('ca_tail_html');
?>
    <?php 
echo get_editor_js('ca_mobile_head_html');
?>
    <?php 
echo get_editor_js('ca_mobile_tail_html');
?>

    return true;
}

/*document.fcategoryform.ca_name.focus(); 포커스 해제*/
</script>

<?php 
include_once G5_ADMIN_PATH . '/admin.tail.php';
Example #18
0
<div class="btn_confirm01 btn_confirm">
    <input type="submit" value="확인" class="btn_submit" accesskey="s">
    <a href="./contentlist.php">목록</a>
</div>

</form>

<script>
function frmcontentform_check(f)
{
    errmsg = "";
    errfld = "";

    <?php 
echo get_editor_js('co_content');
?>

    check_field(f.co_id, "ID를 입력하세요.");
    check_field(f.co_subject, "제목을 입력하세요.");
    check_field(f.co_content, "내용을 입력하세요.");

    if (errmsg != "") {
        alert(errmsg);
        errfld.focus();
        return false;
    }
    return true;
}
</script>
Example #19
0
    check_itemuse_write($it_id, $member['mb_id']);
} else {
    if ($w == "u") {
        $use = sql_fetch(" select * from {$g5['g5_shop_item_use_table']} where is_id = '{$is_id}' ");
        if (!$use) {
            alert_close("사용후기 정보가 없습니다.");
        }
        $it_id = $use['it_id'];
        $is_score = $use['is_score'];
        if (!$is_admin && $use['mb_id'] != $member['mb_id']) {
            alert_close("자신의 사용후기만 수정이 가능합니다.");
        }
    }
}
include_once G5_PATH . '/head.sub.php';
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
    $is_dhtml_editor = true;
}
$editor_html = editor_html('is_content', get_text($use['is_content'], 0), $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('is_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('is_content', $is_dhtml_editor);
$itemuseform_skin = G5_MSHOP_SKIN_PATH . '/itemuseform.skin.php';
if (!file_exists($itemuseform_skin)) {
    echo str_replace(G5_PATH . '/', '', $itemuseform_skin) . ' 스킨 파일이 존재하지 않습니다.';
} else {
    include_once $itemuseform_skin;
}
include_once G5_PATH . '/tail.sub.php';
Example #20
0
        <?php 
}
?>
        </tbody>
        </table>
    </div>
</section>

<div class="center">
    <button type="submit" class="btn btn-primary" accesskey="s"><i class="fa fa-check-square-o"></i> 확인</button>
</div>

</form>

<script>
function fqaconfigform_submit(f)
{
    <?php 
echo get_editor_js("qa_content_head");
?>
    <?php 
echo get_editor_js("qa_content_tail");
?>

    f.action = "./qa_config_update.php";
    return true;
}
</script>

<?php 
include_once './admin.tail.php';